:root {
  --navy: #063766;
  --blue: #0a68a8;
  --cyan: #12b7c4;
  --teal: #0a9ca8;
  --bg: #f5f8fb;
  --text: #102033;
  --muted: #6b7a8c;
  --line: #dce7f2;
  --white: #ffffff;
  --danger: #b42318;
  --success: #087443;
  --soft-cyan: rgba(18, 183, 196, .12);
  --soft-blue: rgba(10, 104, 168, .11);
  --shadow: 0 18px 45px rgba(6, 55, 102, .12);
  --shadow-soft: 0 12px 30px rgba(6, 55, 102, .075);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Cairo', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(18,183,196,.18), transparent 38%),
    linear-gradient(135deg, #f9fcff, #eef7fb);
}
.auth-card {
  width: min(440px, 100%);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 34px;
}
.auth-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.logo-pill, .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: .5px;
}
.auth-card h1 { margin: 0; font-size: 26px; }
.auth-card p { color: var(--muted); margin: 8px 0 24px; }

.form-grid { display: grid; gap: 16px; }
label { font-weight: 700; color: #23384f; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(18,183,196,.13); }
.btn {
  border: 0;
  border-radius: 16px;
  padding: 13px 18px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 12px 24px rgba(10,104,168,.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn.secondary { background: #edf6fb; color: var(--navy); box-shadow: none; }
.btn.danger { background: #fee4e2; color: var(--danger); box-shadow: none; }
.btn.small { padding: 8px 12px; border-radius: 12px; font-size: 13px; }
.alert {
  border-radius: 16px;
  padding: 12px 14px;
  margin: 0 0 18px;
  font-weight: 700;
}
.alert.error { color: var(--danger); background: #fff1f0; }
.alert.success { color: var(--success); background: #ecfdf3; }

/* Dashboard / admin */
.dashboard-shell { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; }
.sidebar {
  background: #fff;
  border-left: 1px solid var(--line);
  padding: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.brand { display: flex; align-items: center; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.brand small { display: block; color: var(--muted); margin-top: 2px; }
.sidebar nav { display: grid; gap: 8px; margin-top: 22px; }
.sidebar nav a, .logout {
  padding: 13px 14px;
  border-radius: 15px;
  color: #31465f;
  font-weight: 700;
}
.sidebar nav a.active, .sidebar nav a:hover { background: linear-gradient(135deg, rgba(10,104,168,.1), rgba(18,183,196,.1)); color: var(--navy); }
.logout { margin-top: auto; color: var(--danger); background: #fff5f5; text-align: center; }
.dashboard-main { padding: 28px; }
.page-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.page-title h1 { margin: 0; font-size: 28px; }
.page-title p { margin: 5px 0 0; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card, .panel {
  background: #fff;
  border: 1px solid rgba(220,231,242,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}
.metric strong { display: block; font-size: 30px; color: var(--navy); }
.metric span { color: var(--muted); font-weight: 700; }
.panel { margin-bottom: 18px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: right; padding: 13px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: #49617a; font-size: 13px; }
.thumb { width: 58px; height: 58px; object-fit: cover; border-radius: 14px; background: #edf3f8; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }


/* Premium public menu */

.menu-page {
    min-height: 100vh;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, .82) 0%,
            rgba(255, 255, 255, .90) 42%,
            #ffffff 100%
        ),
        radial-gradient(
            circle at 10% 0%,
            var(--customer-accent, var(--cyan)) 0%,
            transparent 34%
        ),
        radial-gradient(
            circle at 90% 16%,
            var(--customer-primary, var(--blue)) 0%,
            transparent 32%
        ),
        linear-gradient(
            180deg,
            var(--customer-accent, var(--cyan)) 0%,
            var(--customer-primary, var(--blue)) 100%
        );
    overflow-x: hidden;
}

.menu-page.menu-theme-vars {
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, .82) 0%,
            rgba(255, 255, 255, .90) 42%,
            #ffffff 100%
        ),
        radial-gradient(
            circle at 10% 0%,
            var(--customer-accent, var(--cyan)) 0%,
            transparent 34%
        ),
        radial-gradient(
            circle at 90% 16%,
            var(--customer-primary, var(--blue)) 0%,
            transparent 32%
        ),
        linear-gradient(
            180deg,
            var(--customer-accent, var(--cyan)) 0%,
            var(--customer-primary, var(--blue)) 100%
        );
}

.menu-cover {
  height: 250px;
  background:
    linear-gradient(135deg, var(--navy), var(--blue) 48%, var(--cyan));
  background-size: cover;
  background-position: center;
  position: relative;
  isolation: isolate;
}
.menu-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.18), transparent 22%),
    radial-gradient(circle at 82% 10%, rgba(18,183,196,.30), transparent 28%),
    linear-gradient(180deg, rgba(6, 55, 102, .10), rgba(6, 55, 102, .76));
  z-index: 1;
}
.menu-cover::after {
  content: none !important;
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.13);
  backdrop-filter: blur(12px);
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .2px;
}
.menu-container {
  width: min(1060px, calc(100% - 28px));
  margin: -96px auto 44px;
  position: relative;
  z-index: 3;
}
.restaurant-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 34px;
  box-shadow: 0 24px 70px rgba(6, 55, 102, .18);
  padding: 24px;
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}
.restaurant-card::before {
  content: '';
  position: absolute;
  inset: auto 24px 0 24px;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--teal));
}
.restaurant-logo {
  width: 98px;
  height: 98px;
  object-fit: cover;
  border-radius: 28px;
  background: linear-gradient(135deg, #eaf5fb, #fff);
  border: 4px solid #fff;
  box-shadow: 0 18px 28px rgba(6, 55, 102, .13);
  flex: 0 0 auto;
}
.restaurant-info h1 {
  margin: 0;
  font-size: clamp(25px, 4vw, 38px);
  color: var(--navy);
  letter-spacing: -.7px;
  line-height: 1.2;
}
.restaurant-info p {
  margin: 8px 0 0;
  color: #5d7085;
  font-weight: 650;
  line-height: 1.85;
  max-width: 760px;
}
.menu-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.menu-actions a {
  background: linear-gradient(135deg, rgba(10,104,168,.09), rgba(18,183,196,.12));
  color: var(--navy);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  border: 1px solid rgba(18,183,196,.18);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.menu-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(6,55,102,.10);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
}


.menu-search {
    position: sticky;
    z-index: 9;
    margin: 18px 0 12px;
    background: rgba(247, 251, 253, .78);
    backdrop-filter: blur(16px);
    border: 1px solid var(--customer-accent, var(--line));
    box-shadow: 0 14px 30px rgba(6, 55, 102, .08);
}

.menu-search input {
    border: 0;
    box-shadow: none;
    background: #fff;
    font-weight: 800;
    color: var(--navy);
}

.menu-search input:focus {
    box-shadow: 0 0 0 4px rgba(18, 183, 196, .12);
    border-color: var(--customer-accent, var(--cyan));
}


.menu-category-pills {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 2px 12px;
  margin: 0 0 8px;
  -webkit-overflow-scrolling: touch;
}
.menu-category-pills::-webkit-scrollbar { display: none; }
.menu-category-pills a {
  flex: 0 0 auto;
  background: #fff;
  color: var(--navy);
  border: 1px solid rgba(220,231,242,.95);
  box-shadow: 0 8px 16px rgba(6,55,102,.05);
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 900;
  transition: all .2s ease;
}
.menu-category-pills a.active,
.menu-category-pills a:hover {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  border-color: transparent;
}
.category-section {
  margin: 15px 0;
  scroll-margin-top: 118px;
}
.category-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  margin: 0 0 16px;
  color: var(--navy);
  line-height: 1.25;
}
.category-title::before {
  content: '';
  width: 12px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 8px 14px rgba(18,183,196,.22);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.product-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.96);
  border-radius: 26px;
  padding: 12px;
  border: 1px solid rgba(220,231,242,.9);
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 15px;
  box-shadow: 0 14px 30px rgba(6,55,102,.075);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 38px rgba(6,55,102,.12);
  border-color: rgba(18,183,196,.28);
}
.product-card::after {
  content: '';
  position: absolute;
  inset: auto 16px 0 16px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, transparent, rgba(18,183,196,.55), transparent);
  opacity: .55;
}
.product-image {
  width: 116px;
  height: 116px;
  object-fit: cover;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(18,183,196,.16), transparent 36%),
    #eef5f8;
}
.product-card h3 {
  margin: 2px 0 6px;
  font-size: 18px;
  color: #132b43;
  line-height: 1.35;
}
.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.price-row {
  margin-top: 12px;
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.price {
  color: var(--blue);
  font-weight: 950;
  font-size: 18px;
  background: rgba(10,104,168,.08);
  border-radius: 999px;
  padding: 4px 10px;
}
.old-price {
  color: #98a6b5;
  text-decoration: line-through;
  font-weight: 800;
  font-size: 13px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e9fbf6;
  color: var(--success);
  border: 1px solid rgba(8,116,67,.10);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}
.empty-state, .menu-no-results {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  padding: 42px 20px;
  color: var(--muted);
}
.menu-no-results {
  display: none;
  margin: 22px 0;
}
.menu-powered {
  text-align: center;
  color: #789;
  font-size: 12px;
  font-weight: 800;
  margin: 34px 0 0;
}
.menu-powered span {
  color: var(--blue);
}

@media (max-width: 900px) {
  .dashboard-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-left: 0; border-bottom: 1px solid var(--line); }
  .sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards, .grid-2, .grid-3, .product-grid { grid-template-columns: 1fr; }
  .dashboard-main { padding: 18px; }
  .page-title { flex-direction: column; }
}

@media (max-width: 560px) {
  body { background: #f8fbfd; }
  .menu-cover { height: 200px; }
  .menu-cover::after { top: 12px; left: 12px; font-size: 11px; padding: 7px 11px; }
  .menu-container {
    width: min(100% - 20px, 560px);
    margin-top: -82px;
  }
  .restaurant-card {
    grid-template-columns: 76px minmax(0,1fr);
    border-radius: 28px;
    padding: 16px;
    gap: 13px;
  }
  .restaurant-logo {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    border-width: 3px;
  }
  .restaurant-info h1 { font-size: 23px; }
  .restaurant-info p { font-size: 13px; line-height: 1.65; }
  .menu-actions { gap: 7px; margin-top: 12px; }
  .menu-actions a { padding: 8px 11px; font-size: 12px; }
  .menu-search {
    top: 8px;
    border-radius: 20px;
    padding: 8px;
  }
  .menu-search input {
    border-radius: 15px;
    padding: 13px 14px;
    font-size: 14px;
  }
  .category-title { font-size: 21px; }
  .product-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    border-radius: 22px;
    padding: 10px;
  }
  .product-image {
    width: 96px;
    height: 96px;
    border-radius: 18px;
  }
  .product-card h3 { font-size: 16px; }
  .product-card p {
    font-size: 12px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .price { font-size: 16px; }
  .auth-card { padding: 24px; }
}

@media (max-width: 380px) {
  .restaurant-card { grid-template-columns: 1fr; text-align: center; }
  .restaurant-logo { margin: 0 auto; }
  .menu-actions { justify-content: center; }
  .product-card { grid-template-columns: 84px minmax(0,1fr); }
  .product-image { width: 84px; height: 84px; }
}


/* Premium dashboard home update */
.dashboard-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 20px;
  padding: 26px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,.22), transparent 24%),
    radial-gradient(circle at 86% 12%, rgba(18,183,196,.32), transparent 28%),
    linear-gradient(135deg, var(--navy), var(--blue) 58%, var(--cyan));
  box-shadow: 0 24px 60px rgba(6, 55, 102, .18);
  color: #fff;
}
.dashboard-hero::after {
  content: '';
  position: absolute;
  inset: auto -80px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.dashboard-hero-content,
.dashboard-hero-card { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 14px;
}
.dashboard-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: -.8px;
}
.dashboard-hero p {
  margin: 12px 0 0;
  color: rgba(255,255,255,.86);
  line-height: 1.9;
  max-width: 680px;
  font-weight: 650;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.dashboard-hero .btn {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.dashboard-hero .btn.secondary {
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: none;
}
.dashboard-hero-card {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 24px;
  padding: 18px;
  backdrop-filter: blur(14px);
  display: grid;
  gap: 12px;
  align-content: center;
}
.dashboard-hero-card span {
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 800;
}
.dashboard-hero-card strong {
  display: block;
  background: rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 12px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.dashboard-hero-card small {
  display: none;
  color: #d7fff9;
  font-weight: 900;
}
.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.premium-metric {
  position: relative;
  overflow: hidden;
  padding: 20px;
}
.premium-metric::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}
.premium-metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.premium-metric strong {
  margin: 6px 0 2px;
  font-size: 34px;
}
.premium-metric small {
  color: #7a8ba0;
  font-weight: 700;
}
.dashboard-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .75fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}
.dashboard-home-grid.lower { grid-template-columns: minmax(0, 1fr) 360px; }
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.panel-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 21px;
}
.panel-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 650;
}
.panel-heading > strong {
  color: var(--blue);
  font-size: 30px;
}
.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.quick-action-grid a {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 5px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(10,104,168,.07), rgba(18,183,196,.10));
  border: 1px solid rgba(18,183,196,.16);
  transition: transform .2s ease, box-shadow .2s ease;
}
.quick-action-grid a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(6,55,102,.10);
}
.quick-action-grid a::after {
  content: '←';
  position: absolute;
  left: 16px;
  top: 16px;
  color: var(--cyan);
  font-weight: 950;
}
.quick-action-grid strong {
  color: var(--navy);
  font-size: 16px;
}
.quick-action-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  padding-left: 24px;
}
.progress-track {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #edf4f8;
  margin-bottom: 16px;
}
.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5f7288;
  font-weight: 800;
}
.checklist li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd8e4;
  flex: 0 0 auto;
}
.checklist li.done { color: var(--success); }
.checklist li.done::before {
  content: '✓';
  display: grid;
  place-items: center;
  background: #e9fbf6;
  border-color: rgba(8,116,67,.24);
  color: var(--success);
  font-size: 12px;
  font-weight: 950;
}
.recent-products-list {
  display: grid;
  gap: 10px;
}
.recent-product-item {
  display: grid;
  grid-template-columns: 58px minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdff;
}
.recent-product-item img {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  object-fit: cover;
  background: #edf3f8;
}
.recent-product-item strong {
  display: block;
  color: #20364c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-product-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.recent-product-item b {
  color: var(--blue);
  font-size: 14px;
  white-space: nowrap;
}
.empty-mini {
  border: 1px dashed #cbd8e4;
  border-radius: 20px;
  background: #f8fbfd;
  color: var(--muted);
  text-align: center;
  padding: 24px;
  font-weight: 800;
}
.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 850;
}
.status-line span { color: var(--muted); }
.status-line a { color: var(--blue); }
.status-active {
  color: var(--success);
  background: #ecfdf3;
  padding: 5px 10px;
  border-radius: 999px;
}
.status-inactive {
  color: var(--danger);
  background: #fff1f0;
  padding: 5px 10px;
  border-radius: 999px;
}
.dashboard-note {
  margin-top: 16px;
  border-radius: 18px;
  padding: 14px;
  background: rgba(18,183,196,.10);
  color: var(--navy);
  font-weight: 800;
  line-height: 1.7;
}
@media (max-width: 1100px) {
  .dashboard-hero,
  .dashboard-home-grid,
  .dashboard-home-grid.lower { grid-template-columns: 1fr; }
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .dashboard-hero { padding: 18px; border-radius: 24px; }
  .hero-actions { flex-direction: column; }
  .dashboard-metrics,
  .quick-action-grid { grid-template-columns: 1fr; }
  .recent-product-item { grid-template-columns: 50px minmax(0,1fr); }
  .recent-product-item b { grid-column: 2; }
}


/* Customer customization controls */
.customize-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}
.color-input-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.color-input-row input[type="color"] {
  height: 52px;
  padding: 4px;
  cursor: pointer;
}
.color-input-row input[disabled] {
  color: var(--muted);
  background: #f8fbfd;
  direction: ltr;
  text-align: left;
  font-weight: 800;
}
.option-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.option-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  cursor: pointer;
  background: #fff;
  transition: all .2s ease;
}
.option-card input { width: auto; margin: 0; }
.option-card strong { color: var(--navy); font-size: 17px; }
.option-card span { color: var(--muted); line-height: 1.6; font-size: 13px; }
.option-card:hover,
.option-card.selected {
  border-color: rgba(18,183,196,.45);
  box-shadow: 0 14px 30px rgba(6,55,102,.08);
  transform: translateY(-2px);
}
.toggle-row {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  background: #fff;
}
.toggle-row input { width: auto; }
.preview-panel { position: sticky; top: 22px; }
.mini-menu-preview {
  --customer-primary: var(--blue);
  --customer-accent: var(--cyan);
  border-radius: 28px;
  overflow: hidden;
  background: #f6fbfd;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65);
}
.mini-cover {
  height: 86px;
  background: linear-gradient(135deg, var(--customer-primary), var(--customer-accent));
}
.mini-restaurant {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: rgba(255,255,255,.92);
}
.mini-restaurant > span {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--customer-primary), var(--customer-accent));
  border: 3px solid #fff;
  box-shadow: 0 10px 20px rgba(6,55,102,.12);
}
.mini-restaurant strong { display: block; color: var(--navy); }
.mini-restaurant small { color: var(--muted); font-weight: 700; }
.mini-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 14px 4px;
  overflow: hidden;
}
.mini-tabs span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--customer-primary), var(--customer-accent));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.mini-product {
  margin: 10px 14px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  gap: 5px;
}
.mini-product b { color: #132b43; }
.mini-product small { color: var(--muted); }
.mini-product strong { color: var(--customer-primary); }
.mini-menu-preview.menu-style-dark {
  background: #0d1b2a;
  border-color: rgba(255,255,255,.12);
}
.mini-menu-preview.menu-style-dark .mini-restaurant,
.mini-menu-preview.menu-style-dark .mini-product {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
}
.mini-menu-preview.menu-style-dark .mini-restaurant strong,
.mini-menu-preview.menu-style-dark .mini-product b { color: #fff; }
.mini-menu-preview.menu-style-dark .mini-restaurant small,
.mini-menu-preview.menu-style-dark .mini-product small { color: rgba(255,255,255,.68); }
.mini-menu-preview.menu-style-classic,
.menu-page.menu-style-classic .mini-menu-preview {
  border-radius: 18px;
  background: #fffaf3;
}
.mini-menu-preview.card-style-compact .mini-product { padding: 9px 12px; margin: 7px 14px; }

/* Public menu customer theme variables */
.menu-theme-vars {
  --customer-primary: var(--blue);
  --customer-accent: var(--cyan);
  min-height: 100vh;
}
.menu-theme-vars .menu-cover {
  background: linear-gradient(135deg, var(--navy), var(--customer-primary) 48%, var(--customer-accent));
  background-size: cover;
  background-position: center;
}
.menu-theme-vars .menu-cover::before {
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.18), transparent 22%),
    radial-gradient(circle at 82% 10%, color-mix(in srgb, var(--customer-accent) 38%, transparent), transparent 28%),
    linear-gradient(180deg, rgba(6, 55, 102, .10), rgba(6, 55, 102, .76));
}
.menu-theme-vars .restaurant-card::before,
.menu-theme-vars .category-title::before,
.menu-theme-vars .product-card::after {
  background: linear-gradient(90deg, var(--customer-accent), var(--customer-primary));
}
.menu-theme-vars .menu-actions a:hover,
.menu-theme-vars .menu-category-pills a.active,
.menu-theme-vars .menu-category-pills a:hover,
.menu-theme-vars .btn {
  background: linear-gradient(135deg, var(--customer-primary), var(--customer-accent));
}
.menu-theme-vars .price,
.menu-theme-vars .menu-powered span,
.menu-theme-vars .restaurant-info h1 {
  color: var(--customer-primary);
}
.menu-theme-vars .price {
  background: color-mix(in srgb, var(--customer-primary) 10%, #ffffff);
}
.menu-theme-vars .badge {
  background: color-mix(in srgb, var(--customer-accent) 15%, #ffffff);
  color: var(--customer-primary);
}

.menu-page.menu-style-classic {
  background: #f8f2e8;
}
.menu-page.menu-style-classic .menu-cover {
  height: 200px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--customer-primary) 80%, #111), var(--customer-accent));
}
.menu-page.menu-style-classic .restaurant-card,
.menu-page.menu-style-classic .product-card,
.menu-page.menu-style-classic .menu-search,
.menu-page.menu-style-classic .empty-state {
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(49, 34, 14, .08);
}
.menu-page.menu-style-classic .restaurant-logo,
.menu-page.menu-style-classic .product-image { border-radius: 14px; }
.menu-page.menu-style-classic .menu-category-pills a { border-radius: 12px; }

.menu-page.menu-style-dark {
  background:
    radial-gradient(circle at 15% 0%, rgba(18,183,196,.14), transparent 34%),
    linear-gradient(180deg, #091523 0%, #0d1b2a 52%, #111827 100%);
  color: #fff;
}
.menu-page.menu-style-dark .menu-cover::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.12), transparent 24%),
    linear-gradient(180deg, rgba(5,13,25,.12), rgba(5,13,25,.88));
}
.menu-page.menu-style-dark .restaurant-card,
.menu-page.menu-style-dark .product-card,
.menu-page.menu-style-dark .menu-search,
.menu-page.menu-style-dark .empty-state,
.menu-page.menu-style-dark .menu-no-results {
  background: rgba(15, 29, 46, .88);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
}
.menu-page.menu-style-dark .restaurant-info h1,
.menu-page.menu-style-dark .category-title,
.menu-page.menu-style-dark .product-card h3,
.menu-page.menu-style-dark .empty-state h2,
.menu-page.menu-style-dark .empty-state h1 { color: #fff; }
.menu-page.menu-style-dark .restaurant-info p,
.menu-page.menu-style-dark .product-card p,
.menu-page.menu-style-dark .menu-powered,
.menu-page.menu-style-dark .empty-state p { color: rgba(255,255,255,.68); }
.menu-page.menu-style-dark .menu-search input,
.menu-page.menu-style-dark .menu-category-pills a {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.12);
}
.menu-page.menu-style-dark .product-image { background: rgba(255,255,255,.08); }

.menu-page.card-style-compact .product-grid { gap: 11px; }
.menu-page.card-style-compact .product-card {
  grid-template-columns: 82px minmax(0, 1fr);
  padding: 9px;
  border-radius: 20px;
  gap: 11px;
}
.menu-page.card-style-compact .product-image {
  width: 82px;
  height: 82px;
  border-radius: 16px;
}
.menu-page.card-style-compact .product-card h3 { font-size: 15px; margin-bottom: 3px; }
.menu-page.card-style-compact .product-card p {
  font-size: 12px;
  -webkit-line-clamp: 1;
}
.menu-page.card-style-compact .price { font-size: 14px; padding: 3px 8px; }

@media (max-width: 900px) {
  .customize-grid { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  .option-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .color-input-row { grid-template-columns: 60px minmax(0, 1fr); }
  .menu-page.card-style-compact .product-card { grid-template-columns: 76px minmax(0, 1fr); }
  .menu-page.card-style-compact .product-image { width: 76px; height: 76px; }
}


/* --- Customization UI refresh --- */
.page-title-split { align-items: center; }
.title-actions { display:flex; gap:10px; flex-wrap:wrap; }
.customize-form {
  gap: 18px;
  padding: 24px;
}
.customize-intro {
  border: 1px solid rgba(18,183,196,.14);
  background: linear-gradient(135deg, rgba(10,104,168,.05), rgba(18,183,196,.08));
  border-radius: 20px;
  padding: 16px 18px;
}
.customize-intro strong {
  display:block;
  color: var(--navy);
  font-size: 18px;
  margin-bottom: 4px;
}
.customize-intro span {
  color: var(--muted);
  line-height: 1.8;
  display:block;
}
.control-section {
  display: grid;
  gap: 14px;
}
.modern-heading {
  margin: 0;
  padding-bottom: 0;
}
.compact-grid,
.display-controls {
  display:grid;
  gap:14px;
}
.display-controls {
  grid-template-columns: 1.1fr .9fr;
}
.control-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbfdff);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 12px 26px rgba(6,55,102,.045);
}
.control-card label {
  display:block;
  color: var(--navy);
  font-size: 15px;
  margin-bottom: 6px;
}
.control-card > small,
.toggle-copy small {
  display:block;
  color: var(--muted);
  line-height: 1.7;
}
.color-card .color-input-row { margin-top: 14px; }
.modern-color-row {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
}
.color-swatch-wrap {
  border: 1px solid rgba(10,104,168,.12);
  border-radius: 18px;
  background: #f9fcff;
  padding: 5px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}
.modern-color-row input[type="color"] {
  border: 0;
  width: 100%;
  height: 50px;
  border-radius: 14px;
  background: transparent;
}
.modern-color-row input[disabled] {
  background: #f8fbfd;
  color: #5f7084;
  font-size: 15px;
}
.option-cards-modern { gap: 14px; }
.option-card.style-card {
  position: relative;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  min-height: 160px;
  box-shadow: 0 10px 24px rgba(6,55,102,.04);
}
.option-card.style-card input {
  position: absolute;
  opacity: 0;
  inset: 0;
  pointer-events: none;
}
.option-card-check {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid #c8d8e7;
  background: #fff;
  display: inline-block;
  position: relative;
}
.option-card-check::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  transform: scale(0);
  transition: transform .18s ease;
}
.option-card.selected .option-card-check,
.option-card:hover .option-card-check {
  border-color: rgba(10,104,168,.38);
}
.option-card.selected .option-card-check::after { transform: scale(1); }
.option-badge {
  display:inline-flex;
  align-items:center;
  width:max-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-style: normal;
  font-weight: 900;
  font-size: 11px;
  color: var(--blue);
  background: rgba(10,104,168,.08);
}
.option-card.style-card strong { font-size: 18px; }
.segmented-card { display:grid; gap: 12px; }
.segmented-options {
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-top: 6px;
}
.segment-option {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  cursor: pointer;
  display:grid;
  gap: 5px;
  transition: all .2s ease;
}
.segment-option input {
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.segment-option span {
  color: var(--navy);
  font-weight: 900;
  font-size: 16px;
}
.segment-option small { color: var(--muted); line-height: 1.6; }
.segment-option:hover,
.segment-option.selected {
  border-color: rgba(18,183,196,.45);
  background: linear-gradient(135deg, rgba(10,104,168,.06), rgba(18,183,196,.09));
  box-shadow: 0 12px 24px rgba(6,55,102,.06);
}
.modern-toggle-row {
  justify-content: space-between;
  padding: 18px;
  min-height: auto;
  border-radius: 22px;
  box-shadow: 0 12px 26px rgba(6,55,102,.045);
}
.toggle-copy { display:grid; gap: 4px; }
.toggle-copy strong { color: var(--navy); font-size: 16px; }
.toggle-switch {
  position: relative;
  flex: 0 0 auto;
  width: 62px;
  height: 36px;
}
.toggle-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #e6eef5;
  transition: background .2s ease;
  box-shadow: inset 0 0 0 1px rgba(10,104,168,.08);
}
.switch-slider::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(6,55,102,.15);
  transition: transform .22s ease;
}
.toggle-switch input:checked + .switch-slider {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}
.toggle-switch input:checked + .switch-slider::after {
  transform: translateX(-26px);
}
.customize-actions {
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.preview-panel {
  border: 1px solid rgba(220,231,242,.95);
  box-shadow: 0 18px 34px rgba(6,55,102,.06);
}
@media (max-width: 1100px) {
  .display-controls { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .page-title-split,
  .customize-actions { flex-direction: column; align-items: stretch; }
  .segmented-options,
  .compact-grid { grid-template-columns: 1fr; }
  .modern-toggle-row { gap: 14px; align-items: flex-start; }
}
@media (max-width: 560px) {
  .customize-form { padding: 18px; }
  .option-card.style-card { min-height: unset; }
  .modern-color-row { grid-template-columns: 66px minmax(0,1fr); }
  .toggle-switch { width: 58px; height: 34px; }
  .switch-slider::after { width: 26px; height: 26px; }
  .toggle-switch input:checked + .switch-slider::after { transform: translateX(-24px); }
}


/* Color presets */
.preset-card-wrap {
  margin-top: 2px;
}
.preset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 14px;
}
.preset-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbfdff);
  border-radius: 18px;
  padding: 14px;
  text-align: right;
  display: grid;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s ease;
  box-shadow: 0 10px 22px rgba(6,55,102,.04);
}
.preset-card:hover,
.preset-card.selected {
  transform: translateY(-2px);
  border-color: rgba(18,183,196,.35);
  box-shadow: 0 16px 30px rgba(6,55,102,.08);
  background: linear-gradient(135deg, rgba(10,104,168,.05), rgba(18,183,196,.08));
}
.preset-card strong {
  color: var(--navy);
  font-size: 15px;
  line-height: 1.4;
}
.preset-card small {
  color: var(--muted);
  line-height: 1.6;
  display: block;
}
.preset-swatches {
  display: flex;
  gap: 8px;
}
.preset-swatches i {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-block;
  background: var(--swatch);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.7), 0 2px 8px rgba(6,55,102,.12);
}
@media (max-width: 980px) {
  .preset-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 560px) {
  .preset-grid {
    grid-template-columns: 1fr;
  }
}

/* Premium color preset thumbnails */
.premium-preset-grid {
  grid-template-columns: repeat(2, minmax(0,1fr));
}
.preset-card.premium-preset {
  display: grid;
  grid-template-columns: 82px minmax(0,1fr);
  align-items: stretch;
  gap: 12px;
  min-height: 126px;
  padding: 12px;
  border-radius: 22px;
  text-align: right;
  position: relative;
  overflow: hidden;
}
.preset-card.premium-preset::after {
  content: '';
  position: absolute;
  inset: auto 16px 0 16px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity .2s ease;
}
.preset-card.premium-preset:hover::after,
.preset-card.premium-preset.selected::after {
  opacity: .85;
}
.preset-thumb {
  display: block;
  min-height: 100%;
  border-radius: 18px;
  background:
    radial-gradient(circle at 72% 24%, rgba(255,255,255,.38), transparent 18%),
    linear-gradient(135deg, var(--p), var(--a));
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.26);
}
.preset-thumb::before {
  content: '';
  position: absolute;
  inset: 12px 12px auto auto;
  width: 38px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
}
.preset-thumb::after {
  content: '';
  position: absolute;
  inset: auto 10px 12px 10px;
  height: 34px;
  border-radius: 14px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 -18px 0 -10px rgba(255,255,255,.42);
}
.preset-thumb i {
  position: absolute;
  left: 12px;
  bottom: 18px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--a);
  border: 3px solid rgba(255,255,255,.78);
  z-index: 2;
}
.preset-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}
.preset-meta em {
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  font-style: normal;
  font-weight: 900;
  font-size: 11px;
  line-height: 1;
  color: var(--blue);
  background: rgba(10,104,168,.08);
}
.premium-preset.recommended .preset-meta em {
  color: #087443;
  background: #ecfdf3;
}
.preset-meta strong {
  color: var(--navy);
  font-size: 17px;
  letter-spacing: -.2px;
}
.preset-meta small {
  color: var(--muted);
  line-height: 1.55;
  font-size: 12px;
}
.preset-card.premium-preset.selected {
  border-color: rgba(18,183,196,.55);
  background: linear-gradient(135deg, rgba(10,104,168,.06), rgba(18,183,196,.10));
}
.preset-card.premium-preset.selected .preset-thumb {
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.42), 0 12px 24px rgba(6,55,102,.12);
}
@media (max-width: 1180px) {
  .premium-preset-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .preset-card.premium-preset {
    grid-template-columns: 76px minmax(0,1fr);
    min-height: 112px;
  }
  .preset-thumb::before {
    width: 32px;
  }
  .preset-meta strong {
    font-size: 16px;
  }
}

/* Logo shape and product image style customization */
.logo-shape-rounded .restaurant-logo {
  border-radius: 28px;
}
.logo-shape-circle .restaurant-logo {
  border-radius: 999px;
}
.logo-shape-square .restaurant-logo {
  border-radius: 12px;
}
.product-image-style-rounded .product-image {
  border-radius: 22px;
}
.product-image-style-square .product-image {
  border-radius: 12px;
}
.product-image-style-hidden .product-image {
  display: none;
}
.product-image-style-hidden .product-card {
  grid-template-columns: 1fr;
}
.product-image-style-hidden .product-card h3 {
  padding-inline-end: 0;
}

/* Customization page visual option controls */
.visual-controls {
  grid-template-columns: 1fr 1fr;
}
.visual-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.visual-option {
  min-height: 116px;
  padding-top: 48px;
  overflow: hidden;
}
.visual-option::before {
  content: '';
  position: absolute;
  top: 14px;
  right: 16px;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.55);
}
.logo-preview-rounded::before,
.image-preview-rounded::before {
  border-radius: 10px;
}
.logo-preview-circle::before {
  border-radius: 999px;
}
.logo-preview-square::before,
.image-preview-square::before {
  border-radius: 4px;
}
.image-preview-hidden::before {
  border-radius: 8px;
  background: linear-gradient(135deg, #d7e3ee, #eef4f8);
}
.image-preview-hidden::after {
  content: '';
  position: absolute;
  top: 25px;
  right: 13px;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: #b42318;
  transform: rotate(-35deg);
}

/* Mini preview support */
.mini-menu-preview.logo-shape-rounded .mini-restaurant span {
  border-radius: 16px;
}
.mini-menu-preview.logo-shape-circle .mini-restaurant span {
  border-radius: 999px;
}
.mini-menu-preview.logo-shape-square .mini-restaurant span {
  border-radius: 6px;
}
.mini-menu-preview.product-image-style-square .mini-product::before {
  border-radius: 6px;
}
.mini-menu-preview.product-image-style-rounded .mini-product::before {
  border-radius: 10px;
}
.mini-menu-preview.product-image-style-hidden .mini-product::before {
  display: none;
}
.mini-menu-preview.product-image-style-hidden .mini-product {
  padding-right: 14px;
}

@media (max-width: 1100px) {
  .visual-controls {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .visual-options {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .logo-shape-square .restaurant-logo {
    border-radius: 10px;
  }
  .product-image-style-square .product-image {
    border-radius: 10px;
  }
}
/* Action button icons */
.menu-actions a,
.menu-actions .action-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.action-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  line-height: 0;
}
.action-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}
.action-chip {
  position: relative;
}
.action-chip span:last-child {
  line-height: 1;
}
/* Billing system */
.billing-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr);
  gap: 18px;
  margin-bottom: 18px;
}
.billing-status-panel h2 {
  margin: 14px 0 8px;
  color: var(--navy);
  font-size: 28px;
}
.billing-status-panel p {
  color: var(--muted);
  line-height: 1.8;
}
.billing-price {
  margin-top: 18px;
  display: flex;
  align-items: end;
  gap: 8px;
}
.billing-price strong {
  font-size: 34px;
  color: var(--blue);
}
.billing-price span,
.billing-muted {
  color: var(--muted);
  font-weight: 800;
}
.billing-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
.billing-trial { background: #eff8ff; color: #175cd3; }
.billing-active { background: #ecfdf3; color: #087443; }
.billing-overdue { background: #fff6e6; color: #b54708; }
.billing-expired,
.billing-suspended,
.billing-cancelled { background: #fff1f0; color: #b42318; }
.billing-detail-list {
  display: grid;
  gap: 12px;
}
.billing-detail-list h2 {
  margin: 0 0 6px;
  color: var(--navy);
}
.billing-detail-list > div:not(.panel-heading) {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.billing-detail-list span,
.billing-limit-grid span {
  color: var(--muted);
  font-weight: 800;
}
.billing-detail-list strong,
.billing-limit-grid strong {
  color: var(--navy);
}
.billing-message {
  border-radius: 18px;
  padding: 16px;
  font-weight: 800;
  line-height: 1.8;
}
.billing-message.info { background: #eff8ff; color: #175cd3; }
.billing-message.success { background: #ecfdf3; color: #087443; }
.billing-message.warning { background: #fff6e6; color: #b54708; }
.billing-message.danger { background: #fff1f0; color: #b42318; }
.billing-limit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.billing-limit-grid > div {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
  background: #fbfdff;
}
.quick-billing-form {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.inline-form {
  display: flex;
  gap: 8px;
}
.inline-form input {
  max-width: 130px;
}
@media (max-width: 980px) {
  .billing-overview-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .billing-detail-list > div:not(.panel-heading) {
    flex-direction: column;
  }
  .billing-limit-grid {
    grid-template-columns: 1fr;
  }
  .inline-form {
    flex-direction: column;
  }
  .inline-form input {
    max-width: none;
  }
}
/* Billing area fix */
.billing-card-grid,
.billing-admin-grid {
  display: grid;
  gap: 18px;
}
.billing-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.billing-admin-grid {
  grid-template-columns: 1fr;
}
.billing-account-card,
.admin-billing-card {
  display: grid;
  gap: 16px;
}
.billing-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.billing-card-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
}
.billing-card-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  direction: ltr;
  text-align: right;
}
.billing-plan-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: linear-gradient(135deg, rgba(10,104,168,.06), rgba(18,183,196,.08));
  border: 1px solid rgba(18,183,196,.14);
  border-radius: 18px;
  padding: 14px;
}
.billing-plan-line strong {
  color: var(--navy);
  font-size: 18px;
}
.billing-plan-line span {
  color: var(--blue);
  font-weight: 900;
}
.billing-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.billing-trial { background: #eff8ff; color: #175cd3; }
.billing-active { background: #ecfdf3; color: #087443; }
.billing-overdue { background: #fff6e6; color: #b54708; }
.billing-expired,
.billing-suspended,
.billing-cancelled { background: #fff1f0; color: #b42318; }
.billing-detail-list {
  display: grid;
  gap: 8px;
}
.billing-detail-list.compact > div,
.billing-detail-list > div:not(.panel-heading) {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.billing-detail-list span {
  color: var(--muted);
  font-weight: 800;
}
.billing-detail-list strong {
  color: var(--navy);
}
.billing-message {
  border-radius: 18px;
  padding: 14px;
  font-weight: 800;
  line-height: 1.8;
}
.billing-message.info { background: #eff8ff; color: #175cd3; }
.billing-message.success { background: #ecfdf3; color: #087443; }
.billing-message.warning { background: #fff6e6; color: #b54708; }
.billing-message.danger { background: #fff1f0; color: #b42318; }
.quick-billing-actions {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 10px;
  align-items: end;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.inline-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: end;
}
.inline-form input {
  max-width: 140px;
}
@media (max-width: 1100px) {
  .billing-card-grid {
    grid-template-columns: 1fr;
  }
  .quick-billing-actions {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .billing-card-head,
  .billing-plan-line,
  .billing-detail-list.compact > div {
    flex-direction: column;
  }
  .inline-form input {
    max-width: none;
    width: 100%;
  }
}
/* Sidebar grouped admin links */
.sidebar-section-title {
  margin: 14px 12px 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .2px;
}
/* Billing reminders and status indicators */
.billing-alert-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.billing-alert-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 12px 26px rgba(6,55,102,.05);
  display: grid;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.billing-alert-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--blue);
}
.billing-alert-card span {
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
}
.billing-alert-card strong {
  color: var(--navy);
  font-size: 32px;
  line-height: 1;
}
.billing-alert-card small {
  color: var(--muted);
  font-weight: 800;
}
.billing-alert-card.info::before { background: #175cd3; }
.billing-alert-card.warning::before { background: #f79009; }
.billing-alert-card.danger::before { background: #d92d20; }
.billing-alert-card.muted::before { background: #667085; }
.billing-alert-card.success::before { background: #12b76a; }

.billing-card-reminders {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: -4px;
}
.billing-reminder-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}
.billing-reminder-pill.warning {
  color: #b54708;
  background: #fff6e6;
  border: 1px solid rgba(181,71,8,.12);
}
.billing-reminder-pill.danger {
  color: #b42318;
  background: #fff1f0;
  border: 1px solid rgba(180,35,24,.12);
}
.billing-reminder-pill.muted {
  color: #475467;
  background: #f2f4f7;
  border: 1px solid rgba(71,84,103,.12);
}

@media (max-width: 1200px) {
  .billing-alert-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .billing-alert-summary {
    grid-template-columns: 1fr;
  }
}
/* Better product editor */
.product-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}
.product-editor-main {
  display: grid;
  gap: 16px;
}
.product-editor-preview {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 14px;
}
.preview-phone-card {
  background:
    radial-gradient(circle at top right, rgba(18,183,196,.13), transparent 32%),
    linear-gradient(180deg, #fff, #f8fbfd);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 14px 30px rgba(6,55,102,.07);
}
.preview-label {
  display: inline-flex;
  background: rgba(10,104,168,.08);
  color: var(--blue);
  border-radius: 999px;
  padding: 6px 11px;
  font-weight: 900;
  font-size: 12px;
  margin-bottom: 12px;
}
.preview-phone-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  background: #eef5f8;
  border: 1px solid rgba(220,231,242,.9);
}
.preview-phone-card h3 {
  margin: 14px 0 6px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.35;
}
.preview-phone-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}
.preview-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.preview-price-row strong {
  color: var(--blue);
  background: rgba(10,104,168,.08);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 17px;
}
.preview-old-price,
.add-preview-old-price {
  color: #98a6b5;
  text-decoration: line-through;
  font-weight: 800;
  font-size: 13px;
}
.editor-checks {
  align-items: end;
}
.modern-check {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  color: var(--navy);
}
.modern-check input {
  width: auto;
  accent-color: var(--blue);
}
.product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}
.product-toolbar h2 {
  margin: 0;
  color: var(--navy);
}
.product-toolbar p {
  margin: 4px 0 0;
  color: var(--muted);
}
.product-toolbar-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px;
  gap: 10px;
  min-width: min(100%, 440px);
}
.product-table-wrap table small {
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 1050px) {
  .product-editor-layout {
    grid-template-columns: 1fr;
  }
  .product-editor-preview {
    position: static;
  }
}
@media (max-width: 720px) {
  .product-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .product-toolbar-actions {
    grid-template-columns: 1fr;
    min-width: 0;
  }
}
/* Product edit preview fix */
.product-editor-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}
.product-editor-main {
  display: grid;
  gap: 16px;
}
.product-edit-preview,
.product-editor-preview {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 14px;
}
.preview-phone-card {
  background:
    radial-gradient(circle at top right, rgba(18,183,196,.13), transparent 32%),
    linear-gradient(180deg, #fff, #f8fbfd);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 14px 30px rgba(6,55,102,.07);
}
.preview-label {
  display: inline-flex;
  background: rgba(10,104,168,.08);
  color: var(--blue);
  border-radius: 999px;
  padding: 6px 11px;
  font-weight: 900;
  font-size: 12px;
  margin-bottom: 12px;
}
.preview-phone-card img,
.edit-product-preview-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  background: #eef5f8;
  border: 1px solid rgba(220,231,242,.9);
}
.preview-phone-card h3 {
  margin: 14px 0 6px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.35;
}
.preview-phone-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}
.preview-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.preview-price-row strong {
  color: var(--blue);
  background: rgba(10,104,168,.08);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 17px;
}
.edit-preview-old-price,
.preview-old-price {
  color: #98a6b5;
  text-decoration: line-through;
  font-weight: 800;
  font-size: 13px;
}
.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 1050px) {
  .product-editor-layout {
    grid-template-columns: 1fr !important;
  }
  .product-edit-preview,
  .product-editor-preview {
    position: static;
  }
}
/* Forced product edit preview */
.product-editor-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}
.product-editor-main {
  display: grid;
  gap: 16px;
}
.product-edit-preview,
.product-editor-preview {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 14px;
}
.preview-phone-card {
  background:
    radial-gradient(circle at top right, rgba(18,183,196,.13), transparent 32%),
    linear-gradient(180deg, #fff, #f8fbfd);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 14px 30px rgba(6,55,102,.07);
}
.preview-label {
  display: inline-flex;
  background: rgba(10,104,168,.08);
  color: var(--blue);
  border-radius: 999px;
  padding: 6px 11px;
  font-weight: 900;
  font-size: 12px;
  margin-bottom: 12px;
}
.preview-phone-card img,
.edit-product-preview-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  background: #eef5f8;
  border: 1px solid rgba(220,231,242,.9);
}
.preview-phone-card h3 {
  margin: 14px 0 6px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.35;
}
.preview-phone-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}
.preview-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.preview-price-row strong {
  color: var(--blue);
  background: rgba(10,104,168,.08);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 17px;
}
.edit-preview-old-price,
.preview-old-price {
  color: #98a6b5;
  text-decoration: line-through;
  font-weight: 800;
  font-size: 13px;
}
.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.styled-file-input {
  background: #fff;
}
.force-preview-note {
  display: none;
}
@media (max-width: 1050px) {
  .product-editor-layout {
    grid-template-columns: 1fr !important;
  }
  .product-edit-preview,
  .product-editor-preview {
    position: static;
  }
}
/* Public menu language switch refined */
.menu-page .restaurant-hero,
.menu-page .hero-section,
.menu-page .menu-hero,
.menu-page .restaurant-cover,
.menu-page .restaurant-header,
.menu-page .menu-header,
.menu-page .restaurant-banner,
.menu-page .cover-section,
.menu-page section:first-of-type {
  position: relative;
}
.menu-language-switch {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 20;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  width: auto;
  max-width: none;
}
.menu-language-switch .single-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--navy);
  border: 1px solid rgba(220,231,242,.98);
  box-shadow: 0 10px 20px rgba(6,55,102,.09);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  transition: all .2s ease;
}
.menu-language-switch .single-switch:hover {
  background: linear-gradient(135deg, var(--customer-primary, var(--blue)), var(--customer-accent, var(--cyan)));
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
}
.menu-page.menu-lang-en .menu-language-switch {
  inset-inline-start: auto;
  inset-inline-end: 14px;
}
@media (max-width: 560px) {
  .menu-language-switch {
    top: 10px;
    inset-inline-start: 10px;
  }
  .menu-page.menu-lang-en .menu-language-switch {
    inset-inline-start: auto;
    inset-inline-end: 10px;
  }
  .menu-language-switch .single-switch {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }
}
  .menu-cover { height: 200px; }
  .menu-cover::after { top: 12px; left: 12px; font-size: 11px; padding: 7px 11px; }
  .menu-container {
    width: min(100% - 20px, 560px);
    margin-top: -82px;
  }
  .restaurant-card {
    grid-template-columns: 76px minmax(0,1fr);
    border-radius: 28px;
    padding: 16px;
    gap: 13px;
  }
  .restaurant-logo {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    border-width: 3px;
  }
  .restaurant-info h1 { font-size: 23px; }
  .restaurant-info p { font-size: 13px; line-height: 1.65; }
  .menu-actions { gap: 7px; margin-top: 12px; }
  .menu-actions a { padding: 8px 11px; font-size: 12px; }
  .menu-search {
    top: 8px;
    border-radius: 20px;
    padding: 8px;
  }
  .menu-search input {
    border-radius: 15px;
    padding: 13px 14px;
    font-size: 14px;
  }
  .category-title { font-size: 21px; }
  .product-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    border-radius: 22px;
    padding: 10px;
  }
  .product-image {
    width: 96px;
    height: 96px;
    border-radius: 18px;
  }
  .product-card h3 { font-size: 16px; }
  .product-card p {
    font-size: 12px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .price { font-size: 16px; }
  .auth-card { padding: 24px; }
}

@media (max-width: 380px) {
  .restaurant-card { grid-template-columns: 1fr; text-align: center; }
  .restaurant-logo { margin: 0 auto; }
  .menu-actions { justify-content: center; }
  .product-card { grid-template-columns: 84px minmax(0,1fr); }
  .product-image { width: 84px; height: 84px; }
}


/* Premium dashboard home update */
.dashboard-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 20px;
  padding: 26px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,.22), transparent 24%),
    radial-gradient(circle at 86% 12%, rgba(18,183,196,.32), transparent 28%),
    linear-gradient(135deg, var(--navy), var(--blue) 58%, var(--cyan));
  box-shadow: 0 24px 60px rgba(6, 55, 102, .18);
  color: #fff;
}
.dashboard-hero::after {
  content: '';
  position: absolute;
  inset: auto -80px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.dashboard-hero-content,
.dashboard-hero-card { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 14px;
}
.dashboard-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: -.8px;
}
.dashboard-hero p {
  margin: 12px 0 0;
  color: rgba(255,255,255,.86);
  line-height: 1.9;
  max-width: 680px;
  font-weight: 650;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.dashboard-hero .btn {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.dashboard-hero .btn.secondary {
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: none;
}
.dashboard-hero-card {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 24px;
  padding: 18px;
  backdrop-filter: blur(14px);
  display: grid;
  gap: 12px;
  align-content: center;
}
.dashboard-hero-card span {
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 800;
}
.dashboard-hero-card strong {
  display: block;
  background: rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 12px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.dashboard-hero-card small {
  display: none;
  color: #d7fff9;
  font-weight: 900;
}
.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.premium-metric {
  position: relative;
  overflow: hidden;
  padding: 20px;
}
.premium-metric::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}
.premium-metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.premium-metric strong {
  margin: 6px 0 2px;
  font-size: 34px;
}
.premium-metric small {
  color: #7a8ba0;
  font-weight: 700;
}
.dashboard-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .75fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}
.dashboard-home-grid.lower { grid-template-columns: minmax(0, 1fr) 360px; }
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.panel-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 21px;
}
.panel-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 650;
}
.panel-heading > strong {
  color: var(--blue);
  font-size: 30px;
}
.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.quick-action-grid a {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 5px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(10,104,168,.07), rgba(18,183,196,.10));
  border: 1px solid rgba(18,183,196,.16);
  transition: transform .2s ease, box-shadow .2s ease;
}
.quick-action-grid a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(6,55,102,.10);
}
.quick-action-grid a::after {
  content: '←';
  position: absolute;
  left: 16px;
  top: 16px;
  color: var(--cyan);
  font-weight: 950;
}
.quick-action-grid strong {
  color: var(--navy);
  font-size: 16px;
}
.quick-action-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  padding-left: 24px;
}
.progress-track {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #edf4f8;
  margin-bottom: 16px;
}
.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5f7288;
  font-weight: 800;
}
.checklist li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd8e4;
  flex: 0 0 auto;
}
.checklist li.done { color: var(--success); }
.checklist li.done::before {
  content: '✓';
  display: grid;
  place-items: center;
  background: #e9fbf6;
  border-color: rgba(8,116,67,.24);
  color: var(--success);
  font-size: 12px;
  font-weight: 950;
}
.recent-products-list {
  display: grid;
  gap: 10px;
}
.recent-product-item {
  display: grid;
  grid-template-columns: 58px minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdff;
}
.recent-product-item img {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  object-fit: cover;
  background: #edf3f8;
}
.recent-product-item strong {
  display: block;
  color: #20364c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-product-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.recent-product-item b {
  color: var(--blue);
  font-size: 14px;
  white-space: nowrap;
}
.empty-mini {
  border: 1px dashed #cbd8e4;
  border-radius: 20px;
  background: #f8fbfd;
  color: var(--muted);
  text-align: center;
  padding: 24px;
  font-weight: 800;
}
.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 850;
}
.status-line span { color: var(--muted); }
.status-line a { color: var(--blue); }
.status-active {
  color: var(--success);
  background: #ecfdf3;
  padding: 5px 10px;
  border-radius: 999px;
}
.status-inactive {
  color: var(--danger);
  background: #fff1f0;
  padding: 5px 10px;
  border-radius: 999px;
}
.dashboard-note {
  margin-top: 16px;
  border-radius: 18px;
  padding: 14px;
  background: rgba(18,183,196,.10);
  color: var(--navy);
  font-weight: 800;
  line-height: 1.7;
}
@media (max-width: 1100px) {
  .dashboard-hero,
  .dashboard-home-grid,
  .dashboard-home-grid.lower { grid-template-columns: 1fr; }
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .dashboard-hero { padding: 18px; border-radius: 24px; }
  .hero-actions { flex-direction: column; }
  .dashboard-metrics,
  .quick-action-grid { grid-template-columns: 1fr; }
  .recent-product-item { grid-template-columns: 50px minmax(0,1fr); }
  .recent-product-item b { grid-column: 2; }
}


/* Customer customization controls */
.customize-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}
.color-input-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.color-input-row input[type="color"] {
  height: 52px;
  padding: 4px;
  cursor: pointer;
}
.color-input-row input[disabled] {
  color: var(--muted);
  background: #f8fbfd;
  direction: ltr;
  text-align: left;
  font-weight: 800;
}
.option-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.option-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  cursor: pointer;
  background: #fff;
  transition: all .2s ease;
}
.option-card input { width: auto; margin: 0; }
.option-card strong { color: var(--navy); font-size: 17px; }
.option-card span { color: var(--muted); line-height: 1.6; font-size: 13px; }
.option-card:hover,
.option-card.selected {
  border-color: rgba(18,183,196,.45);
  box-shadow: 0 14px 30px rgba(6,55,102,.08);
  transform: translateY(-2px);
}
.toggle-row {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  background: #fff;
}
.toggle-row input { width: auto; }
.preview-panel { position: sticky; top: 22px; }
.mini-menu-preview {
  --customer-primary: var(--blue);
  --customer-accent: var(--cyan);
  border-radius: 28px;
  overflow: hidden;
  background: #f6fbfd;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65);
}
.mini-cover {
  height: 86px;
  background: linear-gradient(135deg, var(--customer-primary), var(--customer-accent));
}
.mini-restaurant {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: rgba(255,255,255,.92);
}
.mini-restaurant > span {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--customer-primary), var(--customer-accent));
  border: 3px solid #fff;
  box-shadow: 0 10px 20px rgba(6,55,102,.12);
}
.mini-restaurant strong { display: block; color: var(--navy); }
.mini-restaurant small { color: var(--muted); font-weight: 700; }
.mini-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 14px 4px;
  overflow: hidden;
}
.mini-tabs span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--customer-primary), var(--customer-accent));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.mini-product {
  margin: 10px 14px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  gap: 5px;
}
.mini-product b { color: #132b43; }
.mini-product small { color: var(--muted); }
.mini-product strong { color: var(--customer-primary); }
.mini-menu-preview.menu-style-dark {
  background: #0d1b2a;
  border-color: rgba(255,255,255,.12);
}
.mini-menu-preview.menu-style-dark .mini-restaurant,
.mini-menu-preview.menu-style-dark .mini-product {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
}
.mini-menu-preview.menu-style-dark .mini-restaurant strong,
.mini-menu-preview.menu-style-dark .mini-product b { color: #fff; }
.mini-menu-preview.menu-style-dark .mini-restaurant small,
.mini-menu-preview.menu-style-dark .mini-product small { color: rgba(255,255,255,.68); }
.mini-menu-preview.menu-style-classic,
.menu-page.menu-style-classic .mini-menu-preview {
  border-radius: 18px;
  background: #fffaf3;
}
.mini-menu-preview.card-style-compact .mini-product { padding: 9px 12px; margin: 7px 14px; }

/* Public menu customer theme variables */
.menu-theme-vars {
  --customer-primary: var(--blue);
  --customer-accent: var(--cyan);
  min-height: 100vh;
}
.menu-theme-vars .menu-cover {
  background: linear-gradient(135deg, var(--navy), var(--customer-primary) 48%, var(--customer-accent));
  background-size: cover;
  background-position: center;
}
.menu-theme-vars .menu-cover::before {
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.18), transparent 22%),
    radial-gradient(circle at 82% 10%, color-mix(in srgb, var(--customer-accent) 38%, transparent), transparent 28%),
    linear-gradient(180deg, rgba(6, 55, 102, .10), rgba(6, 55, 102, .76));
}
.menu-theme-vars .restaurant-card::before,
.menu-theme-vars .category-title::before,
.menu-theme-vars .product-card::after {
  background: linear-gradient(90deg, var(--customer-accent), var(--customer-primary));
}
.menu-theme-vars .menu-actions a:hover,
.menu-theme-vars .menu-category-pills a.active,
.menu-theme-vars .menu-category-pills a:hover,
.menu-theme-vars .btn {
  background: linear-gradient(135deg, var(--customer-primary), var(--customer-accent));
}
.menu-theme-vars .price,
.menu-theme-vars .menu-powered span,
.menu-theme-vars .restaurant-info h1 {
  color: var(--customer-primary);
}
.menu-theme-vars .price {
  background: color-mix(in srgb, var(--customer-primary) 10%, #ffffff);
}
.menu-theme-vars .badge {
  background: color-mix(in srgb, var(--customer-accent) 15%, #ffffff);
  color: var(--customer-primary);
}

.menu-page.menu-style-classic {
  background: #f8f2e8;
}
.menu-page.menu-style-classic .menu-cover {
  height: 200px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--customer-primary) 80%, #111), var(--customer-accent));
}
.menu-page.menu-style-classic .restaurant-card,
.menu-page.menu-style-classic .product-card,
.menu-page.menu-style-classic .menu-search,
.menu-page.menu-style-classic .empty-state {
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(49, 34, 14, .08);
}
.menu-page.menu-style-classic .restaurant-logo,
.menu-page.menu-style-classic .product-image { border-radius: 14px; }
.menu-page.menu-style-classic .menu-category-pills a { border-radius: 12px; }

.menu-page.menu-style-dark {
  background:
    radial-gradient(circle at 15% 0%, rgba(18,183,196,.14), transparent 34%),
    linear-gradient(180deg, #091523 0%, #0d1b2a 52%, #111827 100%);
  color: #fff;
}
.menu-page.menu-style-dark .menu-cover::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.12), transparent 24%),
    linear-gradient(180deg, rgba(5,13,25,.12), rgba(5,13,25,.88));
}
.menu-page.menu-style-dark .restaurant-card,
.menu-page.menu-style-dark .product-card,
.menu-page.menu-style-dark .menu-search,
.menu-page.menu-style-dark .empty-state,
.menu-page.menu-style-dark .menu-no-results {
  background: rgba(15, 29, 46, .88);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
}
.menu-page.menu-style-dark .restaurant-info h1,
.menu-page.menu-style-dark .category-title,
.menu-page.menu-style-dark .product-card h3,
.menu-page.menu-style-dark .empty-state h2,
.menu-page.menu-style-dark .empty-state h1 { color: #fff; }
.menu-page.menu-style-dark .restaurant-info p,
.menu-page.menu-style-dark .product-card p,
.menu-page.menu-style-dark .menu-powered,
.menu-page.menu-style-dark .empty-state p { color: rgba(255,255,255,.68); }
.menu-page.menu-style-dark .menu-search input,
.menu-page.menu-style-dark .menu-category-pills a {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.12);
}
.menu-page.menu-style-dark .product-image { background: rgba(255,255,255,.08); }

.menu-page.card-style-compact .product-grid { gap: 11px; }
.menu-page.card-style-compact .product-card {
  grid-template-columns: 82px minmax(0, 1fr);
  padding: 9px;
  border-radius: 20px;
  gap: 11px;
}
.menu-page.card-style-compact .product-image {
  width: 82px;
  height: 82px;
  border-radius: 16px;
}
.menu-page.card-style-compact .product-card h3 { font-size: 15px; margin-bottom: 3px; }
.menu-page.card-style-compact .product-card p {
  font-size: 12px;
  -webkit-line-clamp: 1;
}
.menu-page.card-style-compact .price { font-size: 14px; padding: 3px 8px; }

@media (max-width: 900px) {
  .customize-grid { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  .option-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .color-input-row { grid-template-columns: 60px minmax(0, 1fr); }
  .menu-page.card-style-compact .product-card { grid-template-columns: 76px minmax(0, 1fr); }
  .menu-page.card-style-compact .product-image { width: 76px; height: 76px; }
}


/* --- Customization UI refresh --- */
.page-title-split { align-items: center; }
.title-actions { display:flex; gap:10px; flex-wrap:wrap; }
.customize-form {
  gap: 18px;
  padding: 24px;
}
.customize-intro {
  border: 1px solid rgba(18,183,196,.14);
  background: linear-gradient(135deg, rgba(10,104,168,.05), rgba(18,183,196,.08));
  border-radius: 20px;
  padding: 16px 18px;
}
.customize-intro strong {
  display:block;
  color: var(--navy);
  font-size: 18px;
  margin-bottom: 4px;
}
.customize-intro span {
  color: var(--muted);
  line-height: 1.8;
  display:block;
}
.control-section {
  display: grid;
  gap: 14px;
}
.modern-heading {
  margin: 0;
  padding-bottom: 0;
}
.compact-grid,
.display-controls {
  display:grid;
  gap:14px;
}
.display-controls {
  grid-template-columns: 1.1fr .9fr;
}
.control-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbfdff);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 12px 26px rgba(6,55,102,.045);
}
.control-card label {
  display:block;
  color: var(--navy);
  font-size: 15px;
  margin-bottom: 6px;
}
.control-card > small,
.toggle-copy small {
  display:block;
  color: var(--muted);
  line-height: 1.7;
}
.color-card .color-input-row { margin-top: 14px; }
.modern-color-row {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
}
.color-swatch-wrap {
  border: 1px solid rgba(10,104,168,.12);
  border-radius: 18px;
  background: #f9fcff;
  padding: 5px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}
.modern-color-row input[type="color"] {
  border: 0;
  width: 100%;
  height: 50px;
  border-radius: 14px;
  background: transparent;
}
.modern-color-row input[disabled] {
  background: #f8fbfd;
  color: #5f7084;
  font-size: 15px;
}
.option-cards-modern { gap: 14px; }
.option-card.style-card {
  position: relative;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  min-height: 160px;
  box-shadow: 0 10px 24px rgba(6,55,102,.04);
}
.option-card.style-card input {
  position: absolute;
  opacity: 0;
  inset: 0;
  pointer-events: none;
}
.option-card-check {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid #c8d8e7;
  background: #fff;
  display: inline-block;
  position: relative;
}
.option-card-check::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  transform: scale(0);
  transition: transform .18s ease;
}
.option-card.selected .option-card-check,
.option-card:hover .option-card-check {
  border-color: rgba(10,104,168,.38);
}
.option-card.selected .option-card-check::after { transform: scale(1); }
.option-badge {
  display:inline-flex;
  align-items:center;
  width:max-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-style: normal;
  font-weight: 900;
  font-size: 11px;
  color: var(--blue);
  background: rgba(10,104,168,.08);
}
.option-card.style-card strong { font-size: 18px; }
.segmented-card { display:grid; gap: 12px; }
.segmented-options {
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-top: 6px;
}
.segment-option {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  cursor: pointer;
  display:grid;
  gap: 5px;
  transition: all .2s ease;
}
.segment-option input {
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.segment-option span {
  color: var(--navy);
  font-weight: 900;
  font-size: 16px;
}
.segment-option small { color: var(--muted); line-height: 1.6; }
.segment-option:hover,
.segment-option.selected {
  border-color: rgba(18,183,196,.45);
  background: linear-gradient(135deg, rgba(10,104,168,.06), rgba(18,183,196,.09));
  box-shadow: 0 12px 24px rgba(6,55,102,.06);
}
.modern-toggle-row {
  justify-content: space-between;
  padding: 18px;
  min-height: auto;
  border-radius: 22px;
  box-shadow: 0 12px 26px rgba(6,55,102,.045);
}
.toggle-copy { display:grid; gap: 4px; }
.toggle-copy strong { color: var(--navy); font-size: 16px; }
.toggle-switch {
  position: relative;
  flex: 0 0 auto;
  width: 62px;
  height: 36px;
}
.toggle-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #e6eef5;
  transition: background .2s ease;
  box-shadow: inset 0 0 0 1px rgba(10,104,168,.08);
}
.switch-slider::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(6,55,102,.15);
  transition: transform .22s ease;
}
.toggle-switch input:checked + .switch-slider {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}
.toggle-switch input:checked + .switch-slider::after {
  transform: translateX(-26px);
}
.customize-actions {
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.preview-panel {
  border: 1px solid rgba(220,231,242,.95);
  box-shadow: 0 18px 34px rgba(6,55,102,.06);
}
@media (max-width: 1100px) {
  .display-controls { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .page-title-split,
  .customize-actions { flex-direction: column; align-items: stretch; }
  .segmented-options,
  .compact-grid { grid-template-columns: 1fr; }
  .modern-toggle-row { gap: 14px; align-items: flex-start; }
}
@media (max-width: 560px) {
  .customize-form { padding: 18px; }
  .option-card.style-card { min-height: unset; }
  .modern-color-row { grid-template-columns: 66px minmax(0,1fr); }
  .toggle-switch { width: 58px; height: 34px; }
  .switch-slider::after { width: 26px; height: 26px; }
  .toggle-switch input:checked + .switch-slider::after { transform: translateX(-24px); }
}


/* Color presets */
.preset-card-wrap {
  margin-top: 2px;
}
.preset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 14px;
}
.preset-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbfdff);
  border-radius: 18px;
  padding: 14px;
  text-align: right;
  display: grid;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s ease;
  box-shadow: 0 10px 22px rgba(6,55,102,.04);
}
.preset-card:hover,
.preset-card.selected {
  transform: translateY(-2px);
  border-color: rgba(18,183,196,.35);
  box-shadow: 0 16px 30px rgba(6,55,102,.08);
  background: linear-gradient(135deg, rgba(10,104,168,.05), rgba(18,183,196,.08));
}
.preset-card strong {
  color: var(--navy);
  font-size: 15px;
  line-height: 1.4;
}
.preset-card small {
  color: var(--muted);
  line-height: 1.6;
  display: block;
}
.preset-swatches {
  display: flex;
  gap: 8px;
}
.preset-swatches i {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-block;
  background: var(--swatch);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.7), 0 2px 8px rgba(6,55,102,.12);
}
@media (max-width: 980px) {
  .preset-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 560px) {
  .preset-grid {
    grid-template-columns: 1fr;
  }
}

/* Premium color preset thumbnails */
.premium-preset-grid {
  grid-template-columns: repeat(2, minmax(0,1fr));
}
.preset-card.premium-preset {
  display: grid;
  grid-template-columns: 82px minmax(0,1fr);
  align-items: stretch;
  gap: 12px;
  min-height: 126px;
  padding: 12px;
  border-radius: 22px;
  text-align: right;
  position: relative;
  overflow: hidden;
}
.preset-card.premium-preset::after {
  content: '';
  position: absolute;
  inset: auto 16px 0 16px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity .2s ease;
}
.preset-card.premium-preset:hover::after,
.preset-card.premium-preset.selected::after {
  opacity: .85;
}
.preset-thumb {
  display: block;
  min-height: 100%;
  border-radius: 18px;
  background:
    radial-gradient(circle at 72% 24%, rgba(255,255,255,.38), transparent 18%),
    linear-gradient(135deg, var(--p), var(--a));
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.26);
}
.preset-thumb::before {
  content: '';
  position: absolute;
  inset: 12px 12px auto auto;
  width: 38px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
}
.preset-thumb::after {
  content: '';
  position: absolute;
  inset: auto 10px 12px 10px;
  height: 34px;
  border-radius: 14px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 -18px 0 -10px rgba(255,255,255,.42);
}
.preset-thumb i {
  position: absolute;
  left: 12px;
  bottom: 18px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--a);
  border: 3px solid rgba(255,255,255,.78);
  z-index: 2;
}
.preset-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}
.preset-meta em {
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  font-style: normal;
  font-weight: 900;
  font-size: 11px;
  line-height: 1;
  color: var(--blue);
  background: rgba(10,104,168,.08);
}
.premium-preset.recommended .preset-meta em {
  color: #087443;
  background: #ecfdf3;
}
.preset-meta strong {
  color: var(--navy);
  font-size: 17px;
  letter-spacing: -.2px;
}
.preset-meta small {
  color: var(--muted);
  line-height: 1.55;
  font-size: 12px;
}
.preset-card.premium-preset.selected {
  border-color: rgba(18,183,196,.55);
  background: linear-gradient(135deg, rgba(10,104,168,.06), rgba(18,183,196,.10));
}
.preset-card.premium-preset.selected .preset-thumb {
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.42), 0 12px 24px rgba(6,55,102,.12);
}
@media (max-width: 1180px) {
  .premium-preset-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .preset-card.premium-preset {
    grid-template-columns: 76px minmax(0,1fr);
    min-height: 112px;
  }
  .preset-thumb::before {
    width: 32px;
  }
  .preset-meta strong {
    font-size: 16px;
  }
}

/* Logo shape and product image style customization */
.logo-shape-rounded .restaurant-logo {
  border-radius: 28px;
}
.logo-shape-circle .restaurant-logo {
  border-radius: 999px;
}
.logo-shape-square .restaurant-logo {
  border-radius: 12px;
}
.product-image-style-rounded .product-image {
  border-radius: 22px;
}
.product-image-style-square .product-image {
  border-radius: 12px;
}
.product-image-style-hidden .product-image {
  display: none;
}
.product-image-style-hidden .product-card {
  grid-template-columns: 1fr;
}
.product-image-style-hidden .product-card h3 {
  padding-inline-end: 0;
}

/* Customization page visual option controls */
.visual-controls {
  grid-template-columns: 1fr 1fr;
}
.visual-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.visual-option {
  min-height: 116px;
  padding-top: 48px;
  overflow: hidden;
}
.visual-option::before {
  content: '';
  position: absolute;
  top: 14px;
  right: 16px;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.55);
}
.logo-preview-rounded::before,
.image-preview-rounded::before {
  border-radius: 10px;
}
.logo-preview-circle::before {
  border-radius: 999px;
}
.logo-preview-square::before,
.image-preview-square::before {
  border-radius: 4px;
}
.image-preview-hidden::before {
  border-radius: 8px;
  background: linear-gradient(135deg, #d7e3ee, #eef4f8);
}
.image-preview-hidden::after {
  content: '';
  position: absolute;
  top: 25px;
  right: 13px;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: #b42318;
  transform: rotate(-35deg);
}

/* Mini preview support */
.mini-menu-preview.logo-shape-rounded .mini-restaurant span {
  border-radius: 16px;
}
.mini-menu-preview.logo-shape-circle .mini-restaurant span {
  border-radius: 999px;
}
.mini-menu-preview.logo-shape-square .mini-restaurant span {
  border-radius: 6px;
}
.mini-menu-preview.product-image-style-square .mini-product::before {
  border-radius: 6px;
}
.mini-menu-preview.product-image-style-rounded .mini-product::before {
  border-radius: 10px;
}
.mini-menu-preview.product-image-style-hidden .mini-product::before {
  display: none;
}
.mini-menu-preview.product-image-style-hidden .mini-product {
  padding-right: 14px;
}

@media (max-width: 1100px) {
  .visual-controls {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .visual-options {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .logo-shape-square .restaurant-logo {
    border-radius: 10px;
  }
  .product-image-style-square .product-image {
    border-radius: 10px;
  }
}
/* Action button icons */
.menu-actions a,
.menu-actions .action-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.action-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  line-height: 0;
}
.action-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}
.action-chip {
  position: relative;
}
.action-chip span:last-child {
  line-height: 1;
}
/* Billing system */
.billing-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr);
  gap: 18px;
  margin-bottom: 18px;
}
.billing-status-panel h2 {
  margin: 14px 0 8px;
  color: var(--navy);
  font-size: 28px;
}
.billing-status-panel p {
  color: var(--muted);
  line-height: 1.8;
}
.billing-price {
  margin-top: 18px;
  display: flex;
  align-items: end;
  gap: 8px;
}
.billing-price strong {
  font-size: 34px;
  color: var(--blue);
}
.billing-price span,
.billing-muted {
  color: var(--muted);
  font-weight: 800;
}
.billing-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
.billing-trial { background: #eff8ff; color: #175cd3; }
.billing-active { background: #ecfdf3; color: #087443; }
.billing-overdue { background: #fff6e6; color: #b54708; }
.billing-expired,
.billing-suspended,
.billing-cancelled { background: #fff1f0; color: #b42318; }
.billing-detail-list {
  display: grid;
  gap: 12px;
}
.billing-detail-list h2 {
  margin: 0 0 6px;
  color: var(--navy);
}
.billing-detail-list > div:not(.panel-heading) {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.billing-detail-list span,
.billing-limit-grid span {
  color: var(--muted);
  font-weight: 800;
}
.billing-detail-list strong,
.billing-limit-grid strong {
  color: var(--navy);
}
.billing-message {
  border-radius: 18px;
  padding: 16px;
  font-weight: 800;
  line-height: 1.8;
}
.billing-message.info { background: #eff8ff; color: #175cd3; }
.billing-message.success { background: #ecfdf3; color: #087443; }
.billing-message.warning { background: #fff6e6; color: #b54708; }
.billing-message.danger { background: #fff1f0; color: #b42318; }
.billing-limit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.billing-limit-grid > div {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
  background: #fbfdff;
}
.quick-billing-form {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.inline-form {
  display: flex;
  gap: 8px;
}
.inline-form input {
  max-width: 130px;
}
@media (max-width: 980px) {
  .billing-overview-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .billing-detail-list > div:not(.panel-heading) {
    flex-direction: column;
  }
  .billing-limit-grid {
    grid-template-columns: 1fr;
  }
  .inline-form {
    flex-direction: column;
  }
  .inline-form input {
    max-width: none;
  }
}
/* Billing area fix */
.billing-card-grid,
.billing-admin-grid {
  display: grid;
  gap: 18px;
}
.billing-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.billing-admin-grid {
  grid-template-columns: 1fr;
}
.billing-account-card,
.admin-billing-card {
  display: grid;
  gap: 16px;
}
.billing-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.billing-card-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
}
.billing-card-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  direction: ltr;
  text-align: right;
}
.billing-plan-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: linear-gradient(135deg, rgba(10,104,168,.06), rgba(18,183,196,.08));
  border: 1px solid rgba(18,183,196,.14);
  border-radius: 18px;
  padding: 14px;
}
.billing-plan-line strong {
  color: var(--navy);
  font-size: 18px;
}
.billing-plan-line span {
  color: var(--blue);
  font-weight: 900;
}
.billing-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.billing-trial { background: #eff8ff; color: #175cd3; }
.billing-active { background: #ecfdf3; color: #087443; }
.billing-overdue { background: #fff6e6; color: #b54708; }
.billing-expired,
.billing-suspended,
.billing-cancelled { background: #fff1f0; color: #b42318; }
.billing-detail-list {
  display: grid;
  gap: 8px;
}
.billing-detail-list.compact > div,
.billing-detail-list > div:not(.panel-heading) {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.billing-detail-list span {
  color: var(--muted);
  font-weight: 800;
}
.billing-detail-list strong {
  color: var(--navy);
}
.billing-message {
  border-radius: 18px;
  padding: 14px;
  font-weight: 800;
  line-height: 1.8;
}
.billing-message.info { background: #eff8ff; color: #175cd3; }
.billing-message.success { background: #ecfdf3; color: #087443; }
.billing-message.warning { background: #fff6e6; color: #b54708; }
.billing-message.danger { background: #fff1f0; color: #b42318; }
.quick-billing-actions {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 10px;
  align-items: end;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.inline-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: end;
}
.inline-form input {
  max-width: 140px;
}
@media (max-width: 1100px) {
  .billing-card-grid {
    grid-template-columns: 1fr;
  }
  .quick-billing-actions {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .billing-card-head,
  .billing-plan-line,
  .billing-detail-list.compact > div {
    flex-direction: column;
  }
  .inline-form input {
    max-width: none;
    width: 100%;
  }
}
/* Sidebar grouped admin links */
.sidebar-section-title {
  margin: 14px 12px 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .2px;
}
/* Billing reminders and status indicators */
.billing-alert-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.billing-alert-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 12px 26px rgba(6,55,102,.05);
  display: grid;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.billing-alert-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--blue);
}
.billing-alert-card span {
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
}
.billing-alert-card strong {
  color: var(--navy);
  font-size: 32px;
  line-height: 1;
}
.billing-alert-card small {
  color: var(--muted);
  font-weight: 800;
}
.billing-alert-card.info::before { background: #175cd3; }
.billing-alert-card.warning::before { background: #f79009; }
.billing-alert-card.danger::before { background: #d92d20; }
.billing-alert-card.muted::before { background: #667085; }
.billing-alert-card.success::before { background: #12b76a; }

.billing-card-reminders {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: -4px;
}
.billing-reminder-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}
.billing-reminder-pill.warning {
  color: #b54708;
  background: #fff6e6;
  border: 1px solid rgba(181,71,8,.12);
}
.billing-reminder-pill.danger {
  color: #b42318;
  background: #fff1f0;
  border: 1px solid rgba(180,35,24,.12);
}
.billing-reminder-pill.muted {
  color: #475467;
  background: #f2f4f7;
  border: 1px solid rgba(71,84,103,.12);
}

@media (max-width: 1200px) {
  .billing-alert-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .billing-alert-summary {
    grid-template-columns: 1fr;
  }
}
/* Better product editor */
.product-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}
.product-editor-main {
  display: grid;
  gap: 16px;
}
.product-editor-preview {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 14px;
}
.preview-phone-card {
  background:
    radial-gradient(circle at top right, rgba(18,183,196,.13), transparent 32%),
    linear-gradient(180deg, #fff, #f8fbfd);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 14px 30px rgba(6,55,102,.07);
}
.preview-label {
  display: inline-flex;
  background: rgba(10,104,168,.08);
  color: var(--blue);
  border-radius: 999px;
  padding: 6px 11px;
  font-weight: 900;
  font-size: 12px;
  margin-bottom: 12px;
}
.preview-phone-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  background: #eef5f8;
  border: 1px solid rgba(220,231,242,.9);
}
.preview-phone-card h3 {
  margin: 14px 0 6px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.35;
}
.preview-phone-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}
.preview-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.preview-price-row strong {
  color: var(--blue);
  background: rgba(10,104,168,.08);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 17px;
}
.preview-old-price,
.add-preview-old-price {
  color: #98a6b5;
  text-decoration: line-through;
  font-weight: 800;
  font-size: 13px;
}
.editor-checks {
  align-items: end;
}
.modern-check {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  color: var(--navy);
}
.modern-check input {
  width: auto;
  accent-color: var(--blue);
}
.product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}
.product-toolbar h2 {
  margin: 0;
  color: var(--navy);
}
.product-toolbar p {
  margin: 4px 0 0;
  color: var(--muted);
}
.product-toolbar-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px;
  gap: 10px;
  min-width: min(100%, 440px);
}
.product-table-wrap table small {
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 1050px) {
  .product-editor-layout {
    grid-template-columns: 1fr;
  }
  .product-editor-preview {
    position: static;
  }
}
@media (max-width: 720px) {
  .product-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .product-toolbar-actions {
    grid-template-columns: 1fr;
    min-width: 0;
  }
}
/* Product edit preview fix */
.product-editor-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}
.product-editor-main {
  display: grid;
  gap: 16px;
}
.product-edit-preview,
.product-editor-preview {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 14px;
}
.preview-phone-card {
  background:
    radial-gradient(circle at top right, rgba(18,183,196,.13), transparent 32%),
    linear-gradient(180deg, #fff, #f8fbfd);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 14px 30px rgba(6,55,102,.07);
}
.preview-label {
  display: inline-flex;
  background: rgba(10,104,168,.08);
  color: var(--blue);
  border-radius: 999px;
  padding: 6px 11px;
  font-weight: 900;
  font-size: 12px;
  margin-bottom: 12px;
}
.preview-phone-card img,
.edit-product-preview-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  background: #eef5f8;
  border: 1px solid rgba(220,231,242,.9);
}
.preview-phone-card h3 {
  margin: 14px 0 6px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.35;
}
.preview-phone-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}
.preview-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.preview-price-row strong {
  color: var(--blue);
  background: rgba(10,104,168,.08);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 17px;
}
.edit-preview-old-price,
.preview-old-price {
  color: #98a6b5;
  text-decoration: line-through;
  font-weight: 800;
  font-size: 13px;
}
.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 1050px) {
  .product-editor-layout {
    grid-template-columns: 1fr !important;
  }
  .product-edit-preview,
  .product-editor-preview {
    position: static;
  }
}
/* Forced product edit preview */
.product-editor-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}
.product-editor-main {
  display: grid;
  gap: 16px;
}
.product-edit-preview,
.product-editor-preview {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 14px;
}
.preview-phone-card {
  background:
    radial-gradient(circle at top right, rgba(18,183,196,.13), transparent 32%),
    linear-gradient(180deg, #fff, #f8fbfd);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 14px 30px rgba(6,55,102,.07);
}
.preview-label {
  display: inline-flex;
  background: rgba(10,104,168,.08);
  color: var(--blue);
  border-radius: 999px;
  padding: 6px 11px;
  font-weight: 900;
  font-size: 12px;
  margin-bottom: 12px;
}
.preview-phone-card img,
.edit-product-preview-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  background: #eef5f8;
  border: 1px solid rgba(220,231,242,.9);
}
.preview-phone-card h3 {
  margin: 14px 0 6px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.35;
}
.preview-phone-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}
.preview-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.preview-price-row strong {
  color: var(--blue);
  background: rgba(10,104,168,.08);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 17px;
}
.edit-preview-old-price,
.preview-old-price {
  color: #98a6b5;
  text-decoration: line-through;
  font-weight: 800;
  font-size: 13px;
}
.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.styled-file-input {
  background: #fff;
}
.force-preview-note {
  display: none;
}
@media (max-width: 1050px) {
  .product-editor-layout {
    grid-template-columns: 1fr !important;
  }
  .product-edit-preview,
  .product-editor-preview {
    position: static;
  }
}
/* Public menu language switch */
.menu-language-switch {
  width: max-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(220,231,242,.95);
  box-shadow: 0 12px 24px rgba(6,55,102,.07);
}
.menu-language-switch a {
  min-width: 84px;
  text-align: center;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  color: var(--navy);
  transition: all .2s ease;
}
.menu-language-switch a.active,
.menu-language-switch a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--customer-primary, var(--blue)), var(--customer-accent, var(--cyan)));
  box-shadow: 0 8px 16px rgba(6,55,102,.11);
}
.menu-page.menu-lang-en {
  direction: ltr;
}
.menu-page.menu-lang-en .restaurant-info,
.menu-page.menu-lang-en .category-title,
.menu-page.menu-lang-en .product-card,
.menu-page.menu-lang-en .menu-search input,
.menu-page.menu-lang-en .empty-state {
  text-align: left;
}
.menu-page.menu-lang-en .restaurant-card {
  direction: ltr;
}
.menu-page.menu-lang-en .restaurant-info p {
  max-width: 760px;
}
.menu-page.menu-lang-en .category-title::before {
  order: -1;
}
.menu-page.menu-lang-en .product-card {
  direction: ltr;
}
.menu-page.menu-lang-en .price-row,
.menu-page.menu-lang-en .menu-actions,
.menu-page.menu-lang-en .menu-category-pills {
  direction: ltr;
}
.menu-page.menu-lang-en .menu-search input {
  direction: ltr;
}
@media (max-width: 560px) {
  .menu-language-switch {
    width: 100%;
    justify-content: center;
  }
  .menu-language-switch a {
    flex: 1;
  }
}
/* SCG_HEADER_LANGUAGE_SWITCH_POSITION_V2 */
.menu-theme-vars {
  position: relative;
}
.restaurant-card > .menu-language-switch {
  display: none !important;
}
.menu-theme-vars > .menu-language-switch {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  left: auto !important;
  inset-inline-start: auto !important;
  inset-inline-end: auto !important;
  z-index: 50 !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: block !important;
}
.menu-theme-vars > .menu-language-switch .single-switch {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 30px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.88) !important;
  color: #063766 !important;
  border: 1px solid rgba(255,255,255,.65) !important;
  box-shadow: 0 8px 18px rgba(6,55,102,.16) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.menu-theme-vars > .menu-language-switch .single-switch:hover {
  background: #fff !important;
  color: #063766 !important;
  transform: translateY(-1px);
}
@media (max-width: 560px) {
  .menu-theme-vars > .menu-language-switch {
    top: 10px !important;
    right: 10px !important;
  }
  .menu-theme-vars > .menu-language-switch .single-switch {
    min-height: 28px !important;
    padding: 0 9px !important;
    font-size: 10.5px !important;
  }
}

/* SCG_COMPACT_DASHBOARD_REDESIGN_V1_START */
.dashboard-shell {
  grid-template-columns: 236px minmax(0, 1fr);
}
.sidebar {
  padding: 18px 16px;
}
.brand {
  padding-bottom: 16px;
  gap: 10px;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.sidebar nav {
  gap: 6px;
  margin-top: 16px;
}
.sidebar nav a,
.logout {
  padding: 11px 12px;
  border-radius: 13px;
  font-size: 15px;
}
.dashboard-main {
  padding: 20px;
}
.page-title {
  margin-bottom: 16px;
}
.page-title h1 {
  font-size: 24px;
}
.page-title p {
  font-size: 14px;
}
.dashboard-main .card,
.dashboard-main .panel {
  padding: 18px;
}

.dashboard-hero {
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px 20px;
  border-radius: 24px;
}
.dashboard-hero::after {
  width: 220px;
  height: 220px;
  inset: auto -60px -90px auto;
}
.eyebrow {
  padding: 6px 10px;
  margin-bottom: 10px;
  font-size: 11px;
}
.dashboard-hero h1 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}
.dashboard-hero p {
  margin-top: 8px;
  max-width: 560px;
  font-size: 14px;
  line-height: 1.7;
}
.hero-actions {
  margin-top: 16px;
  gap: 8px;
}
.dashboard-hero .btn {
  padding: 11px 16px;
  border-radius: 14px;
  font-size: 14px;
}
.dashboard-hero .btn.small {
  padding: 10px 14px;
}
.dashboard-hero-card {
  border-radius: 20px;
  padding: 14px;
  gap: 10px;
}
.dashboard-hero-card span {
  font-size: 12px;
}
.dashboard-hero-card strong {
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 12px;
}
.dashboard-hero-card .btn {
  width: 100%;
  justify-content: center;
}
.dashboard-hero-card small {
  margin-top: -2px;
  font-size: 12px;
}

.dashboard-metrics {
  gap: 12px;
  margin-bottom: 16px;
}
.premium-metric {
  padding: 14px 16px;
  border-radius: 22px;
}
.premium-metric::before {
  height: 3px;
}
.premium-metric span {
  font-size: 12px;
}
.premium-metric strong {
  margin: 4px 0 2px;
  font-size: 28px;
  line-height: 1.05;
}
.premium-metric small {
  font-size: 12px;
  line-height: 1.5;
}

.dashboard-home-grid {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  margin-bottom: 14px;
}
.dashboard-home-grid.lower {
  align-items: start;
}
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.panel-heading h2 {
  margin: 0;
  font-size: 22px;
}
.panel-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.quick-action-grid a {
  min-height: 88px;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}
.quick-action-grid a strong {
  font-size: 18px;
  line-height: 1.3;
}
.quick-action-grid a span {
  font-size: 12px;
  line-height: 1.55;
}

.readiness-panel .panel-heading strong {
  font-size: 26px;
  line-height: 1;
}
.progress-track {
  height: 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.checklist {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.checklist li {
  padding-right: 28px;
  line-height: 1.55;
  font-size: 14px;
}
.checklist li::before {
  top: 3px;
}

.recent-products-list {
  display: grid;
  gap: 10px;
}
.recent-product-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
}
.recent-product-item img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
}
.recent-product-item strong {
  font-size: 16px;
}
.recent-product-item span {
  font-size: 12px;
}
.recent-product-item b {
  font-size: 18px;
  white-space: nowrap;
}

.status-line {
  padding: 12px 0;
}
.status-line span,
.status-line a,
.status-line strong {
  font-size: 14px;
}
.dashboard-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.7;
}
.empty-mini {
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 13px;
}

.cards,
.grid-2,
.grid-3 {
  gap: 14px;
}
.table-wrap table th,
.table-wrap table td,
table th,
table td {
  padding-top: 11px;
  padding-bottom: 11px;
}

@media (max-width: 1280px) {
  .dashboard-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .dashboard-hero {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-home-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .dashboard-main {
    padding: 16px;
  }
  .dashboard-hero {
    grid-template-columns: 1fr;
  }
  .dashboard-hero-card .btn {
    width: auto;
  }
}

@media (max-width: 720px) {
  .dashboard-metrics,
  .cards,
  .grid-2,
  .grid-3,
  .quick-action-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-main .card,
  .dashboard-main .panel {
    padding: 16px;
  }
  .dashboard-hero {
    padding: 16px;
  }
  .panel-heading h2 {
    font-size: 20px;
  }
  .recent-product-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .recent-product-item b {
    grid-column: 2;
  }
}
/* SCG_COMPACT_DASHBOARD_REDESIGN_V1_END */

/* SCG_RESTAURANT_PROFILE_PAGE_V1_CSS */
.profile-page-title .actions {
  align-items: center;
}
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}
.profile-main-stack,
.profile-preview-stack {
  display: grid;
  gap: 16px;
}
.profile-preview-stack {
  position: sticky;
  top: 20px;
}
.profile-section-card {
  margin-bottom: 0;
}
.profile-url-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff;
  padding: 8px 10px;
  direction: ltr;
}
.profile-url-box span {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}
.profile-url-box input {
  border: 0;
  background: transparent;
  padding: 8px 4px;
  direction: ltr;
  text-align: left;
}
.profile-url-box input:focus {
  outline: none;
  box-shadow: none;
}
.field-hint {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.profile-save-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}
.profile-preview-card {
  overflow: hidden;
  padding: 14px;
}
.profile-cover-preview {
  height: 128px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--navy), var(--blue), var(--cyan));
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(220,231,242,.9);
}
.profile-preview-info {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  margin-top: -34px;
  padding: 0 8px;
}
.profile-logo-preview {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 22px;
  background: #fff;
  border: 4px solid #fff;
  box-shadow: 0 10px 24px rgba(6,55,102,.14);
}
.profile-preview-info h3 {
  margin: 38px 0 4px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.35;
}
.profile-preview-info p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.profile-preview-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.profile-preview-actions span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(10,104,168,.08);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.profile-link-preview {
  margin-bottom: 0;
}
.profile-link-preview strong {
  display: block;
  color: var(--navy);
  margin-bottom: 8px;
}
.profile-link-preview span {
  display: block;
  background: #f7fbfd;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
@media (max-width: 1050px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .profile-preview-stack {
    position: static;
  }
}
@media (max-width: 680px) {
  .profile-url-box {
    grid-template-columns: 1fr;
  }
  .profile-preview-info {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .profile-preview-info h3 {
    margin-top: 8px;
  }
  .profile-preview-actions,
  .profile-save-bar {
    justify-content: center;
  }
}

/* SCG_DASHBOARD_BRANDING_V1_START */
.dashboard-shell-branded {
  background:
    radial-gradient(circle at 0% 0%, rgba(18,183,196,.10), transparent 22%),
    radial-gradient(circle at 100% 0%, rgba(10,104,168,.08), transparent 18%),
    linear-gradient(180deg, #f5f9fc 0%, #eef5fa 100%);
}
.brand.brand-scg {
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 12px;
}
.brand.brand-scg strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  color: var(--navy);
}
.brand.brand-scg small {
  display: block;
  margin-top: 4px;
  color: #54708b;
  font-size: 12px;
  font-weight: 700;
}
.brand-logo-img,
.brand.brand-scg .brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  flex: 0 0 auto;
}
.brand-logo-img {
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(220,231,242,.95);
  box-shadow: 0 10px 24px rgba(6,55,102,.10);
}
.sidebar-brand-card {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(6,55,102,.97), rgba(10,104,168,.95) 55%, rgba(18,183,196,.92));
  color: #fff;
  box-shadow: 0 16px 30px rgba(6,55,102,.18);
}
.admin-brand-card {
  background: linear-gradient(135deg, #063766, #0a68a8 60%, #0b8d98);
}
.sidebar-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 10px;
}
.sidebar-brand-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 8px;
}
.sidebar-brand-card p {
  margin: 0;
  color: rgba(255,255,255,.92);
  font-size: 12.5px;
  line-height: 1.75;
}
.sidebar nav {
  margin-top: 12px;
}
.sidebar-powered-box {
  margin-top: auto;
  margin-bottom: 10px;
  padding: 13px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f4f9fc);
  border: 1px solid rgba(220,231,242,.95);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 22px rgba(6,55,102,.05);
}
.sidebar-powered-box strong,
.sidebar-powered-box span,
.sidebar-powered-box small {
  display: block;
}
.sidebar-powered-box strong {
  color: var(--navy);
  font-size: 14px;
  margin-bottom: 2px;
}
.sidebar-powered-box span {
  color: #0a68a8;
  direction: ltr;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
}
.sidebar-powered-box small {
  color: var(--muted);
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
}
.dashboard-top-ribbon {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(244,250,253,.95));
  border: 1px solid rgba(220,231,242,.95);
  box-shadow: 0 12px 24px rgba(6,55,102,.05);
}
.dashboard-top-ribbon-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .4px;
}
.dashboard-top-ribbon strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.25;
}
.dashboard-top-ribbon small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
}
.dashboard-shell-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(220,231,242,.95);
  color: #61778e;
  font-size: 12.5px;
  font-weight: 700;
}
.dashboard-shell-footer strong {
  color: var(--navy);
}
.dashboard-shell-footer span {
  color: #0a68a8;
  direction: ltr;
}
@media (max-width: 960px) {
  .dashboard-top-ribbon {
    padding: 11px 12px;
    margin-bottom: 14px;
  }
  .sidebar-brand-card,
  .sidebar-powered-box {
    display: none;
  }
}
/* SCG_DASHBOARD_BRANDING_V1_END */


/* SCG_FORCE_DASHBOARD_LOGO_FIX_START */
.sidebar .brand-mark,
.dashboard-top-ribbon-badge {
  font-size: 0 !important;
  color: transparent !important;
  overflow: hidden !important;
  background-color: #ffffff !important;
  background-image: url("scg-logo.png?v=1777750066") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 82% auto !important;
  border: 1px solid rgba(220,231,242,.95) !important;
  box-shadow: 0 10px 24px rgba(6,55,102,.10) !important;
}
.sidebar .brand-mark::before,
.sidebar .brand-mark::after,
.dashboard-top-ribbon-badge::before,
.dashboard-top-ribbon-badge::after {
  content: none !important;
}
/* SCG_FORCE_DASHBOARD_LOGO_FIX_END */



/* LANDING_PAGE_FRONT_START */
.landing-page{
  background:
    radial-gradient(circle at top right, rgba(18,183,196,.14), transparent 32%),
    linear-gradient(180deg, #f9fcff 0%, #f3f8fc 100%);
  color: var(--text);
}
.landing-container{
  width:min(1180px, calc(100% - 32px));
  margin-inline:auto;
}
.landing-header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,.86);
  border-bottom:1px solid rgba(220,231,242,.9);
}
.landing-header-inner{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:22px;
  min-height:86px;
}
.landing-brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:max-content;
}
.landing-brand img,
.footer-col.brand img{
  width:52px !important;
  height:52px !important;
  object-fit:contain !important;
  border-radius:14px;
  background:#fff;
}
.landing-brand-badge{
  width:52px;
  height:52px;
  border-radius:16px;
  display:grid;
  place-items:center;
  color:#fff;
  background:linear-gradient(135deg,var(--navy),var(--cyan));
  font-weight:800;
  box-shadow:0 14px 32px rgba(10,104,168,.18);
}
.landing-brand-text strong{
  display:block;
  font-size:20px;
  line-height:1.1;
  color:var(--navy);
}
.landing-brand-text small{
  color:var(--muted);
  display:block;
  margin-top:4px;
}
.landing-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:26px;
  flex-wrap:wrap;
}
.landing-nav a{
  color:#23425d;
  font-weight:700;
  transition:.2s ease;
}
.landing-nav a:hover{ color:var(--blue); }
.landing-header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.landing-button,
.landing-link-button{
  border:1px solid transparent;
  border-radius:18px;
  padding:14px 22px;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition:.22s ease;
}
.landing-button{
  background:linear-gradient(135deg,var(--blue),var(--cyan));
  color:#fff;
  box-shadow:0 14px 28px rgba(10,104,168,.18);
}
.landing-button:hover{
  transform:translateY(-1px);
  box-shadow:0 18px 34px rgba(10,104,168,.24);
}
.landing-button.secondary{
  background:#fff;
  color:var(--navy);
  border-color:var(--line);
  box-shadow:none;
}
.landing-button.secondary.inverse{
  background:rgba(255,255,255,.12);
  color:#fff;
  border-color:rgba(255,255,255,.25);
}
.landing-link-button{
  background:#eff7fb;
  color:var(--navy);
  border-color:#d7eaf5;
}
.landing-main{ overflow:hidden; }
.landing-hero{
  padding:54px 0 28px;
}
.landing-hero-grid{
  display:grid;
  grid-template-columns:1.02fr .98fr;
  gap:34px;
  align-items:center;
}
.landing-kicker{
  display:inline-flex;
  padding:10px 16px;
  border-radius:999px;
  background:#edf7fb;
  color:var(--blue);
  font-weight:800;
  margin-bottom:20px;
}
.landing-hero-copy h1{
  font-size:clamp(38px, 5vw, 66px);
  line-height:1.08;
  letter-spacing:-.02em;
  margin:0 0 18px;
  color:var(--navy);
}
.landing-hero-copy p{
  margin:0 0 24px;
  color:#54697f;
  font-size:19px;
  line-height:1.95;
  max-width:620px;
}
.landing-cta-row{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.landing-mini-points{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:22px;
}
.landing-mini-points span{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:10px 14px;
  color:#476079;
  font-weight:700;
}
.landing-hero-visual{
  position:relative;
  min-height:620px;
}
.hero-dashboard-card,
.hero-phone,
.hero-qr-stand{
  position:absolute;
  background:#fff;
  border:1px solid rgba(220,231,242,.95);
  border-radius:28px;
  box-shadow:0 24px 56px rgba(6,55,102,.12);
}
.hero-dashboard-card{
  top:40px;
  left:0;
  width:420px;
  padding:22px;
  background:linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}
.hero-dashboard-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:16px;
}
.hero-dashboard-head strong{ font-size:22px; color:var(--navy); }
.hero-dashboard-head span{
  font-size:13px;
  color:#667c91;
  background:#eff6fb;
  border-radius:999px;
  padding:7px 12px;
}
.hero-metrics{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.hero-metrics div{
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
  background:#fff;
}
.hero-metrics small{
  display:block;
  color:#6d8298;
  margin-bottom:8px;
  font-size:13px;
}
.hero-metrics strong{
  display:block;
  font-size:22px;
  color:var(--navy);
}
.hero-metrics em{
  display:block;
  font-style:normal;
  color:#0a9c66;
  font-size:13px;
  margin-top:4px;
}
.hero-chart{
  height:180px;
  margin-top:18px;
  border-radius:24px;
  background:
    linear-gradient(180deg, rgba(18,183,196,.12), rgba(18,183,196,0) 70%),
    repeating-linear-gradient(to top, #edf4fa, #edf4fa 1px, transparent 1px, transparent 36px);
  padding:22px 18px 14px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:8px;
}
.hero-chart span{
  width:100%;
  border-radius:999px 999px 8px 8px;
  background:linear-gradient(180deg, var(--cyan), var(--blue));
}
.hero-phone{
  right:84px;
  top:0;
  width:280px;
  padding:12px;
  border-radius:40px;
  background:#0f1118;
  color:#fff;
}
.hero-phone-top{
  width:110px;
  height:26px;
  background:#0a0b11;
  border-radius:999px;
  margin:0 auto 10px;
}
.hero-phone-screen{
  background:#fff;
  color:var(--text);
  border-radius:30px;
  overflow:hidden;
  min-height:560px;
  display:flex;
  flex-direction:column;
}
.hero-phone-header{
  padding:20px 20px 10px;
  text-align:center;
}
.hero-phone-header strong{
  display:block;
  font-size:20px;
  color:var(--navy);
}
.hero-phone-header small{
  color:#73869a;
}
.hero-tabs{
  display:flex;
  justify-content:center;
  gap:8px;
  padding:0 14px 14px;
  flex-wrap:wrap;
}
.hero-tabs span{
  background:#eff6fb;
  color:#31516e;
  border-radius:999px;
  padding:7px 11px;
  font-size:12px;
  font-weight:700;
}
.hero-phone-list{
  padding:0 14px 14px;
  display:grid;
  gap:10px;
}
.hero-item{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.hero-item strong{
  display:block;
  color:#183552;
  margin-bottom:3px;
}
.hero-item small{ color:#73869a; }
.hero-item b{
  color:var(--blue);
  font-size:16px;
  white-space:nowrap;
}
.hero-phone-footer{
  margin-top:auto;
  background:linear-gradient(135deg,var(--navy),var(--blue));
  color:#fff;
  padding:16px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-weight:800;
}
.hero-qr-stand{
  bottom:42px;
  left:90px;
  width:220px;
  padding:14px;
  background:linear-gradient(180deg,#143f7c,#0c2f63);
  color:#fff;
  transform:rotate(-7deg);
}
.hero-qr-content{
  border-radius:20px;
  border:1px solid rgba(255,255,255,.14);
  padding:18px;
  text-align:center;
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
}
.hero-qr-content small,
.hero-qr-content span{
  display:block;
  opacity:.92;
}
.hero-qr-content strong{
  display:block;
  margin-top:12px;
  font-size:18px;
}
.hero-qr-box{
  width:110px;
  height:110px;
  margin:14px auto;
  border-radius:10px;
  background:
    linear-gradient(90deg, #fff 10px, transparent 10px) 0 0/20px 20px,
    linear-gradient(#fff 10px, transparent 10px) 0 0/20px 20px,
    linear-gradient(90deg, #fff 10px, transparent 10px) 10px 10px/20px 20px,
    linear-gradient(#fff 10px, transparent 10px) 10px 10px/20px 20px,
    #0d1220;
  box-shadow:inset 0 0 0 10px #fff;
}
.landing-section{
  padding:34px 0;
}
.landing-section.alt{
  background:rgba(255,255,255,.55);
  border-block:1px solid rgba(220,231,242,.7);
}
.landing-section-head{
  text-align:center;
  margin-bottom:24px;
}
.landing-section-head.narrow{ margin-bottom:18px; }
.landing-section-head h2{
  margin:0 0 10px;
  font-size:40px;
  color:var(--navy);
}
.landing-section-head p{
  margin:0;
  color:#6b8095;
  font-size:17px;
}
.landing-feature-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:18px;
}
.landing-feature-card,
.landing-step,
.showcase-card,
.benefit-item{
  background:#fff;
  border:1px solid rgba(220,231,242,.95);
  border-radius:24px;
  padding:24px;
  box-shadow:0 14px 32px rgba(6,55,102,.08);
}
.landing-feature-card h3,
.landing-step h3{
  margin:14px 0 10px;
  font-size:23px;
  color:var(--navy);
}
.landing-feature-card p,
.landing-step p,
.benefit-item span{
  color:#6b8095;
  line-height:1.85;
  margin:0;
}
.landing-icon{
  width:58px;
  height:58px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, rgba(10,104,168,.14), rgba(18,183,196,.18));
  color:var(--navy);
  font-weight:800;
  font-size:19px;
}
.landing-icon.soft{
  background:#eff7fb;
}
.landing-steps{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:18px;
}
.landing-step{
  position:relative;
}
.step-no{
  position:absolute;
  top:18px;
  left:18px;
  width:34px;
  height:34px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--blue),var(--cyan));
  color:#fff;
  font-weight:800;
  display:grid;
  place-items:center;
}
.landing-showcase-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:18px;
}
.showcase-head{
  font-size:18px;
  font-weight:800;
  color:var(--navy);
  margin-bottom:14px;
}
.showcase-mock{
  min-height:240px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#f7fbff;
  overflow:hidden;
}
.showcase-mock.customer .mock-top{
  height:18px;
  background:linear-gradient(135deg,var(--navy),var(--cyan));
}
.mock-body{
  padding:18px;
  display:grid;
  gap:14px;
}
.mock-row{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.showcase-mock.dashboard{
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:18px;
}
.show-mini-metrics{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.show-mini-metrics span{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px 10px;
  text-align:center;
  font-weight:800;
  color:var(--navy);
}
.show-mini-chart{
  flex:1;
  min-height:128px;
  display:flex;
  gap:10px;
  align-items:flex-end;
  padding-top:12px;
}
.show-mini-chart i{
  display:block;
  flex:1;
  border-radius:999px 999px 8px 8px;
  background:linear-gradient(180deg,var(--cyan),var(--blue));
}
.show-mini-chart i:nth-child(1){height:26%;}
.show-mini-chart i:nth-child(2){height:38%;}
.show-mini-chart i:nth-child(3){height:34%;}
.show-mini-chart i:nth-child(4){height:55%;}
.show-mini-chart i:nth-child(5){height:48%;}
.show-mini-chart i:nth-child(6){height:70%;}
.showcase-mock.qr{
  display:grid;
  place-items:center;
  background:linear-gradient(180deg,#eff7fb,#fff);
}
.hero-qr-content.static{
  width:220px;
  color:#fff;
  background:linear-gradient(180deg,#143f7c,#0c2f63);
}
.landing-tags-grid{
  display:grid;
  grid-template-columns:repeat(6, minmax(0,1fr));
  gap:14px;
}
.landing-tag{
  background:#fff;
  border:1px solid rgba(220,231,242,.95);
  border-radius:20px;
  padding:18px 16px;
  text-align:center;
  font-weight:800;
  color:var(--navy);
  box-shadow:0 10px 22px rgba(6,55,102,.05);
}
.landing-benefits{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:18px;
}
.benefit-item strong{
  display:block;
  margin-bottom:8px;
  color:var(--navy);
  font-size:20px;
}
.landing-cta-banner{
  background:linear-gradient(135deg, #082d5a 0%, #0a68a8 55%, #12b7c4 100%);
  border-radius:32px;
  padding:34px;
  box-shadow:0 24px 54px rgba(6,55,102,.18);
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:24px;
  align-items:center;
  color:#fff;
  overflow:hidden;
}
.landing-cta-copy h2{
  margin:0 0 14px;
  font-size:42px;
}
.landing-cta-copy p{
  margin:0 0 20px;
  color:rgba(255,255,255,.9);
  font-size:18px;
  line-height:1.85;
}
.landing-cta-art{
  position:relative;
  min-height:250px;
}
.hero-phone.mini{
  width:210px;
  top:auto;
  right:auto;
  left:0;
  padding:10px;
  position:absolute;
}
.hero-phone.mini .hero-phone-screen{
  min-height:210px;
}
.hero-qr-stand.mini{
  width:190px;
  left:auto;
  bottom:10px;
  right:14px;
  transform:rotate(0);
  position:absolute;
}
.landing-footer{
  background:#082344;
  color:#fff;
  padding:44px 0 18px;
  margin-top:20px;
}
.landing-footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:22px;
  align-items:flex-start;
}
.footer-col h3{
  margin:0 0 14px;
  font-size:18px;
}
.footer-col{
  display:grid;
  gap:10px;
}
.footer-col.brand{
  gap:14px;
}
.footer-col.brand p,
.footer-col a{
  color:rgba(255,255,255,.82);
}
.footer-bottom{
  padding-top:20px;
  margin-top:20px;
  border-top:1px solid rgba(255,255,255,.1);
  color:rgba(255,255,255,.78);
  text-align:center;
  font-size:14px;
}
@media (max-width: 1100px){
  .landing-header-inner,
  .landing-hero-grid,
  .landing-feature-grid,
  .landing-steps,
  .landing-showcase-grid,
  .landing-benefits,
  .landing-cta-banner,
  .landing-footer-grid{
    grid-template-columns:1fr;
  }
  .landing-nav{
    justify-content:flex-start;
  }
  .landing-header-inner{
    padding:14px 0;
  }
  .landing-hero-visual{
    min-height:740px;
    order:-1;
  }
  .hero-dashboard-card{
    width:100%;
    max-width:460px;
    left:auto;
    right:0;
  }
  .hero-phone{
    right:calc(50% - 140px);
    top:170px;
  }
  .hero-qr-stand{
    left:16px;
    bottom:30px;
  }
  .landing-tags-grid{
    grid-template-columns:repeat(3, 1fr);
  }
  .landing-footer-grid{
    gap:28px;
  }
}
@media (max-width: 780px){
  .landing-container{
    width:min(100% - 20px, 100%);
  }
  .landing-header{
    position:relative;
  }
  .landing-header-inner{
    gap:14px;
  }
  .landing-nav,
  .landing-header-actions{
    flex-wrap:wrap;
  }
  .landing-hero{
    padding-top:28px;
  }
  .landing-hero-copy h1{
    font-size:40px;
  }
  .landing-hero-copy p{
    font-size:16px;
  }
  .landing-hero-visual{
    min-height:710px;
  }
  .hero-dashboard-card{
    position:relative;
    top:auto;
    right:auto;
    left:auto;
    width:100%;
  }
  .hero-phone{
    position:relative;
    top:auto;
    right:auto;
    width:100%;
    max-width:290px;
    margin:16px auto 0;
  }
  .hero-qr-stand{
    position:relative;
    left:auto;
    bottom:auto;
    transform:none;
    width:220px;
    margin:16px auto 0;
  }
  .hero-metrics{
    grid-template-columns:1fr;
  }
  .landing-feature-grid,
  .landing-showcase-grid,
  .landing-benefits,
  .landing-tags-grid{
    grid-template-columns:1fr;
  }
  .landing-steps{
    grid-template-columns:1fr;
  }
  .landing-section-head h2{
    font-size:32px;
  }
  .landing-cta-copy h2{
    font-size:30px;
  }
  .landing-cta-banner{
    padding:24px;
  }
  .landing-cta-art{
    min-height:370px;
  }
  .hero-phone.mini{
    left:50%;
    transform:translateX(-50%);
  }
  .hero-qr-stand.mini{
    right:50%;
    transform:translateX(50%);
    bottom:0;
  }
}
/* LANDING_PAGE_FRONT_END */



/* LANDING_PAGE_IMAGES_UPDATE_START */
.landing-page-images .landing-hero{
  padding-top: 42px;
}
.landing-page-images .landing-hero-grid{
  grid-template-columns: .95fr 1.05fr;
}
.landing-hero-image-wrap{
  position: relative;
  min-height: 610px;
  display: grid;
  place-items: center;
}
.landing-hero-image-wrap::before{
  content:"";
  position:absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(18,183,196,.20), rgba(18,183,196,0) 68%);
  filter: blur(8px);
}
.landing-hero-image{
  position: relative;
  z-index: 1;
  width: min(760px, 112%);
  max-width: none;
  transform: translateX(-18px);
  filter: drop-shadow(0 28px 42px rgba(6,55,102,.13));
}
.landing-image-showcase .image-card{
  padding: 18px;
  overflow: hidden;
}
.landing-image-showcase .image-card img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background:
    radial-gradient(circle at center, rgba(18,183,196,.08), transparent 55%),
    linear-gradient(180deg, #f7fbfd, #ffffff);
  border: 1px solid rgba(220,231,242,.95);
  border-radius: 22px;
  padding: 8px;
}
.landing-cta-art-image{
  display: grid;
  place-items: center;
  min-height: 250px;
}
.landing-cta-art-image img{
  width: min(430px, 110%);
  filter: drop-shadow(0 24px 38px rgba(0,0,0,.18));
}
.landing-page-images .landing-footer{
  margin-top: 0;
}
@media (max-width: 1100px){
  .landing-page-images .landing-hero-grid{
    grid-template-columns: 1fr;
  }
  .landing-hero-image-wrap{
    order: -1;
    min-height: auto;
  }
  .landing-hero-image{
    width: min(100%, 760px);
    transform: none;
  }
}
@media (max-width: 780px){
  .landing-page-images .landing-hero{
    padding-top: 24px;
  }
  .landing-hero-image{
    width: 115%;
    margin-inline: -7.5%;
  }
  .landing-image-showcase .image-card img{
    padding: 4px;
  }
  .landing-cta-art-image img{
    width: 115%;
  }
}
/* LANDING_PAGE_IMAGES_UPDATE_END */



/* SCG_FRONT_PAGE_CLEANUP_V1_START */
/* Keep the logo block size unchanged; this block only cleans spacing, scale, buttons, and CTA layout. */

.landing-page .landing-header{
  box-shadow: 0 8px 22px rgba(6,55,102,.045);
}

.landing-page .landing-header-inner{
  min-height: 76px;
  gap: 18px;
}

.landing-page .landing-nav{
  gap: 22px;
}

.landing-page .landing-nav a{
  font-size: 15px;
}

.landing-page .landing-header-actions{
  gap: 8px;
}

.landing-page .landing-header-actions .landing-button,
.landing-page .landing-header-actions .landing-link-button,
.landing-page .landing-header-actions .landing-login-button{
  min-height: 44px;
  padding: 0 17px;
  border-radius: 14px;
  font-size: 14px;
  white-space: nowrap;
}

.landing-login-button{
  border: 1px solid rgba(220,231,242,.98);
  background: rgba(255,255,255,.9);
  color: var(--navy);
  box-shadow: 0 10px 22px rgba(6,55,102,.045);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .22s ease;
}

.landing-login-button:hover{
  transform: translateY(-1px);
  border-color: rgba(18,183,196,.35);
  color: var(--blue);
  box-shadow: 0 14px 26px rgba(6,55,102,.08);
}

.landing-page-images .landing-hero{
  padding-top: 26px;
  padding-bottom: 10px;
}

.landing-page-images .landing-hero-grid{
  grid-template-columns: .92fr 1.08fr;
  gap: 22px;
  align-items: center;
}

.landing-page .landing-kicker{
  padding: 8px 13px;
  margin-bottom: 14px;
  font-size: 14px;
}

.landing-page .landing-hero-copy h1{
  font-size: clamp(34px, 4.25vw, 56px);
  line-height: 1.12;
  margin-bottom: 14px;
  letter-spacing: -.015em;
}

.landing-page .landing-hero-copy p{
  font-size: 17px;
  line-height: 1.85;
  max-width: 580px;
  margin-bottom: 18px;
}

.landing-page .landing-cta-row{
  gap: 10px;
}

.landing-page .landing-cta-row .landing-button{
  min-height: 46px;
  padding: 0 18px;
  border-radius: 15px;
  font-size: 15px;
}

.landing-page .landing-mini-points{
  margin-top: 18px;
  gap: 9px;
}

.landing-page .landing-mini-points span{
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13px;
}

.landing-page .landing-hero-image-wrap{
  min-height: 520px;
}

.landing-page .landing-hero-image-wrap::before{
  width: 440px;
  height: 440px;
  opacity: .85;
}

.landing-page .landing-hero-image{
  width: min(650px, 104%);
  transform: translateX(-10px);
}

.landing-page .landing-section{
  padding: 26px 0;
}

.landing-page .landing-section-head{
  margin-bottom: 18px;
}

.landing-page .landing-section-head h2{
  font-size: clamp(28px, 3vw, 36px);
  margin-bottom: 8px;
}

.landing-page .landing-section-head p{
  font-size: 15px;
}

.landing-page .landing-feature-grid,
.landing-page .landing-steps,
.landing-page .landing-showcase-grid,
.landing-page .landing-benefits{
  gap: 14px;
}

.landing-page .landing-feature-card,
.landing-page .landing-step,
.landing-page .showcase-card,
.landing-page .benefit-item{
  padding: 20px;
  border-radius: 22px;
  box-shadow: 0 12px 26px rgba(6,55,102,.06);
}

.landing-page .landing-feature-card h3,
.landing-page .landing-step h3{
  font-size: 20px;
  margin: 11px 0 7px;
}

.landing-page .landing-feature-card p,
.landing-page .landing-step p,
.landing-page .benefit-item span{
  font-size: 14px;
  line-height: 1.75;
}

.landing-page .landing-icon{
  width: 50px;
  height: 50px;
  border-radius: 16px;
  font-size: 17px;
}

.landing-page .landing-image-showcase .image-card{
  padding: 14px;
}

.landing-page .landing-image-showcase .image-card img{
  border-radius: 18px;
}

.landing-page .showcase-head{
  font-size: 16px;
  margin-bottom: 10px;
}

.landing-page .landing-tags-grid{
  gap: 10px;
}

.landing-page .landing-tag{
  padding: 14px 12px;
  border-radius: 16px;
  font-size: 15px;
}

.landing-page .benefit-item strong{
  font-size: 18px;
  margin-bottom: 6px;
}

/* Cleaner final CTA banner */
.landing-page .landing-cta-banner{
  width: min(1040px, 100%);
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: center;
  padding: 32px 38px;
  border-radius: 28px;
  min-height: 270px;
  overflow: hidden;
}

.landing-page .landing-cta-copy h2{
  font-size: clamp(30px, 3.5vw, 42px);
  line-height: 1.35;
  margin-bottom: 10px;
}

.landing-page .landing-cta-copy p{
  font-size: 16px;
  line-height: 1.85;
  max-width: 620px;
  margin-bottom: 16px;
}

/* Put the problematic transparent image inside a small glass card so it no longer looks broken on the dark banner. */
.landing-page .landing-cta-art-image{
  min-height: 0;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 100%;
  max-width: 310px;
  padding: 14px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 10%, rgba(255,255,255,.20), transparent 60%),
    rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

.landing-page .landing-cta-art-image img{
  width: 100%;
  max-width: 280px;
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(0,0,0,.16));
}

.landing-page .landing-footer{
  padding-top: 36px;
}

@media (max-width: 1100px){
  .landing-page-images .landing-hero-grid{
    grid-template-columns: 1fr;
  }

  .landing-page .landing-hero-copy{
    text-align: center;
  }

  .landing-page .landing-hero-copy p{
    margin-inline: auto;
  }

  .landing-page .landing-cta-row,
  .landing-page .landing-mini-points{
    justify-content: center;
  }

  .landing-page .landing-hero-image-wrap{
    order: -1;
    min-height: auto;
  }

  .landing-page .landing-hero-image{
    width: min(700px, 100%);
    transform: none;
  }

  .landing-page .landing-cta-banner{
    grid-template-columns: 1fr;
    text-align: center;
  }

  .landing-page .landing-cta-banner .landing-cta-row{
    justify-content: center;
  }
}

@media (max-width: 780px){
  .landing-page .landing-header-inner{
    min-height: auto;
    padding: 12px 0;
  }

  .landing-page .landing-header-actions{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .landing-page .landing-header-actions .landing-button{
    grid-column: 1 / -1;
  }

  .landing-page .landing-header-actions .landing-button,
  .landing-page .landing-header-actions .landing-link-button,
  .landing-page .landing-header-actions .landing-login-button{
    width: 100%;
  }

  .landing-page .landing-hero-copy h1{
    font-size: 36px;
  }

  .landing-page .landing-hero-image{
    width: 108%;
    margin-inline: -4%;
  }

  .landing-page .landing-section{
    padding: 22px 0;
  }

  .landing-page .landing-cta-banner{
    padding: 24px 18px;
    border-radius: 24px;
  }

  .landing-page .landing-cta-art-image{
    max-width: 260px;
  }

  .landing-page .landing-cta-art-image img{
    max-width: 235px;
    max-height: 190px;
  }
}
/* SCG_FRONT_PAGE_CLEANUP_V1_END */



/* SCG_ONBOARDING_V1_START */
.onboarding-page{
  min-height:100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(18,183,196,.16), transparent 34%),
    radial-gradient(circle at 88% 20%, rgba(10,104,168,.14), transparent 30%),
    linear-gradient(180deg, #f8fbfe 0%, #eef6fb 100%);
}
.onboarding-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(0, 760px) 360px;
  gap:22px;
  align-items:start;
  justify-content:center;
  padding:34px 18px;
}
.onboarding-card,
.onboarding-side-card{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(220,231,242,.95);
  border-radius:30px;
  box-shadow:0 22px 56px rgba(6,55,102,.10);
}
.onboarding-card{
  padding:28px;
}
.onboarding-brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:22px;
}
.onboarding-brand img,
.onboarding-brand span{
  width:54px;
  height:54px;
  border-radius:16px;
  background:linear-gradient(135deg,var(--navy),var(--cyan));
  color:#fff;
  display:grid;
  place-items:center;
  font-weight:900;
  object-fit:contain;
}
.onboarding-brand strong{
  display:block;
  color:var(--navy);
  font-size:18px;
}
.onboarding-brand small{
  color:var(--muted);
}
.onboarding-head{
  margin-bottom:18px;
}
.onboarding-head span{
  display:inline-flex;
  padding:8px 13px;
  border-radius:999px;
  background:#edf7fb;
  color:var(--blue);
  font-weight:900;
  margin-bottom:12px;
}
.onboarding-head h1{
  margin:0 0 8px;
  color:var(--navy);
  font-size:34px;
  line-height:1.25;
}
.onboarding-head p{
  margin:0;
  color:var(--muted);
  line-height:1.8;
}
.onboarding-progress{
  display:flex;
  align-items:center;
  gap:10px;
  margin:20px 0;
}
.onboarding-progress span{
  width:38px;
  height:38px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#edf4fa;
  color:#6f8297;
  font-weight:900;
  position:relative;
}
.onboarding-progress span.active{
  color:#fff;
  background:linear-gradient(135deg,var(--blue),var(--cyan));
  box-shadow:0 10px 20px rgba(10,104,168,.16);
}
.onboarding-progress span:not(:last-child)::after{
  content:"";
  position:absolute;
  right:100%;
  width:34px;
  height:2px;
  background:#d8e6f2;
}
.onboarding-progress span.active:not(:last-child)::after{
  background:linear-gradient(90deg,var(--cyan),var(--blue));
}
.onboarding-form{
  display:grid;
  gap:18px;
}
.onboarding-step{
  display:none;
}
.onboarding-step.active{
  display:grid;
  gap:16px;
}
.onboarding-step h2{
  margin:0;
  color:var(--navy);
  font-size:24px;
}
.onboarding-options{
  display:grid;
  gap:10px;
}
.onboarding-options label{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  background:#f7fbfd;
  border:1px solid var(--line);
  border-radius:16px;
  cursor:pointer;
}
.onboarding-options input{
  width:auto;
}
.onboarding-hp{
  display:none !important;
}
.onboarding-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:6px;
}
.onboarding-note{
  margin-top:18px;
  padding:13px 15px;
  border-radius:18px;
  background:#f5fbfd;
  border:1px solid #dcebf4;
  color:#61778e;
  font-weight:700;
}
.onboarding-note a{
  color:var(--blue);
}
.onboarding-side{
  position:sticky;
  top:22px;
}
.onboarding-side-card{
  padding:26px;
  background:
    linear-gradient(135deg, rgba(6,55,102,.97), rgba(10,104,168,.94) 58%, rgba(18,183,196,.86));
  color:#fff;
}
.onboarding-side-card span{
  display:inline-flex;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  font-weight:900;
  margin-bottom:12px;
}
.onboarding-side-card h2{
  margin:0 0 16px;
  font-size:28px;
  line-height:1.35;
}
.onboarding-side-card ul{
  padding:0;
  margin:0;
  list-style:none;
  display:grid;
  gap:12px;
}
.onboarding-side-card li{
  position:relative;
  padding-right:28px;
  line-height:1.7;
}
.onboarding-side-card li::before{
  content:"✓";
  position:absolute;
  right:0;
  top:0;
  width:20px;
  height:20px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.18);
  font-size:12px;
}
.onboarding-success{
  text-align:center;
  display:grid;
  justify-items:center;
  gap:12px;
  padding:24px 0;
}
.success-icon{
  width:70px;
  height:70px;
  border-radius:24px;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:34px;
  font-weight:900;
  background:linear-gradient(135deg,#087443,#12b76a);
  box-shadow:0 16px 28px rgba(8,116,67,.18);
}
.onboarding-success h1{
  margin:8px 0 0;
  color:var(--navy);
  font-size:34px;
}
.onboarding-success p{
  max-width:540px;
  color:var(--muted);
  line-height:1.9;
  margin:0;
}
.onboarding-admin-filters{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.status-pill{
  display:inline-flex;
  padding:7px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  background:#eef6fb;
  color:var(--blue);
  white-space:nowrap;
}
.status-new{background:#eef6ff;color:#0a68a8;}
.status-contacted{background:#fff7e6;color:#b54708;}
.status-converted{background:#ecfdf3;color:#087443;}
.status-archived{background:#f2f4f7;color:#475467;}
.onboarding-admin-status{
  display:grid;
  gap:8px;
  min-width:180px;
}
.onboarding-admin-status select{
  min-width:160px;
}
.request-notes{
  display:block;
  margin-top:8px;
  color:var(--muted);
  line-height:1.6;
}
@media (max-width: 1000px){
  .onboarding-shell{
    grid-template-columns:1fr;
    max-width:780px;
    margin:auto;
  }
  .onboarding-side{
    position:static;
  }
}
@media (max-width: 640px){
  .onboarding-shell{
    padding:18px 10px;
  }
  .onboarding-card{
    padding:20px;
    border-radius:24px;
  }
  .onboarding-head h1{
    font-size:28px;
  }
  .onboarding-actions .landing-button{
    width:100%;
  }
}
/* SCG_ONBOARDING_V1_END */



/* SCG_ONBOARDING_REFINED_V2_START */
.onboarding-page{
  min-height:100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(18,183,196,.16), transparent 33%),
    radial-gradient(circle at 88% 16%, rgba(10,104,168,.12), transparent 30%),
    linear-gradient(180deg, #f7fbfe 0%, #edf5fb 100%);
}
.onboarding-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(0, 760px) 340px;
  gap:22px;
  align-items:start;
  justify-content:center;
  padding:32px 18px 40px;
}
.onboarding-main{
  display:grid;
  gap:18px;
}
.onboarding-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 20px;
  border-radius:26px;
  border:1px solid rgba(218,230,242,.95);
  background:rgba(255,255,255,.86);
  box-shadow:0 20px 48px rgba(6,55,102,.08);
  backdrop-filter:blur(10px);
}
.onboarding-topbar-brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}
.onboarding-topbar-brand img,
.onboarding-topbar-brand span{
  width:74px;
  height:74px;
  border-radius:22px;
  object-fit:contain;
  background:#fff;
  border:1px solid #dbe7f1;
  box-shadow:0 12px 30px rgba(6,55,102,.10);
  display:grid;
  place-items:center;
  color:var(--navy);
  font-weight:900;
  flex-shrink:0;
  padding:8px;
}
.onboarding-topbar-brand-text{
  display:grid;
  gap:4px;
}
.onboarding-topbar-brand-text strong{
  color:var(--navy);
  font-size:26px;
  line-height:1.15;
}
.onboarding-topbar-brand-text small{
  color:var(--muted);
  font-size:15px;
}
.onboarding-topbar-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.onboarding-card,
.onboarding-side-card{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(220,231,242,.95);
  border-radius:30px;
  box-shadow:0 22px 56px rgba(6,55,102,.10);
}
.onboarding-card{
  padding:28px;
}
.onboarding-head{margin-bottom:18px;}
.onboarding-head span{
  display:inline-flex;
  padding:8px 13px;
  border-radius:999px;
  background:#edf7fb;
  color:var(--blue);
  font-weight:900;
  margin-bottom:12px;
}
.onboarding-head h1{
  margin:0 0 8px;
  color:var(--navy);
  font-size:34px;
  line-height:1.25;
}
.onboarding-head p{
  margin:0;
  color:var(--muted);
  line-height:1.8;
}
.onboarding-progress{
  display:flex;
  align-items:center;
  gap:10px;
  margin:20px 0;
}
.onboarding-progress span{
  width:38px;
  height:38px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#edf4fa;
  color:#6f8297;
  font-weight:900;
  position:relative;
}
.onboarding-progress span.active{
  color:#fff;
  background:linear-gradient(135deg,var(--blue),var(--cyan));
  box-shadow:0 10px 20px rgba(10,104,168,.16);
}
.onboarding-progress span:not(:last-child)::after{
  content:"";
  position:absolute;
  right:100%;
  width:34px;
  height:2px;
  background:#d8e6f2;
}
.onboarding-progress span.active:not(:last-child)::after{
  background:linear-gradient(90deg,var(--cyan),var(--blue));
}
.onboarding-form{display:grid;gap:18px;}
.onboarding-step{display:none;}
.onboarding-step.active{display:grid;gap:16px;}
.onboarding-step h2{margin:0;color:var(--navy);font-size:24px;}
.onboarding-options{display:grid;gap:10px;}
.onboarding-options label{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  background:#f7fbfd;
  border:1px solid var(--line);
  border-radius:16px;
  cursor:pointer;
}
.onboarding-options input{width:auto;}
.onboarding-hp{display:none !important;}
.onboarding-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:6px;
}
.onboarding-note{
  margin-top:18px;
  padding:13px 15px;
  border-radius:18px;
  background:#f5fbfd;
  border:1px solid #dcebf4;
  color:#61778e;
  font-weight:700;
}
.onboarding-note a{color:var(--blue);}
.onboarding-side{position:sticky;top:22px;}
.onboarding-side-card{
  padding:26px;
  background:linear-gradient(135deg, rgba(6,55,102,.97), rgba(10,104,168,.94) 58%, rgba(18,183,196,.86));
  color:#fff;
}
.onboarding-side-card span{
  display:inline-flex;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  font-weight:900;
  margin-bottom:12px;
}
.onboarding-side-card h2{margin:0 0 16px;font-size:28px;line-height:1.35;}
.onboarding-side-card ul{padding:0;margin:0;list-style:none;display:grid;gap:12px;}
.onboarding-side-card li{position:relative;padding-right:28px;line-height:1.7;}
.onboarding-side-card li::before{
  content:"✓";
  position:absolute;
  right:0;
  top:0;
  width:20px;
  height:20px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.18);
  font-size:12px;
}
.onboarding-success{text-align:center;display:grid;justify-items:center;gap:12px;padding:24px 0;}
.success-icon{
  width:70px;height:70px;border-radius:24px;display:grid;place-items:center;color:#fff;font-size:34px;font-weight:900;
  background:linear-gradient(135deg,#087443,#12b76a);box-shadow:0 16px 28px rgba(8,116,67,.18);
}
.onboarding-success h1{margin:8px 0 0;color:var(--navy);font-size:34px;}
.onboarding-success p{max-width:540px;color:var(--muted);line-height:1.9;margin:0;}
.landing-button.tertiary{
  background:#fff;
  color:var(--navy);
  border:1px solid #cfe0ee;
  box-shadow:none;
}
.onboarding-admin-filters{display:flex;gap:8px;flex-wrap:wrap;}
.status-pill{display:inline-flex;padding:7px 10px;border-radius:999px;font-size:12px;font-weight:900;background:#eef6fb;color:var(--blue);white-space:nowrap;}
.status-new{background:#eef6ff;color:#0a68a8;}
.status-contacted{background:#fff7e6;color:#b54708;}
.status-converted{background:#ecfdf3;color:#087443;}
.status-archived{background:#f2f4f7;color:#475467;}
.onboarding-admin-status{display:grid;gap:8px;min-width:180px;}
.onboarding-admin-status select{min-width:160px;}
.request-notes{display:block;margin-top:8px;color:var(--muted);line-height:1.6;}
@media (max-width: 1000px){
  .onboarding-shell{grid-template-columns:1fr;max-width:780px;margin:auto;}
  .onboarding-side{position:static;}
}
@media (max-width: 720px){
  .onboarding-topbar{padding:14px 16px;flex-direction:column;align-items:stretch;}
  .onboarding-topbar-brand{justify-content:center;text-align:center;}
  .onboarding-topbar-actions{justify-content:center;}
  .onboarding-topbar-brand img,
  .onboarding-topbar-brand span{width:84px;height:84px;}
}
@media (max-width: 640px){
  .onboarding-shell{padding:18px 10px;}
  .onboarding-card{padding:20px;border-radius:24px;}
  .onboarding-head h1{font-size:28px;}
  .onboarding-actions .landing-button,
  .onboarding-topbar-actions .landing-button{width:100%;justify-content:center;}
  .onboarding-topbar-brand-text strong{font-size:22px;}
}
/* SCG_ONBOARDING_REFINED_V2_END */



/* SCG_ANALYTICS_BILLING_DESIGN_V1_START */
.analytics-hero,
.billing-modern-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  position: relative;
}
.analytics-hero::before,
.billing-modern-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(18,183,196,.12), transparent 36%),
    radial-gradient(circle at 100% 20%, rgba(10,104,168,.10), transparent 36%);
  pointer-events: none;
}
.analytics-hero > *,
.billing-modern-hero > * {
  position: relative;
  z-index: 1;
}
.analytics-kicker,
.billing-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(18,183,196,.10);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 10px;
}
.analytics-hero h2,
.billing-modern-hero h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 30px;
  line-height: 1.35;
}
.analytics-hero p,
.billing-modern-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}
.analytics-hero-number,
.billing-modern-price {
  min-width: 190px;
  padding: 18px;
  border-radius: 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--navy), var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 18px 34px rgba(6,55,102,.16);
}
.analytics-hero-number strong,
.billing-modern-price strong {
  display: block;
  font-size: 38px;
  line-height: 1;
  margin-bottom: 8px;
}
.analytics-hero-number span,
.billing-modern-price span,
.billing-modern-price small {
  display: block;
  color: rgba(255,255,255,.9);
  font-weight: 700;
}
.billing-modern-price small {
  margin-top: 6px;
  font-size: 12px;
}
.analytics-metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.analytics-metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 12px 24px rgba(6,55,102,.055);
}
.analytics-metric span,
.analytics-metric small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.analytics-metric strong {
  display: block;
  color: var(--navy);
  font-size: 28px;
  margin: 8px 0 4px;
}
.analytics-grid,
.billing-modern-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
  margin-top: 16px;
}
.analytics-chart-panel,
.analytics-list-panel {
  min-height: 280px;
}
.analytics-bars {
  height: 220px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding-top: 12px;
}
.analytics-bar-wrap {
  flex: 1;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  align-items: end;
}
.analytics-bar-wrap span {
  display: block;
  width: 100%;
  min-height: 4px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 8px 18px rgba(10,104,168,.14);
}
.analytics-bar-wrap small {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}
.analytics-progress-row {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.analytics-progress-row:last-child {
  border-bottom: 0;
}
.analytics-progress-row div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.analytics-progress-row strong {
  color: var(--navy);
}
.analytics-progress-row span {
  color: var(--muted);
  font-size: 13px;
}
.analytics-progress-row em,
.usage-row em {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: #edf4fa;
  overflow: hidden;
}
.analytics-progress-row i,
.usage-row i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.analytics-visits {
  display: grid;
  gap: 10px;
}
.analytics-visit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbfd;
}
.analytics-visit strong,
.analytics-visit span,
.analytics-visit small {
  display: block;
}
.analytics-visit strong {
  color: var(--navy);
}
.analytics-visit span,
.analytics-visit small {
  color: var(--muted);
  font-size: 12px;
}
.billing-modern-hero {
  padding: 24px;
}
.billing-modern-copy {
  display: grid;
  justify-items: start;
}
.billing-modern-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.billing-modern-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.billing-info-card h2,
.billing-warning-card h2 {
  margin: 0 0 14px;
  color: var(--navy);
}
.billing-info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.billing-info-row:last-child {
  border-bottom: 0;
}
.billing-info-row span {
  color: var(--muted);
  font-weight: 700;
}
.billing-info-row strong {
  color: var(--navy);
}
.billing-message {
  margin: 0;
  padding: 14px;
  border-radius: 18px;
  line-height: 1.8;
  font-weight: 800;
}
.billing-message.info {
  background: #eef7fb;
  color: #0a68a8;
}
.billing-message.success {
  background: #ecfdf3;
  color: #087443;
}
.billing-message.warning {
  background: #fff7e6;
  color: #b54708;
}
.billing-message.danger {
  background: #fff1f3;
  color: #b42318;
}
.usage-row {
  display: grid;
  gap: 9px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.usage-row:last-child {
  border-bottom: 0;
}
.usage-row div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.usage-row strong {
  color: var(--navy);
}
.usage-row span {
  color: var(--muted);
  font-weight: 800;
}
.billing-history-list {
  display: grid;
  gap: 10px;
}
.billing-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f8fbfd;
}
.billing-history-row strong,
.billing-history-row span,
.billing-history-row small {
  display: block;
}
.billing-history-row strong {
  color: var(--navy);
}
.billing-history-row span,
.billing-history-row small {
  color: var(--muted);
  font-size: 12px;
}
.billing-modern-hero.status-active .billing-status-chip {
  background: #ecfdf3;
  color: #087443;
}
.billing-modern-hero.status-trial .billing-status-chip {
  background: #eef7fb;
  color: #0a68a8;
}
.billing-modern-hero.status-overdue .billing-status-chip,
.billing-modern-hero.status-expired .billing-status-chip,
.billing-modern-hero.status-suspended .billing-status-chip {
  background: #fff1f3;
  color: #b42318;
}
@media (max-width: 1180px) {
  .analytics-metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .analytics-grid,
  .billing-modern-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .analytics-hero,
  .billing-modern-hero {
    grid-template-columns: 1fr;
  }
  .analytics-hero-number,
  .billing-modern-price {
    min-width: 0;
  }
  .analytics-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .analytics-bars {
    gap: 5px;
  }
}
@media (max-width: 520px) {
  .analytics-metrics-grid {
    grid-template-columns: 1fr;
  }
}
/* SCG_ANALYTICS_BILLING_DESIGN_V1_END */



/* SCG_ADMIN_SEPARATION_LOGIN_UI_V1_START */
.login-modern-page{
  min-height:100vh;
  background:
    radial-gradient(circle at 14% 12%, rgba(18,183,196,.16), transparent 32%),
    radial-gradient(circle at 86% 14%, rgba(10,104,168,.13), transparent 30%),
    linear-gradient(180deg, #f7fbfe 0%, #edf5fb 100%);
}
.login-modern-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(0, 760px) 360px;
  gap:22px;
  align-items:start;
  justify-content:center;
  padding:34px 18px 40px;
}
.login-modern-main{
  display:grid;
  gap:18px;
}
.login-modern-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 20px;
  border-radius:26px;
  border:1px solid rgba(218,230,242,.95);
  background:rgba(255,255,255,.88);
  box-shadow:0 20px 48px rgba(6,55,102,.08);
  backdrop-filter:blur(10px);
}
.login-modern-brand{
  display:flex;
  align-items:center;
  gap:14px;
}
.login-modern-brand img,
.login-modern-brand span{
  width:74px;
  height:74px;
  border-radius:22px;
  object-fit:contain;
  background:#fff;
  border:1px solid #dbe7f1;
  box-shadow:0 12px 30px rgba(6,55,102,.10);
  display:grid;
  place-items:center;
  color:var(--navy);
  font-weight:900;
  padding:8px;
  flex-shrink:0;
}
.login-modern-brand strong{
  display:block;
  color:var(--navy);
  font-size:26px;
  line-height:1.15;
}
.login-modern-brand small{
  display:block;
  color:var(--muted);
  font-size:15px;
  margin-top:4px;
}
.login-modern-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.login-modern-card,
.login-side-card{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(220,231,242,.95);
  border-radius:30px;
  box-shadow:0 22px 56px rgba(6,55,102,.10);
}
.login-modern-card{
  padding:30px;
}
.login-modern-head span{
  display:inline-flex;
  padding:8px 13px;
  border-radius:999px;
  background:#edf7fb;
  color:var(--blue);
  font-weight:900;
  margin-bottom:12px;
}
.login-modern-head h1{
  margin:0 0 8px;
  color:var(--navy);
  font-size:38px;
  line-height:1.2;
}
.login-modern-head p{
  margin:0 0 20px;
  color:var(--muted);
  line-height:1.8;
}
.login-modern-form{
  display:grid;
  gap:16px;
}
.login-modern-form input{
  font-size:16px;
}
.login-submit{
  width:100%;
  min-height:54px;
}
.login-modern-note{
  margin-top:18px;
  padding:14px 16px;
  border-radius:18px;
  background:#f5fbfd;
  border:1px solid #dcebf4;
  color:#61778e;
  font-weight:700;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.login-modern-note a{
  color:var(--blue);
}
.login-modern-side{
  position:sticky;
  top:24px;
}
.login-side-card{
  padding:28px;
  background:linear-gradient(135deg, rgba(6,55,102,.97), rgba(10,104,168,.94) 58%, rgba(18,183,196,.86));
  color:#fff;
}
.login-side-card > span{
  display:inline-flex;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  font-weight:900;
  margin-bottom:14px;
}
.login-side-card h2{
  margin:0 0 12px;
  font-size:30px;
  line-height:1.35;
}
.login-side-card p{
  margin:0 0 18px;
  color:rgba(255,255,255,.88);
  line-height:1.8;
}
.login-side-list{
  display:grid;
  gap:12px;
}
.login-side-list div{
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.13);
}
.login-side-list strong,
.login-side-list small{
  display:block;
}
.login-side-list small{
  margin-top:5px;
  color:rgba(255,255,255,.82);
  line-height:1.6;
}
.landing-button.tertiary{
  background:#fff;
  color:var(--navy);
  border:1px solid #cfe0ee;
  box-shadow:none;
}
.sidebar-section-label{
  margin:14px 10px 6px;
  color:#7a8fa3;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.admin-switch-link{
  background:linear-gradient(135deg, rgba(10,104,168,.10), rgba(18,183,196,.12)) !important;
  border:1px solid rgba(18,183,196,.22) !important;
  color:var(--navy) !important;
  font-weight:900 !important;
}
.admin-dashboard-mode .sidebar nav a.active,
.admin-dashboard-mode .sidebar-nav-group a.active{
  background:linear-gradient(135deg, rgba(6,55,102,.12), rgba(18,183,196,.10));
  color:var(--navy);
}
.restaurant-dashboard-mode .dashboard-top-ribbon-badge{
  background:linear-gradient(135deg,var(--blue),var(--cyan));
}
.admin-dashboard-mode .dashboard-top-ribbon-badge{
  background:linear-gradient(135deg,var(--navy),var(--blue));
}
.restaurant-brand-card{
  background:linear-gradient(135deg, rgba(10,104,168,.95), rgba(18,183,196,.88));
}
.admin-brand-card{
  background:linear-gradient(135deg, rgba(6,55,102,.98), rgba(10,104,168,.95), rgba(11,141,152,.88));
}
@media (max-width: 1000px){
  .login-modern-shell{
    grid-template-columns:1fr;
    max-width:780px;
    margin:auto;
  }
  .login-modern-side{
    position:static;
  }
}
@media (max-width: 720px){
  .login-modern-shell{
    padding:18px 10px;
  }
  .login-modern-topbar{
    flex-direction:column;
    align-items:stretch;
    text-align:center;
  }
  .login-modern-brand{
    justify-content:center;
  }
  .login-modern-actions{
    justify-content:center;
  }
  .login-modern-actions .landing-button{
    width:100%;
  }
  .login-modern-card{
    padding:22px;
    border-radius:24px;
  }
  .login-modern-head h1{
    font-size:32px;
  }
}
/* SCG_ADMIN_SEPARATION_LOGIN_UI_V1_END */



/* SCG_REMOVE_RESTAURANT_DASHBOARD_BRAND_BLOCKS_START */
/* Hide the restaurant dashboard promo box and top banner only.
   The SCG Admin dashboard branding remains visible. */

.restaurant-dashboard-mode .restaurant-brand-card,
.restaurant-dashboard-mode .sidebar-brand-card.restaurant-brand-card,
.restaurant-dashboard-mode .dashboard-top-ribbon {
  display: none !important;
}

.restaurant-dashboard-mode .sidebar nav,
.restaurant-dashboard-mode .sidebar-nav-group {
  margin-top: 14px;
}

.restaurant-dashboard-mode .dashboard-main {
  padding-top: 20px;
}
/* SCG_REMOVE_RESTAURANT_DASHBOARD_BRAND_BLOCKS_END */



/* SCG_PRODUCTS_MOBILE_RESPONSIVE_V1_START */
/* Product page mobile/responsive refinement */

.products-dashboard-page .product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.products-dashboard-page .product-toolbar h2 {
  margin: 0 0 4px;
  color: var(--navy);
}

.products-dashboard-page .product-toolbar p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.products-dashboard-page .product-toolbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.products-dashboard-page .product-toolbar-actions input,
.products-dashboard-page .product-toolbar-actions select {
  min-width: 220px;
}

.products-dashboard-page .product-table-wrap {
  overflow-x: auto;
}

.products-dashboard-page .product-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.products-dashboard-page .product-editor-main {
  min-width: 0;
}

.products-dashboard-page .product-editor-preview {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 20px;
}

.products-dashboard-page .preview-phone-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 14px 30px rgba(6,55,102,.08);
}

.products-dashboard-page .preview-phone-card img,
.products-dashboard-page .product-live-preview,
.products-dashboard-page .add-product-preview-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  background: #f7fbfd;
  border: 1px solid var(--line);
}

@media (max-width: 1100px) {
  .products-dashboard-page .product-editor-layout {
    grid-template-columns: 1fr;
  }

  .products-dashboard-page .product-editor-preview {
    position: static;
  }

  .products-dashboard-page .preview-phone-card {
    max-width: 520px;
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .products-dashboard-page .dashboard-main {
    padding: 12px;
  }

  .products-dashboard-page .page-title {
    display: grid;
    gap: 12px;
    align-items: start;
  }

  .products-dashboard-page .page-title h1 {
    font-size: 24px;
    line-height: 1.25;
  }

  .products-dashboard-page .page-title p {
    font-size: 13px;
    line-height: 1.65;
  }

  .products-dashboard-page .page-title .actions,
  .products-dashboard-page .actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .products-dashboard-page .page-title .btn,
  .products-dashboard-page .actions .btn,
  .products-dashboard-page button.btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .products-dashboard-page .panel {
    padding: 14px;
    border-radius: 20px;
  }

  .products-dashboard-page .form-grid {
    gap: 12px;
  }

  .products-dashboard-page .grid-2,
  .products-dashboard-page .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .products-dashboard-page input,
  .products-dashboard-page select,
  .products-dashboard-page textarea {
    min-height: 46px;
    font-size: 16px;
  }

  .products-dashboard-page textarea {
    min-height: 105px;
  }

  .products-dashboard-page .editor-checks {
    gap: 10px;
  }

  .products-dashboard-page .modern-check,
  .products-dashboard-page .grid-3 > label {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    background: #f7fbfd;
    border: 1px solid var(--line);
    border-radius: 14px;
  }

  .products-dashboard-page .modern-check input,
  .products-dashboard-page .grid-3 > label input[type="checkbox"] {
    width: auto;
    min-height: auto;
  }

  .products-dashboard-page .product-toolbar {
    display: grid;
    gap: 12px;
  }

  .products-dashboard-page .product-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .products-dashboard-page .product-toolbar-actions input,
  .products-dashboard-page .product-toolbar-actions select {
    min-width: 0;
    width: 100%;
  }

  .products-dashboard-page .product-table-wrap,
  .products-dashboard-page .table-wrap.product-table-wrap {
    overflow: visible;
    padding: 0 !important;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .products-dashboard-page .product-table-wrap table,
  .products-dashboard-page #productsTable {
    display: block;
    width: 100%;
    min-width: 0 !important;
    border-collapse: separate;
  }

  .products-dashboard-page .product-table-wrap thead,
  .products-dashboard-page #productsTable thead {
    display: none;
  }

  .products-dashboard-page .product-table-wrap tbody,
  .products-dashboard-page #productsTable tbody {
    display: grid;
    gap: 12px;
  }

  .products-dashboard-page .product-table-wrap tr,
  .products-dashboard-page #productsTable tr {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-areas:
      "image product"
      "image category"
      "image price"
      "status status"
      "actions actions";
    gap: 8px 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(6,55,102,.055);
  }

  .products-dashboard-page .product-table-wrap td,
  .products-dashboard-page #productsTable td {
    display: block;
    border: 0 !important;
    padding: 0 !important;
    min-width: 0;
  }

  .products-dashboard-page .product-table-wrap td:nth-child(1),
  .products-dashboard-page #productsTable td:nth-child(1) {
    grid-area: image;
    align-self: start;
  }

  .products-dashboard-page .product-table-wrap td:nth-child(1) img,
  .products-dashboard-page #productsTable td:nth-child(1) img,
  .products-dashboard-page .thumb {
    width: 76px !important;
    height: 76px !important;
    border-radius: 16px;
    object-fit: cover;
  }

  .products-dashboard-page .product-table-wrap td:nth-child(2),
  .products-dashboard-page #productsTable td:nth-child(2) {
    grid-area: product;
  }

  .products-dashboard-page .product-table-wrap td:nth-child(2) strong,
  .products-dashboard-page #productsTable td:nth-child(2) strong {
    display: block;
    color: var(--navy);
    font-size: 16px;
    line-height: 1.35;
  }

  .products-dashboard-page .product-table-wrap td:nth-child(2) small,
  .products-dashboard-page #productsTable td:nth-child(2) small {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.55;
    font-size: 12px;
    margin-top: 3px;
  }

  .products-dashboard-page .product-table-wrap td:nth-child(3),
  .products-dashboard-page #productsTable td:nth-child(3) {
    grid-area: category;
    color: var(--muted);
    font-size: 13px;
  }

  .products-dashboard-page .product-table-wrap td:nth-child(3)::before,
  .products-dashboard-page #productsTable td:nth-child(3)::before {
    content: "القسم: ";
    color: var(--navy);
    font-weight: 800;
  }

  .products-dashboard-page .product-table-wrap td:nth-child(4),
  .products-dashboard-page #productsTable td:nth-child(4) {
    grid-area: price;
    color: var(--blue);
    font-size: 15px;
    font-weight: 900;
  }

  .products-dashboard-page .product-table-wrap td:nth-child(4)::before,
  .products-dashboard-page #productsTable td:nth-child(4)::before {
    content: "السعر: ";
    color: var(--navy);
    font-weight: 800;
  }

  .products-dashboard-page .product-table-wrap td:nth-child(5),
  .products-dashboard-page #productsTable td:nth-child(5) {
    grid-area: status;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 4px !important;
  }

  .products-dashboard-page .product-table-wrap td:nth-child(5)::before,
  .products-dashboard-page #productsTable td:nth-child(5)::before {
    content: "الحالة";
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }

  .products-dashboard-page .product-table-wrap td:nth-child(6),
  .products-dashboard-page #productsTable td:nth-child(6) {
    grid-area: actions;
    padding-top: 6px !important;
  }

  .products-dashboard-page .product-table-wrap td.actions,
  .products-dashboard-page #productsTable td.actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .products-dashboard-page .product-table-wrap td.actions .btn,
  .products-dashboard-page #productsTable td.actions .btn,
  .products-dashboard-page .product-table-wrap td.actions form,
  .products-dashboard-page #productsTable td.actions form {
    width: 100%;
  }

  .products-dashboard-page .product-table-wrap td.actions form,
  .products-dashboard-page #productsTable td.actions form {
    margin: 0;
  }

  .products-dashboard-page .product-table-wrap td.actions .btn,
  .products-dashboard-page #productsTable td.actions .btn {
    min-height: 42px;
    padding: 9px 10px;
  }

  .products-dashboard-page .preview-phone-card {
    max-width: none;
  }
}

@media (max-width: 420px) {
  .products-dashboard-page .product-table-wrap tr,
  .products-dashboard-page #productsTable tr {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .products-dashboard-page .product-table-wrap td:nth-child(1) img,
  .products-dashboard-page #productsTable td:nth-child(1) img,
  .products-dashboard-page .thumb {
    width: 64px !important;
    height: 64px !important;
  }

  .products-dashboard-page .product-table-wrap td.actions,
  .products-dashboard-page #productsTable td.actions {
    grid-template-columns: 1fr;
  }
}
/* SCG_PRODUCTS_MOBILE_RESPONSIVE_V1_END */



/* SCG_MERGED_QR_AND_CLEANUP_V1_START */
/* Remove the bottom restaurant-console box only from the restaurant dashboard */
.restaurant-dashboard-mode .sidebar-powered-box {
  display: none !important;
}

.restaurant-dashboard-mode .logout {
  margin-top: auto;
}

/* Merged QR + minimal analytics page */
.merged-qr-page .merged-qr-title {
  margin-bottom: 16px;
}

.merged-qr-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.merged-qr-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(18,183,196,.13), transparent 32%),
    radial-gradient(circle at 100% 30%, rgba(10,104,168,.10), transparent 34%);
  pointer-events: none;
}

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

.merged-qr-kicker {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(18,183,196,.10);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 10px;
}

.merged-qr-main h2 {
  color: var(--navy);
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.3;
}

.merged-qr-main p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 14px;
}

.merged-qr-url {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f7fbfd;
  direction: ltr;
}

.merged-qr-url input {
  border: 0;
  box-shadow: none;
  background: transparent;
  color: var(--navy);
  font-weight: 800;
  direction: ltr;
  text-align: left;
}

.merged-qr-url input:focus {
  box-shadow: none;
}

.merged-qr-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.merged-qr-preview {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 16px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(6,55,102,.07);
}

.merged-qr-preview img {
  width: 210px;
  max-width: 100%;
  border-radius: 18px;
}

.merged-qr-preview small {
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.merged-qr-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.merged-metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 12px 24px rgba(6,55,102,.055);
}

.merged-metric span,
.merged-metric small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.merged-metric strong {
  display: block;
  color: var(--navy);
  font-size: 30px;
  margin: 8px 0 4px;
  line-height: 1;
}

.merged-qr-analytics-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
}

.merged-bars {
  height: 180px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding-top: 10px;
}

.merged-bar-wrap {
  flex: 1;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  align-items: end;
}

.merged-bar-wrap span {
  display: block;
  width: 100%;
  min-height: 4px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 8px 18px rgba(10,104,168,.14);
}

.merged-bar-wrap small {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.merged-source-row {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.merged-source-row:last-child {
  border-bottom: 0;
}

.merged-source-row div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.merged-source-row strong {
  color: var(--navy);
}

.merged-source-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.merged-source-row em {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: #edf4fa;
  overflow: hidden;
}

.merged-source-row i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.merged-qr-note {
  margin-top: 16px;
}

@media (max-width: 980px) {
  .merged-qr-hero,
  .merged-qr-analytics-grid {
    grid-template-columns: 1fr;
  }

  .merged-qr-preview {
    max-width: 330px;
    margin-inline: auto;
  }

  .merged-qr-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .merged-qr-page .dashboard-main {
    padding: 12px;
  }

  .merged-qr-hero {
    gap: 16px;
  }

  .merged-qr-main h2 {
    font-size: 24px;
  }

  .merged-qr-url {
    grid-template-columns: 1fr;
  }

  .merged-qr-url .btn {
    width: 100%;
    justify-content: center;
  }

  .merged-qr-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .merged-qr-actions .btn,
  .merged-qr-page .page-title .btn {
    width: 100%;
    justify-content: center;
  }

  .merged-qr-metrics {
    grid-template-columns: 1fr;
  }

  .merged-bars {
    gap: 5px;
  }
}
/* SCG_MERGED_QR_AND_CLEANUP_V1_END */



/* SCG_ADMIN_BILLING_OVERVIEW_FIX_V1_START */
/* Hide any leftover QR analytics sidebar link if it exists from browser cache or older markup. */
.restaurant-dashboard-mode .sidebar a[href$="/dashboard/qr-analytics"],
.restaurant-dashboard-mode .sidebar a[href*="/dashboard/qr-analytics"] {
  display: none !important;
}

/* Admin billing overview design */
.admin-billing-summary {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.admin-billing-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 22px rgba(6,55,102,.055);
}

.admin-billing-stat span,
.admin-billing-stat strong {
  display: block;
}

.admin-billing-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-billing-stat strong {
  color: var(--navy);
  font-size: 26px;
  margin-top: 6px;
  line-height: 1;
}

.admin-billing-list {
  display: grid;
  gap: 12px;
}

.admin-billing-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(6,55,102,.05);
}

.admin-billing-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-billing-main h3 {
  margin: 8px 0 4px;
  color: var(--navy);
  font-size: 20px;
}

.admin-billing-main p {
  margin: 0;
  color: var(--muted);
  direction: ltr;
  text-align: right;
}

.admin-billing-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef7fb;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.admin-billing-card.status-active .admin-billing-chip,
.admin-billing-stat.status-active {
  background: #ecfdf3;
  color: #087443;
}

.admin-billing-card.status-trial .admin-billing-chip,
.admin-billing-stat.status-trial {
  background: #eef7fb;
  color: #0a68a8;
}

.admin-billing-card.status-overdue .admin-billing-chip,
.admin-billing-card.status-expired .admin-billing-chip,
.admin-billing-card.status-suspended .admin-billing-chip,
.admin-billing-stat.status-overdue,
.admin-billing-stat.status-expired,
.admin-billing-stat.status-suspended {
  background: #fff1f3;
  color: #b42318;
}

.admin-billing-card.status-cancelled .admin-billing-chip,
.admin-billing-stat.status-cancelled {
  background: #f2f4f7;
  color: #475467;
}

.admin-billing-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-billing-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-billing-meta div {
  padding: 12px;
  border-radius: 16px;
  background: #f7fbfd;
  border: 1px solid var(--line);
}

.admin-billing-meta span,
.admin-billing-meta strong {
  display: block;
}

.admin-billing-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
}

.admin-billing-meta strong {
  color: var(--navy);
  font-size: 13px;
}

.admin-billing-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff7e6;
  color: #b54708;
  font-weight: 800;
  font-size: 13px;
}

@media (max-width: 1180px) {
  .admin-billing-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-billing-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-billing-summary,
  .admin-billing-meta {
    grid-template-columns: 1fr;
  }

  .admin-billing-main {
    display: grid;
  }

  .admin-billing-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .admin-billing-card-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
/* SCG_ADMIN_BILLING_OVERVIEW_FIX_V1_END */



/* SCG_DASHBOARD_FULL_POLISH_V1_START */
/* Restaurant dashboard full polish, excluding next-best-action box. */

.restaurant-dashboard-home .dashboard-main,
.restaurant-dashboard-mode .dashboard-main {
  --dash-gap: 16px;
  --dash-card-radius: 22px;
  --dash-soft-shadow: 0 12px 28px rgba(6,55,102,.065);
}

/* Overall density */
.restaurant-dashboard-home .dashboard-main,
.restaurant-dashboard-mode .dashboard-main {
  gap: var(--dash-gap);
}

.restaurant-dashboard-home .panel,
.restaurant-dashboard-mode .dashboard-main > .panel,
.restaurant-dashboard-mode .dashboard-home-grid .panel {
  border-radius: var(--dash-card-radius);
  box-shadow: var(--dash-soft-shadow);
  border-color: rgba(220,231,242,.96);
}

.restaurant-dashboard-home .panel-heading,
.restaurant-dashboard-mode .panel-heading {
  gap: 12px;
}

.restaurant-dashboard-home .panel-heading h2,
.restaurant-dashboard-mode .panel-heading h2 {
  font-size: 22px;
  line-height: 1.25;
}

.restaurant-dashboard-home .panel-heading p,
.restaurant-dashboard-mode .panel-heading p {
  font-size: 13px;
  line-height: 1.55;
}

/* Hero: shorter, cleaner, denser */
.restaurant-dashboard-home .dashboard-hero,
.restaurant-dashboard-mode .dashboard-hero {
  min-height: 0 !important;
  padding: 26px 28px !important;
  border-radius: 24px !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(6,55,102,.13);
}

.restaurant-dashboard-home .dashboard-hero-content,
.restaurant-dashboard-mode .dashboard-hero-content {
  display: grid;
  gap: 10px;
}

.restaurant-dashboard-home .hero-status-chips,
.restaurant-dashboard-mode .hero-status-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.restaurant-dashboard-home .dashboard-hero .eyebrow,
.restaurant-dashboard-mode .dashboard-hero .eyebrow,
.restaurant-dashboard-home .hero-chip,
.restaurant-dashboard-mode .hero-chip {
  margin: 0;
  padding: 7px 11px;
  min-height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.20);
}

.restaurant-dashboard-home .hero-chip.active,
.restaurant-dashboard-mode .hero-chip.active {
  background: rgba(16,185,129,.20);
}

.restaurant-dashboard-home .hero-chip.inactive,
.restaurant-dashboard-mode .hero-chip.inactive {
  background: rgba(248,113,113,.20);
}

.restaurant-dashboard-home .dashboard-hero h1,
.restaurant-dashboard-mode .dashboard-hero h1 {
  font-size: clamp(30px, 3vw, 44px) !important;
  line-height: 1.18 !important;
  margin: 0 !important;
}

.restaurant-dashboard-home .dashboard-hero p,
.restaurant-dashboard-mode .dashboard-hero p {
  max-width: 760px;
  font-size: 15px !important;
  line-height: 1.75 !important;
  margin: 0 !important;
}

.restaurant-dashboard-home .hero-actions,
.restaurant-dashboard-mode .hero-actions {
  gap: 9px !important;
  margin-top: 6px !important;
}

.restaurant-dashboard-home .hero-actions .btn,
.restaurant-dashboard-mode .hero-actions .btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 14px;
}

.restaurant-dashboard-home .btn.ghost,
.restaurant-dashboard-mode .btn.ghost {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
}

/* Hero link card with share/open/copy */
.restaurant-dashboard-home .dashboard-hero-card,
.restaurant-dashboard-mode .dashboard-hero-card {
  width: 100%;
  padding: 16px !important;
  border-radius: 20px !important;
  background: rgba(255,255,255,.13) !important;
  border: 1px solid rgba(255,255,255,.20) !important;
}

.restaurant-dashboard-home .dashboard-hero-card span,
.restaurant-dashboard-mode .dashboard-hero-card span {
  font-size: 12px;
  color: rgba(255,255,255,.86);
}

.restaurant-dashboard-home .dashboard-hero-card strong,
.restaurant-dashboard-mode .dashboard-hero-card strong {
  font-size: 13px;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.13);
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.restaurant-dashboard-home .menu-link-actions,
.restaurant-dashboard-mode .menu-link-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.restaurant-dashboard-home .menu-link-actions .btn,
.restaurant-dashboard-mode .menu-link-actions .btn {
  min-height: 38px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 12px;
  width: 100%;
}

.restaurant-dashboard-home #dashboardCopyStatus,
.restaurant-dashboard-mode #dashboardCopyStatus {
  margin-top: 8px;
}

/* Metrics: compact and meaningful */
.restaurant-dashboard-home .dashboard-metrics,
.restaurant-dashboard-mode .dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px !important;
  margin-bottom: 16px !important;
}

.restaurant-dashboard-home .premium-metric,
.restaurant-dashboard-mode .premium-metric {
  position: relative;
  min-height: 0 !important;
  padding: 16px 18px !important;
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: var(--dash-soft-shadow);
}

.restaurant-dashboard-home .premium-metric::before,
.restaurant-dashboard-mode .premium-metric::before {
  content: attr(data-icon);
  position: absolute;
  top: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(10,104,168,.10), rgba(18,183,196,.15));
  color: var(--blue);
  font-size: 15px;
  font-weight: 900;
}

.restaurant-dashboard-home .premium-metric span,
.restaurant-dashboard-mode .premium-metric span {
  font-size: 13px;
  font-weight: 900;
  color: var(--muted);
}

.restaurant-dashboard-home .premium-metric strong,
.restaurant-dashboard-mode .premium-metric strong {
  font-size: 32px !important;
  line-height: 1;
  margin: 8px 0;
  color: var(--navy);
}

.restaurant-dashboard-home .premium-metric small,
.restaurant-dashboard-mode .premium-metric small {
  font-size: 12px;
  color: var(--muted);
}

/* Quick actions: tighter and icon-based */
.restaurant-dashboard-home .dashboard-home-grid,
.restaurant-dashboard-mode .dashboard-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 16px !important;
  align-items: start;
  margin-bottom: 16px;
}

.restaurant-dashboard-home .dashboard-home-grid.lower,
.restaurant-dashboard-mode .dashboard-home-grid.lower {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
}

.restaurant-dashboard-home .quick-panel,
.restaurant-dashboard-mode .quick-panel {
  padding: 20px !important;
}

.restaurant-dashboard-home .quick-action-grid,
.restaurant-dashboard-mode .quick-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px !important;
}

.restaurant-dashboard-home .quick-action-grid a,
.restaurant-dashboard-mode .quick-action-grid a {
  position: relative;
  min-height: 78px !important;
  padding: 14px 54px 14px 14px !important;
  border-radius: 18px !important;
  display: grid;
  align-content: center;
  gap: 3px;
  background: linear-gradient(135deg, #f8fcfe, #edf7fb) !important;
  border: 1px solid rgba(18,183,196,.18) !important;
  box-shadow: none !important;
  transition: .18s ease;
}

.restaurant-dashboard-home .quick-action-grid a:hover,
.restaurant-dashboard-mode .quick-action-grid a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(6,55,102,.08) !important;
}

.restaurant-dashboard-home .quick-action-grid a::before,
.restaurant-dashboard-mode .quick-action-grid a::before {
  content: attr(data-icon);
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #fff;
  border: 1px solid rgba(220,231,242,.9);
  font-size: 13px;
  font-weight: 900;
}

.restaurant-dashboard-home .quick-action-grid a strong,
.restaurant-dashboard-mode .quick-action-grid a strong {
  font-size: 17px !important;
  color: var(--navy);
}

.restaurant-dashboard-home .quick-action-grid a span,
.restaurant-dashboard-mode .quick-action-grid a span {
  font-size: 12px !important;
  line-height: 1.45;
  color: var(--muted);
}

/* Readiness card: compact checklist */
.restaurant-dashboard-home .readiness-panel,
.restaurant-dashboard-mode .readiness-panel {
  padding: 20px !important;
}

.restaurant-dashboard-home .readiness-panel .panel-heading,
.restaurant-dashboard-mode .readiness-panel .panel-heading {
  align-items: flex-start;
}

.restaurant-dashboard-home .readiness-panel .panel-heading > strong,
.restaurant-dashboard-mode .readiness-panel .panel-heading > strong {
  min-width: 68px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #eef7fb;
  color: var(--blue);
  font-size: 22px;
}

.restaurant-dashboard-home .progress-track,
.restaurant-dashboard-mode .progress-track {
  height: 9px !important;
  border-radius: 999px;
  margin: 14px 0 !important;
}

.restaurant-dashboard-home .checklist,
.restaurant-dashboard-mode .checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.restaurant-dashboard-home .checklist li,
.restaurant-dashboard-mode .checklist li {
  margin: 0 !important;
  padding: 8px 30px 8px 10px !important;
  border-radius: 13px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  font-size: 12px !important;
  line-height: 1.35;
  color: #6b8095;
}

.restaurant-dashboard-home .checklist li.done,
.restaurant-dashboard-mode .checklist li.done {
  background: #ecfdf3;
  border-color: rgba(16,185,129,.20);
  color: #087443;
}

.restaurant-dashboard-home .checklist li::before,
.restaurant-dashboard-mode .checklist li::before {
  right: 9px !important;
  top: 50% !important;
  transform: translateY(-50%);
  width: 16px !important;
  height: 16px !important;
  font-size: 10px !important;
}

/* Public status card */
.restaurant-dashboard-home .public-preview-panel,
.restaurant-dashboard-mode .public-preview-panel {
  padding: 20px !important;
}

.restaurant-dashboard-home .status-line,
.restaurant-dashboard-mode .status-line {
  padding: 11px 0 !important;
}

.restaurant-dashboard-home .status-line span,
.restaurant-dashboard-mode .status-line span {
  font-size: 13px;
}

.restaurant-dashboard-home .status-line a,
.restaurant-dashboard-mode .status-line a {
  color: var(--blue);
  font-weight: 900;
}

.restaurant-dashboard-home .dashboard-note,
.restaurant-dashboard-mode .dashboard-note {
  border-radius: 16px;
  padding: 13px 14px;
  line-height: 1.65;
  font-size: 13px;
}

/* Recent products: denser and more premium */
.restaurant-dashboard-home .recent-products-list,
.restaurant-dashboard-mode .recent-products-list {
  display: grid;
  gap: 10px !important;
}

.restaurant-dashboard-home .recent-product-item,
.restaurant-dashboard-mode .recent-product-item {
  min-height: 64px;
  padding: 10px 12px !important;
  border-radius: 16px !important;
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: #f9fcfe !important;
  border: 1px solid var(--line);
}

.restaurant-dashboard-home .recent-product-item img,
.restaurant-dashboard-mode .recent-product-item img {
  width: 58px !important;
  height: 58px !important;
  border-radius: 14px !important;
  object-fit: cover;
}

.restaurant-dashboard-home .recent-product-info,
.restaurant-dashboard-mode .recent-product-info,
.restaurant-dashboard-home .recent-product-item > div,
.restaurant-dashboard-mode .recent-product-item > div {
  min-width: 0;
}

.restaurant-dashboard-home .recent-product-item strong,
.restaurant-dashboard-mode .recent-product-item strong {
  font-size: 15px;
  color: var(--navy);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.restaurant-dashboard-home .recent-product-item span,
.restaurant-dashboard-mode .recent-product-item span {
  font-size: 12px;
  color: var(--muted);
}

.restaurant-dashboard-home .recent-product-info small,
.restaurant-dashboard-mode .recent-product-info small {
  display: inline-flex;
  margin-top: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef7fb;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
}

.restaurant-dashboard-home .recent-product-side,
.restaurant-dashboard-mode .recent-product-side {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.restaurant-dashboard-home .recent-product-side b,
.restaurant-dashboard-mode .recent-product-side b,
.restaurant-dashboard-home .recent-product-item > b,
.restaurant-dashboard-mode .recent-product-item > b {
  color: var(--blue);
  font-size: 14px;
  white-space: nowrap;
}

.restaurant-dashboard-home .recent-product-side a,
.restaurant-dashboard-mode .recent-product-side a {
  color: var(--navy);
  background: #edf6fb;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 900;
}

/* Button hierarchy */
.restaurant-dashboard-home .btn,
.restaurant-dashboard-mode .btn {
  border-radius: 14px;
  font-weight: 900;
}

.restaurant-dashboard-home .btn.secondary,
.restaurant-dashboard-mode .btn.secondary {
  background: #f5fbfd;
  color: var(--navy);
  border-color: #d9e9f3;
  box-shadow: none;
}

.restaurant-dashboard-home .btn.danger,
.restaurant-dashboard-mode .btn.danger {
  background: #fff1f3;
}

/* Sidebar hierarchy and icons */
.restaurant-dashboard-mode .sidebar {
  padding-bottom: 18px;
}

.restaurant-dashboard-mode .sidebar-nav-group {
  display: grid;
  gap: 5px;
}

.restaurant-dashboard-mode .sidebar-nav-group a,
.restaurant-dashboard-mode .sidebar nav a {
  position: relative;
  min-height: 42px;
  padding: 10px 42px 10px 12px !important;
  border-radius: 14px;
  font-size: 14px;
}

.restaurant-dashboard-mode .sidebar-nav-group a::before,
.restaurant-dashboard-mode .sidebar nav a::before {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  text-align: center;
  color: var(--blue);
  opacity: .9;
  font-size: 13px;
}

.restaurant-dashboard-mode .sidebar a[href$="/dashboard"]::before { content: "⌂"; }
.restaurant-dashboard-mode .sidebar a[href*="/dashboard/profile"]::before { content: "●"; }
.restaurant-dashboard-mode .sidebar a[href*="/dashboard/customize"]::before { content: "◐"; }
.restaurant-dashboard-mode .sidebar a[href*="/dashboard/categories"]::before { content: "▦"; }
.restaurant-dashboard-mode .sidebar a[href*="/dashboard/products"]::before { content: "□"; }
.restaurant-dashboard-mode .sidebar a[href*="/dashboard/qr"]::before { content: "QR"; font-size: 10px; font-weight: 900; }
.restaurant-dashboard-mode .sidebar a[href*="/dashboard/billing"]::before { content: "◔"; }
.restaurant-dashboard-mode .sidebar a[href*="/dashboard/password"]::before { content: "⌕"; }

.restaurant-dashboard-mode .sidebar-section-label {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.restaurant-dashboard-mode .admin-switch-link {
  margin-top: 4px;
  background: linear-gradient(135deg, rgba(10,104,168,.10), rgba(18,183,196,.10)) !important;
  border: 1px solid rgba(18,183,196,.25) !important;
}

/* Responsive */
@media (max-width: 1180px) {
  .restaurant-dashboard-home .dashboard-metrics,
  .restaurant-dashboard-mode .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .restaurant-dashboard-home .dashboard-home-grid,
  .restaurant-dashboard-mode .dashboard-home-grid,
  .restaurant-dashboard-home .dashboard-home-grid.lower,
  .restaurant-dashboard-mode .dashboard-home-grid.lower {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .restaurant-dashboard-home .dashboard-hero,
  .restaurant-dashboard-mode .dashboard-hero {
    grid-template-columns: 1fr;
    padding: 22px !important;
  }

  .restaurant-dashboard-home .dashboard-hero-card,
  .restaurant-dashboard-mode .dashboard-hero-card {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .restaurant-dashboard-home .dashboard-main,
  .restaurant-dashboard-mode .dashboard-main {
    padding: 12px;
  }

  .restaurant-dashboard-home .dashboard-hero,
  .restaurant-dashboard-mode .dashboard-hero {
    border-radius: 22px !important;
    padding: 20px !important;
  }

  .restaurant-dashboard-home .dashboard-hero h1,
  .restaurant-dashboard-mode .dashboard-hero h1 {
    font-size: 30px !important;
  }

  .restaurant-dashboard-home .hero-actions,
  .restaurant-dashboard-mode .hero-actions,
  .restaurant-dashboard-home .menu-link-actions,
  .restaurant-dashboard-mode .menu-link-actions {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .restaurant-dashboard-home .hero-actions .btn,
  .restaurant-dashboard-mode .hero-actions .btn,
  .restaurant-dashboard-home .menu-link-actions .btn,
  .restaurant-dashboard-mode .menu-link-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .restaurant-dashboard-home .dashboard-metrics,
  .restaurant-dashboard-mode .dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .restaurant-dashboard-home .quick-action-grid,
  .restaurant-dashboard-mode .quick-action-grid,
  .restaurant-dashboard-home .checklist,
  .restaurant-dashboard-mode .checklist {
    grid-template-columns: 1fr;
  }

  .restaurant-dashboard-home .recent-product-item,
  .restaurant-dashboard-mode .recent-product-item {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .restaurant-dashboard-home .recent-product-side,
  .restaurant-dashboard-mode .recent-product-side,
  .restaurant-dashboard-home .recent-product-item > b,
  .restaurant-dashboard-mode .recent-product-item > b {
    grid-column: 1 / -1;
    justify-items: start;
  }
}
/* SCG_DASHBOARD_FULL_POLISH_V1_END */



/* SCG_DASHBOARD_CLEAN_ICON_FIX_V1_START */
/* Clean up the restaurant dashboard after the polish pass:
   - remove sidebar icons
   - remove metric card icons
   - remove quick-action generated icons
   - reduce hero title size
   - remove the "حالة المنيو" card
   - let latest products take the full width
*/

/* Remove sidebar icons completely */
.restaurant-dashboard-mode .sidebar-nav-group a::before,
.restaurant-dashboard-mode .sidebar nav a::before,
.restaurant-dashboard-mode .sidebar a[href$="/dashboard"]::before,
.restaurant-dashboard-mode .sidebar a[href*="/dashboard/profile"]::before,
.restaurant-dashboard-mode .sidebar a[href*="/dashboard/customize"]::before,
.restaurant-dashboard-mode .sidebar a[href*="/dashboard/categories"]::before,
.restaurant-dashboard-mode .sidebar a[href*="/dashboard/products"]::before,
.restaurant-dashboard-mode .sidebar a[href*="/dashboard/qr"]::before,
.restaurant-dashboard-mode .sidebar a[href*="/dashboard/billing"]::before,
.restaurant-dashboard-mode .sidebar a[href*="/dashboard/password"]::before {
  content: none !important;
  display: none !important;
}

.restaurant-dashboard-mode .sidebar-nav-group a,
.restaurant-dashboard-mode .sidebar nav a {
  padding: 10px 16px !important;
}

/* Remove icons from number/stat boxes */
.restaurant-dashboard-home .premium-metric::before,
.restaurant-dashboard-mode .premium-metric::before,
.restaurant-dashboard-home .dashboard-metrics .metric::before,
.restaurant-dashboard-mode .dashboard-metrics .metric::before {
  content: none !important;
  display: none !important;
}

.restaurant-dashboard-home .premium-metric,
.restaurant-dashboard-mode .premium-metric {
  padding: 18px 20px !important;
}

/* Remove generated icons from quick action cards too, to keep the design calmer */
.restaurant-dashboard-home .quick-action-grid a::before,
.restaurant-dashboard-mode .quick-action-grid a::before {
  content: none !important;
  display: none !important;
}

.restaurant-dashboard-home .quick-action-grid a,
.restaurant-dashboard-mode .quick-action-grid a {
  padding: 14px 18px !important;
}

/* Hero title: smaller and more professional */
.restaurant-dashboard-home .dashboard-hero h1,
.restaurant-dashboard-mode .dashboard-hero h1 {
  font-size: clamp(28px, 2.5vw, 38px) !important;
  line-height: 1.22 !important;
  letter-spacing: 0 !important;
}

.restaurant-dashboard-home .dashboard-hero p,
.restaurant-dashboard-mode .dashboard-hero p {
  font-size: 14px !important;
  line-height: 1.7 !important;
}

.restaurant-dashboard-home .dashboard-hero,
.restaurant-dashboard-mode .dashboard-hero {
  padding: 24px 26px !important;
}

/* Remove "حالة المنيو" card and make latest products full width */
.restaurant-dashboard-home .public-preview-panel,
.restaurant-dashboard-mode .public-preview-panel {
  display: none !important;
}

.restaurant-dashboard-home .dashboard-home-grid.lower,
.restaurant-dashboard-mode .dashboard-home-grid.lower {
  grid-template-columns: 1fr !important;
}

.restaurant-dashboard-home .dashboard-home-grid.lower > section,
.restaurant-dashboard-mode .dashboard-home-grid.lower > section {
  width: 100%;
}

/* Improve latest products now that it has full width */
.restaurant-dashboard-home .dashboard-home-grid.lower .recent-products-list,
.restaurant-dashboard-mode .dashboard-home-grid.lower .recent-products-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
  gap: 12px !important;
}

.restaurant-dashboard-home .dashboard-home-grid.lower .recent-product-item,
.restaurant-dashboard-mode .dashboard-home-grid.lower .recent-product-item {
  min-height: 72px;
}

@media (max-width: 900px) {
  .restaurant-dashboard-home .dashboard-home-grid.lower .recent-products-list,
  .restaurant-dashboard-mode .dashboard-home-grid.lower .recent-products-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .restaurant-dashboard-home .dashboard-hero h1,
  .restaurant-dashboard-mode .dashboard-hero h1 {
    font-size: 28px !important;
  }

  .restaurant-dashboard-home .dashboard-hero,
  .restaurant-dashboard-mode .dashboard-hero {
    padding: 20px !important;
  }
}
/* SCG_DASHBOARD_CLEAN_ICON_FIX_V1_END */



/* SCG_GROWTH_FEATURES_V1_START */
.scg-admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.scg-admin-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 12px 26px rgba(6,55,102,.06);
}
.scg-admin-stat span,
.scg-admin-stat strong,
.scg-admin-stat small {
  display: block;
}
.scg-admin-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.scg-admin-stat strong {
  color: var(--navy);
  font-size: 30px;
  margin: 8px 0 4px;
  line-height: 1;
}
.scg-admin-stat small {
  color: var(--muted);
  font-size: 12px;
}
.scg-admin-stat.urgent { background:#eef7fb; }
.scg-admin-stat.warning { background:#fff7e6; }
.scg-admin-stat.danger { background:#fff1f3; }
.scg-admin-overview-grid,
.qr-materials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.scg-mini-list,
.activity-list,
.onboarding-enhanced-list {
  display: grid;
  gap: 10px;
}
.scg-mini-row,
.activity-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbfd;
}
.scg-mini-row strong,
.scg-mini-row span,
.activity-row strong,
.activity-row span,
.activity-row small {
  display: block;
}
.scg-mini-row strong,
.activity-row strong {
  color: var(--navy);
}
.scg-mini-row span,
.activity-row span,
.activity-row small,
.activity-row time {
  color: var(--muted);
  font-size: 12px;
}
.activity-list-full .activity-row {
  align-items: start;
}
.onboarding-enhanced-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(6,55,102,.05);
}
.onboarding-enhanced-main {
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  margin-bottom:12px;
}
.onboarding-enhanced-main h3 {
  margin: 8px 0 4px;
  color: var(--navy);
  font-size: 21px;
}
.onboarding-enhanced-main p {
  margin:0;
  color:var(--muted);
}
.onboarding-enhanced-actions {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.onboarding-enhanced-actions form {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.onboarding-enhanced-meta,
.login-credentials {
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:10px;
}
.onboarding-enhanced-meta div,
.login-credentials div {
  padding:12px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#f8fbfd;
}
.onboarding-enhanced-meta span,
.login-credentials span {
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  margin-bottom:5px;
}
.onboarding-enhanced-meta strong,
.login-credentials strong {
  display:block;
  color:var(--navy);
  font-size:13px;
  word-break:break-word;
}
.created-account-box textarea {
  width:100%;
  min-height:190px;
  margin-top:14px;
  direction:ltr;
  text-align:left;
}
.qr-materials-preview-card {
  align-self:start;
}
.qr-materials-preview-actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:14px 0;
}
@media (max-width: 1180px) {
  .scg-admin-summary-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
  .onboarding-enhanced-meta,
  .login-credentials {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 820px) {
  .scg-admin-overview-grid,
  .qr-materials-grid {
    grid-template-columns: 1fr;
  }
  .scg-admin-summary-grid,
  .onboarding-enhanced-meta,
  .login-credentials {
    grid-template-columns: 1fr;
  }
  .onboarding-enhanced-main,
  .scg-mini-row,
  .activity-row {
    display:grid;
  }
  .onboarding-enhanced-actions,
  .onboarding-enhanced-actions form {
    display:grid;
    grid-template-columns:1fr;
  }
  .onboarding-enhanced-actions .btn,
  .onboarding-enhanced-actions select {
    width:100%;
  }
}
/* SCG_GROWTH_FEATURES_V1_END */



/* SCG_ADMIN_SIDEBAR_CLEANUP_V1_START */
/* Remove the sidebar powered box from the admin dashboard */
.admin-dashboard-mode .sidebar-powered-box,
.admin-dashboard-mode .admin-sidebar .sidebar-powered-box {
  display: none !important;
}

/* Hide "إضافة مطعم" from admin sidebar if it still exists from cached/older markup */
.admin-dashboard-mode .sidebar a[href$="/scg-admin/create"],
.admin-dashboard-mode .admin-sidebar a[href$="/scg-admin/create"] {
  display: none !important;
}

/* Keep logout aligned after removing the bottom box */
.admin-dashboard-mode .logout {
  margin-top: auto;
}

/* Admin plans page */
.admin-plans-grid {
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr);
  gap: 16px;
  align-items: start;
}

.admin-plan-form,
.admin-plans-list {
  border-radius: 22px;
}

.plans-list {
  display: grid;
  gap: 12px;
}

.plan-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(6,55,102,.05);
}

.plan-card.inactive {
  opacity: .72;
  background: #f8fbfd;
}

.plan-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.plan-card-head span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #087443;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 8px;
}

.plan-card.inactive .plan-card-head span {
  background: #f2f4f7;
  color: #475467;
}

.plan-card-head strong {
  white-space: nowrap;
  color: var(--blue);
}

.plan-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .admin-plans-grid {
    grid-template-columns: 1fr;
  }
}
/* SCG_ADMIN_SIDEBAR_CLEANUP_V1_END */



/* SCG_ADMIN_RESTAURANTS_DESIGN_FIX_V1_START */
/* SCG Admin restaurants page cleanup */

/* Remove old standalone add button if it appears outside the page title/actions */
.admin-dashboard-mode .dashboard-main > a[href$="/scg-admin/create"],
.admin-dashboard-mode .dashboard-main > .btn[href$="/scg-admin/create"],
.admin-dashboard-mode .dashboard-main > div:not(.page-title) > a[href$="/scg-admin/create"] {
  display: none !important;
}

/* Keep the proper Add Restaurant button inside the page title */
.admin-dashboard-mode .page-title .actions a[href$="/scg-admin/create"],
.admin-dashboard-mode .page-title .actions .admin-add-restaurant-main {
  display: inline-flex !important;
}

/* Remove bottom powered footer line from admin dashboard content */
.admin-dashboard-mode .dashboard-shell-footer {
  display: none !important;
}

/* Cleaner admin header/ribbon */
.admin-dashboard-mode .dashboard-top-ribbon {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(220,231,242,.95);
  box-shadow: 0 12px 28px rgba(6,55,102,.055);
}

.admin-dashboard-mode .dashboard-top-ribbon strong {
  color: var(--navy);
  font-size: 16px;
}

.admin-dashboard-mode .dashboard-top-ribbon small {
  color: var(--muted);
}

/* Better page title alignment */
.admin-dashboard-mode .page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-dashboard-mode .page-title h1 {
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 6px;
}

.admin-dashboard-mode .page-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-dashboard-mode .page-title .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* Stat cards: slightly tighter and more balanced */
.admin-dashboard-mode .dashboard-metrics,
.admin-dashboard-mode .admin-metrics,
.admin-dashboard-mode .stats-grid {
  gap: 14px !important;
  margin-bottom: 18px !important;
}

.admin-dashboard-mode .metric,
.admin-dashboard-mode .card.metric,
.admin-dashboard-mode .premium-metric {
  min-height: 118px;
  padding: 20px 22px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(220,231,242,.95);
  box-shadow: 0 12px 28px rgba(6,55,102,.055);
}

.admin-dashboard-mode .metric strong,
.admin-dashboard-mode .card.metric strong,
.admin-dashboard-mode .premium-metric strong {
  font-size: 30px !important;
  line-height: 1;
  margin-bottom: 8px;
}

.admin-dashboard-mode .metric span,
.admin-dashboard-mode .card.metric span,
.admin-dashboard-mode .premium-metric span,
.admin-dashboard-mode .metric small,
.admin-dashboard-mode .card.metric small,
.admin-dashboard-mode .premium-metric small {
  color: var(--muted);
}

/* Restaurants table polish */
.admin-dashboard-mode .table-wrap,
.admin-dashboard-mode .panel.table-wrap {
  border-radius: 22px !important;
  border: 1px solid rgba(220,231,242,.95);
  box-shadow: 0 14px 32px rgba(6,55,102,.06);
  padding: 0 !important;
  overflow: hidden;
  background: #fff;
}

.admin-dashboard-mode table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-dashboard-mode thead th {
  background: #f8fbfd;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.admin-dashboard-mode tbody td {
  padding: 16px;
  border-bottom: 1px solid #e8f0f7;
  vertical-align: middle;
}

.admin-dashboard-mode tbody tr:last-child td {
  border-bottom: 0;
}

.admin-dashboard-mode tbody tr:hover {
  background: #fbfdff;
}

.admin-dashboard-mode td strong {
  color: var(--navy);
}

.admin-dashboard-mode td small {
  color: var(--muted);
  line-height: 1.6;
}

.admin-dashboard-mode td .btn,
.admin-dashboard-mode td.actions .btn {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 12px;
}

/* Action buttons look organized */
.admin-dashboard-mode td.actions,
.admin-dashboard-mode td:last-child {
  gap: 8px;
}

.admin-dashboard-mode td.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* Sidebar remains clean */
.admin-dashboard-mode .sidebar-powered-box {
  display: none !important;
}

@media (max-width: 900px) {
  .admin-dashboard-mode .page-title {
    display: grid;
    align-items: start;
  }

  .admin-dashboard-mode .page-title .actions,
  .admin-dashboard-mode .page-title .actions .btn {
    width: 100%;
  }

  .admin-dashboard-mode .page-title .actions .btn {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .admin-dashboard-mode .table-wrap {
    overflow-x: auto;
  }

  .admin-dashboard-mode table {
    min-width: 760px;
  }
}
/* SCG_ADMIN_RESTAURANTS_DESIGN_FIX_V1_END */



/* SCG_REMOVE_QR_MATERIALS_PAGE_V1_START */
/* Hide the cancelled QR Materials page from all restaurant dashboard menus. */
.restaurant-dashboard-mode .sidebar a[href$="/dashboard/qr-materials"],
.restaurant-dashboard-mode .sidebar a[href*="/dashboard/qr-materials"],
.sidebar a[href$="/dashboard/qr-materials"],
.sidebar a[href*="/dashboard/qr-materials"] {
  display: none !important;
}
/* SCG_REMOVE_QR_MATERIALS_PAGE_V1_END */



/* SCG_ADMIN_DEFAULT_OVERVIEW_FIX_V1_START */
/* Make SCG Admin overview feel like the primary landing page */
.admin-dashboard-mode .sidebar a[href$="/scg-admin/overview"].active,
.admin-dashboard-mode .sidebar a[href*="/scg-admin/overview"].active {
  font-weight: 900;
}

/* Restaurants page URL may include ?view=restaurants */
.admin-dashboard-mode .sidebar a[href*="/scg-admin?view=restaurants"] {
  display: flex;
}
/* SCG_ADMIN_DEFAULT_OVERVIEW_FIX_V1_END */



/* SCG_NOTIFICATIONS_V1_START */
.admin-notification-pill {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #eef7fb;
  border: 1px solid #d7e9f3;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}
.admin-notification-pill strong {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #d92d20;
  color: #fff;
  font-size: 11px;
}
.notification-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.notification-list {
  display: grid;
  gap: 12px;
}
.notification-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 10px 22px rgba(6,55,102,.05);
}
.notification-card.unread {
  border-color: rgba(18,183,196,.35);
  background: linear-gradient(135deg, #fff, #f4fbfd);
}
.notification-card.priority-high {
  border-right: 4px solid #d92d20;
}
.notification-card.priority-normal {
  border-right: 4px solid #0a68a8;
}
.notification-card.priority-low {
  border-right: 4px solid #98a2b3;
}
.notification-card-main {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.notification-card-main span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef7fb;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}
.notification-card-main h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 18px;
}
.notification-card-main p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.notification-card-main small,
.notification-card-main time,
.notification-card-foot small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.notification-card-foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.notification-settings-form section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbfd;
}
.notification-settings-form h2,
.telegram-help h2 {
  margin: 0 0 8px;
  color: var(--navy);
}
.notification-settings-form p,
.telegram-help li {
  color: var(--muted);
  line-height: 1.8;
}
.telegram-help ol {
  margin: 0;
  padding-right: 20px;
}
@media (max-width: 720px) {
  .notification-card-main {
    display: grid;
  }
  .admin-notification-pill {
    margin-right: 0;
    margin-top: 10px;
  }
}
/* SCG_NOTIFICATIONS_V1_END */




/* Removed old conflicting public-menu block: /* SCG_PUBLIC_MENU_POLISH_V1_START */ */





/* Removed old conflicting public-menu block: /* SCG_PUBLIC_MENU_POLISH_FOLLOWUP_V2_START */ */







/* Removed CSS block /* SCG_PUBLIC_MENU_FINAL_CLEANUP_V3_START */ */




/* SCG_PUBLIC_MENU_DIRECT_FIX_V1_START */
/* Public menu direct cleanup. Edits are intentionally scoped to menu pages. */

/* Remove CSS-generated top-left badge and common badge wrappers */
.menu-page [class*="brand"][class*="badge"],
.menu-page [class*="brand"][class*="pill"],
.menu-page [class*="hero"][class*="badge"],
.menu-page [class*="cover"][class*="badge"] {
  display: none !important;
}

/* Removed accidental cover overlay reset. */

/* Keep the language button compact with a clean size */
.menu-page a[href*="lang="],
.menu-page button[data-lang],
.menu-page .language-switch,
.menu-page .lang-switch,
.menu-page .scg-menu-language-pill {
  width: auto !important;
  min-width: 96px !important;
  max-width: 128px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  gap: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Rounded bottom cover photo */
.menu-page .menu-cover,
.menu-page .restaurant-cover,
.menu-page .public-menu-cover,
.menu-page .cover-image,
.menu-page .menu-hero,
.menu-page .restaurant-hero,
.menu-page header[class*="cover"],
.menu-page section[class*="cover"],
.menu-page img[class*="cover"] {
  border-bottom-left-radius: 32px !important;
  border-bottom-right-radius: 32px !important;
  overflow: hidden !important;
}

/* Restaurant card title/logo alignment */
.menu-page .restaurant-profile-card,
.menu-page .menu-profile-card,
.menu-page .public-menu-profile,
.menu-page .restaurant-header-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

.menu-page .restaurant-profile-card > div,
.menu-page .menu-profile-card > div,
.menu-page .public-menu-profile > div,
.menu-page .restaurant-header-card > div {
  min-width: 0 !important;
}

.menu-page .restaurant-profile-card h1,
.menu-page .restaurant-profile-card h2,
.menu-page .menu-profile-card h1,
.menu-page .menu-profile-card h2,
.menu-page .public-menu-profile h1,
.menu-page .public-menu-profile h2,
.menu-page .restaurant-header-card h1,
.menu-page .restaurant-header-card h2 {
  margin-top: 0 !important;
  margin-bottom: 7px !important;
  line-height: 1.1 !important;
  text-align: center !important;
}

.menu-page .restaurant-profile-card img,
.menu-page .menu-profile-card img,
.menu-page .public-menu-profile img,
.menu-page .restaurant-header-card img {
  width: 88px !important;
  height: 88px !important;
  object-fit: contain !important;
  border-radius: 22px !important;
}

/* Smaller icon-only contact buttons */
.menu-page .restaurant-actions a,
.menu-page .profile-actions a,
.menu-page .contact-actions a,
.menu-page .menu-contact-actions a,
.menu-page .restaurant-contact-actions a,
.menu-page .restaurant-actions button,
.menu-page .profile-actions button,
.menu-page .contact-actions button,
.menu-page .menu-contact-actions button,
.menu-page .restaurant-contact-actions button {
  width: 58px !important;
  height: 52px !important;
  min-width: 58px !important;
  min-height: 52px !important;
  padding: 0 !important;
  border-radius: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0 !important;
  line-height: 0 !important;
  box-shadow: none !important;
}

.menu-page .restaurant-actions a svg,
.menu-page .profile-actions a svg,
.menu-page .contact-actions a svg,
.menu-page .menu-contact-actions a svg,
.menu-page .restaurant-contact-actions a svg,
.menu-page .restaurant-actions button svg,
.menu-page .profile-actions button svg,
.menu-page .contact-actions button svg,
.menu-page .menu-contact-actions button svg,
.menu-page .restaurant-contact-actions button svg,
.menu-page .restaurant-actions a i,
.menu-page .profile-actions a i,
.menu-page .contact-actions a i,
.menu-page .menu-contact-actions a i,
.menu-page .restaurant-contact-actions a i {
  width: 23px !important;
  height: 23px !important;
  font-size: 23px !important;
  line-height: 1 !important;
}

.menu-page a[href*="wa.me"],
.menu-page a[href*="whatsapp"] {
  color: #25D366 !important;
  background: rgba(37, 211, 102, 0.10) !important;
  border-color: rgba(37, 211, 102, 0.35) !important;
}

.menu-page a[href*="wa.me"] svg,
.menu-page a[href*="whatsapp"] svg,
.menu-page a[href*="wa.me"] i,
.menu-page a[href*="whatsapp"] i {
  color: #25D366 !important;
  fill: #25D366 !important;
}

/* Clean powered-by footer generated by assets/menu.js */
.menu-powered {
  margin: 30px auto 22px !important;
  padding: 0 18px !important;
  text-align: center !important;
  color: #7a8798 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.7 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.menu-powered a {
  color: #0a68a8 !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

.menu-powered a:hover {
  text-decoration: underline !important;
}

/* The old span should not look like a button/capsule */
.menu-powered span {
  color: inherit !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .menu-page .restaurant-profile-card,
  .menu-page .menu-profile-card,
  .menu-page .public-menu-profile,
  .menu-page .restaurant-header-card {
    gap: 12px !important;
  }

  .menu-page .restaurant-profile-card img,
  .menu-page .menu-profile-card img,
  .menu-page .public-menu-profile img,
  .menu-page .restaurant-header-card img {
    width: 78px !important;
    height: 78px !important;
    border-radius: 20px !important;
  }

  .menu-page .restaurant-actions a,
  .menu-page .profile-actions a,
  .menu-page .contact-actions a,
  .menu-page .menu-contact-actions a,
  .menu-page .restaurant-contact-actions a,
  .menu-page .restaurant-actions button,
  .menu-page .profile-actions button,
  .menu-page .contact-actions button,
  .menu-page .menu-contact-actions button,
  .menu-page .restaurant-contact-actions button {
    width: 52px !important;
    height: 48px !important;
    min-width: 52px !important;
    min-height: 48px !important;
    border-radius: 15px !important;
  }
}
/* SCG_PUBLIC_MENU_DIRECT_FIX_V1_END */




/* Removed broken cover overlay block: /* SCG_PUBLIC_MENU_OVERLAY_ICONS_FIX_V1_START */ */




/* SCG_PUBLIC_MENU_COVER_OVERLAY_REPAIR_V1_START */
/* Repair the public menu cover after the oversized overlay issue. */

/* Keep the cover photo rounded at the bottom without creating a new pseudo overlay. */
.menu-page .menu-cover,
.menu-page .menu-hero,
.menu-page .restaurant-cover,
.menu-page .restaurant-hero,
.menu-page .public-menu-cover,
.menu-page .cover-image,
.menu-page header[class*="cover"],
.menu-page section[class*="cover"] {
  overflow: hidden !important;
  border-bottom-left-radius: 32px !important;
  border-bottom-right-radius: 32px !important;
}

/* Remove the large broken pseudo-element blur/overlay while keeping actual cover photo visible. */
.menu-page .menu-cover::before,
.menu-page .menu-cover::after,
.menu-page .menu-hero::before,
.menu-page .menu-hero::after,
.menu-page .restaurant-cover::before,
.menu-page .restaurant-cover::after,
.menu-page .restaurant-hero::before,
.menu-page .restaurant-hero::after,
.menu-page .public-menu-cover::before,
.menu-page .public-menu-cover::after,
.menu-page header[class*="cover"]::before,
.menu-page header[class*="cover"]::after,
.menu-page section[class*="cover"]::before,
.menu-page section[class*="cover"]::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none !important;
  width: auto !important;
  height: auto !important;
}

/* Apply a safe overlay directly on the cover container background only.
   This avoids pseudo-elements, so it cannot create the large blurred shape. */
.menu-page .menu-cover,
.menu-page .menu-hero,
.menu-page .restaurant-cover,
.menu-page .restaurant-hero,
.menu-page .public-menu-cover,
.menu-page header[class*="cover"],
.menu-page section[class*="cover"] {
  background-blend-mode: multiply !important;
}

/* Keep contact buttons icon-only and compact. */

.menu-page .scg-menu-icon-only, .action-chip {
    border-radius: 100% !important;
    width: 40px !important;
    height: 40px !important;
    overflow: hidden !important;
}

.menu-page .scg-menu-icon-only,
.menu-page .restaurant-actions a,
.menu-page .profile-actions a,
.menu-page .contact-actions a,
.menu-page .menu-contact-actions a,
.menu-page .restaurant-contact-actions a,
.menu-page .restaurant-actions button,
.menu-page .profile-actions button,
.menu-page .contact-actions button,
.menu-page .menu-contact-actions button,
.menu-page .restaurant-contact-actions button {

  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: 0 !important;
  overflow: hidden !important;
}

.menu-page .scg-menu-icon-only span,
.menu-page .restaurant-actions a span,
.menu-page .profile-actions a span,
.menu-page .contact-actions a span,
.menu-page .menu-contact-actions a span,
.menu-page .restaurant-contact-actions a span,
.menu-page .restaurant-actions button span,
.menu-page .profile-actions button span,
.menu-page .contact-actions button span,
.menu-page .menu-contact-actions button span,
.menu-page .restaurant-contact-actions button span {
  display: none !important;
}

.menu-page .scg-menu-icon-only svg,
.menu-page .restaurant-actions a svg,
.menu-page .profile-actions a svg,
.menu-page .contact-actions a svg,
.menu-page .menu-contact-actions a svg,
.menu-page .restaurant-contact-actions a svg,
.menu-page .restaurant-actions button svg,
.menu-page .profile-actions button svg,
.menu-page .contact-actions button svg,
.menu-page .menu-contact-actions button svg,
.menu-page .restaurant-contact-actions button svg,
.menu-page .restaurant-actions a i,
.menu-page .profile-actions a i,
.menu-page .contact-actions a i,
.menu-page .menu-contact-actions a i,
.menu-page .restaurant-contact-actions a i {
  width: 23px !important;
  height: 23px !important;
  font-size: 23px !important;
  line-height: 1 !important;
  display: block !important;
}

/* WhatsApp remains green. */
.menu-page .scg-menu-whatsapp-only,
.menu-page a[href*="wa.me"],
.menu-page a[href*="whatsapp"] {
  color: #25D366 !important;
  background: rgba(37, 211, 102, 0.10) !important;
  border-color: rgba(37, 211, 102, 0.35) !important;
}

.menu-page .scg-menu-whatsapp-only svg,
.menu-page a[href*="wa.me"] svg,
.menu-page a[href*="whatsapp"] svg {
  color: #25D366 !important;
  fill: #25D366 !important;
}

/* Keep the top-left SCG Smart Menu badge hidden if it exists as a real element. */
.menu-page [class*="brand"][class*="badge"],
.menu-page [class*="brand"][class*="pill"],
.menu-page [class*="hero"][class*="badge"],
.menu-page [class*="cover"][class*="badge"] {
  display: none !important;
}
/* SCG_PUBLIC_MENU_COVER_OVERLAY_REPAIR_V1_END */



/* SCG_SAFE_COVER_OVERLAY_V1_START */
/* Safe cover image overlay: real div, targeted host, no broad pseudo-elements. */
.menu-page .scg-safe-cover-overlay-host {
  position: relative !important;
  overflow: hidden !important;
  border-bottom-left-radius: 32px !important;
  border-bottom-right-radius: 32px !important;
}

/* Keep the image/background underneath the overlay. */
.menu-page .scg-safe-cover-overlay-host > img,
.menu-page .scg-safe-cover-overlay-host picture,
.menu-page .scg-safe-cover-overlay-host video {
  position: relative !important;
  z-index: 0 !important;
}

/* The overlay itself: subtle and clean, no blur. */
.menu-page .scg-safe-cover-overlay-host > .scg-safe-cover-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  display: block !important;
  border-bottom-left-radius: inherit !important;
  border-bottom-right-radius: inherit !important;
  background:
    linear-gradient(180deg, rgba(6, 55, 102, 0.04) 0%, rgba(6, 55, 102, 0.14) 48%, rgba(6, 55, 102, 0.32) 100%),
    linear-gradient(90deg, rgba(6, 55, 102, 0.20) 0%, rgba(6, 55, 102, 0.04) 48%, rgba(18, 183, 196, 0.12) 100%) !important;
}

/* Keep cover content, language button, and any controls above the overlay. */
.menu-page .scg-safe-cover-overlay-host > *:not(.scg-safe-cover-overlay):not(img):not(picture):not(video) {
  position: relative !important;
  z-index: 2 !important;
}

/* Make sure the old text badge is not generated as a cover pseudo-element. */
.menu-page .scg-safe-cover-overlay-host::before,
.menu-page .scg-safe-cover-overlay-host::after {
  content: none !important;
  display: none !important;
}

/* Mobile: slightly lighter overlay. */
@media (max-width: 640px) {
  .menu-page .scg-safe-cover-overlay-host > .scg-safe-cover-overlay {
    background:
      linear-gradient(180deg, rgba(6, 55, 102, 0.03) 0%, rgba(6, 55, 102, 0.11) 48%, rgba(6, 55, 102, 0.26) 100%),
      linear-gradient(90deg, rgba(6, 55, 102, 0.16) 0%, rgba(6, 55, 102, 0.03) 48%, rgba(18, 183, 196, 0.10) 100%) !important;
  }
}
/* SCG_SAFE_COVER_OVERLAY_V1_END */



/* SCG_MOBILE_NO_ZOOM_V1_START */
/* Reduce accidental zooming on mobile. */
html,
body {
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
  touch-action: manipulation;
}

/* Prevent iOS Safari from zooming when focusing small form fields. */
input,
select,
textarea,
button {
  font-size: 16px !important;
}

/* Keep buttons feeling like app controls on mobile. */
a,
button {
  -webkit-tap-highlight-color: transparent;
}
/* SCG_MOBILE_NO_ZOOM_V1_END */



/* SCG_PRODUCT_CARD_MODAL_V1_START */
/* Public menu product details modal */
.menu-page .scg-product-clickable-card,
.scg-product-clickable-card {
  cursor: pointer !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.menu-page .scg-product-clickable-card:active,
.scg-product-clickable-card:active {
  transform: scale(.985);
}

.menu-page .scg-product-clickable-card:focus-visible,
.scg-product-clickable-card:focus-visible {
  outline: 3px solid rgba(18, 183, 196, .35);
  outline-offset: 3px;
}

.scg-product-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  direction: rtl;
}

.scg-product-modal.open {
  display: flex;
}

.scg-product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 25, 49, .58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.scg-product-modal-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  max-height: min(86vh, 760px);
  overflow: auto;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(6, 25, 49, .25);
  animation: scgProductModalUp .22s ease both;
}

@keyframes scgProductModalUp {
  from {
    opacity: 0;
    transform: translateY(28px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.scg-product-modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(255, 255, 255, .92);
  color: #063766;
  font-size: 30px !important;
  line-height: 1;
  font-weight: 500;
  box-shadow: 0 10px 22px rgba(6, 55, 102, .14);
}

.scg-product-modal-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef7fb;
  border-radius: 30px 30px 0 0;
}

.scg-product-modal-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.scg-product-modal-content {
  padding: 22px 22px 24px;
}

.scg-product-modal-badge {
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(18, 183, 196, .12);
  color: #0a68a8;
  font-size: 12px;
  font-weight: 900;
}

.scg-product-modal-title {
  margin: 0 0 10px;
  color: #063766;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 900;
}

.scg-product-modal-description {
  margin: 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 700;
}

.scg-product-modal-price {
  margin-top: 18px;
  width: fit-content;
  padding: 9px 15px;
  border-radius: 999px;
  background: #eef7fb;
  color: #0a68a8;
  font-size: 18px;
  font-weight: 900;
}

html.scg-product-modal-open,
body.scg-product-modal-open {
  overflow: hidden !important;
}

@media (min-width: 720px) {
  .scg-product-modal {
    align-items: center;
  }
}

@media (max-width: 640px) {
  .scg-product-modal {
    padding: 12px;
  }

  .scg-product-modal-panel {
    width: 100%;
    border-radius: 26px;
  }

  .scg-product-modal-image-wrap {
    border-radius: 26px 26px 0 0;
  }

  .scg-product-modal-content {
    padding: 18px 18px 20px;
  }

  .scg-product-modal-title {
    font-size: 22px;
  }

  .scg-product-modal-description {
    font-size: 14px;
  }

  .scg-product-modal-close {
    width: 38px;
    height: 38px;
    font-size: 28px !important;
  }
}
/* SCG_PRODUCT_CARD_MODAL_V1_END */


/* background color chaneges with preset */

.menu-page.menu-theme-vars,
.menu-theme-vars.menu-page,
body .menu-theme-vars {
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, .82) 0%,
            rgba(255, 255, 255, .90) 42%,
            #ffffff 100%
        ),
        radial-gradient(
            circle at 10% 0%,
            var(--customer-accent, var(--cyan)) 0%,
            transparent 34%
        ),
        radial-gradient(
            circle at 90% 16%,
            var(--customer-primary, var(--blue)) 0%,
            transparent 32%
        ),
        linear-gradient(
            180deg,
            var(--customer-accent, var(--cyan)) 0%,
            var(--customer-primary, var(--blue)) 100%
        ) !important;
}

/* catagory pills change with preset */


.menu-theme-vars .menu-category-pills a.active,
.menu-theme-vars .menu-category-pills a:hover {
    background: linear-gradient(
        135deg,
        var(--customer-primary, var(--blue)),
        var(--customer-accent, var(--cyan))
    ) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.menu-theme-vars .menu-category-pills a {
    color: var(--customer-primary, var(--blue)) !important;
    border-color: color-mix(
        in srgb,
        var(--customer-primary, var(--blue)) 22%,
        #ffffff
    ) !important;
}

/* this is a code to edit the search box */

/* Compact search bar size */
.menu-search {
    margin: 16px 0 10px !important;
    padding: 6px !important;
    border-radius: 20px !important;
}

.menu-search input {
    min-height: 40px !important;
    height: 30px;
    padding: 12px 16px !important;
    border-radius: 16px !important;
    font-size: 15px !important;
}

@media (max-width: 560px) {
    .menu-search {
        margin: 14px 0 8px !important;
        padding: 6px !important;
        border-radius: 18px !important;
    }

    .menu-search input {
        padding: 10px 14px !important;
        border-radius: 15px !important;
        font-size: 15px !important;
    }
}


/* Theme-aware food placeholder */


.menu-item-image.is-placeholder,
.product-image.is-placeholder,
.item-image.is-placeholder {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.65);
}

.menu-item-image.is-placeholder::before,
.product-image.is-placeholder::before,
.item-image.is-placeholder::before {
    content: "";
    position: absolute;
    inset: 18%;
    background: linear-gradient(
        135deg,
        var(--customer-primary, var(--blue)),
        var(--customer-accent, var(--cyan))
    );
    -webkit-mask: url('/assets/food-placeholder.svg') center / contain no-repeat;
    mask: url('/assets/food-placeholder.svg') center / contain no-repeat;
    opacity: 0.95;
}
/* SCG_TABLE_ORDERING_MVP_V1_START */
.ordering-enabled .product-card {
  padding-bottom: 14px;
}
.ordering-enabled .price-row {
  align-items: center;
}
.menu-order-add {
  margin-inline-start: auto;
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  background: linear-gradient(135deg, var(--customer-primary, var(--blue)), var(--customer-accent, var(--cyan)));
  color: #fff;
  font-family: inherit;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(10,104,168,.18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.menu-order-add:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(10,104,168,.24);
}
.scg-order-floating {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 900;
  transform-origin: bottom right;
}
.scg-order-floating.pulse {
  animation: scgCartPulse .45s ease;
}
@keyframes scgCartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.scg-order-cart-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  padding: 12px 15px;
  background: linear-gradient(135deg, var(--customer-primary, var(--blue)), var(--customer-accent, var(--cyan)));
  color: #fff;
  font-family: inherit;
  font-weight: 950;
  box-shadow: 0 16px 36px rgba(6,55,102,.22);
  cursor: pointer;
}
.scg-order-count {
  min-width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: var(--customer-primary, var(--blue));
  font-size: 13px;
}
.scg-order-drawer {
  position: fixed;
  inset: 0;
  z-index: 950;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}
.scg-order-drawer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.scg-order-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 24, 44, .46);
  backdrop-filter: blur(5px);
}
.scg-order-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(430px, 94vw);
  height: 100%;
  overflow: auto;
  background: #fff;
  padding: 24px;
  box-shadow: -18px 0 50px rgba(6,55,102,.22);
  transform: translateX(104%);
  transition: transform .26s ease;
}
.scg-order-drawer.open .scg-order-panel {
  transform: translateX(0);
}
.scg-order-close {
  position: absolute;
  top: 14px;
  left: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 14px;
  background: #eef5f8;
  color: var(--navy);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.scg-order-panel h2 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 24px;
}
.scg-order-table-line {
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 800;
}
.scg-order-items {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.scg-order-empty {
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
  background: #f8fbfd;
}
.scg-order-item {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: #fbfdff;
}
.scg-order-item-info strong,
.scg-order-item-info span {
  display: block;
}
.scg-order-item-info strong {
  color: var(--navy);
  font-weight: 950;
}
.scg-order-item-info span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  margin-top: 3px;
}
.scg-order-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef6fb;
  border-radius: 999px;
  padding: 5px;
}
.scg-order-qty button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-weight: 950;
  font-size: 17px;
  cursor: pointer;
}
.scg-order-qty strong {
  min-width: 18px;
  text-align: center;
  color: var(--navy);
}
.scg-order-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.scg-order-form label {
  color: var(--navy);
  font-weight: 900;
  font-size: 13px;
}
.scg-order-form input,
.scg-order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 13px;
  font-family: inherit;
  outline: none;
  background: #fff;
}
.scg-order-form textarea {
  min-height: 82px;
  resize: vertical;
}
.scg-order-total {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--navy);
  font-weight: 950;
}
.scg-order-total strong {
  color: var(--blue);
  font-size: 20px;
}
.scg-order-submit {
  width: 100%;
  margin-top: 14px;
  justify-content: center;
}
.scg-order-submit.loading {
  opacity: .72;
  cursor: wait;
}
.scg-order-message {
  display: none;
  margin-top: 12px;
  border-radius: 16px;
  padding: 11px 12px;
  font-weight: 900;
  font-size: 13px;
}
.scg-order-message.success {
  display: block;
  background: #e9fbf6;
  color: #10735d;
  border: 1px solid #c9f0e5;
}
.scg-order-message.error {
  display: block;
  background: #fff2f0;
  color: #b42318;
  border: 1px solid #ffd7d2;
}
.scg-order-drawer-open {
  overflow: hidden;
}
.orders-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.order-stat span,
.order-stat strong {
  display: block;
}
.order-stat span {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}
.order-stat strong {
  color: var(--navy);
  font-size: 27px;
  margin-top: 6px;
}
.order-settings-panel,
.orders-board,
.table-qr-panel {
  margin-bottom: 18px;
}
.order-feature-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 950;
  font-size: 13px;
}
.order-feature-badge.is-on {
  color: #10735d;
  background: #e9fbf6;
}
.order-feature-badge.is-off {
  color: #b42318;
  background: #fff2f0;
}
.order-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}
.order-tab {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--navy);
  background: #f3f8fb;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
}
.order-tab.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}
.orders-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.order-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(6,55,102,.06);
}
.order-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.order-number {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 9px;
  background: #eef7fc;
  color: var(--blue);
  font-weight: 950;
  font-size: 12px;
  margin-bottom: 5px;
}
.order-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
}
.order-card small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  margin-top: 3px;
  direction: ltr;
  text-align: right;
}
.order-status-chip {
  white-space: nowrap;
  border-radius: 999px;
  padding: 7px 10px;
  color: #fff;
  background: var(--blue);
  font-weight: 950;
  font-size: 12px;
}
.order-status-new .order-status-chip { background: #f59e0b; }
.order-status-accepted .order-status-chip { background: #0a68a8; }
.order-status-preparing .order-status-chip { background: #7c3aed; }
.order-status-ready .order-status-chip { background: #0f9f7a; }
.order-status-completed .order-status-chip { background: #667085; }
.order-status-cancelled .order-status-chip { background: #b42318; }
.order-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.order-items li {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 9px;
  align-items: center;
  border-radius: 14px;
  padding: 8px 10px;
  background: #f8fbfd;
  color: var(--navy);
}
.order-items li strong {
  color: var(--blue);
}
.order-items li em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.order-items .order-item-note {
  display: block;
  color: var(--muted);
  font-size: 12px;
  background: #fff7ed;
}
.order-meta {
  margin-top: 12px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.order-meta p {
  margin: 0;
}
.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-weight: 950;
}
.order-total strong {
  color: var(--blue);
  font-size: 18px;
}
.order-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.table-generator-form {
  margin-bottom: 16px;
}
.table-generator-form input[type="number"] {
  max-width: 130px;
}
.table-qr-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.table-qr-card {
  break-inside: avoid;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 13px;
  background: #fff;
}
.table-qr-card img {
  width: 100%;
  max-width: 150px;
  border-radius: 15px;
  padding: 8px;
  background: #fff;
  border: 1px solid #eef2f6;
}
.table-qr-card strong,
.table-qr-card small {
  display: block;
}
.table-qr-card strong {
  color: var(--navy);
  margin-top: 8px;
}
.table-qr-card small {
  color: var(--muted);
  font-size: 10px;
  word-break: break-all;
  margin-top: 4px;
}
.order-sidebar-badge {
  margin-inline-start: auto;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f59e0b;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}
.scg-new-order-toast {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 1200;
  min-width: min(360px, calc(100vw - 36px));
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  border-radius: 22px;
  padding: 15px 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: 0 18px 42px rgba(6,55,102,.28);
  text-decoration: none;
  transition: transform .24s ease, opacity .24s ease;
}
.scg-new-order-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.scg-new-order-toast strong,
.scg-new-order-toast span {
  display: block;
}
.scg-new-order-toast strong {
  font-size: 16px;
  margin-bottom: 3px;
}
.scg-new-order-toast span {
  opacity: .92;
  font-weight: 800;
}
@media (max-width: 1000px) {
  .orders-stat-grid,
  .orders-list,
  .table-qr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .scg-order-panel {
    width: 100vw;
    padding: 22px 18px;
  }
  .orders-stat-grid,
  .orders-list,
  .table-qr-grid {
    grid-template-columns: 1fr;
  }
  .menu-order-add {
    width: 100%;
    margin-inline-start: 0;
    margin-top: 4px;
  }
  .scg-order-floating {
    right: 12px;
    left: 12px;
  }
  .scg-order-cart-button {
    width: 100%;
    justify-content: center;
  }
}
@media print {
  body.restaurant-dashboard-orders .sidebar,
  body.restaurant-dashboard-orders .dashboard-top-ribbon,
  body.restaurant-dashboard-orders .page-title,
  body.restaurant-dashboard-orders .orders-stat-grid,
  body.restaurant-dashboard-orders .order-settings-panel,
  body.restaurant-dashboard-orders .orders-board,
  body.restaurant-dashboard-orders .dashboard-shell-footer,
  body.restaurant-dashboard-orders .table-generator-form,
  body.restaurant-dashboard-orders .table-qr-panel .panel-heading button {
    display: none !important;
  }
  body.restaurant-dashboard-orders .dashboard-shell,
  body.restaurant-dashboard-orders .dashboard-main {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.restaurant-dashboard-orders .table-qr-panel {
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  body.restaurant-dashboard-orders .table-qr-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
/* SCG_TABLE_ORDERING_MVP_V1_END */

/* SCG_CART_ICON_BUTTON_UPDATE_V2_START */
/* Public menu ordering UI refinement: compact cart button + small left Add button */

.ordering-enabled .product-card {
  padding-bottom: 12px;
}

.ordering-enabled .price-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.menu-order-add {
  width: auto !important;
  min-width: 58px;
  height: 34px;
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  padding: 0 14px !important;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px !important;
  line-height: 1;
  white-space: nowrap;
}

.scg-order-floating {
  position: fixed;
  left: auto !important;
  right: max(16px, env(safe-area-inset-right)) !important;
  bottom: calc(18px + env(safe-area-inset-bottom)) !important;
  width: auto !important;
  z-index: 980;
  transform-origin: bottom right;
}

.scg-order-cart-button {
  position: relative;
  width: 62px !important;
  height: 62px !important;
  min-width: 62px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center !important;
  gap: 0 !important;
  border-radius: 999px;
  overflow: visible;
}

.scg-order-cart-button > span:not(.cart-icon) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.scg-order-cart-button .cart-icon {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0 !important;
  line-height: 1;
  color: #fff;
}

.scg-order-cart-button .cart-icon::before {
  content: '';
  width: 27px;
  height: 27px;
  display: block;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2Zm10 0c-1.1 0-1.99.9-1.99 2S15.9 22 17 22s2-.9 2-2-.9-2-2-2ZM7.2 14.7c-.75 0-1.41-.41-1.75-1.03L2 4H1c-.55 0-1-.45-1-1s.45-1 1-1h1.65c.43 0 .81.27.95.68L4.3 5H22c.33 0 .64.16.83.43.19.27.22.62.09.92l-3.2 7.2A2.01 2.01 0 0 1 17.9 14.7H7.2ZM5 7l2.2 5.7h10.7L20.43 7H5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2Zm10 0c-1.1 0-1.99.9-1.99 2S15.9 22 17 22s2-.9 2-2-.9-2-2-2ZM7.2 14.7c-.75 0-1.41-.41-1.75-1.03L2 4H1c-.55 0-1-.45-1-1s.45-1 1-1h1.65c.43 0 .81.27.95.68L4.3 5H22c.33 0 .64.16.83.43.19.27.22.62.09.92l-3.2 7.2A2.01 2.01 0 0 1 17.9 14.7H7.2ZM5 7l2.2 5.7h10.7L20.43 7H5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.scg-order-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border: 2px solid #fff;
  box-shadow: 0 8px 18px rgba(6,55,102,.18);
  font-size: 12px;
  opacity: 0;
  transform: scale(.72);
  transition: opacity .18s ease, transform .18s ease;
}

.scg-order-floating.has-items .scg-order-count {
  opacity: 1;
  transform: scale(1);
}

.scg-order-floating.pulse {
  animation: scgCartPulseCompact .45s ease;
}

@keyframes scgCartPulseCompact {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.08); }
}

@media (max-width: 640px) {
  .ordering-enabled .price-row {
    gap: 7px;
  }

  .menu-order-add {
    width: auto !important;
    min-width: 52px;
    height: 31px;
    padding: 0 12px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    font-size: 11px !important;
  }

  .scg-order-floating {
    left: auto !important;
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: calc(14px + env(safe-area-inset-bottom)) !important;
  }

  .scg-order-cart-button {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px;
  }

  .scg-order-cart-button .cart-icon,
  .scg-order-cart-button .cart-icon::before {
    width: 25px;
    height: 25px;
  }
}
/* SCG_CART_ICON_BUTTON_UPDATE_V2_END */

/* SCG_ORDERING_UI_CLEAN_FIX_V3_START */
.menu-page.ordering-enabled,
body.ordering-enabled {
  padding-bottom: 106px !important;
}

@media (min-width: 901px) {
  .menu-container {
    width: min(100% - 48px, 820px) !important;
  }
}

@media (min-width: 1200px) {
  .menu-container {
    width: min(100% - 64px, 900px) !important;
  }
}

.ordering-enabled .product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
}

.ordering-enabled .product-card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  align-items: center !important;
}

.ordering-enabled .product-card > div {
  min-width: 0 !important;
}

.ordering-enabled .price-row {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.ordering-enabled .menu-order-add {
  order: 99 !important;
  margin-right: auto !important;
  margin-left: 0 !important;
  flex: 0 0 auto !important;
  border: 0 !important;
  background: linear-gradient(135deg, var(--customer-primary, var(--blue)), var(--customer-accent, var(--cyan))) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(6, 55, 102, .16) !important;
  cursor: pointer !important;
  font-family: inherit !important;
  transition: transform .18s ease, box-shadow .18s ease !important;
}

.ordering-enabled .menu-order-add:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 28px rgba(6, 55, 102, .20) !important;
}

.ordering-enabled .menu-order-add:not(.is-quantity) {
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border-radius: 15px !important;
  font-size: 0 !important;
}

.ordering-enabled .menu-order-plus-only {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 28px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
}

.ordering-enabled .menu-order-add.is-quantity {
  width: 132px !important;
  min-width: 132px !important;
  height: 42px !important;
  padding: 0 7px !important;
  border-radius: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  background: rgba(18,183,196,.12) !important;
  color: var(--customer-primary, var(--blue)) !important;
  border: 1px solid rgba(18,183,196,.22) !important;
  box-shadow: none !important;
}

.ordering-enabled .menu-order-step {
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: var(--customer-primary, var(--blue)) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  box-shadow: 0 4px 12px rgba(6,55,102,.08) !important;
}

.ordering-enabled .menu-order-number {
  min-width: 22px !important;
  text-align: center !important;
  font-size: 17px !important;
  font-weight: 950 !important;
  color: var(--customer-primary, var(--blue)) !important;
}

/* hide older broken cart/confirm UI injected by previous updater */
.scg-order-confirm-bar {
  display: none !important;
}

.scg-order-floating {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(18px + env(safe-area-inset-bottom)) !important;
  transform: translateX(-50%) translateY(18px) !important;
  z-index: 99999 !important;
  width: min(92vw, 430px) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease !important;
}

.scg-order-floating.has-items {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
}

.scg-order-drawer-open .scg-order-floating {
  display: none !important;
}

.scg-order-cart-button {
  width: 100% !important;
  min-height: 62px !important;
  padding: 9px 10px 9px 12px !important;
  border: 2px solid var(--customer-accent, var(--cyan)) !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,.98) !important;
  color: var(--customer-primary, var(--blue)) !important;
  box-shadow: 0 18px 42px rgba(6,55,102,.24) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  font-family: inherit !important;
  cursor: pointer !important;
  text-indent: 0 !important;
  font-size: 1rem !important;
}

.scg-order-cart-button:hover,
.scg-order-cart-button:focus-visible {
  transform: translateY(-1px) !important;
  box-shadow: 0 22px 48px rgba(6,55,102,.28) !important;
  outline: none !important;
}

.scg-confirm-label {
  flex: 1 !important;
  text-align: right !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1.2 !important;
  color: var(--customer-primary, var(--blue)) !important;
}

.scg-confirm-price {
  min-width: 108px !important;
  height: 42px !important;
  padding: 0 14px !important;
  border-radius: 15px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, var(--customer-primary, var(--blue)), var(--customer-accent, var(--cyan))) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}

.scg-order-count {
  display: none !important;
}

.scg-order-table-input {
  display: none !important;
}

.scg-order-form label:has(+ .scg-order-table-input) {
  display: none !important;
}

@media (max-width: 900px) {
  .ordering-enabled .product-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  .ordering-enabled .menu-order-add:not(.is-quantity) {
    width: 50px !important;
    min-width: 50px !important;
    height: 44px !important;
    border-radius: 15px !important;
  }

  .ordering-enabled .menu-order-add.is-quantity {
    width: 128px !important;
    min-width: 128px !important;
    height: 40px !important;
  }

  .scg-order-floating {
    width: calc(100vw - 28px) !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
  }

  .scg-order-cart-button {
    min-height: 58px !important;
    border-radius: 20px !important;
  }

  .scg-confirm-label {
    font-size: 17px !important;
  }

  .scg-confirm-price {
    min-width: 96px !important;
    height: 39px !important;
    font-size: 15px !important;
    border-radius: 14px !important;
  }
}
/* SCG_ORDERING_UI_CLEAN_FIX_V3_END */

/* SCG_ORDERING_FINAL_INTERACTION_FIX_V1_START */

/* ---------------------------------------------
   Menu container: wider on desktop, cards stay inside
--------------------------------------------- */
@media (min-width: 900px) {
    .menu-page .menu-container {
        width: min(100% - 32px, 780px) !important;
    }

    .menu-page.ordering-enabled .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }

    .menu-page.ordering-enabled .product-card {
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
}

@media (min-width: 1200px) {
    .menu-page .menu-container {
        width: min(100% - 40px, 880px) !important;
    }
}

/* ---------------------------------------------
   Product add/quantity controls
--------------------------------------------- */
.menu-page.ordering-enabled .price-row {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

/* Logical rule: push the add/quantity control to inline-end.
   Arabic inline-end = left. English inline-end = right. */
.menu-page.ordering-enabled .menu-order-add {
    order: 99 !important;
    margin-inline-start: auto !important;
    margin-inline-end: 0 !important;
    flex: 0 0 auto !important;
}

/* Square rounded + button */
.menu-page.ordering-enabled .menu-order-add:not(.is-quantity) {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
    border-radius: 16px !important;
    font-size: 0 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.menu-page.ordering-enabled .menu-order-add:not(.is-quantity)::before {
    content: "+" !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 30px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
}

/* Quantity control */
.menu-page.ordering-enabled .menu-order-add.is-quantity {
    width: auto !important;
    min-width: 124px !important;
    height: 44px !important;
    padding: 0 9px !important;
    border-radius: 999px !important;
    gap: 10px !important;
    font-size: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.menu-page.ordering-enabled .menu-order-add.is-quantity .menu-order-step {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    color: var(--customer-primary, var(--blue, #0a68a8)) !important;
    -webkit-text-fill-color: var(--customer-primary, var(--blue, #0a68a8)) !important;
}

.menu-page.ordering-enabled .menu-order-add.is-quantity .menu-order-number {
    min-width: 22px !important;
    text-align: center !important;
    font-weight: 950 !important;
    color: var(--customer-primary, var(--blue, #0a68a8)) !important;
    -webkit-text-fill-color: var(--customer-primary, var(--blue, #0a68a8)) !important;
}

/* ---------------------------------------------
   Bottom confirm button
   Keep original button functional: .scg-order-cart-button
--------------------------------------------- */

/* Hide abandoned generated confirm bar if it still exists */
.scg-order-confirm-bar,
.scg-order-confirm-button {
    display: none !important;
}

.scg-order-floating {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    transform: translateX(-50%) !important;
    z-index: 99999 !important;
    width: min(92vw, 430px) !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    display: none !important;
    pointer-events: none !important;
}

.scg-order-floating.has-items {
    display: block !important;
    pointer-events: auto !important;
}

.scg-order-floating .scg-order-cart-button,
.scg-order-cart-button {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 58px !important;
    min-height: 58px !important;
    padding: 8px 12px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    border: 2px solid var(--customer-accent, var(--cyan, #12b7c4)) !important;
    box-shadow: 0 14px 34px rgba(6,55,102,.22) !important;
    color: var(--customer-primary, var(--blue, #0a68a8)) !important;
    -webkit-text-fill-color: var(--customer-primary, var(--blue, #0a68a8)) !important;
    font-family: "Cairo", Arial, sans-serif !important;
    font-size: 17px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    cursor: pointer !important;
    text-indent: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.scg-order-cart-button .cart-icon {
    display: none !important;
}

/* Hide all old text spans inside the button except the new CTA label and count */
.scg-order-cart-button > span:not(.scg-confirm-cta-label),
.scg-order-cart-button > .cart-icon {
    display: none !important;
}

.scg-confirm-cta-label {
    display: inline-flex !important;
    align-items: center !important;
    color: var(--customer-primary, var(--blue, #0a68a8)) !important;
    -webkit-text-fill-color: var(--customer-primary, var(--blue, #0a68a8)) !important;
    font-family: "Cairo", Arial, sans-serif !important;
    font-size: 17px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-indent: 0 !important;
    white-space: nowrap !important;
}

.scg-order-count {
    position: static !important;
    min-width: 44px !important;
    height: 38px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--customer-primary, var(--blue, #0a68a8)), var(--customer-accent, var(--cyan, #12b7c4))) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 0 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: "Cairo", Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.scg-order-drawer-open .scg-order-floating {
    display: none !important;
}

@media (max-width: 760px) {
    .scg-order-floating {
        width: calc(100vw - 28px) !important;
        bottom: calc(14px + env(safe-area-inset-bottom)) !important;
    }

    .scg-order-floating .scg-order-cart-button,
    .scg-order-cart-button {
        height: 56px !important;
        min-height: 56px !important;
    }

    .scg-confirm-cta-label {
        font-size: 16px !important;
    }
}

/* ---------------------------------------------
   Dashboard QR table controls
--------------------------------------------- */
.table-qr-card {
    position: relative !important;
    overflow: hidden !important;
    padding-top: 54px !important;
}

.table-qr-card form,
.table-qr-card .qr-action-form,
.table-qr-card .table-qr-action-form {
    display: inline-flex !important;
    margin: 0 !important;
}

.table-qr-card form:has(.scg-qr-action-btn),
.table-qr-card .qr-actions,
.table-qr-card .table-qr-actions {
    position: static !important;
}

.table-qr-card .scg-qr-actions {
    position: absolute !important;
    top: 14px !important;
    inset-inline-start: 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    z-index: 3 !important;
}

.table-qr-card .scg-qr-action-btn,
.table-qr-card button.scg-qr-action-btn,
.table-qr-card .scg-qr-actions button {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    border-radius: 11px !important;
    border: 1px solid rgba(10,104,168,.15) !important;
    background: #eef8fb !important;
    color: var(--blue, #0a68a8) !important;
    -webkit-text-fill-color: var(--blue, #0a68a8) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: "Cairo", Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: 0 6px 14px rgba(6,55,102,.08) !important;
}

.table-qr-card .scg-qr-action-btn:hover,
.table-qr-card .scg-qr-actions button:hover {
    background: linear-gradient(135deg, var(--blue, #0a68a8), var(--cyan, #12b7c4)) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.table-qr-card .scg-qr-action-delete,
.table-qr-card button.scg-qr-action-delete {
    background: #fff2f2 !important;
    border-color: rgba(196, 45, 45, .18) !important;
    color: #b42318 !important;
    -webkit-text-fill-color: #b42318 !important;
}

.table-qr-card .scg-qr-action-delete:hover,
.table-qr-card button.scg-qr-action-delete:hover {
    background: #b42318 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* SCG_ORDERING_FINAL_INTERACTION_FIX_V1_END */


.scg-order-floating.has-items span.scg-confirm-label,
.scg-order-floating.has-items span.scg-confirm-price
{
    display: contents !important;
}

\n

\n

/* SCG_CASHIER_POS_FOUNDATION_V1_START */
.cashier-app-page{background:radial-gradient(circle at top right,rgba(18,183,196,.18),transparent 32%),linear-gradient(180deg,#f2fbff,#fff);min-height:100vh}
.cashier-login-wrap,.cashier-app-shell{width:min(100% - 24px,980px);margin:0 auto}
.cashier-login-wrap{min-height:100vh;display:grid;place-items:center;padding:28px 0}
.cashier-login-card{width:min(100%,430px);background:rgba(255,255,255,.96);border:1px solid rgba(220,231,242,.96);border-radius:30px;padding:28px;box-shadow:0 24px 60px rgba(6,55,102,.13)}
.cashier-app-brand{display:inline-flex;flex-direction:column;gap:2px;padding:12px 16px;border-radius:18px;background:linear-gradient(135deg,var(--blue),var(--cyan));color:#fff;margin-bottom:18px}
.cashier-app-brand strong{font-size:22px;line-height:1}.cashier-app-brand span{font-size:12px;font-weight:800;opacity:.86}
.cashier-login-card h1{margin:0 0 8px;color:var(--navy);font-size:28px}.cashier-login-card p{color:var(--muted);margin:0 0 18px;font-weight:800}
.cashier-login-form{display:grid;gap:12px}.cashier-owner-link{display:block;margin-top:18px;text-align:center;color:var(--blue);font-weight:900;text-decoration:none}
.cashier-app-shell{padding:16px 0 28px}.cashier-topbar{position:sticky;top:10px;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px;padding:14px;border-radius:24px;background:rgba(255,255,255,.92);border:1px solid rgba(220,231,242,.96);box-shadow:0 16px 34px rgba(6,55,102,.10);backdrop-filter:blur(14px)}
.cashier-topbar div{display:grid;gap:2px}.cashier-topbar span{color:var(--cyan);font-size:12px;font-weight:950}.cashier-topbar strong{color:var(--navy);font-size:20px;line-height:1.2}.cashier-topbar small{color:var(--muted);font-weight:800}.cashier-topbar nav{display:flex;align-items:center;gap:8px}
.cashier-pill{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 14px;border-radius:999px;background:linear-gradient(135deg,var(--blue),var(--cyan));color:#fff;text-decoration:none;font-weight:950;white-space:nowrap}.cashier-pill.muted{background:#eef6fb;color:var(--navy)}
.cashier-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}.cashier-kpis article{background:rgba(255,255,255,.94);border:1px solid rgba(220,231,242,.96);border-radius:22px;padding:14px;box-shadow:0 12px 26px rgba(6,55,102,.07)}.cashier-kpis span{display:block;color:var(--muted);font-size:12px;font-weight:900}.cashier-kpis strong{color:var(--blue);font-size:28px;line-height:1}
.cashier-orders-toolbar{display:flex;gap:8px;overflow-x:auto;padding:4px 0 12px;margin-bottom:6px}.cashier-orders-toolbar button{border:1px solid rgba(10,104,168,.12);background:#fff;color:var(--navy);border-radius:999px;padding:11px 14px;font-weight:950;white-space:nowrap;cursor:pointer}.cashier-orders-toolbar button.active{background:linear-gradient(135deg,var(--blue),var(--cyan));color:#fff;border-color:transparent}
.cashier-orders-list{display:grid;gap:12px}.cashier-order-card{background:rgba(255,255,255,.97);border:1px solid rgba(220,231,242,.96);border-radius:24px;padding:16px;box-shadow:0 14px 32px rgba(6,55,102,.09)}.cashier-order-card.status-new{border-color:rgba(18,183,196,.45);box-shadow:0 18px 40px rgba(18,183,196,.15)}
.cashier-order-head,.cashier-order-foot{display:flex;align-items:center;justify-content:space-between;gap:12px}.cashier-order-head strong{display:block;color:var(--navy);font-size:22px;line-height:1}.cashier-order-head span,.cashier-order-foot span{color:var(--muted);font-weight:900}.cashier-order-head mark{border-radius:999px;padding:7px 12px;background:#eef8fb;color:var(--blue);font-weight:950}
.cashier-order-items{list-style:none;margin:14px 0;padding:0;display:grid;gap:8px}.cashier-order-items li{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:10px;padding:10px 0;border-bottom:1px dashed rgba(10,104,168,.16)}.cashier-order-items li:last-child{border-bottom:0}.cashier-order-items strong{color:var(--blue)}.cashier-order-items span{color:var(--navy);font-weight:900}.cashier-order-items em{color:var(--muted);font-style:normal;font-weight:900}
.cashier-order-notes{padding:12px;border-radius:16px;background:#fff9e8;color:#7a5300;font-weight:850}.cashier-order-foot strong{font-size:22px;color:var(--blue)}.cashier-order-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.cashier-status-btn{flex:1 1 110px;min-height:46px;border:0;border-radius:16px;background:linear-gradient(135deg,var(--blue),var(--cyan));color:#fff;font-weight:950;cursor:pointer}.cashier-status-btn.danger{background:#fff2f2;color:#b42318;border:1px solid rgba(180,35,24,.16)}
.cashier-empty,.cashier-loading{background:rgba(255,255,255,.92);border:1px solid rgba(220,231,242,.96);border-radius:24px;padding:28px;text-align:center;color:var(--muted);font-weight:900}.cashier-empty strong{display:block;color:var(--navy);font-size:20px;margin-bottom:8px}.manual-placeholder{margin-top:22px}
.cashier-account-list{display:grid;gap:10px}.cashier-account-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;border:1px solid var(--line);border-radius:18px;background:#fff}.cashier-account-card div:first-child{display:grid;gap:3px}.cashier-account-card strong{color:var(--navy)}.cashier-account-card span,.cashier-account-card small{color:var(--muted);font-weight:850}.btn.danger{background:#fff2f2;color:#b42318;border:1px solid rgba(180,35,24,.16)}
@media(max-width:700px){.cashier-login-wrap,.cashier-app-shell{width:min(100% - 16px,980px)}.cashier-topbar{position:static;align-items:stretch;flex-direction:column}.cashier-topbar nav{display:grid;grid-template-columns:1fr 1fr}.cashier-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.cashier-order-items li{grid-template-columns:42px minmax(0,1fr)}.cashier-order-items em{grid-column:2}.cashier-account-card{align-items:stretch;flex-direction:column}}
/* SCG_CASHIER_POS_FOUNDATION_V1_END */



/* SCG_CASHIER_PWA_V1_START */
.cashier-app-page {
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
}

.cashier-app-page .cashier-app-shell {
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.cashier-install-banner {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100% - 28px, 520px);
  margin: 0 auto;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(220,231,242,.96);
  box-shadow: 0 18px 46px rgba(6,55,102,.20);
  backdrop-filter: blur(14px);
  font-family: "Cairo", Arial, sans-serif;
}

.cashier-install-banner.is-visible {
  display: flex;
}

.cashier-install-banner div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cashier-install-banner strong {
  color: var(--navy);
  font-size: 15px;
  line-height: 1.25;
}

.cashier-install-banner span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.cashier-install-banner button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  font-family: "Cairo", Arial, sans-serif;
  font-weight: 950;
  cursor: pointer;
  white-space: nowrap;
}

.cashier-install-banner .cashier-install-action {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
}

.cashier-install-banner .cashier-install-close {
  background: #eef6fb;
  color: var(--navy);
  width: 40px;
  padding: 0;
}

.cashier-pwa-spacer {
  height: 82px;
  display: none;
}

.cashier-pwa-spacer.is-visible {
  display: block;
}

@media (display-mode: standalone) {
  .cashier-install-banner,
  .cashier-pwa-spacer {
    display: none !important;
  }

  .cashier-app-page .cashier-topbar {
    top: calc(10px + env(safe-area-inset-top));
  }
}

@media (max-width: 600px) {
  .cashier-install-banner {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: calc(100% - 20px);
    border-radius: 22px;
  }

  .cashier-install-banner strong {
    font-size: 14px;
  }

  .cashier-install-banner span {
    font-size: 11px;
  }

  .cashier-install-banner button {
    min-height: 38px;
    padding: 0 12px;
  }

  .cashier-install-banner .cashier-install-close {
    width: 38px;
  }
}
/* SCG_CASHIER_PWA_V1_END */

/* SCG_CASHIER_PAYMENT_RECEIPT_V1_START */
.cashier-payment-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 18px;
  background: #f7fbfd;
  border: 1px solid rgba(10,104,168,.10);
}

.cashier-payment-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 950;
  background: #fff2f2;
  color: #b42318;
}

.cashier-payment-badge.paid {
  background: #eefbf5;
  color: #087443;
}

.cashier-payment-btn,
.cashier-receipt-btn {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  font-family: "Cairo", Arial, sans-serif;
  font-weight: 950;
  cursor: pointer;
}

.cashier-payment-btn {
  background: #fff;
  color: var(--blue);
  border: 1px solid rgba(10,104,168,.14);
}

.cashier-payment-btn:hover {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  border-color: transparent;
}

.cashier-payment-btn.muted {
  color: #b42318;
  background: #fff2f2;
  border-color: rgba(180,35,24,.16);
}

.cashier-receipt-btn {
  flex: 1 1 130px;
  background: #eef6fb;
  color: var(--navy);
  border: 1px solid rgba(10,104,168,.12);
}

.cashier-receipt-btn:hover {
  background: var(--navy);
  color: #fff;
}

.cashier-status-btn:disabled,
.cashier-payment-btn:disabled {
  opacity: .55;
  cursor: wait;
}

@media (max-width: 560px) {
  .cashier-payment-row {
    align-items: stretch;
  }

  .cashier-payment-badge,
  .cashier-payment-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
/* SCG_CASHIER_PAYMENT_RECEIPT_V1_END */

/* SCG_CASHIER_POS_CARDS_V3_START */
@media (min-width: 768px) {
  .cashier-app-shell {
    width: min(100% - 32px, 1320px);
  }

  .cashier-orders-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
  }

  .cashier-order-card {
    position: relative;
    min-height: 390px;
    height: 100%;
    padding: 20px;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 1px solid rgba(10,104,168,.10);
    box-shadow: 0 16px 34px rgba(6,55,102,.08);
    overflow: hidden;
  }

  .cashier-order-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    opacity: .95;
  }

  .cashier-order-card.status-new::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
  }

  .cashier-order-card.status-accepted::before,
  .cashier-order-card.status-preparing::before {
    background: linear-gradient(90deg, var(--blue), var(--cyan));
  }

  .cashier-order-card.status-ready::before {
    background: linear-gradient(90deg, #22c55e, #4ade80);
  }

  .cashier-order-card.status-completed::before {
    background: linear-gradient(90deg, #64748b, #94a3b8);
  }

  .cashier-order-card.status-cancelled::before {
    background: linear-gradient(90deg, #ef4444, #f87171);
  }

  .cashier-order-head {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
  }

  .cashier-order-head > div {
    display: grid;
    gap: 5px;
    min-width: 0;
  }

  .cashier-order-head strong {
    font-size: 26px;
    line-height: 1.05;
    color: var(--navy);
    letter-spacing: -.02em;
  }

  .cashier-order-head span {
    font-size: 14px;
    font-weight: 900;
    color: var(--muted);
  }

  .cashier-order-head mark {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 950;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
  }

  .cashier-order-items {
    flex: 1 1 auto;
    min-height: 0;
    margin: 10px 0 14px;
    padding: 12px 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, #f8fcfe, #f2f8fb);
    border: 1px solid rgba(10,104,168,.08);
    overflow: auto;
    align-content: start;
  }

  .cashier-order-items li {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px 0;
    align-items: center;
    border-bottom: 1px dashed rgba(10,104,168,.12);
  }

  .cashier-order-items li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .cashier-order-items li strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(18,183,196,.10);
    color: var(--blue);
    font-size: 13px;
    font-weight: 950;
  }

  .cashier-order-items li span {
    font-size: 15px;
    font-weight: 900;
    color: var(--navy);
  }

  .cashier-order-items li em {
    font-size: 14px;
    font-style: normal;
    font-weight: 950;
    color: var(--blue);
    white-space: nowrap;
  }

  .cashier-order-notes {
    margin: -2px 0 12px;
    padding: 10px 12px;
    border-radius: 16px;
    background: #fff9e8;
    color: #8a5a00;
    font-size: 13px;
    font-weight: 900;
  }

  .cashier-order-foot {
    margin-top: 0;
    margin-bottom: 12px;
    padding: 14px 16px;
    border-top: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(10,104,168,.08), rgba(18,183,196,.08));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .cashier-order-foot span {
    font-size: 13px;
    font-weight: 950;
    color: var(--muted);
  }

  .cashier-order-foot strong {
    font-size: 28px;
    line-height: 1;
    color: var(--navy);
    letter-spacing: -.03em;
  }

  .cashier-payment-row {
    margin-top: 0;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 18px;
    background: #f7fbfd;
    border: 1px solid rgba(10,104,168,.10);
    gap: 8px;
  }

  .cashier-payment-badge {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 950;
  }

  .cashier-payment-btn,
  .cashier-receipt-btn,
  .cashier-status-btn {
    min-height: 42px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 950;
    box-shadow: none;
  }

  .cashier-order-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cashier-order-actions .cashier-status-btn,
  .cashier-order-actions .cashier-payment-btn,
  .cashier-order-actions .cashier-receipt-btn {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
  }

  .cashier-order-card .cashier-order-items::-webkit-scrollbar {
    width: 6px;
  }

  .cashier-order-card .cashier-order-items::-webkit-scrollbar-thumb {
    background: rgba(10,104,168,.22);
    border-radius: 999px;
  }
}

@media (min-width: 1440px) {
  .cashier-app-shell {
    width: min(100% - 40px, 1480px);
  }

  .cashier-orders-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* SCG_CASHIER_POS_CARDS_V3_END */

/* SCG_CASHIER_3COL_ALERT_V1_START */

/* Tablet/laptop POS grid: smaller, faster-to-scan cards */
@media (min-width: 768px) {
  .cashier-app-shell {
    width: min(100% - 28px, 1420px) !important;
  }

  .cashier-orders-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
    align-items: stretch !important;
  }

  .cashier-order-card {
    position: relative !important;
    min-height: 315px !important;
    height: 100% !important;
    padding: 14px !important;
    border-radius: 22px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-width: 1px !important;
    box-shadow: 0 12px 26px rgba(6,55,102,.07) !important;
  }

  .cashier-order-card::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    inset-inline: 0 !important;
    height: 7px !important;
    opacity: 1 !important;
  }

  .cashier-order-card.status-new {
    border-color: rgba(245,158,11,.45) !important;
    background: linear-gradient(180deg, #fffaf0, #fff) !important;
  }

  .cashier-order-card.status-new::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24) !important;
  }

  .cashier-order-card.status-accepted {
    border-color: rgba(10,104,168,.28) !important;
    background: linear-gradient(180deg, #f3f9ff, #fff) !important;
  }

  .cashier-order-card.status-accepted::before {
    background: linear-gradient(90deg, #0a68a8, #12b7c4) !important;
  }

  .cashier-order-card.status-preparing {
    border-color: rgba(124,58,237,.28) !important;
    background: linear-gradient(180deg, #f7f2ff, #fff) !important;
  }

  .cashier-order-card.status-preparing::before {
    background: linear-gradient(90deg, #7c3aed, #a78bfa) !important;
  }

  .cashier-order-card.status-ready {
    border-color: rgba(34,197,94,.34) !important;
    background: linear-gradient(180deg, #f0fdf4, #fff) !important;
  }

  .cashier-order-card.status-ready::before {
    background: linear-gradient(90deg, #16a34a, #4ade80) !important;
  }

  .cashier-order-card.status-completed {
    border-color: rgba(100,116,139,.25) !important;
    background: linear-gradient(180deg, #f8fafc, #fff) !important;
  }

  .cashier-order-card.status-completed::before {
    background: linear-gradient(90deg, #64748b, #94a3b8) !important;
  }

  .cashier-order-card.status-cancelled {
    border-color: rgba(239,68,68,.30) !important;
    background: linear-gradient(180deg, #fff5f5, #fff) !important;
  }

  .cashier-order-card.status-cancelled::before {
    background: linear-gradient(90deg, #dc2626, #f87171) !important;
  }

  .cashier-order-head {
    align-items: flex-start !important;
    gap: 8px !important;
    margin: 4px 0 8px !important;
  }

  .cashier-order-head > div {
    display: grid !important;
    gap: 3px !important;
    min-width: 0 !important;
  }

  .cashier-order-head strong {
    font-size: 22px !important;
    line-height: 1 !important;
    letter-spacing: -.03em !important;
  }

  .cashier-order-head span {
    font-size: 12px !important;
    font-weight: 900 !important;
  }

  .cashier-order-head mark {
    flex-shrink: 0 !important;
    min-height: 30px !important;
    padding: 0 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    color: var(--blue, #0a68a8) !important;
    background: rgba(255,255,255,.85) !important;
    border: 1px solid rgba(10,104,168,.12) !important;
  }

  .cashier-order-card.status-new .cashier-order-head mark {
    color: #92400e !important;
    background: #fffbeb !important;
    border-color: rgba(245,158,11,.28) !important;
  }

  .cashier-order-card.status-preparing .cashier-order-head mark {
    color: #6d28d9 !important;
    background: #f5f3ff !important;
    border-color: rgba(124,58,237,.22) !important;
  }

  .cashier-order-card.status-ready .cashier-order-head mark {
    color: #15803d !important;
    background: #ecfdf5 !important;
    border-color: rgba(22,163,74,.22) !important;
  }

  .cashier-order-items {
    flex: 1 1 auto !important;
    min-height: 88px !important;
    max-height: 112px !important;
    margin: 8px 0 10px !important;
    padding: 10px !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,.72) !important;
    border: 1px solid rgba(10,104,168,.08) !important;
    overflow: auto !important;
    align-content: start !important;
  }

  .cashier-order-items li {
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    gap: 6px !important;
    padding: 7px 0 !important;
    align-items: center !important;
  }

  .cashier-order-items li strong {
    min-height: 27px !important;
    padding: 0 7px !important;
    border-radius: 999px !important;
    background: rgba(18,183,196,.10) !important;
    color: var(--blue, #0a68a8) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
  }

  .cashier-order-items li span {
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  .cashier-order-items li em {
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 950 !important;
    color: var(--blue, #0a68a8) !important;
    white-space: nowrap !important;
  }

  .cashier-order-notes {
    margin: -2px 0 8px !important;
    padding: 8px 10px !important;
    border-radius: 13px !important;
    font-size: 12px !important;
  }

  .cashier-order-foot {
    margin: 0 0 8px !important;
    padding: 10px 12px !important;
    border-radius: 16px !important;
    border-top: 0 !important;
    background: rgba(255,255,255,.76) !important;
    border: 1px solid rgba(10,104,168,.08) !important;
  }

  .cashier-order-foot span {
    font-size: 11px !important;
    font-weight: 950 !important;
  }

  .cashier-order-foot strong {
    font-size: 23px !important;
    line-height: 1 !important;
    color: var(--navy, #063766) !important;
  }

  .cashier-payment-row {
    margin: 0 0 8px !important;
    padding: 8px !important;
    border-radius: 15px !important;
    gap: 6px !important;
    background: rgba(255,255,255,.70) !important;
  }

  .cashier-payment-badge {
    min-height: 31px !important;
    padding: 0 9px !important;
    font-size: 11px !important;
  }

  .cashier-payment-btn {
    min-height: 31px !important;
    padding: 0 9px !important;
    font-size: 11px !important;
    border-radius: 999px !important;
  }

  .cashier-order-actions {
    margin-top: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .cashier-status-btn {
    min-height: 38px !important;
    border-radius: 13px !important;
    font-size: 13px !important;
  }

  .cashier-receipt-btn {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    width: 46px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border-radius: 13px !important;
    font-size: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: stretch !important;
  }

  .cashier-receipt-btn::before {
    content: "🖨️" !important;
    font-size: 18px !important;
    line-height: 1 !important;
  }

  .cashier-order-card .cashier-order-items::-webkit-scrollbar {
    width: 5px !important;
  }

  .cashier-order-card .cashier-order-items::-webkit-scrollbar-thumb {
    background: rgba(10,104,168,.22) !important;
    border-radius: 999px !important;
  }
}

@media (min-width: 768px) and (max-width: 980px) {
  .cashier-app-shell {
    width: min(100% - 18px, 980px) !important;
  }

  .cashier-orders-list {
    gap: 10px !important;
  }

  .cashier-order-card {
    min-height: 300px !important;
    padding: 11px !important;
    border-radius: 20px !important;
  }

  .cashier-order-head strong {
    font-size: 19px !important;
  }

  .cashier-order-head mark {
    font-size: 10px !important;
    padding: 0 7px !important;
  }

  .cashier-order-items {
    max-height: 96px !important;
    padding: 8px !important;
  }

  .cashier-order-foot strong {
    font-size: 20px !important;
  }

  .cashier-status-btn {
    min-height: 34px !important;
    font-size: 12px !important;
  }

  .cashier-payment-row {
    padding: 6px !important;
  }

  .cashier-payment-btn,
  .cashier-payment-badge {
    min-height: 28px !important;
    font-size: 10px !important;
  }
}

/* New-order visual alert */
.cashier-new-order-toast {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%) translateY(-18px);
  z-index: 999999;
  min-width: min(92vw, 380px);
  padding: 14px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #111827;
  font-family: "Cairo", Arial, sans-serif;
  font-weight: 950;
  text-align: center;
  box-shadow: 0 18px 44px rgba(146,64,14,.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .22s ease;
}

.cashier-new-order-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.cashier-orders-list.has-new-order-flash .cashier-order-card.status-new:first-child {
  animation: cashierNewOrderPulse .9s ease 0s 2;
}

@keyframes cashierNewOrderPulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 12px 26px rgba(6,55,102,.07); }
  50% { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(245,158,11,.25); }
}

/* SCG_CASHIER_3COL_ALERT_V1_END */

/* SCG_CASHIER_IPAD_SOUND_BUTTON_V1_START */
.cashier-sound-enable-btn {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid rgba(249,115,22,.22);
  font-family: "Cairo", Arial, sans-serif;
  font-weight: 950;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(154,52,18,.08);
}

.cashier-sound-enable-btn:hover {
  background: #ffedd5;
}

.cashier-sound-enable-btn.is-active {
  background: #ecfdf5;
  color: #047857;
  border-color: rgba(16,185,129,.28);
}

.cashier-sound-enable-btn.is-active::before {
  content: "✓ ";
}

@media (max-width: 700px) {
  .cashier-topbar nav {
    grid-template-columns: 1fr 1fr;
  }

  .cashier-sound-enable-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}
/* SCG_CASHIER_IPAD_SOUND_BUTTON_V1_END */

/* SCG_CASHIER_MANUAL_ORDER_V2_START */
.cashier-manual-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
  align-items: start;
}

.cashier-manual-head,
.cashier-manual-products,
.cashier-manual-cart {
  min-width: 0;
}

.cashier-manual-head {
  margin-bottom: 14px;
}

.cashier-manual-head h1 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 28px;
}

.cashier-manual-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.cashier-manual-products {
  display: grid;
  gap: 14px;
}

.cashier-manual-tabs {
  position: sticky;
  top: 90px;
  z-index: 10;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 10px;
  background: linear-gradient(180deg, rgba(242,251,255,.96), rgba(242,251,255,.78));
  backdrop-filter: blur(8px);
}

.cashier-manual-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(10,104,168,.14);
  color: var(--navy);
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.cashier-manual-tabs a.active,
.cashier-manual-tabs a:hover {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  border-color: transparent;
}

.cashier-manual-category {
  scroll-margin-top: 140px;
}

.cashier-manual-category h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 22px;
}

.cashier-manual-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.cashier-manual-product {
  position: relative;
  min-height: 86px;
  padding: 10px;
  border: 1px solid rgba(220,231,242,.96);
  border-radius: 20px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 10px 24px rgba(6,55,102,.06);
  display: grid;
  grid-template-columns: 60px minmax(0,1fr);
  align-items: center;
  gap: 10px;
  text-align: right;
  cursor: pointer;
  transition: .18s ease;
}

.cashier-manual-product:hover {
  transform: translateY(-1px);
  border-color: rgba(10,104,168,.24);
  box-shadow: 0 14px 28px rgba(6,55,102,.09);
}

.cashier-manual-product.is-selected {
  border-color: rgba(10,104,168,.36);
  background: linear-gradient(135deg, rgba(10,104,168,.06), rgba(18,183,196,.08));
}

.cashier-manual-product-thumb {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  overflow: hidden;
  background: #eef5f9;
  display: block;
}

.cashier-manual-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cashier-manual-product-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.cashier-manual-product-body strong {
  color: var(--navy);
  font-size: 15px;
  line-height: 1.35;
}

.cashier-manual-product-body span {
  color: var(--blue);
  font-weight: 950;
  font-size: 14px;
}

.cashier-manual-product-count {
  position: absolute;
  inset-inline-start: 10px;
  top: 10px;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
  opacity: 0;
  transform: scale(.8);
  transition: .18s ease;
  pointer-events: none;
}

.cashier-manual-product.is-selected .cashier-manual-product-count {
  opacity: 1;
  transform: scale(1);
}

.cashier-manual-cart {
  position: sticky;
  top: 90px;
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(220,231,242,.95);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 16px 34px rgba(6,55,102,.10);
  display: grid;
  gap: 12px;
}

.cashier-manual-cart h2 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
}

.cashier-manual-table-section {
  display: grid;
  gap: 10px;
}

.cashier-manual-table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 10px;
}

.cashier-manual-table-btn {
  min-height: 68px;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(10,104,168,.12);
  border-radius: 20px;
  background: #fff;
  color: var(--navy);
  font-family: inherit;
  font-size: 20px;
  font-weight: 950;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(6,55,102,.06);
  transition: .18s ease;
}

.cashier-manual-table-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(10,104,168,.24);
}

.cashier-manual-table-btn.is-selected {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(10,104,168,.18);
}

.cashier-manual-items {
  display: grid;
  gap: 8px;
  max-height: 42vh;
  overflow: auto;
  padding-left: 2px;
}

.cashier-empty.small {
  padding: 18px;
  border-radius: 18px;
  font-size: 14px;
}

.cashier-manual-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: #f7fbfd;
  border: 1px solid rgba(10,104,168,.10);
}

.cashier-manual-item-main {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.cashier-manual-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  background: #eef5f9;
}

.cashier-manual-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cashier-manual-item-main div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.cashier-manual-item strong {
  color: var(--navy);
}

.cashier-manual-item span,
.cashier-manual-item em {
  color: var(--muted);
  font-weight: 900;
  font-style: normal;
}

.cashier-manual-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cashier-manual-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 5px;
  border-radius: 999px;
  background: #eef8fb;
}

.cashier-manual-qty button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-weight: 950;
  font-size: 18px;
  cursor: pointer;
}

.cashier-manual-qty strong {
  min-width: 22px;
  text-align: center;
  color: var(--blue);
}

.cashier-manual-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(10,104,168,.12);
  padding-top: 12px;
}

.cashier-manual-total span {
  color: var(--navy);
  font-weight: 950;
}

.cashier-manual-total strong {
  color: var(--blue);
  font-size: 24px;
}

.cashier-manual-message {
  display: none;
  border-radius: 16px;
  padding: 12px;
  font-weight: 900;
}

.cashier-manual-message.success {
  display: block;
  background: #eefbf5;
  color: #087443;
}

.cashier-manual-message.error {
  display: block;
  background: #fff2f2;
  color: #b42318;
}

@media (max-width: 1024px) {
  .cashier-manual-layout {
    grid-template-columns: 1fr;
  }

  .cashier-manual-cart {
    position: static;
    order: -1;
  }

  .cashier-manual-tabs {
    top: 0;
  }
}

@media (max-width: 640px) {
  .cashier-manual-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .cashier-manual-product {
    grid-template-columns: 54px minmax(0,1fr);
    min-height: 80px;
    padding: 9px;
  }

  .cashier-manual-product-thumb {
    width: 54px;
    height: 54px;
  }

  .cashier-manual-table-grid {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  }

  .cashier-manual-table-btn {
    min-height: 60px;
    border-radius: 16px;
    font-size: 18px;
  }
}
/* SCG_CASHIER_MANUAL_ORDER_V2_END */

/* SCG_MANUAL_TABLET_BULK_TABLES_V1_START */

/* Keep the manual-order cart/sidebar floating on the LEFT for tablets/laptops.
   Mobile stays stacked. */
@media (min-width: 701px) {
  .cashier-manual-layout {
    direction: ltr !important;
    grid-template-columns: 320px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 14px !important;
  }

  .cashier-manual-cart,
  .cashier-manual-products {
    direction: rtl !important;
  }

  .cashier-manual-cart {
    grid-column: 1 !important;
    grid-row: 1 !important;
    order: 0 !important;
    position: sticky !important;
    top: 90px !important;
    max-height: calc(100vh - 110px) !important;
    overflow: auto !important;
    padding: 14px !important;
  }

  .cashier-manual-products {
    grid-column: 2 !important;
    grid-row: 1 !important;
    order: 0 !important;
  }

  .cashier-manual-table-grid {
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)) !important;
    gap: 7px !important;
  }

  .cashier-manual-table-btn {
    min-height: 52px !important;
    border-radius: 15px !important;
    font-size: 16px !important;
    box-shadow: 0 8px 16px rgba(6,55,102,.05) !important;
  }

  .cashier-manual-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
    gap: 9px !important;
  }

  .cashier-manual-product {
    min-height: 78px !important;
    grid-template-columns: 54px minmax(0,1fr) !important;
    padding: 9px !important;
    border-radius: 18px !important;
  }

  .cashier-manual-product-thumb {
    width: 54px !important;
    height: 54px !important;
    border-radius: 14px !important;
  }

  .cashier-manual-product-body strong {
    font-size: 14px !important;
  }

  .cashier-manual-product-body span {
    font-size: 13px !important;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .cashier-app-shell {
    width: min(100% - 16px, 980px) !important;
  }

  .cashier-manual-layout {
    grid-template-columns: 280px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .cashier-manual-cart {
    padding: 12px !important;
    border-radius: 20px !important;
  }

  .cashier-manual-cart h2 {
    font-size: 19px !important;
  }

  .cashier-manual-table-grid {
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)) !important;
    gap: 6px !important;
  }

  .cashier-manual-table-btn {
    min-height: 44px !important;
    border-radius: 13px !important;
    font-size: 14px !important;
  }

  .cashier-manual-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  }

  .cashier-manual-product {
    min-height: 72px !important;
    grid-template-columns: 48px minmax(0,1fr) !important;
    gap: 8px !important;
  }

  .cashier-manual-product-thumb {
    width: 48px !important;
    height: 48px !important;
  }
}

@media (max-width: 700px) {
  .cashier-manual-layout {
    direction: rtl !important;
    grid-template-columns: 1fr !important;
  }

  .cashier-manual-cart {
    grid-column: auto !important;
    grid-row: auto !important;
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    order: -1 !important;
  }

  .cashier-manual-products {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

/* Dashboard bulk table delete UI */
.table-qr-bulk-form {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 14px !important;
  margin: 12px 0 16px !important;
  border: 1px solid rgba(10,104,168,.12) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(10,104,168,.06), rgba(18,183,196,.06)) !important;
}

.table-qr-bulk-form div {
  display: grid !important;
  gap: 2px !important;
}

.table-qr-bulk-form strong {
  color: var(--navy, #063766) !important;
  font-weight: 950 !important;
}

.table-qr-bulk-form span {
  color: var(--muted, #667085) !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

.table-qr-bulk-form .btn.danger,
.table-qr-bulk-form button.danger {
  background: #fff2f2 !important;
  color: #b42318 !important;
  border: 1px solid rgba(180,35,24,.16) !important;
}

.table-qr-bulk-form button:disabled {
  opacity: .48 !important;
  cursor: not-allowed !important;
}

.table-qr-card {
  position: relative !important;
}

.table-qr-select {
  position: absolute !important;
  top: 10px !important;
  inset-inline-start: 10px !important;
  z-index: 3 !important;
  width: 34px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

.table-qr-select input {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.table-qr-select span {
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
  border: 2px solid rgba(10,104,168,.22) !important;
  background: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 6px 14px rgba(6,55,102,.10) !important;
}

.table-qr-select input:checked + span {
  background: linear-gradient(135deg, var(--blue, #0a68a8), var(--cyan, #12b7c4)) !important;
  border-color: transparent !important;
}

.table-qr-select input:checked + span::before {
  content: "✓" !important;
  color: #fff !important;
  font-weight: 950 !important;
  font-size: 16px !important;
}

.table-qr-card.is-bulk-selected {
  border-color: rgba(10,104,168,.34) !important;
  box-shadow: 0 16px 34px rgba(10,104,168,.12) !important;
}

@media (max-width: 720px) {
  .table-qr-bulk-form {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .table-qr-bulk-form button {
    width: 100% !important;
  }
}

/* SCG_MANUAL_TABLET_BULK_TABLES_V1_END */

/* SCG_CASHIER_APP_FEEL_MANUAL_LAYOUT_V1_START */

/* App-like page transition */
.cashier-app-page main.cashier-app-shell {
  transition: opacity .16s ease, transform .16s ease;
}

.cashier-app-page.is-cashier-loading main.cashier-app-shell {
  opacity: .38;
  transform: translateY(4px);
  pointer-events: none;
}

/* Manual order: remove repeated page title/description.
   The top bar already says إضافة طلب يدوي. */
.cashier-manual-page .cashier-manual-head {
  display: none !important;
}

/* Tablet/laptop: keep sidebar floating on the left, tall to bottom of viewport. */
@media (min-width: 701px) {
  .cashier-manual-page .cashier-app-shell {
    width: min(100% - 24px, 1440px) !important;
  }

  .cashier-manual-page .cashier-manual-layout {
    direction: ltr !important;
    grid-template-columns: 320px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: start !important;
  }

  .cashier-manual-page .cashier-manual-cart,
  .cashier-manual-page .cashier-manual-products {
    direction: rtl !important;
  }

  .cashier-manual-page .cashier-manual-cart {
    grid-column: 1 !important;
    grid-row: 1 !important;
    order: 0 !important;
    position: sticky !important;
    top: 14px !important;
    height: calc(100dvh - 28px) !important;
    max-height: calc(100dvh - 28px) !important;
    overflow: auto !important;
    align-self: start !important;
    border-radius: 24px !important;
  }

  .cashier-manual-page .cashier-manual-products {
    grid-column: 2 !important;
    grid-row: 1 !important;
    order: 0 !important;
  }

  .cashier-manual-page .cashier-topbar {
    margin-bottom: 14px !important;
  }
}

/* Smaller tablets */
@media (min-width: 701px) and (max-width: 900px) {
  .cashier-manual-page .cashier-app-shell {
    width: min(100% - 14px, 980px) !important;
  }

  .cashier-manual-page .cashier-manual-layout {
    grid-template-columns: 270px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .cashier-manual-page .cashier-manual-cart {
    padding: 12px !important;
    border-radius: 20px !important;
  }
}

/* Mobile: stacked layout remains. */
@media (max-width: 700px) {
  .cashier-manual-page .cashier-manual-layout {
    direction: rtl !important;
    grid-template-columns: 1fr !important;
  }

  .cashier-manual-page .cashier-manual-cart {
    grid-column: auto !important;
    grid-row: auto !important;
    position: static !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    order: -1 !important;
  }

  .cashier-manual-page .cashier-manual-products {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

/* Make table buttons more compact on tablets/laptops */
@media (min-width: 701px) {
  .cashier-manual-page .cashier-manual-table-grid {
    grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)) !important;
    gap: 6px !important;
  }

  .cashier-manual-page .cashier-manual-table-btn {
    min-height: 46px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    box-shadow: 0 6px 14px rgba(6,55,102,.05) !important;
  }
}

/* Cart/sidebar items: no image, name + price only */
.cashier-manual-page .cashier-manual-item-main {
  display: block !important;
}

.cashier-manual-page .cashier-manual-item-thumb {
  display: none !important;
}

.cashier-manual-page .cashier-manual-item-main div {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.cashier-manual-page .cashier-manual-item-main strong {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.cashier-manual-page .cashier-manual-item {
  padding: 10px !important;
  gap: 8px !important;
}

/* Smaller notes box */
.cashier-manual-page .cashier-manual-notes {
  min-height: 58px !important;
  height: 58px !important;
  padding: 10px 12px !important;
  resize: vertical !important;
  line-height: 1.45 !important;
}

/* Keep submit button pinned near bottom of the tall sidebar when there is space */
@media (min-width: 701px) {
  .cashier-manual-page .cashier-manual-cart .cashier-manual-submit {
    margin-top: auto !important;
  }
}

/* SCG_CASHIER_APP_FEEL_MANUAL_LAYOUT_V1_END */

/* SCG_MANUAL_ORDER_COMPACT_APP_V1_START */

/* App-like manual order page on tablets/laptops:
   the page itself does not scroll; products scroll independently and the sidebar stays fixed on the left. */
@media (min-width: 701px) {
  body.cashier-manual-page {
    overflow: hidden !important;
  }

  body.cashier-manual-page main.cashier-app-shell {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    width: min(100% - 18px, 1480px) !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  body.cashier-manual-page .cashier-topbar {
    flex: 0 0 auto !important;
    margin-bottom: 10px !important;
    padding: 14px 18px !important;
  }

  body.cashier-manual-page .cashier-manual-layout {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
    direction: ltr !important;
    display: grid !important;
    grid-template-columns: minmax(300px, 30%) minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: stretch !important;
  }

  body.cashier-manual-page .cashier-manual-cart,
  body.cashier-manual-page .cashier-manual-products {
    direction: rtl !important;
    min-height: 0 !important;
  }

  body.cashier-manual-page .cashier-manual-cart {
    grid-column: 1 !important;
    grid-row: 1 !important;
    order: 0 !important;
    position: relative !important;
    top: auto !important;
    height: 100% !important;
    max-height: none !important;
    overflow: auto !important;
    align-self: stretch !important;
    padding: 12px !important;
    border-radius: 22px !important;
    gap: 8px !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.cashier-manual-page .cashier-manual-products {
    grid-column: 2 !important;
    grid-row: 1 !important;
    order: 0 !important;
    overflow: auto !important;
    height: 100% !important;
    padding: 0 2px 24px 0 !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
  }

  body.cashier-manual-page .cashier-manual-tabs {
    top: 0 !important;
    padding: 0 0 8px !important;
    margin-bottom: 8px !important;
  }

  body.cashier-manual-page .cashier-manual-category {
    margin-bottom: 12px !important;
  }

  body.cashier-manual-page .cashier-manual-category h2 {
    margin: 0 0 8px !important;
    font-size: 20px !important;
  }
}

/* Smaller iPads/tablets: keep 30-ish sidebar but avoid crowding. */
@media (min-width: 701px) and (max-width: 980px) {
  body.cashier-manual-page main.cashier-app-shell {
    width: min(100% - 12px, 980px) !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  body.cashier-manual-page .cashier-topbar {
    padding: 12px 14px !important;
    margin-bottom: 8px !important;
  }

  body.cashier-manual-page .cashier-manual-layout {
    grid-template-columns: minmax(270px, 31%) minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  body.cashier-manual-page .cashier-manual-cart {
    padding: 10px !important;
    border-radius: 20px !important;
  }
}

/* Mobile: restore normal page scrolling and stacked layout. */
@media (max-width: 700px) {
  body.cashier-manual-page {
    overflow: auto !important;
  }

  body.cashier-manual-page main.cashier-app-shell {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
  }

  body.cashier-manual-page .cashier-manual-layout {
    direction: rtl !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    overflow: visible !important;
    height: auto !important;
  }

  body.cashier-manual-page .cashier-manual-cart {
    grid-column: auto !important;
    grid-row: auto !important;
    position: static !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    order: -1 !important;
  }

  body.cashier-manual-page .cashier-manual-products {
    grid-column: auto !important;
    grid-row: auto !important;
    height: auto !important;
    overflow: visible !important;
  }
}

/* Remove repeated title and notes field even if older markup remains. */
body.cashier-manual-page .cashier-manual-cart > h2 {
  display: none !important;
}

body.cashier-manual-page .cashier-manual-notes,
body.cashier-manual-page .cashier-manual-cart label:has(+ .cashier-manual-notes) {
  display: none !important;
}

/* Remove extra vertical space in sidebar. */
body.cashier-manual-page .cashier-manual-table-section {
  gap: 7px !important;
}

body.cashier-manual-page .cashier-manual-table-section label,
body.cashier-manual-page .cashier-manual-cart > label {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
}

body.cashier-manual-page .cashier-manual-table-grid {
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)) !important;
  gap: 6px !important;
  max-height: 32dvh !important;
  overflow: auto !important;
  padding-inline-end: 2px !important;
  overscroll-behavior: contain !important;
}

body.cashier-manual-page .cashier-manual-table-btn {
  min-height: 42px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 13px !important;
  font-size: 14px !important;
  box-shadow: 0 5px 12px rgba(6,55,102,.045) !important;
}

/* Compact product cards and reduce empty space. */
body.cashier-manual-page .cashier-manual-product-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
  gap: 8px !important;
}

body.cashier-manual-page .cashier-manual-product {
  min-height: 72px !important;
  grid-template-columns: 48px minmax(0,1fr) !important;
  gap: 8px !important;
  padding: 8px !important;
  border-radius: 17px !important;
}

body.cashier-manual-page .cashier-manual-product-thumb {
  width: 48px !important;
  height: 48px !important;
  border-radius: 13px !important;
}

body.cashier-manual-page .cashier-manual-product-body {
  gap: 2px !important;
}

body.cashier-manual-page .cashier-manual-product-body strong {
  font-size: 13px !important;
  line-height: 1.25 !important;
}

body.cashier-manual-page .cashier-manual-product-body span {
  font-size: 12px !important;
}

body.cashier-manual-page .cashier-manual-product-count {
  top: 7px !important;
  inset-inline-start: 7px !important;
  min-width: 21px !important;
  height: 21px !important;
  font-size: 11px !important;
}

/* Minimal cart items: name and price on one line, quantity controls below. */
body.cashier-manual-page .cashier-manual-items {
  gap: 6px !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
}

body.cashier-manual-page .cashier-manual-item {
  padding: 8px !important;
  gap: 6px !important;
  border-radius: 14px !important;
  background: #f8fcfe !important;
}

body.cashier-manual-page .cashier-manual-item-main {
  display: block !important;
}

body.cashier-manual-page .cashier-manual-item-thumb {
  display: none !important;
}

body.cashier-manual-page .cashier-manual-item-main div {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

body.cashier-manual-page .cashier-manual-item-main strong {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 13px !important;
}

body.cashier-manual-page .cashier-manual-item-main span {
  flex: 0 0 auto !important;
  color: var(--blue, #0a68a8) !important;
  font-size: 12px !important;
  font-weight: 950 !important;
}

body.cashier-manual-page .cashier-manual-item-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
}

body.cashier-manual-page .cashier-manual-qty {
  padding: 3px !important;
  gap: 5px !important;
}

body.cashier-manual-page .cashier-manual-qty button {
  width: 26px !important;
  height: 26px !important;
  font-size: 15px !important;
}

body.cashier-manual-page .cashier-manual-qty strong {
  min-width: 18px !important;
  font-size: 13px !important;
}

body.cashier-manual-page .cashier-manual-item-meta em {
  font-size: 12px !important;
  font-weight: 950 !important;
  color: var(--muted, #667085) !important;
}

body.cashier-manual-page .cashier-manual-total {
  padding-top: 8px !important;
  margin-top: 2px !important;
}

body.cashier-manual-page .cashier-manual-total strong {
  font-size: 22px !important;
}

body.cashier-manual-page .cashier-manual-submit {
  min-height: 46px !important;
}

/* SCG_MANUAL_ORDER_COMPACT_APP_V1_END */

/* SCG_MANUAL_ORDER_RECEIPT_COUNTERS_V3_START */

/* Product-card quantity controls */
body.cashier-manual-page .cashier-manual-product {
  padding-bottom: 42px !important;
}

body.cashier-manual-page .cashier-manual-card-qty {
  position: absolute !important;
  inset-inline: 8px !important;
  bottom: 7px !important;
  height: 30px !important;
  display: none !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  padding: 3px !important;
  border-radius: 999px !important;
  background: rgba(238,248,251,.96) !important;
  border: 1px solid rgba(18,183,196,.18) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65) !important;
}

body.cashier-manual-page .cashier-manual-product.is-selected .cashier-manual-card-qty {
  display: flex !important;
}

body.cashier-manual-page .cashier-manual-card-qty button {
  width: 24px !important;
  height: 24px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--blue, #0a68a8) !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

body.cashier-manual-page .cashier-manual-card-qty strong {
  min-width: 22px !important;
  text-align: center !important;
  color: var(--blue, #0a68a8) !important;
  font-size: 13px !important;
  font-weight: 950 !important;
}

/* Hide old floating badge because the full counter is now on the product card. */
body.cashier-manual-page .cashier-manual-product-count {
  display: none !important;
}

@media (min-width: 701px) {
  body.cashier-manual-page .cashier-manual-product {
    min-height: 96px !important;
  }

  body.cashier-manual-page .cashier-manual-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)) !important;
  }
}

@media (min-width: 701px) and (max-width: 980px) {
  body.cashier-manual-page .cashier-manual-product {
    min-height: 94px !important;
  }
}

/* Receipt-like sidebar list */
body.cashier-manual-page .cashier-manual-items {
  overflow: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  padding: 0 !important;
  overscroll-behavior: contain !important;
}

body.cashier-manual-page .cashier-manual-receipt {
  display: grid !important;
  gap: 0 !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  border: 1px solid rgba(10,104,168,.10) !important;
  background: #fff !important;
}

body.cashier-manual-page .cashier-manual-receipt-head,
body.cashier-manual-page .cashier-manual-receipt-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) 36px 58px 62px !important;
  gap: 6px !important;
  align-items: center !important;
  padding: 7px 8px !important;
}

body.cashier-manual-page .cashier-manual-receipt-head {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  background: #eef8fb !important;
  color: var(--navy, #063766) !important;
  font-size: 11px !important;
  font-weight: 950 !important;
}

body.cashier-manual-page .cashier-manual-receipt-row {
  border-top: 1px dashed rgba(10,104,168,.12) !important;
  font-size: 12px !important;
}

body.cashier-manual-page .cashier-manual-receipt-row span {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: var(--navy, #063766) !important;
  font-weight: 900 !important;
}

body.cashier-manual-page .cashier-manual-receipt-row strong,
body.cashier-manual-page .cashier-manual-receipt-row em,
body.cashier-manual-page .cashier-manual-receipt-row b {
  text-align: center !important;
  font-style: normal !important;
  font-weight: 950 !important;
  color: var(--blue, #0a68a8) !important;
  white-space: nowrap !important;
}

body.cashier-manual-page .cashier-manual-receipt-row b {
  color: var(--navy, #063766) !important;
}

/* Since quantity is now controlled from product cards, remove old sidebar qty controls if older markup survives. */
body.cashier-manual-page .cashier-manual-item-meta,
body.cashier-manual-page .cashier-manual-qty {
  display: none !important;
}

/* Sidebar spacing with receipt style */
body.cashier-manual-page .cashier-manual-cart {
  gap: 8px !important;
}

body.cashier-manual-page .cashier-manual-total {
  margin-top: auto !important;
  padding-top: 8px !important;
}

body.cashier-manual-page .cashier-manual-submit {
  margin-top: 0 !important;
}

@media (max-width: 420px) {
  body.cashier-manual-page .cashier-manual-receipt-head,
  body.cashier-manual-page .cashier-manual-receipt-row {
    grid-template-columns: minmax(0, 1.2fr) 30px 50px 55px !important;
    gap: 4px !important;
    padding: 6px !important;
  }
}
/* SCG_MANUAL_ORDER_RECEIPT_COUNTERS_V3_END */

/* SCG_MANUAL_CARD_COUNTER_REPAIR_V1_START */

/* Product cards are now article elements, not buttons.
   This prevents iPad/Safari from breaking nested + / − controls. */
body.cashier-manual-page .cashier-manual-product {
  appearance: none !important;
  -webkit-appearance: none !important;
  border-style: solid !important;
  outline: none !important;
}

body.cashier-manual-page .cashier-manual-product:focus-visible {
  box-shadow: 0 0 0 4px rgba(18,183,196,.22), 0 14px 28px rgba(6,55,102,.09) !important;
}

/* Keep the product-card counter compact and attached to the card */
body.cashier-manual-page .cashier-manual-card-qty {
  position: absolute !important;
  inset-inline: 8px !important;
  bottom: 7px !important;
  height: 30px !important;
  display: none !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  padding: 3px !important;
  border-radius: 999px !important;
  background: rgba(238,248,251,.96) !important;
  border: 1px solid rgba(18,183,196,.20) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.70) !important;
}

body.cashier-manual-page .cashier-manual-product.is-selected .cashier-manual-card-qty {
  display: flex !important;
}

body.cashier-manual-page .cashier-manual-card-qty button {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--blue, #0a68a8) !important;
  font-family: "Cairo", Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 10px rgba(6,55,102,.08) !important;
}

body.cashier-manual-page .cashier-manual-card-qty strong {
  min-width: 22px !important;
  text-align: center !important;
  color: var(--blue, #0a68a8) !important;
  font-size: 13px !important;
  font-weight: 950 !important;
}

body.cashier-manual-page .cashier-manual-product {
  padding-bottom: 42px !important;
}

body.cashier-manual-page .cashier-manual-product-count {
  display: none !important;
}

/* Remove any accidental default grey boxes from old broken markup if cached */
body.cashier-manual-page .cashier-manual-products > button:not(.cashier-manual-product),
body.cashier-manual-page .cashier-manual-category button:not(.cashier-manual-table-btn):not([data-card-plus]):not([data-card-minus]) {
  max-width: 100% !important;
}

/* SCG_MANUAL_CARD_COUNTER_REPAIR_V1_END */
