  /* Inter, self-hosted (latin + latin-ext for the ₹ sign) */
  /* latin-ext */


  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(/fonts/inter-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }

  /* latin */
  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(/fonts/inter-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }

  :root {
    --restaurant-theme: #895548;
    --restaurant-theme-dark: #603b32;
    --restaurant-theme-light: rgba(137, 85, 72, .15);
    --restaurant-theme-border: rgba(137, 85, 72, .45);
    --restaurant-theme-ink: #fff;
    --theme: var(--restaurant-theme);
    --theme-color: var(--restaurant-theme);
    --theme-dark: var(--restaurant-theme-dark);
    --theme-hover: var(--restaurant-theme-dark);
    --theme-darker: #452a23;
    --theme-light: var(--restaurant-theme-light);
    --theme-border: var(--restaurant-theme-border);
    --theme-ink: var(--restaurant-theme-ink);
    --theme-text: var(--restaurant-theme-ink);
    --brand: var(--theme);
    --brand-600: var(--theme-dark);
    --brand-50: var(--theme-light);
    --brand-ink: var(--theme-ink);
    --side: #17181c;
    --side-ink: #a1a1aa;
    --bg: #f6f4f0;
    --card: #fff;
    --raised: #fbfaf8;
    --ink: #18181b;
    --muted: #6b6b73;
    --line: #e8e5df;
    --ok: var(--theme);
    --ok-bg: var(--theme-light);
    --warn: var(--theme);
    --warn-bg: var(--theme-light);
    --bad: var(--theme-dark);
    --bad-bg: var(--theme-light);
    --info: var(--theme);
    --info-bg: var(--theme-light);
    --radius: 14px;
    --shadow: 0 1px 2px rgba(24, 24, 27, .04), 0 4px 16px rgba(24, 24, 27, .04);
    --ring: 0 0 0 3px rgba(217, 72, 15, .22);
    --page-bg: var(--bg);
    --surface: var(--card);
    --surface-secondary: var(--raised);
    --surface-hover: #fff7f1;
    --text-primary: var(--ink);
    --text-secondary: var(--muted);
    --text-muted: var(--muted);
    --border-color: var(--line);
    --danger-color: var(--bad);
    --success-color: var(--ok);
    --overlay-bg: rgba(0, 0, 0, .45);
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --brand: #f2672a;
      --brand-600: #ff7a3d;
      --brand-50: #2a1a12;
      --brand-ink: #1a0f08;
      --side: #0e0f12;
      --bg: #131316;
      --card: #1b1b20;
      --raised: #212127;
      --ink: #f4f4f5;
      --muted: #9a9aa3;
      --line: #2c2c33;
      --ok: #4ade80;
      --ok-bg: #12301d;
      --warn: #fbbf24;
      --warn-bg: #33270d;
      --bad: #f87171;
      --bad-bg: #3a1618;
      --info: #7aa2ff;
      --info-bg: #15244a;
      --shadow: none;
    }
  }

  [data-theme="light"] {
    color-scheme: light;
  }

  [data-theme="dark"] {
    color-scheme: dark;
    --page-bg: #131316;
    --surface: #1b1b20;
    --surface-secondary: #212127;
    --surface-hover: #2c2c33;
    --text-primary: #f4f4f5;
    --text-secondary: #b8b8c0;
    --text-muted: #9a9aa3;
    --border-color: #2c2c33;
    --danger-color: #f87171;
    --success-color: #4ade80;
    --overlay-bg: rgba(0, 0, 0, .65);
  }

  * {
    box-sizing: border-box;
  }

  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    margin: 0;
    font: 14.5px/1.55 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
  }

  a {
    color: var(--brand-600);
    text-decoration: none;
  }

  a:hover {
    text-decoration: underline;
  }

  h1,
  h2,
  h3 {
    line-height: 1.2;
    margin: 0 0 .5em;
    letter-spacing: -.02em;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 16px;
  }

  svg.i {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
  }

  .hidden {
    display: none !important;
  }

  .muted {
    color: var(--muted);
  }

  .small {
    font-size: 13px;
  }

  /* ---- app shell ---- */
  .shell {
    display: grid;
    grid-template-columns: 248px 1fr;
    min-height: 100vh;
  }

  .side {
    background: var(--side);
    color: var(--side-ink);
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: sticky;
    top: 0;
    height: 100vh;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -.02em;
    padding: 4px 10px 20px;
    text-decoration: none;
  }

  .brand .mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, #f2672a, #c2410c);
    display: grid;
    place-items: center;
    color: #fff;
  }

  .brand .mark>img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
    display: block;
  }

  .brand .mark.has-logo {
    background: transparent;
  }

  .brand small {
    display: block;
    font-weight: 500;
    font-size: 11.5px;
    color: var(--side-ink);
    letter-spacing: 0;
    margin-top: -2px;
  }

  .sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 4px 10px 20px;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.02em;
  }

  .sidebar-brand img {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    object-fit: contain;
    border-radius: 9px;
  }

  .sidebar-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
  }

  .sidebar-brand-text #brandName {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar-brand-text small {
    display: block;
    margin-top: -2px;
    color: var(--side-ink);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0;
  }

  .tabs {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .tabs button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    width: 100%;
    background: transparent;
    color: var(--side-ink);
    border: 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 500;
  }

  .tabs button:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
  }

  .tabs button.on {
    background: rgba(242, 103, 42, .16);
    color: #fff;
  }

  .tabs button.on svg {
    color: #f2672a;
  }

  .side .spacer {
    flex: 1;
  }

  .side .logout {
    background: transparent;
    color: var(--side-ink);
    border: 1px solid rgba(255, 255, 255, .12);
    width: 100%;
  }

  .side .logout:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
  }

  main.main {
    padding: 28px 32px 56px;
    min-width: 0;
    max-width: 1280px;
    width: 100%;
  }

  .page-head {
    margin-bottom: 22px;
  }

  .page-head h1 {
    font-size: 26px;
    margin: 0;
  }

  .page-head p {
    margin: 2px 0 0;
    color: var(--muted);
  }

  @media (max-width: 860px) {
    .shell {
      grid-template-columns: 1fr;
    }

    .side {
      position: sticky;
      top: 0;
      z-index: 5;
      height: auto;
      flex-direction: row;
      align-items: center;
      padding: 10px 12px;
      gap: 8px;
      overflow-x: auto;
    }

    .brand {
      padding: 0 6px 0 0;
    }

    .brand small,
    .side .logout span {
      display: none;
    }

    .tabs {
      flex-direction: row;
    }

    .tabs button {
      white-space: nowrap;
      padding: 8px 12px;
    }

    .tabs button span {
      display: none;
    }

    .tabs button.on span {
      display: inline;
    }

    .side .spacer {
      display: none;
    }

    .side .logout {
      width: auto;
      padding: 8px 10px;
    }

    main.main {
      padding: 20px 16px 48px;
    }
  }

  /* ---- surfaces ---- */
  .card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
  }

  .card>h3:first-child {
    margin-bottom: 14px;
  }

  .stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
  }

  .stat {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow);
  }

  .stat span {
    display: block;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 500;
    margin-bottom: 6px;
  }

  .stat b {
    font-size: 26px;
    letter-spacing: -.02em;
  }

  .stat.hl {
    background: var(--brand-50);
    border-color: transparent;
  }

  .stat.hl b {
    color: var(--brand-600);
  }

  .stat.big b {
    font-size: 44px;
    line-height: 1.1;
  }

  .grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    align-items: start;
  }

  .empty {
    text-align: center;
    color: var(--muted);
    padding: 28px 0;
  }

  .note {
    background: var(--info-bg);
    color: var(--info);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    margin: 12px 0;
  }

  .card-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  /* ---- forms ---- */
  label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin: 14px 0 6px;
  }

  input,
  select,
  textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    color: var(--ink);
    font: inherit;
    transition: border-color .15s, box-shadow .15s;
  }

  input:focus,
  select:focus,
  textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: var(--ring);
  }

  input:disabled {
    background: var(--raised);
    color: var(--muted);
  }

  input[type=color] {
    padding: 3px;
    height: 42px;
    cursor: pointer;
  }

  input[type=file] {
    padding: 8px;
  }

  input[type=checkbox] {
    width: auto;
  }

  textarea {
    min-height: 84px;
    resize: vertical;
  }

  .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0 16px;
  }

  .err {
    color: var(--bad);
    margin: 12px 0 0;
    min-height: 1.3em;
    font-size: 13.5px;
    font-weight: 500;
  }

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

  .check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin: 16px 0 0;
  }

  .check input {
    margin: 0;
  }

  button,
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--brand);
    color: var(--brand-ink);
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 18px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
  }

  button:hover,
  .btn:hover {
    background: var(--brand-600);
    text-decoration: none;
  }

  button:focus-visible,
  .btn:focus-visible {
    outline: none;
    box-shadow: var(--ring);
  }

  button.ghost,
  .btn.ghost {
    background: var(--card);
    color: var(--ink);
    border-color: var(--line);
  }

  button.ghost:hover,
  .btn.ghost:hover {
    background: var(--raised);
  }

  button.sm {
    padding: 6px 11px;
    font-size: 13px;
    border-radius: 8px;
  }

  button.lg,
  .btn.lg {
    padding: 13px 24px;
    font-size: 15.5px;
    border-radius: 12px;
  }

  button.danger {
    background: var(--bad-bg);
    color: var(--bad);
  }

  button.danger:hover {
    background: var(--bad);
    color: var(--theme-ink);
  }

  button.danger-solid {
    background: var(--theme-dark);
    color: var(--theme-ink);
  }

  button.danger-solid:hover {
    background: var(--theme-darker);
  }

  button:disabled {
    opacity: .5;
    cursor: not-allowed;
  }

  .table-wrap {
    overflow-x: auto;
    margin: 0 -22px -6px;
    padding: 0 22px;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
  }

  th,
  td {
    text-align: left;
    padding: 12px 12px 12px 0;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
    vertical-align: middle;
  }

  tbody tr:last-child td {
    border-bottom: 0;
  }

  th {
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
  }

  .pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    background: var(--raised);
    color: var(--muted);
    border: 1px solid var(--line);
  }

  .pill.ok {
    background: var(--ok-bg);
    color: var(--ok);
    border-color: transparent;
  }

  .pill.warn {
    background: var(--warn-bg);
    color: var(--warn);
    border-color: transparent;
  }

  .pill.bad {
    background: var(--bad-bg);
    color: var(--bad);
    border-color: transparent;
  }

  .subtabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
  }

  .subtabs button {
    background: transparent;
    color: var(--muted);
    padding: 8px 16px;
    border-radius: 9px;
  }

  .subtabs button:hover {
    background: var(--raised);
    color: var(--ink);
  }

  .subtabs button.on {
    background: var(--brand);
    color: var(--brand-ink);
  }

  .toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }

  .filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
  }

  .filters input {
    width: 260px;
    max-width: 100%;
  }

  .filters select {
    width: auto;
    min-width: 150px;
  }

  .filters input:focus,
  .filters select:focus {
    box-shadow: none;
    border-color: var(--line);
  }

  .modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 12, .55);
    backdrop-filter: blur(2px);
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 16px;
  }

  .modal-box {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow: auto;
    padding: 22px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
  }

  .modal-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    margin-bottom: 14px;
  }

  .kv {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .kv:last-child {
    border-bottom: 0;
  }

  .kv span {
    color: var(--muted);
    flex: none;
  }

  .kv b {
    font-weight: 600;
    text-align: right;
    word-break: break-word;
  }

  .confirm-box {
    max-width: 420px;
    text-align: center;
  }

  .confirm-box h3 {
    font-size: 19px;
    margin: 12px 0 6px;
  }

  .confirm-box p {
    margin: 0;
  }

  .confirm-ico {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin: 0 auto;
    display: grid;
    place-items: center;
    background: var(--brand-50);
    color: var(--brand);
  }

  .confirm-ico.danger {
    background: var(--bad-bg);
    color: var(--bad);
  }

  .confirm-ico svg {
    width: 24px;
    height: 24px;
  }

  .confirm-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
  }

  .confirm-actions button {
    flex: 1;
  }

  .toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--bg);
    padding: 11px 20px;
    border-radius: 10px;
    z-index: 99;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
    max-width: 90vw;
  }

  .secret {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    background: var(--raised);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    word-break: break-all;
  }

  /* ---- dashboard: menu items ---- */
  .items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
  }

  .item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
  }

  .item.off {
    opacity: .6;
  }

  .thumb {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--tc, #d9480f), color-mix(in srgb, var(--tc, #d9480f) 55%, #000));
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .85);
    font-size: 44px;
    font-weight: 800;
    overflow: hidden;
  }

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

  .item-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
  }

  .item-body .nm {
    font-weight: 700;
  }

  .item-body .price {
    font-weight: 800;
    color: var(--brand-600);
  }

  .item-body .ds {
    color: var(--muted);
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .item-foot {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 8px;
  }

  .img-pick {
    display: flex;
    gap: 14px;
    align-items: center;
  }

  .img-pick .thumb {
    width: 110px;
    flex: none;
    border-radius: 12px;
    font-size: 32px;
  }

  /* ---- QR ---- */
  .qr-box {
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
  }

  .qr-box img {
    width: 100%;
    max-width: 320px;
    height: auto;
    image-rendering: pixelated;
  }

  /* ---- public pages ---- */
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1080px;
    margin: 0 auto;
    padding: 18px 20px;
  }

  .nav .brand {
    color: var(--ink);
    padding: 0;
  }

  .hero {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 20px;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(32px, 5vw, 50px);
    letter-spacing: -.035em;
  }

  .hero h1 em {
    font-style: normal;
    color: var(--brand);
  }

  .hero p {
    font-size: 18px;
    color: var(--muted);
  }

  .auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .auth .panel {
    background: var(--side);
    color: #fff;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: radial-gradient(circle at 80% 10%, rgba(242, 103, 42, .35), transparent 50%);
  }

  .auth .panel h2 {
    font-size: 32px;
    max-width: 380px;
  }

  .auth .panel p {
    color: var(--side-ink);
    max-width: 360px;
  }

  .auth .form {
    display: grid;
    place-items: center;
    padding: 32px 20px;
  }

  .auth .box {
    width: 100%;
    max-width: 420px;
  }

  .auth .box h1 {
    font-size: 28px;
    margin-bottom: 4px;
  }

  @media (max-width: 860px) {
    .auth {
      grid-template-columns: 1fr;
    }

    .auth .panel {
      display: none;
    }
  }

  /* Login page: kept scoped so the shared dashboard and customer menu are unchanged. */
  .login-page {
    --login-bg: #121214;
    --login-panel: #0d0d0f;
    --login-gradient: #572719;
    --login-orange: #f56626;
    --login-orange-hover: #d9511d;
    --login-muted: #a3a8b5;
    --login-input: #e8f0fe;
    min-height: 100vh;
    padding: 18px;
    overflow: hidden;
    background: var(--login-bg);
    color: #fff;
  }

  .login-shell {
    min-height: calc(100vh - 36px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border-radius: 18px;
    background: var(--login-bg);
  }

  .login-intro {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    background:
      radial-gradient(circle at 82% 10%, rgba(87, 39, 25, .92), transparent 42%),
      linear-gradient(155deg, #171012 0%, var(--login-panel) 54%, #080809 100%);
  }

  .login-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -.02em;
  }

  .login-brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    border-radius: 10px;
    background: var(--login-orange);
    color: #fff;
  }

  .login-brand-mark svg {
    width: 20px;
    height: 20px;
  }

  .login-intro-copy {
    margin: auto 0;
    padding: 90px 0 72px;
  }

  .login-intro-copy h1 {
    max-width: 350px;
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(26px, 2.25vw, 29px);
    font-weight: 750;
    line-height: 1.18;
    letter-spacing: -.035em;
  }

  .login-intro-copy p,
  .login-footnote {
    max-width: 330px;
    margin: 0;
    color: var(--login-muted);
    font-size: 13px;
    line-height: 1.65;
  }

  .login-footnote {
    max-width: 345px;
    font-size: 11px;
    line-height: 1.55;
  }

  .login-form-panel {
    min-width: 0;
    display: grid;
    place-items: center;
    padding: 40px;
    background: var(--login-bg);
  }

  .login-form-box {
    width: min(100%, 350px);
  }

  .login-form-box h2 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -.03em;
  }

  .login-subtitle {
    margin: 0 0 29px;
    color: var(--login-muted);
    font-size: 13px;
  }

  .login-form-box form {
    display: flex;
    flex-direction: column;
  }

  .login-form-box label {
    margin: 0 0 7px;
    color: #d4d7df;
    font-size: 12px;
    font-weight: 600;
  }

  .login-form-box input {
    width: 100%;
    height: 42px;
    margin: 0 0 19px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: var(--login-input);
    color: #111827;
    font: inherit;
    font-size: 13px;
    transition: border-color .2s ease, box-shadow .2s ease;
  }

  .login-form-box input::placeholder {
    color: #687386;
  }

  .login-form-box input:focus {
    border-color: var(--login-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 102, 38, .18);
  }

  .login-submit {
    width: 100%;
    min-height: 44px;
    margin-top: 5px;
    justify-content: center;
    border: 1px solid var(--login-orange);
    border-radius: 10px;
    background: var(--login-orange);
    color: #251108;
    font-size: 13px;
    font-weight: 750;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
  }

  .login-submit:hover {
    border-color: var(--login-orange-hover);
    background: var(--login-orange-hover);
    color: #fff;
    transform: translateY(-1px);
  }

  .login-submit:focus-visible {
    outline: 2px solid var(--login-orange);
    outline-offset: 3px;
  }

  .login-error {
    min-height: 18px;
    margin: -4px 0 6px;
    color: #ff9a86;
    font-size: 12px;
  }

  .login-back {
    margin: 20px 0 0;
    font-size: 12px;
  }

  .login-back a {
    color: var(--login-orange);
    font-weight: 600;
  }

  .login-back a:hover {
    color: #ff895c;
  }

  @media (max-width: 860px) {
    .login-page {
      padding: 0;
      overflow: auto;
    }

    .login-shell {
      min-height: 100vh;
      grid-template-columns: 1fr;
      border-radius: 0;
    }

    .login-intro {
      min-height: 300px;
      padding: 28px 26px;
    }

    .login-intro-copy {
      padding: 50px 0 25px;
    }

    .login-intro-copy h1 {
      font-size: 26px;
    }

    .login-form-panel {
      min-height: 430px;
      padding: 48px 26px 56px;
    }
  }

  @media (max-width: 480px) {
    .login-intro {
      min-height: 270px;
    }

    .login-footnote {
      font-size: 10px;
    }

    .login-form-panel {
      align-items: start;
      padding-top: 42px;
    }
  }

  /* Kalvium-style collapsed dashboard shell. */
  .shell {
    display: block !important;
    min-height: 100dvh;
  }

  .shell>.side {
    position: fixed !important;
    inset: 0 auto 0 0;
    z-index: 100;
    width: 252px;
    max-width: calc(100vw - 24px);
    height: 100dvh;
    min-height: 0;
    transform: translateX(-100%) !important;
    transition: transform .28s ease !important;
    overflow: hidden;
  }

  .shell>.side.is-open {
    transform: translateX(0) !important;
  }

  .shell>.side>.tabs {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .shell>.side>.spacer {
    display: none;
  }

  .shell>.side>.logout {
    flex: 0 0 auto;
    margin-top: auto;
  }

  main.main,
  main.main.wide {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .dashboard-toolbar {
    display: flex;
    align-items: center;
    height: 40px;
    margin-bottom: 16px;
  }

  .hamburger-btn {
    display: inline-flex !important;
    position: static;
    width: 40px;
    height: 40px;
    padding: 8px;
    flex: 0 0 40px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: var(--side);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 9px;
    color: #fff;
    cursor: pointer;
  }

  .hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    border-radius: 2px;
    background: currentColor;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0, 0, 0, .42);
  }

  .sidebar-overlay[hidden] {
    display: none !important;
  }

  @media (max-width: 860px) {

    main.main,
    main.main.wide {
      padding: 20px 16px 48px;
    }

    .dashboard-toolbar {
      margin-bottom: 16px;
    }

    .shell>.side {
      width: min(260px, calc(100vw - 24px));
      padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
  }

  @media (max-width: 480px) {

    main.main,
    main.main.wide {
      padding-left: 12px;
      padding-right: 12px;
    }
  }

  /* Keep the collapsed overlay shell last so page-specific rules cannot reopen it. */
  .shell {
    display: block !important;
  }

  .shell>.side {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 100 !important;
    width: 252px !important;
    max-width: calc(100vw - 24px) !important;
    height: 100dvh !important;
    min-height: 0 !important;
    transform: translateX(-100%) !important;
    transition: transform .28s ease !important;
    overflow: hidden !important;
  }

  .shell>.side.is-open {
    transform: translateX(0) !important;
  }

  .shell>.side>.tabs {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .shell>.side>.logout {
    flex: 0 0 auto !important;
    margin-top: auto !important;
  }

  main.main,
  main.main.wide {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .dashboard-toolbar {
    display: flex !important;
    align-items: center;
    height: 40px;
    margin-bottom: 16px;
  }

  .hamburger-btn {
    display: inline-flex !important;
    position: static !important;
    width: 40px !important;
    height: 40px !important;
    padding: 8px !important;
    flex: 0 0 40px !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: var(--side) !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    border-radius: 9px !important;
    color: #fff !important;
    cursor: pointer;
  }

  .hamburger-btn span {
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    margin: 0 auto;
    border-radius: 2px;
    background: currentColor !important;
  }

  .sidebar-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 90 !important;
    background: rgba(0, 0, 0, .42) !important;
  }

  .sidebar-overlay[hidden] {
    display: none !important;
  }

  @media (max-width: 860px) {

    main.main,
    main.main.wide {
      padding: 20px 16px 48px !important;
    }

    .shell>.side {
      width: min(260px, calc(100vw - 24px)) !important;
      padding-bottom: max(20px, env(safe-area-inset-bottom)) !important;
    }
  }

  @media (max-width: 480px) {

    main.main,
    main.main.wide {
      padding-left: 12px !important;
      padding-right: 12px !important;
    }
  }

  html body .shell>aside.side:not(.is-open) {
    transform: translateX(-100%) !important;
  }

  html body .shell>aside.side.is-open {
    transform: translateX(0) !important;
  }

  /* Super Admin: only the two requested primary actions. */
  #editForm button[type="submit"],
  .reset-password-confirm .confirm-actions button[data-r="1"] {
    background-color: #F97316 !important;
    color: #FFFFFF !important;
    border-color: #F97316 !important;
  }

  #editForm button[type="submit"]:hover,
  .reset-password-confirm .confirm-actions button[data-r="1"]:hover {
    background-color: #EA580C !important;
    border-color: #EA580C !important;
  }

  .auth .box {
    width: 100%;
    max-width: 420px;
  }

  .auth .box h1 {
    font-size: 28px;
    margin-bottom: 4px;
  }

  @media (max-width: 860px) {
    .auth {
      grid-template-columns: 1fr;
    }

    .auth .panel {
      display: none;
    }
  }

  .demo {
    margin-top: 22px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    background: var(--raised);
  }

  .demo-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    margin-bottom: 6px;
  }

  .demo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
  }

  .demo-row+.demo-row {
    border-top: 1px solid var(--line);
  }

  /* ---- customer menu (mobile first) ---- */
  body.menu-page {
    --theme: #d9480f;
    background: var(--bg);
  }

  .m-hero {
    background: var(--theme);
    color: #fff;
    text-align: center;
    padding: 28px 16px 26px;
    background-image: radial-gradient(circle at 85% 0, rgba(255, 255, 255, .18), transparent 55%);
  }

  .m-hero img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    background: #fff;
    border-radius: 22px;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  }

  .m-hero h1 {
    margin: 12px 0 4px;
    font-size: 26px;
  }

  .m-hero p {
    margin: 0;
    opacity: .92;
  }

  .m-hero .small {
    margin-top: 4px;
    opacity: .85;
  }

  .m-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 10px 12px 8px;
  }

  .m-search {
    max-width: 1080px;
    margin: 0 auto 8px;
  }

  .m-search input {
    border-radius: 99px;
    padding: 10px 16px;
  }

  .m-search input:focus {
    border-color: var(--theme);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme) 25%, transparent);
  }

  .m-chips {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .m-chips::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex: none;
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 7px 14px;
    font-weight: 600;
    font-size: 13.5px;
    white-space: nowrap;
  }

  .chip:hover {
    background: var(--raised);
  }

  .chip.on {
    background: var(--theme);
    border-color: var(--theme);
    color: #fff;
  }

  .m-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 8px 12px 48px;
  }

  .m-sec {
    padding-top: 18px;
    scroll-margin-top: 112px;
  }

  .m-sec h2 {
    font-size: 19px;
    margin: 0 0 12px;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .m-sec h2 span {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--muted);
  }

  .m-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  @media (min-width: 640px) {
    .m-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
    }

    .m-wrap {
      padding: 8px 20px 56px;
    }
  }

  @media (min-width: 960px) {
    .m-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }

  .m-card {
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    text-align: left;
    padding: 0;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    font-weight: 400;
    cursor: pointer;
  }

  .m-card:hover {
    background: var(--card);
  }

  .m-card .thumb {
    --tc: var(--theme);
    border-radius: 0;
    width: 100%;
  }

  .m-card .b {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
  }

  .m-card .nm {
    font-weight: 700;
    font-size: 14.5px;
    line-height: 1.3;
  }

  .m-card .ds {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .m-card .pr {
    margin-top: auto;
    padding-top: 6px;
    font-weight: 800;
    color: var(--theme);
    font-size: 15.5px;
  }

  .m-foot {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    padding: 8px 16px 40px;
  }

  .sheet {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 12, .55);
    z-index: 50;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  .sheet-box {
    background: var(--card);
    width: 100%;
    max-width: 520px;
    border-radius: 22px 22px 0 0;
    max-height: 92vh;
    overflow: auto;
    animation: up .2s ease-out;
  }

  .sheet-box .thumb {
    border-radius: 0;
    aspect-ratio: 16 / 11;
    --tc: var(--theme);
  }

  .sheet-body {
    padding: 16px 18px 24px;
  }

  .sheet-body h2 {
    margin: 0 0 6px;
    font-size: 22px;
  }

  .sheet-body .pr {
    font-size: 22px;
    font-weight: 800;
    color: var(--theme);
    margin-bottom: 10px;
  }

  .sheet-body p {
    color: var(--muted);
    margin: 0 0 16px;
  }

  .sheet-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 18px;
  }

  .sheet-wrap {
    position: relative;
    width: 100%;
    max-width: 520px;
  }

  @media (min-width: 640px) {
    .sheet {
      align-items: center;
    }

    .sheet-box {
      border-radius: 22px;
    }
  }

  @keyframes up {
    from {
      transform: translateY(24px);
      opacity: 0;
    }

    to {
      transform: none;
      opacity: 1;
    }
  }

  /* ---- additions on top of the reference design ---- */
  .pw-row {
    display: flex;
    gap: 8px;
  }

  .pw-row input {
    flex: 1;
    min-width: 0;
  }

  .pwcell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .pwtxt {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .04em;
    color: var(--muted);
    user-select: none;
  }

  .pwtxt.on {
    color: var(--ink);
    font-weight: 600;
    user-select: all;
  }

  button.icon {
    padding: 5px 7px;
  }

  button.icon svg {
    width: 16px;
    height: 16px;
  }

  .kv-grid {
    margin-bottom: 4px;
  }

  /* admin console: use the full screen width (tables are wide) */
  main.main.wide {
    max-width: none;
  }

  main.main.wide table {
    font-size: 13px;
  }

  main.main.wide th,
  main.main.wide td {
    padding-right: 10px;
  }

  main.main.wide td .sm {
    padding: 5px 9px;
    font-size: 12px;
  }

  main.main.wide .actions {
    gap: 6px;
  }

  /* form grids: every field in a row lines up */
  .row {
    gap: 14px 16px;
  }

  .row>div {
    min-width: 0;
  }

  .row>div>label:first-child {
    margin-top: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  input:not([type=checkbox]):not([type=color]):not([type=file]),
  select {
    min-height: 44px;
  }

  .pw-row {
    align-items: stretch;
  }

  input[type=date] {
    height: 44px;
  }

  /* ---- grid / list switch (menu items, Manage menu, guest menu) ---- */
  .vtoggle {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    flex: none;
  }

  .vtoggle button {
    background: transparent;
    color: var(--muted);
    border: 0;
    padding: 6px 9px;
    border-radius: 7px;
    line-height: 0;
  }

  .vtoggle button:hover {
    background: var(--raised);
    color: var(--ink);
  }

  .vtoggle button.on,
  .vtoggle button.on:hover {
    background: var(--brand);
    color: var(--brand-ink);
  }

  .vtoggle svg {
    width: 18px;
    height: 18px;
  }

  body.menu-page .vtoggle button.on,
  body.menu-page .vtoggle button.on:hover {
    background: var(--theme);
    color: #aa8b8b;
  }

  /* dashboard / Manage menu: one row per dish */
  .items.as-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .items.as-list .item {
    display: grid;
    grid-template-columns: 104px 1fr;
    align-items: stretch;
  }

  .items.as-list .thumb {
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
    min-height: 104px;
    font-size: 30px;
  }

  .items.as-list .item-body {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 16px;
    align-content: center;
    align-items: center;
    padding: 10px 16px;
  }

  .items.as-list .item-body>* {
    grid-column: 1;
  }

  .items.as-list .item-foot {
    grid-column: 2;
    grid-row: 1 / span 4;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
  }

  @media (max-width: 640px) {
    .items.as-list .item {
      grid-template-columns: 88px 1fr;
    }

    .items.as-list .thumb {
      min-height: 88px;
    }

    .items.as-list .item-body {
      grid-template-columns: 1fr;
      padding: 10px 12px 12px;
    }

    .items.as-list .item-foot {
      grid-column: 1;
      grid-row: auto;
      margin-top: 6px;
      flex-wrap: wrap;
    }
  }

  /* guest menu: one row per dish */
  .m-search {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .m-search input {
    flex: 1;
    min-width: 0;
  }

  .as-list .m-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  @media (min-width: 900px) {
    .as-list .m-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  .as-list .m-card {
    flex-direction: row;
  }

  .as-list .m-card .thumb {
    width: 112px;
    aspect-ratio: 1;
    flex: none;
    font-size: 34px;
  }

  .as-list .m-card .b {
    padding: 10px 14px;
    justify-content: center;
  }

  .as-list .m-card .pr {
    margin-top: 4px;
    padding-top: 0;
  }

  /* ---- "Add menu" popup (menu-library.js) ---- */
  .lib-filters {
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
  }

  .lib-filters input {
    flex: 1;
    min-width: 0;
  }

  .lib-filters select {
    width: auto;
    max-width: 42%;
  }

  .lib-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 10px;
    scrollbar-width: none;
  }

  .lib-chips::-webkit-scrollbar {
    display: none;
  }

  .lib-chip {
    flex: none;
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
  }

  .lib-chip:hover {
    background: var(--raised);
  }

  .lib-chip.on,
  .lib-chip.on:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--brand-ink);
  }

  .lib-chip.on .muted {
    color: inherit;
    opacity: .8;
  }

  .lib-list {
    display: grid;
    gap: 8px;
    max-height: 46vh;
    overflow: auto;
    padding-right: 2px;
  }

  .lib-row {
    display: grid;
    grid-template-columns: auto 56px 1fr auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px 12px;
    margin: 0;
    font-weight: 400;
    cursor: pointer;
    background: var(--card);
  }

  .lib-row.cat {
    grid-template-columns: auto 1fr auto;
    padding: 12px;
  }

  .lib-row:hover {
    background: var(--raised);
  }

  .lib-row.sel {
    border-color: var(--brand);
    background: var(--brand-50);
  }

  .lib-row input {
    margin: 0;
    width: 18px;
    height: 18px;
  }

  .lib-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand), var(--brand-600));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 22px;
  }

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

  .lib-main {
    min-width: 0;
  }

  .lib-main b {
    display: block;
    font-size: 14px;
  }

  .lib-main .ds {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .lib-price {
    font-weight: 800;
    color: var(--brand-600);
  }

  .lib-foot {
    align-items: center;
  }

  .lib-foot .muted {
    margin-right: auto;
  }

  @media (max-width: 560px) {
    .lib-row {
      grid-template-columns: auto 48px 1fr;
    }

    .lib-thumb {
      width: 48px;
      height: 48px;
    }

    .lib-price {
      grid-column: 3;
    }

    .lib-filters select {
      max-width: 46%;
    }
  }

  /* keep the counter + "Add selected" button in view while the popup scrolls (matters on phones) */
  .modal-box .lib-foot {
    position: sticky;
    bottom: -22px;
    z-index: 2;
    margin: 16px -22px -22px;
    padding: 14px 22px;
    background: var(--card);
    border-radius: 0 0 16px 16px;
  }

  @media (max-width: 560px) {
    .lib-list {
      max-height: 36vh;
    }
  }

  /* ---- loading feedback: no initial skeleton screen ---- */

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

  /* Hide the top loading progress bar */
  .loadbar,
  html.is-loading .loadbar {
    display: none !important;
  }

  /* Hide grey loading placeholder cards and rows */
  .skel,
  .skel-row,
  .skel-stat,
  .skel-card,
  .skel-hero {
    display: none !important;
    animation: none !important;
    background: none !important;
  }

  /* Keep button loading feedback */
  .btn-loading {
    pointer-events: none;
    opacity: .85;
  }

  .btn-loading::before {
    content: '';
    flex: none;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin .7s linear infinite;
  }

  /* Do not fade the actual menu while loading */
  .is-busy {
    opacity: 1;
    pointer-events: auto;
  }

  /* Respect reduced-motion preference */
  @media (prefers-reduced-motion: reduce) {
    .btn-loading::before {
      animation-duration: 3s;
    }
  }


  /* ==========================================
    VIGNADIGITAL - RESTORE ORIGINAL MENU STYLE
    Orange theme | Cream background | Light cards
    ========================================== */

  body.menu-page {
    --theme: #d9480f;

    --brand: #d9480f;
    --brand-600: #c2410c;
    --brand-50: #fff4ec;

    --bg: #f6f4f0;
    --card: #ffffff;
    --raised: #fbfaf8;

    --ink: #18181b;
    --muted: #6b6b73;
    --line: #e8e5df;

    background: #f6f4f0 !important;
    color: #18181b !important;
    color-scheme: light;
  }

  /* Restaurant header */
  body.menu-page .m-hero {
    background: var(--theme) !important;
    color: #fff !important;
  }

  /* Search and category bar */
  body.menu-page .m-bar {
    background: #ffffff !important;
    border-bottom: 1px solid #e8e5df !important;
  }

  body.menu-page .m-search input {
    background: #ffffff !important;
    color: #18181b !important;
    border-color: #e8e5df !important;
  }

  body.menu-page .m-chips .chip {
    background: #ffffff !important;
    color: #444 !important;
    border-color: #e8e5df !important;
  }

  body.menu-page .m-chips .chip.on {
    background: var(--theme) !important;
    color: #ffffff !important;
    border-color: var(--theme) !important;
  }

  /* Menu container */
  body.menu-page .m-wrap {
    background: #f6f4f0 !important;
  }

  /* Category headings */
  body.menu-page .m-sec h2 {
    color: #18181b !important;
  }

  /* Original responsive card grid */
  body.menu-page .m-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  @media (min-width: 640px) {
    body.menu-page .m-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
    }
  }

  @media (min-width: 960px) {
    body.menu-page .m-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }

  /* Food cards */
  body.menu-page .m-card {
    background: #ffffff !important;
    color: #18181b !important;
    border: 1px solid #e8e5df !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05) !important;
  }

  body.menu-page .m-card:hover {
    background: #ffffff !important;
    transform: translateY(-2px);
  }

  /* Food image */
  body.menu-page .m-card .thumb {
    background: #f0ece6;
  }

  /* Card content */
  body.menu-page .m-card .b {
    background: #ffffff !important;
  }

  body.menu-page .m-card .nm {
    color: #18181b !important;
  }

  body.menu-page .m-card .ds {
    color: #777 !important;
  }

  body.menu-page .m-card .pr {
    color: var(--theme) !important;
  }

  /* Buttons */
  body.menu-page button,
  body.menu-page .btn {
    background: var(--theme);
    color: #ffffff;
  }

  body.menu-page button.ghost,
  body.menu-page .btn.ghost {
    background: #ffffff;
    color: #18181b;
    border-color: #e8e5df;
  }

  /* Custom menu card compatibility */
  body.menu-page .m-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body.menu-page .m-card .b {
    min-width: 0;
  }

  body.menu-page .m-card .nm,
  body.menu-page .m-card .ds {
    overflow-wrap: anywhere;
  }

  /* Keep custom checkout and receipt popups above menu */
  body.menu-page .modal,
  body.menu-page .sheet {
    z-index: 1000;
  }

  /* Cart button */
  body.menu-page .cart-button {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .2);
  }

  /* Mobile spacing */
  @media (max-width: 480px) {
    body.menu-page .m-wrap {
      padding-left: 10px;
      padding-right: 10px;
    }

    body.menu-page .m-grid {
      gap: 10px;
    }

    body.menu-page .m-card {
      border-radius: 12px !important;
    }
  }

  /* ==========================================================
    VIGNADIGITAL CUSTOMER MENU — DARK BROWN DESIGN
    Matches the requested reference screenshot.
    Only customer-menu selectors are changed below.
    ========================================================== */

  body.menu-page {
    --theme: #805247;
    --brand: #f36b2b;
    --brand-600: #dd5920;
    --brand-50: #34221f;
    --bg: #121214;
    --card: #1c1c20;
    --raised: #242428;
    --ink: #f5f2ef;
    --muted: #a7a0a0;
    --line: #303036;
    margin: 0;
    background: #121214 !important;
    color: #f5f2ef !important;
    color-scheme: dark;
  }

  /* Restaurant banner */
  body.menu-page .m-hero {
    min-height: 174px;
    padding: 24px 16px 20px;
    box-sizing: border-box;
    text-align: center;
    color: #fff;
    background: linear-gradient(110deg, #674238 0%, #805247 55%, #92685b 100%) !important;
  }

  body.menu-page .m-hero img {
    display: block;
    width: 74px;
    height: 74px;
    margin: 0 auto 12px;
    padding: 6px;
    object-fit: contain;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 18px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .2);
  }

  body.menu-page .m-hero h1 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
  }

  body.menu-page .m-hero p,
  body.menu-page .m-hero .small {
    margin: 3px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
  }

  /* Search and category toolbar */
  body.menu-page .m-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 9px 12px 8px;
    background: #151518 !important;
    border-bottom: 1px solid #29292e !important;
  }

  body.menu-page .m-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(960px, 100%);
    margin: 0 auto 8px;
  }

  body.menu-page .m-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
    color: #f4f1ef !important;
    background: #1d1d22 !important;
    border: 1px solid #303038 !important;
    border-radius: 24px;
    outline: none;
  }

  body.menu-page .m-search input::placeholder {
    color: #85818a;
  }

  body.menu-page .m-search input:focus {
    border-color: #805247 !important;
    box-shadow: 0 0 0 2px rgba(128, 82, 71, .22);
  }

  body.menu-page .m-chips {
    display: flex;
    gap: 8px;
    width: min(960px, 100%);
    margin: 0 auto;
    padding: 0 0 1px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body.menu-page .m-chips::-webkit-scrollbar {
    display: none;
  }

  body.menu-page .chip {
    flex: 0 0 auto;
    padding: 7px 13px;
    color: #f1eeee !important;
    background: #202025 !important;
    border: 1px solid #303038 !important;
    border-radius: 22px;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
  }

  body.menu-page .chip.on,
  body.menu-page .chip.on:hover {
    color: #fff !important;
    background: #805247 !important;
    border-color: #805247 !important;
  }

  /* Main content and category titles */
  body.menu-page .m-wrap {
    width: min(960px, 100%);
    margin: 0 auto;
    padding: 20px 16px 80px;
    box-sizing: border-box;
  }

  body.menu-page .m-sec {
    margin: 0 0 22px;
    scroll-margin-top: 112px;
  }

  body.menu-page .m-sec h2 {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 0 0 12px;
    color: #f2efed !important;
    font-size: 16px;
    font-weight: 750;
  }

  body.menu-page .m-sec h2 span {
    color: #a7a0a0 !important;
    font-size: 11px;
    font-weight: 400;
  }

  /* Four cards across on wide screens */
  body.menu-page .m-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px;
  }

  @media (min-width: 640px) {
    body.menu-page .m-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
  }

  @media (min-width: 960px) {
    body.menu-page .m-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
  }

  /* Dish cards */
  body.menu-page .m-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    padding: 0 !important;
    gap: 0 !important;
    overflow: hidden;
    color: #f5f2ef !important;
    background: #1c1c20 !important;
    border: 1px solid #303036 !important;
    border-radius: 15px !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .16);
    text-align: left;
  }

  body.menu-page .m-card .thumb {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    color: rgba(255, 255, 255, .75);
    background: linear-gradient(155deg, #70483f 0%, #52342e 100%) !important;
    font-size: 30px;
    font-weight: 800;
  }

  body.menu-page .m-card .thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    color: #f3e9e5;
    font-size: 22px;
  }

  body.menu-page .m-card .b {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    min-width: 0;
    padding: 10px 11px 11px;
    background: #1c1c20 !important;
  }

  body.menu-page .m-card .nm {
    color: #f6f3f1 !important;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 750;
  }

  body.menu-page .m-card .ds {
    color: #aaa3a1 !important;
    font-size: 12px;
  }

  body.menu-page .m-card .pr {
    margin-top: auto;
    padding-top: 7px;
    color: #a96750 !important;
    font-size: 14px;
    font-weight: 800;
  }

  body.menu-page .item-unavailable {
    display: inline-block;
    margin-top: 7px;
    color: #ffb4a4;
    font-size: 12px;
  }

  /* Add and Order Now buttons */
  body.menu-page .menu-card-actions {
    display: flex;
    width: 100%;
    gap: 7px;
    margin-top: 9px;
  }

  body.menu-page .menu-card-actions button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 38px;
    padding: 0 8px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }

  body.menu-page .menu-card-actions .order-add {
    color: #f3a17e !important;
    background: #29201e !important;
    border: 1px solid #9a5b43 !important;
  }

  /* STYLE ONLY THE ORDER NOW BUTTON */
  body.menu-page .menu-card-actions .order-now-btn {
    background: #356F6A !important;
    background-color: #356F6A !important;
    color: #FFFFFF !important;
    border: 1px solid #356F6A !important;
    box-shadow: none !important;
    border-radius: 9px !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
  }

  body.menu-page .menu-card-actions .order-now-btn:hover {
    background: #285752 !important;
    background-color: #285752 !important;
    border-color: #285752 !important;
  }

  body.menu-page .menu-card-actions .order-now-btn:active {
    transform: scale(0.97);
  }

  /* Grid/list switch */
  body.menu-page .vigna-view-switch {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px;
    background: #202025;
    border: 1px solid #34343a;
    border-radius: 12px;
  }

  body.menu-page .vigna-view-switch .view-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 30px;
    padding: 6px;
    color: #bcb8bd;
    background: transparent;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
  }

  body.menu-page .vigna-view-switch .view-toggle svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body.menu-page .vigna-view-switch .view-toggle.active {
    color: #fff;
    background: #805247;
  }

  /* List view */
  body.menu-page #sections.as-list .m-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  @media (min-width: 900px) {
    body.menu-page #sections.as-list .m-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
  }

  body.menu-page #sections.as-list .m-card {
    flex-direction: row;
  }

  body.menu-page #sections.as-list .m-card .thumb {
    flex: 0 0 112px;
    width: 112px;
    aspect-ratio: 1;
  }

  body.menu-page #sections.as-list .m-card .b {
    justify-content: center;
  }

  /* Footer */
  body.menu-page .m-foot {
    padding: 18px 12px 30px;
    color: #918b8c !important;
    text-align: center;
    border-top: 1px solid #29292e;
  }

  body.menu-page .m-foot a {
    color: #d88a6d !important;
  }

  /* Preserve the dark look on phones */
  @media (max-width: 560px) {
    body.menu-page .m-wrap {
      padding: 16px 12px 90px;
    }

    body.menu-page .m-grid {
      gap: 10px;
    }

    body.menu-page .m-card .b {
      padding: 9px;
    }

    body.menu-page .m-card .nm {
      font-size: 12px;
    }

    body.menu-page .menu-card-actions {
      gap: 5px;
    }

    body.menu-page .menu-card-actions button {
      min-height: 36px;
      padding: 0 5px;
      font-size: 11px;
    }
  }

  /* Do not let global light theme styles recolor customer menu */
  body.menu-page .muted {
    color: #aaa3a1 !important;
  }

  body.menu-page button:focus-visible,
  body.menu-page input:focus-visible {
    outline: 2px solid #f36b2b;
    outline-offset: 2px;
  }

  /* Prevent default orange flash during dashboard initialization */
  html:not(.menu-page) {
    --theme: #895548;
    --theme-dark: #603b32;
    --theme-hover: #603b32;
    --theme-darker: #452a23;
    --theme-light: rgba(137, 85, 72, .15);
    --theme-soft: rgba(137, 85, 72, .22);
    --theme-border: rgba(137, 85, 72, .45);
    --theme-ink: #ffffff;
    --theme-text: #ffffff;

    --brand: var(--theme);
    --brand-600: var(--theme-dark);
    --brand-50: var(--theme-light);
    --brand-ink: var(--theme-ink);
    color-scheme: dark;
  }

  body:not(.menu-page) {
    background-color: #131316 !important;
  }

  /* VIGNADIGITAL - FORCE ORDER NOW BUTTON COLOUR */

  .order-now-btn,
  button.order-now-btn,
  body .order-now-btn {
    background: #356F6A !important;
    background-color: #356F6A !important;
    color: #FFFFFF !important;
    border: 1px solid #356F6A !important;
    border-radius: 9px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
  }

  .order-now-btn:hover,
  button.order-now-btn:hover {
    background: #285752 !important;
    background-color: #285752 !important;
    border-color: #285752 !important;
  }

  /* =====================================================
    VIGNADIGITAL – SUPER ADMIN ORANGE THEME
    Add at the END of public/style.css
  ===================================================== */

  :root {
    --admin-orange: #F28C28;
    --admin-orange-dark: #D96B16;
    --admin-orange-light: rgba(242, 140, 40, 0.13);
    --admin-orange-border: rgba(242, 140, 40, 0.4);
    --admin-logout: #356F6A;
  }

  /* SIDEBAR NAVIGATION */

  .shell .side .tabs button {
    transition: background 0.2s ease, color 0.2s ease,
      border-color 0.2s ease;
  }

  .shell .side .tabs button:hover {
    background: var(--admin-orange-light) !important;
    color: var(--admin-orange) !important;
  }

  .shell .side .tabs button.on {
    background: var(--admin-orange) !important;
    color: #ffffff !important;
    border-color: var(--admin-orange) !important;
  }

  .shell .side .tabs button.on span {
    color: #ffffff !important;
  }

  /* ONBOARD RESTAURANT AND OTHER MAIN BUTTONS */

  .main button:not(.ghost):not(.danger):not(.logout),
  .main .btn:not(.ghost):not(.danger) {
    background: var(--admin-orange) !important;
    border-color: var(--admin-orange) !important;
    color: #ffffff !important;
    transition: all 0.2s ease;
  }

  .main button:not(.ghost):not(.danger):not(.logout):hover,
  .main .btn:not(.ghost):not(.danger):hover {
    background: var(--admin-orange-dark) !important;
    border-color: var(--admin-orange-dark) !important;
    transform: translateY(-1px);
  }

  /* Onboard Restaurant tab */

  #tabs button[data-tab="onboard"] {
    transition: all 0.2s ease;
  }

  #tabs button[data-tab="onboard"]:hover {
    background: var(--admin-orange-light) !important;
    color: var(--admin-orange) !important;
  }

  /* DASHBOARD STAT CARDS */

  .main .stat.hl {
    background: var(--admin-orange-light) !important;
    border-color: var(--admin-orange-border) !important;
  }

  .main .stat.hl b {
    color: var(--admin-orange) !important;
  }

  /* SEARCH AND FILTER INPUTS */

  .main input:focus,
  .main select:focus,
  .main textarea:focus {
    border-color: var(--admin-orange) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(242, 140, 40, 0.16) !important;
  }

  .main input::placeholder {
    opacity: 0.65;
  }

  /* RESTAURANT TABLE */

  #rList table th {
    color: var(--admin-orange) !important;
  }

  #rList table tr:hover td {
    background: var(--admin-orange-light) !important;
  }

  /* TABLE ACTION BUTTONS */

  #rList .actions button:not(.danger):not(.ghost) {
    background: var(--admin-orange) !important;
    border-color: var(--admin-orange) !important;
    color: #ffffff !important;
  }

  #rList .actions button:not(.danger):not(.ghost):hover {
    background: var(--admin-orange-dark) !important;
  }

  /* BADGES AND STATUS HIGHLIGHTS */

  #rList .pill:not(.warn) {
    border-color: var(--admin-orange-border);
    color: var(--admin-orange);
  }

  /* ORDER OPTION TOGGLE */

  .order-option input[type="checkbox"]:checked {
    background: var(--admin-orange) !important;
  }

  .order-option input[type="checkbox"]:not(:checked) {
    background: #dc3545 !important;
  }

  .order-option .enabled {
    color: var(--admin-orange) !important;
  }

  .order-option .disabled {
    color: #ef4444 !important;
  }

  /* FORM CHECKBOXES */

  .main input[type="checkbox"]:not(.order-option input) {
    accent-color: var(--admin-orange);
  }

  /* FORM HEADINGS AND HIGHLIGHTS */

  .main .card h3 {
    color: var(--admin-orange);
  }

  /* LOG OUT BUTTON – KEEP GREEN */

  .shell .side button.logout,
  .shell .side .logout {
    background: #356F6A !important;
    border-color: #356F6A !important;
    color: #ffffff !important;
    transition: all 0.2s ease;
  }

  .shell .side button.logout:hover,
  .shell .side .logout:hover {
    background: #285752 !important;
    border-color: #285752 !important;
    color: #ffffff !important;
  }

  /* PRESERVE GHOST AND DANGER BUTTONS */

  .main button.ghost,
  .main .btn.ghost {
    background: transparent !important;
  }

  .main button.danger,
  .main .btn.danger {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
  }

  /* SMALL SCREEN SUPPORT */

  @media (max-width: 768px) {
    .main .toolbar {
      gap: 12px;
    }

    .main .filters {
      width: 100%;
    }

    .main .filters input,
    .main .filters select {
      max-width: 100%;
    }
  }

  /* =========================================
    SUPER ADMIN – RESTAURANT TABLE DESIGN
    ========================================= */

  #rList {
    overflow-x: auto;
    width: 100%;
  }

  #rList table {
    width: 100%;
    min-width: 1320px;
    border-collapse: collapse;
    color: #f5f5f7;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
  }

  #rList table th {
    color: #a7a7b5 !important;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .045em;
    padding: 13px 12px;
    border-bottom: 1px solid #303036;
    white-space: nowrap;
  }

  #rList table td {
    color: #f5f5f7;
    font-size: 13px;
    font-weight: 500;
    padding: 11px 12px;
    border-bottom: 1px solid #303036;
    vertical-align: middle;
    white-space: nowrap;
  }

  #rList table td:first-child b {
    color: #ffffff;
    font-weight: 750;
  }

  #rList table tbody tr:hover td {
    background: #222228 !important;
  }

  #rList table tbody tr:last-child td {
    border-bottom: none;
  }


  /* =========================================
    STATUS BADGES
    ========================================= */

  /* ACTIVE – GREEN */
  #rList .pill.ok {
    background: #103923 !important;
    color: #20d878 !important;
    border: none !important;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
  }

  /* INACTIVE – RED */
  #rList .pill.bad {
    background: #421d21 !important;
    color: #ff646e !important;
    border: none !important;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
  }

  /* PAID – GREEN */
  #rList td .pill.ok {
    background: #103923 !important;
    color: #20d878 !important;
  }

  /* PENDING – YELLOW */
  #rList td .pill.warn {
    background: #44340c !important;
    color: #ffc400 !important;
    border: none !important;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
  }

  /* =========================================
    DELETE RESTAURANT – RED
    ========================================= */

  #rList button[data-del] {
    background: #421d21 !important;
    color: #ff646e !important;
    border: 1px solid #713036 !important;
    border-radius: 9px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
  }

  #rList button[data-del]:hover {
    background: #b4232d !important;
    color: #ffffff !important;
    border-color: #b4232d !important;
  }

  /* =========================================
    VIGNADIGITAL SUPER ADMIN – FINAL CSS
    ========================================= */

  /* ---------- SEARCH AND STATUS FILTER ---------- */

  #rSearch,
  #rStatus {
    background: #1b1b20 !important;
    color: #ffffff !important;
    border: 1px solid #303038 !important;
    border-radius: 11px;
    min-height: 44px;
  }

  #rSearch {
    min-width: 260px;
  }

  #rSearch::placeholder {
    color: #858590;
  }

  #rSearch:focus,
  #rStatus:focus {
    border-color: #ff6528 !important;
    box-shadow: 0 0 0 2px rgba(255, 101, 40, .15) !important;
    outline: none;
  }


  /* ---------- ADMIN LAYOUT ---------- */

  html,
  body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    overflow-x: auto !important;
  }

  body:not(.menu-page) {
    background: #131316 !important;
    color: #f5f5f7 !important;
  }

  .shell {
    display: grid !important;
    grid-template-columns: 252px minmax(0, 1fr) !important;
    min-height: 100vh;
    width: 100%;
    background: #131316;
  }

  /* ---------- SIDEBAR ---------- */

  .shell .side {
    width: 252px;
    min-width: 252px;
    height: 100vh;
    position: sticky;
    top: 0;
    background: #0e0f11 !important;
    color: #a7a7b5 !important;
    border-right: 1px solid #202024;
    padding: 20px 17px;
    display: flex;
    flex-direction: column;
  }

  /* Brand */

  .shell .side .brand {
    color: #ffffff !important;
  }

  /* Default navigation buttons */

  .shell .side .tabs button,
  .shell .side .tabs button[data-tab] {
    background: transparent !important;
    background-color: transparent !important;
    color: #b4b4c0 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 11px !important;
    transition: background .2s ease, color .2s ease;
  }

  /* Default navigation icons */

  .shell .side .tabs button svg,
  .shell .side .tabs button .i {
    color: #a7a7b5 !important;
    stroke: #a7a7b5 !important;
  }

  /* Normal hover effect for all navigation buttons */

  .shell .side .tabs button:hover {
    background: #19191d !important;
    background-color: #19191d !important;
    color: #ffffff !important;
  }

  /* Selected navigation button */

  .shell .side .tabs button.on,
  .shell .side .tabs button.on[data-tab] {
    background: #382016 !important;
    background-color: #382016 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* Selected navigation text */

  .shell .side .tabs button.on span {
    color: #ffffff !important;
  }

  /* Selected navigation icon */

  .shell .side .tabs button.on svg,
  .shell .side .tabs button.on .i {
    color: #ff7138 !important;
    stroke: #ff7138 !important;
  }

  /* Onboard Restaurant hover – same dark brown style */

  .shell .side .tabs button[data-tab="onboard"]:hover {
    background: #382016 !important;
    background-color: #382016 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
  }

  .shell .side .tabs button[data-tab="onboard"]:hover span {
    color: #ffffff !important;
  }

  .shell .side .tabs button[data-tab="onboard"]:hover svg,
  .shell .side .tabs button[data-tab="onboard"]:hover .i {
    color: #a7a7b5 !important;
    stroke: #a7a7b5 !important;
  }

  /* Onboard focus */

  .shell .side .tabs button[data-tab="onboard"]:focus {
    color: #ffffff !important;
    outline: none !important;
    box-shadow: none !important;
  }

  /* Logout */

  .shell .side button.logout {
    background: transparent !important;
    background-color: transparent !important;
    color: #a7a7b5 !important;
    border: 1px solid #303036 !important;
    border-radius: 11px !important;
    box-shadow: none !important;
  }

  .shell .side button.logout:hover {
    background: #19191d !important;
    color: #ffffff !important;
  }


  /* ---------- MAIN CONTENT ---------- */

  main.main {
    width: 100%;
    min-width: 900px;
    max-width: none !important;
    padding: 25px 32px 55px;
    background: #131316 !important;
    box-sizing: border-box;
  }

  .page-head h1 {
    color: #ffffff;
  }

  .page-head p {
    color: #a7a7b5;
  }


  /* ---------- STATISTICS ---------- */

  .stats {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 14px;
    width: 100%;
    margin-bottom: 18px;
  }

  .stat {
    min-width: 0;
    background: #1b1b20 !important;
    border: 1px solid #303036 !important;
    border-radius: 15px;
    padding: 18px;
  }

  .stat.hl {
    background: #2b1a10 !important;
    border-color: transparent !important;
  }

  .stat.hl b {
    color: #ff7138 !important;
  }

  .stat span {
    color: #a7a7b5 !important;
  }

  .stat b {
    color: #ffffff !important;
  }


  /* ---------- RESTAURANT TABLE ---------- */

  #rList {
    width: 100%;
    overflow-x: auto !important;
  }

  #rList table {
    width: 100%;
    min-width: 1320px;
    border-collapse: collapse;
    background: transparent;
  }

  #rList th {
    color: #a7a7b5 !important;
    border-bottom: 1px solid #303036 !important;
  }

  #rList td {
    color: #ffffff !important;
    border-bottom: 1px solid #303036 !important;
  }

  #rList tbody tr:hover td {
    background: #222228 !important;
  }

  #rList tbody tr:last-child td {
    border-bottom: none !important;
  }


  /* ---------- STATUS BADGES ---------- */

  /* Active */

  #rList .pill.ok {
    background: #103923 !important;
    color: #20d878 !important;
    border: none !important;
    border-radius: 20px;
    padding: 5px 12px;
    font-weight: 700;
  }

  /* Inactive */

  #rList .pill.bad {
    background: #421d21 !important;
    color: #ff646e !important;
    border: none !important;
    border-radius: 20px;
    padding: 5px 12px;
    font-weight: 700;
  }

  /* Pending */

  #rList .pill.warn {
    background: #44340c !important;
    color: #ffc400 !important;
    border: none !important;
    border-radius: 20px;
    padding: 5px 12px;
    font-weight: 700;
  }


  /* ---------- ACTION BUTTONS ---------- */

  #rList .actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap !important;
    gap: 7px;
  }

  /* Manage menu */

  #rList button[data-menu] {
    background: #ff6528 !important;
    color: #171717 !important;
    border: 1px solid #ff6528 !important;
    border-radius: 9px;
    padding: 7px 12px;
    font-weight: 700;
  }

  #rList button[data-menu]:hover {
    background: #e9541c !important;
  }

  /* View, Edit, Reset password */

  #rList button[data-view],
  #rList button[data-edit],
  #rList button[data-reset] {
    background: #1b1b20 !important;
    color: #ffffff !important;
    border: 1px solid #303038 !important;
    border-radius: 9px;
    padding: 7px 11px;
    font-weight: 650;
  }

  #rList button[data-view]:hover,
  #rList button[data-edit]:hover,
  #rList button[data-reset]:hover {
    background: #292930 !important;
    border-color: #55555f !important;
  }

  /* Deactivate */

  #rList button[data-toggle].danger {
    background: #421d21 !important;
    color: #ff646e !important;
    border: 1px solid #713036 !important;
    border-radius: 9px;
    padding: 7px 11px;
    font-weight: 700;
  }

  #rList button[data-toggle].danger:hover {
    background: #66272d !important;
    color: #ffffff !important;
  }

  /* Activate */

  #rList button[data-toggle].ghost {
    background: #103923 !important;
    color: #20d878 !important;
    border: 1px solid #1b6840 !important;
    border-radius: 9px;
    padding: 7px 11px;
    font-weight: 700;
  }

  #rList button[data-toggle].ghost:hover {
    background: #185632 !important;
    color: #ffffff !important;
  }

  /* Delete */

  #rList button[data-del] {
    background: #421d21 !important;
    color: #ff646e !important;
    border: 1px solid #713036 !important;
    border-radius: 9px;
    padding: 7px 12px;
    font-weight: 700;
  }

  #rList button[data-del]:hover {
    background: #b4232d !important;
    color: #ffffff !important;
    border-color: #b4232d !important;
  }


  /* ---------- RESPONSIVE SUPPORT ---------- */

  @media (max-width: 768px) {

    .shell {
      grid-template-columns: 1fr !important;
    }

    .side {
      width: 100%;
      min-width: 0;
      height: auto;
      position: relative;
    }

    main.main {
      min-width: 900px;
      padding: 20px 16px;
    }

    .stats {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
  }

  /* FORCE MANAGE MENU BUTTON DESIGN */

  html body .shell main.main #rList table tbody tr td .actions button[data-menu],
  html body #rList button.sm[data-menu] {
    background: #ff6528 !important;
    background-color: #ff6528 !important;
    color: #171717 !important;
    border: 1px solid #ff6528 !important;
    border-radius: 9px !important;

    padding: 7px 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;

    opacity: 1 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  /* HOVER */
  html body .shell main.main #rList table tbody tr td .actions button[data-menu]:hover,
  html body #rList button.sm[data-menu]:hover {
    background: #ff6528 !important;
    background-color: #ff6528 !important;
    color: #171717 !important;
    border-color: #ff6528 !important;
    transform: none !important;
  }

  /* =========================================
    PLAN BADGES – RESTAURANT TABLE
    ========================================= */

  #rList table tbody td:nth-child(6) .pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #202025 !important;
    color: #a7b6d0 !important;

    border: 1px solid #303038 !important;
    border-radius: 20px !important;

    padding: 4px 11px !important;

    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;

    white-space: nowrap !important;
    box-shadow: none !important;
  }

  /* Keep expired plans visually distinct */
  #rList table tbody td:nth-child(6) .pill.warn {
    background: #44340c !important;
    color: #ffc400 !important;
    border-color: transparent !important;
  }

  /* Restaurant details modal – Menu link */

  .modal-box .kv a,
  .modal-box .kv b a {
    color: #ff7138 !important;
    text-decoration: underline !important;
    text-decoration-color: #ff7138 !important;
    font-weight: 600 !important;
  }

  .modal-box .kv a:hover,
  .modal-box .kv b a:hover {
    color: #ff8a50 !important;
  }

  /* --------------------------------
    RESTAURANT DETAILS TABS
    Branding / Business / Payment / Password
  -------------------------------- */

  body.owner-dashboard .settings-tabs button.active,
  body.owner-dashboard .settings-tabs button.on,
  body.owner-dashboard .subtabs button.active,
  body.owner-dashboard .subtabs button.on {
    background: var(--theme) !important;
    color: var(--theme-text, #ffffff) !important;
    border-color: var(--theme) !important;
  }

  /* --------------------------------
    HIGHLIGHTED HEADINGS
  -------------------------------- */

  body.owner-dashboard .card h3,
  body.owner-dashboard .section-title,
  body.owner-dashboard .accent-text,
  body.owner-dashboard .highlight-text {
    color: var(--theme) !important;
  }

  /* --------------------------------
    ADD MENU MODAL
  -------------------------------- */

  body.owner-dashboard .modal .close-btn,
  body.owner-dashboard .modal .modal-close,
  body.owner-dashboard .modal button.close,
  body.owner-dashboard .modal-header .close-btn {
    background: var(--theme) !important;
    color: var(--theme-text, #ffffff) !important;
    border-color: var(--theme) !important;
  }

  /* Add menu category filters */
  body.owner-dashboard .modal .filter-btn.active,
  body.owner-dashboard .modal .filter-btn.on {
    background: var(--theme) !important;
    color: var(--theme-text, #ffffff) !important;
    border-color: var(--theme) !important;
  }

  /* --------------------------------
    QR CODE DOWNLOAD
  -------------------------------- */

  body.owner-dashboard .qr-download,
  body.owner-dashboard button[data-action="download-qr"] {
    background: var(--theme) !important;
    color: var(--theme-text, #ffffff) !important;
    border-color: var(--theme) !important;
  }

  /* --------------------------------
    THEME-COLORED TEXT AND ICONS
  -------------------------------- */

  body.owner-dashboard .tabs button.on,
  body.owner-dashboard .nav-item.active,
  body.owner-dashboard .accent,
  body.owner-dashboard .item-body .price,
  body.owner-dashboard .brand-text {
    color: var(--theme) !important;
  }

  /* --------------------------------
    CHECKBOXES AND SELECTIONS
  -------------------------------- */

  body.owner-dashboard input[type="checkbox"],
  body.owner-dashboard input[type="radio"] {
    accent-color: var(--theme) !important;
  }

  /* --------------------------------
    REMOVE HARDCODED ORANGE FROM
    OWNER DASHBOARD HIGHLIGHTS
  -------------------------------- */

  body.owner-dashboard {
    --accent: var(--theme);
    --accent-hover: var(--theme-dark);
    --accent-light: var(--theme-light);
    --admin-orange: var(--theme);
    --admin-orange-dark: var(--theme-dark);
    --admin-orange-light: var(--theme-light);
    --admin-orange-border: var(--theme-border);
    --admin-logout: var(--theme-dark);
    --ok: var(--theme);
    --ok-bg: var(--theme-light);
    --warn: var(--theme);
    --warn-bg: var(--theme-light);
    --bad: var(--theme-dark);
    --bad-bg: var(--theme-light);
    --info: var(--theme);
    --info-bg: var(--theme-light);
  }


  /* =========================================
    VIGNADIGITAL – REMOVE BUTTON BORDERS
    Preserve existing button colours and behaviour.
    ========================================= */

  button,
  .btn,
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  a.btn,
  button:hover,
  .btn:hover,
  input[type="button"]:hover,
  input[type="submit"]:hover,
  input[type="reset"]:hover,
  a.btn:hover,
  button:active,
  .btn:active,
  button:focus,
  button:focus-visible,
  .btn:focus,
  .btn:focus-visible {
    border: 0 !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  /* Remove button focus outlines */
  button:focus,
  button:focus-visible,
  .btn:focus,
  .btn:focus-visible,
  input[type="button"]:focus,
  input[type="submit"]:focus,
  input[type="reset"]:focus,
  a.btn:focus,
  a.btn:focus-visible {
    outline: none !important;
  }

  body.owner-dashboard .side .tabs button:hover {
    background: var(--theme-light) !important;
    color: var(--theme-ink) !important;
  }

  body.owner-dashboard .side .tabs button.on,
  body.owner-dashboard .side .tabs button.on[data-tab] {
    background: var(--theme) !important;
    border-color: var(--theme) !important;
    color: var(--theme-ink) !important;
  }

  body.owner-dashboard .side .tabs button.on svg,
  body.owner-dashboard .side .tabs button.on .i {
    color: var(--theme-ink) !important;
  }

  body.owner-dashboard .side button.logout,
  body.owner-dashboard .side .logout {
    background: #15803D !important;
    background-color: #15803D !important;
    border-color: #15803D !important;
    color: #FFFFFF !important;
  }

  body.owner-dashboard .side button.logout:hover,
  body.owner-dashboard .side .logout:hover {
    background: #166534 !important;
    background-color: #166534 !important;
    border-color: #166534 !important;
  }

  body.owner-dashboard .main button.ghost,
  body.owner-dashboard .main .btn.ghost {
    background: var(--theme-light) !important;
    border: 1px solid var(--theme-border) !important;
    color: var(--theme) !important;
  }

  body.owner-dashboard .main button.ghost:hover,
  body.owner-dashboard .main .btn.ghost:hover {
    background: var(--theme-soft) !important;
    color: var(--theme-dark) !important;
  }

  body.owner-dashboard .main input:focus,
  body.owner-dashboard .main select:focus,
  body.owner-dashboard .main textarea:focus {
    border-color: var(--theme) !important;
    outline: 2px solid var(--theme-light) !important;
    box-shadow: 0 0 0 3px var(--theme-light) !important;
  }

  body.owner-dashboard input[type="checkbox"],
  body.owner-dashboard input[type="radio"] {
    accent-color: var(--theme) !important;
  }

  body.owner-dashboard .card h3,
  body.owner-dashboard .stat.hl b,
  body.owner-dashboard .item-body .price,
  body.owner-dashboard .accent,
  body.owner-dashboard .highlight-text {
    color: var(--theme) !important;
  }

  body.owner-dashboard .stat.hl,
  body.owner-dashboard .note {
    background: var(--theme-light) !important;
    border-color: var(--theme-border) !important;
  }

  body.owner-dashboard .note {
    color: var(--theme-dark) !important;
  }

  body.owner-dashboard .subtabs button.on,
  body.owner-dashboard .subtabs button.active {
    background: var(--theme) !important;
    border-color: var(--theme) !important;
    color: var(--theme-ink) !important;
  }

  body.owner-dashboard .subtabs button:not(.on):hover {
    background: var(--theme-light) !important;
    color: var(--theme) !important;
  }

  body.owner-dashboard .orders-modal .orders-tools button.danger,
  body.owner-dashboard .orders-modal #ordersList button.order-prepared,
  body.owner-dashboard .orders-modal #ordersList button.order-print {
    background: var(--theme-dark) !important;
    border-color: var(--theme-dark) !important;
    color: var(--theme-ink) !important;
  }

  body.owner-dashboard .orders-modal .orders-tools button.danger:hover,
  body.owner-dashboard .orders-modal #ordersList button.order-prepared:hover,
  body.owner-dashboard .orders-modal #ordersList button.order-print:hover {
    background: var(--theme-darker) !important;
    border-color: var(--theme-darker) !important;
  }

  body.owner-dashboard .orders-modal #ordersList button.order-active {
    background: var(--theme) !important;
    border-color: var(--theme) !important;
    color: var(--theme-ink) !important;
  }

  body.owner-dashboard .orders-modal #ordersList button.order-active:hover {
    background: var(--theme-dark) !important;
    border-color: var(--theme-dark) !important;
  }

  /* ---- shared responsive dashboard shell ---- */
  .shell {
    min-width: 0;
  }

  .shell>.side {
    min-height: 100dvh;
    min-width: 0;
    overflow: hidden;
  }

  .shell>.side>.tabs {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
  }

  .shell>.side>.spacer {
    display: none;
  }

  .shell>.side>.logout {
    flex: 0 0 auto;
    margin-top: auto;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .mobile-menu-toggle,
  .mobile-sidebar-overlay {
    display: none;
  }

  .mobile-sidebar-overlay[hidden] {
    display: none !important;
  }

  @media (max-width: 860px) {

    html,
    body {
      max-width: 100%;
      overflow-x: hidden;
    }

    body.mobile-sidebar-open {
      overflow: hidden;
    }

    .shell {
      display: block;
      min-height: 100dvh;
    }

    .shell>.side {
      position: fixed;
      inset: 0 auto 0 0;
      z-index: 60;
      width: min(86vw, 320px);
      height: 100dvh;
      transform: translateX(-105%);
      transition: transform .2s ease;
      box-shadow: 16px 0 40px rgba(0, 0, 0, .28);
      padding: 20px 14px max(20px, env(safe-area-inset-bottom));
    }

    .shell>.side.mobile-open {
      transform: translateX(0);
    }

    .shell>.side>.tabs {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      overflow-y: auto;
    }

    .shell>.side>.tabs button {
      flex: none;
      width: 100%;
      white-space: normal;
    }

    .shell>.side>.tabs button span {
      display: inline;
    }

    .shell>.side>.logout {
      width: 100%;
      padding: 10px 12px;
    }

    .mobile-menu-toggle {
      position: fixed;
      top: max(10px, env(safe-area-inset-top));
      left: 12px;
      z-index: 55;
      display: flex;
      width: 42px;
      height: 42px;
      padding: 9px;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      background: var(--side);
      border: 1px solid rgba(255, 255, 255, .16);
      border-radius: 10px;
      color: #fff;
    }

    .mobile-menu-toggle span {
      display: block;
      width: 22px;
      height: 2px;
      margin: 0 auto;
      border-radius: 2px;
      background: currentColor;
    }

    .mobile-sidebar-overlay {
      position: fixed;
      inset: 0;
      z-index: 59;
      display: block;
      background: rgba(0, 0, 0, .5);
    }

    main.main,
    main.main.wide {
      width: 100% !important;
      min-width: 0 !important;
      max-width: none !important;
      padding: 64px 16px max(36px, env(safe-area-inset-bottom));
    }

    .page-head {
      display: flex;
      align-items: flex-start;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 18px;
    }

    .page-head>* {
      min-width: 0;
    }

    .page-head h1 {
      font-size: clamp(21px, 6vw, 26px);
    }

    .page-head p {
      overflow-wrap: anywhere;
    }

    .card {
      min-width: 0;
      padding: 16px;
    }

    .stats,
    .grid2,
    .row {
      grid-template-columns: minmax(0, 1fr) !important;
    }

    .items {
      grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
    }

    .toolbar,
    .actions,
    .card-foot {
      align-items: stretch;
    }

    .toolbar>*,
    .actions>*,
    .card-foot>* {
      max-width: 100%;
    }

    .filters {
      min-width: 0;
      width: 100%;
    }

    .filters input,
    .filters select {
      width: 100%;
      min-width: 0;
    }

    .table-wrap {
      max-width: 100%;
      margin-left: -16px;
      margin-right: -16px;
      padding-left: 16px;
      padding-right: 16px;
      -webkit-overflow-scrolling: touch;
    }

    .modal {
      padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
    }

    .modal-box {
      max-height: calc(100dvh - 20px);
      padding: 16px;
    }

    .qr-box {
      padding: 12px;
    }

    .qr-box img {
      max-width: min(320px, 100%);
    }
  }

  @media (max-width: 480px) {

    main.main,
    main.main.wide {
      padding-left: 12px;
      padding-right: 12px;
    }

    .card {
      padding: 14px;
      border-radius: 12px;
    }

    .table-wrap {
      margin-left: -14px;
      margin-right: -14px;
      padding-left: 14px;
      padding-right: 14px;
    }

    button,
    .btn {
      min-height: 42px;
    }

    .subtabs {
      width: 100%;
    }

    .subtabs button {
      flex: 1 1 auto;
    }

    .img-pick {
      align-items: flex-start;
      flex-direction: column;
    }
  }

  /* Final collapsed dashboard shell overrides. */
  .shell {
    display: block !important;
  }

  .shell>.side {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 100 !important;
    width: 252px !important;
    max-width: calc(100vw - 24px) !important;
    height: 100dvh !important;
    min-height: 0 !important;
    transform: translateX(-100%) !important;
    transition: transform .28s ease !important;
    overflow: hidden !important;
  }

  .shell>.side.is-open {
    transform: translateX(0) !important;
  }

  .shell>.side>.tabs {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .shell>.side>.logout {
    flex: 0 0 auto !important;
    margin-top: auto !important;
  }

  main.main,
  main.main.wide {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .dashboard-toolbar {
    display: flex !important;
    align-items: center;
    height: 40px;
    margin-bottom: 16px;
  }

  .hamburger-btn {
    display: inline-flex !important;
    position: static !important;
    width: 40px !important;
    height: 40px !important;
    padding: 8px !important;
    flex: 0 0 40px !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: var(--side) !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    border-radius: 9px !important;
    color: #fff !important;
    cursor: pointer;
  }

  .hamburger-btn span {
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    margin: 0 auto;
    border-radius: 2px;
    background: currentColor !important;
  }

  .sidebar-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 90 !important;
    background: rgba(0, 0, 0, .42) !important;
  }

  .sidebar-overlay[hidden] {
    display: none !important;
  }

  @media (max-width: 860px) {

    main.main,
    main.main.wide {
      padding: 20px 16px 48px !important;
    }

    .shell>.side {
      width: min(260px, calc(100vw - 24px)) !important;
      padding-bottom: max(20px, env(safe-area-inset-bottom)) !important;
    }
  }

  @media (max-width: 480px) {

    main.main,
    main.main.wide {
      padding-left: 12px !important;
      padding-right: 12px !important;
    }
  }


  /* =====================================================
    VIGNADIGITAL - UNIVERSAL DARK MODE
    Identical appearance in Light Mode and Dark Mode
    Applies to Super Admin, Owner Dashboard and Menu Manage
    ===================================================== */

  :root {
    color-scheme: dark !important;

    --vd-bg: #111113;
    --vd-panel: #1b1b20;
    --vd-card: #202026;
    --vd-card-hover: #292930;
    --vd-input: #25252c;
    --vd-border: #34343c;
    --vd-text: #ffffff;
    --vd-muted: #a1a1aa;
    --vd-orange: #ff6426;
  }

  /* Main page */
  html,
  body {
    background: var(--vd-bg) !important;
    background-color: var(--vd-bg) !important;
    color: var(--vd-text) !important;
    color-scheme: dark !important;
  }

  /* Main layout */
  .shell,
  .main,
  .page,
  .content,
  main {
    background-color: var(--vd-bg) !important;
    color: var(--vd-text) !important;
  }

  /* Dashboard cards and panels */
  .card,
  .panel,
  .stat,
  .modal,
  .modal-content,
  .modal-box,
  .dialog,
  .dialog-content,
  .popup,
  .popup-content,
  [role="dialog"] {
    background-color: var(--vd-panel) !important;
    color: var(--vd-text) !important;
    border-color: var(--vd-border) !important;
  }

  /* Modal content and details */
  .modal *,
  .modal-content *,
  .modal-box *,
  .dialog *,
  .dialog-content *,
  .popup *,
  .popup-content *,
  [role="dialog"] * {
    color: inherit;
  }

  /* Modal headings */
  .modal h1,
  .modal h2,
  .modal h3,
  .modal strong,
  .dialog h1,
  .dialog h2,
  .dialog h3,
  [role="dialog"] h1,
  [role="dialog"] h2,
  [role="dialog"] h3 {
    color: #ffffff !important;
  }

  /* Modal labels and descriptions */
  .modal p,
  .modal label,
  .modal span,
  .dialog p,
  .dialog label,
  .dialog span,
  [role="dialog"] p,
  [role="dialog"] label,
  [role="dialog"] span {
    color: var(--vd-muted);
  }

  /* Modal values */
  .modal b,
  .modal strong,
  .dialog b,
  .dialog strong,
  [role="dialog"] b,
  [role="dialog"] strong {
    color: #ffffff !important;
  }

  /* Modal separators */
  .modal hr,
  .modal .kv,
  .modal .kv-grid>div,
  .dialog hr,
  [role="dialog"] hr {
    border-color: var(--vd-border) !important;
  }

  /* Menu Manage item cards */
  #menuMount .item-card,
  #menuMount .menu-item,
  #menuMount .menu-card,
  #menuMount .food-card,
  #menuMount .card,
  #menuMount article,
  #menuMount .item {
    background: var(--vd-card) !important;
    background-color: var(--vd-card) !important;
    color: var(--vd-text) !important;
    border-color: var(--vd-border) !important;
  }

  /* Menu item names */
  #menuMount h1,
  #menuMount h2,
  #menuMount h3,
  #menuMount h4,
  #menuMount .item-name,
  #menuMount .item-title,
  #menuMount .name,
  #menuMount .title {
    color: #ffffff !important;
  }

  /* Menu item descriptions */
  #menuMount p,
  #menuMount small,
  #menuMount .muted,
  #menuMount .description {
    color: var(--vd-muted) !important;
  }

  /* Menu item prices */
  #menuMount .price,
  #menuMount .item-price {
    color: var(--vd-orange) !important;
  }

  /* Menu Manage toolbar */
  #menuMount .toolbar,
  #menuMount .filters,
  #menuMount .view-toggle,
  #menuMount .view-switch {
    color: var(--vd-text) !important;
  }

  /* Search, dropdowns and form controls */
  input,
  select,
  textarea {
    background-color: var(--vd-input) !important;
    color: #ffffff !important;
    border-color: var(--vd-border) !important;
    color-scheme: dark !important;
  }

  input::placeholder,
  textarea::placeholder {
    color: #85858f !important;
  }

  /* Dropdown options */
  select option {
    background: var(--vd-panel) !important;
    color: #ffffff !important;
  }

  /* Table */
  table,
  thead,
  tbody {
    background: var(--vd-panel) !important;
    color: var(--vd-text) !important;
  }

  th {
    color: var(--vd-muted) !important;
  }

  td {
    color: var(--vd-text) !important;
    border-color: var(--vd-border) !important;
  }

  tbody tr,
  tbody tr:nth-child(even),
  tbody tr:nth-child(odd) {
    background: var(--vd-card) !important;
  }

  tbody tr:hover,
  tbody tr:hover td {
    background: var(--vd-card-hover) !important;
  }

  /* Preserve orange buttons */
  button:not(.ghost):not(.danger),
  .btn:not(.ghost):not(.danger) {
    color: #ffffff;
  }

  /* Preserve orange theme */
  button.lg,
  button.primary,
  #copyCreds,
  [data-menu],
  [data-add],
  #menuMount button:not(.ghost):not(.danger) {
    background-color: var(--vd-orange) !important;
    border-color: var(--vd-orange) !important;
    color: #ffffff !important;
  }

  /* Ghost buttons */
  button.ghost {
    background: transparent !important;
    color: #ffffff !important;
    border-color: var(--vd-border) !important;
  }

  /* Close buttons */
  .modal button[data-close],
  .modal .close,
  .dialog .close,
  [role="dialog"] .close {
    color: #ffffff !important;
  }

  /* =========================================
    MODAL BACKGROUND FIX — KEEP DASHBOARD VISIBLE
  ========================================= */

  .modal {
    background: rgba(15, 23, 42, 0.28) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  /* Keep popup cards fully visible */
  .modal .modal-box {
    opacity: 1 !important;
    position: relative;
    z-index: 1;
  }

  /* Confirmation popup */
  .modal.confirm-box {
    background: rgba(15, 23, 42, 0.28) !important;
  }

  /* Do not darken the popup itself */
  .modal .confirm-box {
    background: var(--card, #ffffff);
  }

  /* Light mode overlay */
  html[data-theme="light"] .modal,
  body[data-theme="light"] .modal {
    background: rgba(30, 41, 59, 0.18) !important;
  }

  /* Dark mode overlay */
  html[data-theme="dark"] .modal,
  body[data-theme="dark"] .modal {
    background: rgba(0, 0, 0, 0.48) !important;
  }

  /* Device Light Mode must not change the website */
  @media (prefers-color-scheme: light) {
    :root {
      color-scheme: dark !important;
    }

    html,
    body {
      background: #111113 !important;
      color: #ffffff !important;
    }
  }

  /* Shared modal contract: keep the current page visible behind a translucent backdrop. */
  .modal {
    background: rgba(0, 0, 0, 0.30) !important;
    background-color: rgba(0, 0, 0, 0.30) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1000 !important;
  }

  .modal .modal-box {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #222222 !important;
    border-color: #e5e7eb !important;
    color-scheme: light !important;
  }

  .modal .modal-box h1,
  .modal .modal-box h2,
  .modal .modal-box h3,
  .modal .modal-box h4,
  .modal .modal-box label,
  .modal .modal-box p,
  .modal .modal-box span,
  .modal .modal-box strong,
  .modal .modal-box b {
    color: #222222 !important;
  }

  .modal .modal-box .muted,
  .modal .modal-box small {
    color: #737373 !important;
  }

  .modal .modal-box button[data-close] {
    color: #222222 !important;
    -webkit-text-fill-color: #222222 !important;
  }

  /* Manage Menu item categories are neutral pills, separate from status pills. */
  #menuMount .item .pill:not(.ok):not(.warn):not(.bad) {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-color: #e2e8f0 !important;
    font-size: 12px;
    font-weight: 600 !important;
  }

  /* Manage Menu restaurant and ordering statuses. */
  #menuHead .restaurant-status,
  #menuHead .ordering-status {
    font-weight: 700 !important;
    border-color: transparent !important;
  }

  #menuHead .restaurant-status.active,
  #menuHead .ordering-status.on {
    background: #dcfce7 !important;
    color: #166534 !important;
  }

  #menuHead .restaurant-status.inactive {
    background: #fee2e2 !important;
    color: #991b1b !important;
  }

  #menuHead .ordering-status.off {
    background: #f1f5f9 !important;
    color: #475569 !important;
  }

  /* Bulk image upload uses a light surface without changing other cards. */
  .bulk-image-upload {
    color: #292929;
  }

  .bulk-image-upload>.card,
  .bulk-image-upload [data-bulk-progress]>.card,
  .bulk-image-upload [data-bulk-report]>.card,
  .bulk-image-upload .stat {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #292929 !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04) !important;
  }

  .bulk-image-upload .stats {
    background: #ffffff !important;
  }

  .bulk-image-upload h3,
  .bulk-image-upload strong {
    color: #292929 !important;
  }

  .bulk-image-upload p,
  .bulk-image-upload .muted,
  .bulk-image-upload [data-bulk-count],
  .bulk-image-upload [data-bulk-progress] span {
    color: #777777 !important;
  }

  .bulk-image-upload .bulk-drop {
    display: grid;
    gap: 8px;
    justify-items: center;
    padding: 28px 20px;
    background: #f8fafc !important;
    color: #292929 !important;
    border: 2px dashed #e5e7eb !important;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
  }

  .bulk-image-upload .bulk-drop:hover,
  .bulk-image-upload .bulk-drop.is-dragging {
    background: rgba(217, 72, 15, .06) !important;
    background: color-mix(in srgb, var(--theme-color, #d9480f) 8%, #ffffff) !important;
    border-color: var(--theme-color, #d9480f) !important;
  }

  .bulk-image-upload .bulk-drop>div {
    color: var(--theme-color, #d9480f);
    line-height: 1;
  }

  .bulk-file-list {
    display: grid;
    gap: 4px;
    margin-top: 8px;
    max-height: 120px;
    overflow: auto;
    color: #475569;
    font-size: 12px;
  }

  .bulk-image-upload .card-foot {
    color: #292929;
  }

  .bulk-image-upload .err {
    color: #991b1b !important;
    background: #fee2e2 !important;
    border: 1px solid #fecaca !important;
  }


  /* =====================================
    FAST ADMIN RESTAURANT PAGE RENDERING
  ===================================== */

  #rList {
    contain: layout style;
  }

  #rList table {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
  }

  #stats {
    contain: layout;
  }

  .skel {
    animation-duration: 0.7s !important;
  }

  /* Add/Edit item popup: keep the menu list visible behind it */
  .modal.manage-menu-modal {
    position: fixed !important;
    inset: 0 !important;
    display: grid !important;
    place-items: center !important;
    padding: 20px !important;

    background: rgba(0, 0, 0, 0.48) !important;
    background-color: rgba(0, 0, 0, 0.48) !important;

    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;

    z-index: 9999 !important;
  }

  /* Keep the actual form white and readable */
  .modal.manage-menu-modal .modal-box {
    position: relative !important;
    width: 100% !important;
    max-width: 680px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;

    background: #ffffff !important;
    color: #222222 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.30) !important;
  }


  /* =========================================
    COMPLETE WHITE ADMIN SIDEBAR THEME
  ========================================= */

  /* Entire sidebar */
  html body .shell>aside.side,
  html body aside.side {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #222222 !important;
    border-right: 1px solid #e5e5e5 !important;
    box-shadow: none !important;
  }

  /* Sidebar header and brand */
  html body aside.side .brand,
  html body aside.side .sidebar-header,
  html body aside.side .side-header {
    background: #ffffff !important;
    color: #222222 !important;
  }

  /* Brand text */
  html body aside.side .brand *,
  html body aside.side .brand span,
  html body aside.side .brand small {
    color: #222222 !important;
  }

  /* Navigation area */
  html body aside.side nav,
  html body aside.side .side-nav,
  html body aside.side .sidebar-nav {
    background: #ffffff !important;
    color: #222222 !important;
  }

  /* All menu buttons and links */
  html body aside.side nav a,
  html body aside.side nav button,
  html body aside.side .side-nav a,
  html body aside.side .side-nav button {
    background-color: #ffffff !important;
    color: #333333 !important;
    border-color: transparent !important;
  }

  /* Menu icons */
  html body aside.side nav a svg,
  html body aside.side nav button svg,
  html body aside.side nav a i,
  html body aside.side nav button i {
    color: #777777 !important;
  }

  /* Active menu item */
  html body aside.side nav a.active,
  html body aside.side nav button.active,
  html body aside.side nav .active {
    background: #fff0e8 !important;
    color: #c84b16 !important;
  }

  /* Hover */
  html body aside.side nav a:hover,
  html body aside.side nav button:hover {
    background: #f5f5f5 !important;
    color: #c84b16 !important;
  }

  /* Sidebar footer */
  html body aside.side .side-footer,
  html body aside.side .sidebar-footer {
    background: #ffffff !important;
    border-top: 1px solid #eeeeee !important;
  }

  /* Logout button */
  html body aside.side .logout,
  html body aside.side .logout-btn {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #dddddd !important;
  }

  /* Remove dark pseudo-element backgrounds */
  html body aside.side::before,
  html body aside.side::after {
    background: #ffffff !important;
  }



  /* HIDE ADD MENU — KEEP ADD ITEM */
  html body.owner-dashboard #addMenu {
    display: none !important;
  }

  /* Restaurant Details – Square Logo Preview */
  .img-pick #logoPrev {
    width: 96px !important;
    height: 96px !important;
    min-width: 96px !important;
    aspect-ratio: 1 / 1 !important;
    flex: 0 0 96px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    display: grid !important;
    place-items: center !important;
  }

  .img-pick #logoPrev img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 6px !important;
    display: block !important;
  }

  /* Force rounded corners on restaurant logo preview */
  html body.owner-dashboard .img-pick #logoPrev {
    width: 96px !important;
    height: 96px !important;
    min-width: 96px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    clip-path: inset(0 round 20px) !important;
    box-sizing: border-box !important;
  }

  html body.owner-dashboard .img-pick #logoPrev img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    display: block !important;
  }

  .receipt-upi-link {
      display: inline-block;
      cursor: pointer;
      text-decoration: none;
      position: relative;
      z-index: 10;
  }

  .receipt-upi-link img {
      pointer-events: auto;
  }

  .receipt-pay-button {
      display: inline-block;
      background: #16803c;
      color: #fff !important;
      padding: 12px 25px;
      margin: 10px auto;
      border-radius: 8px;
      text-decoration: none !important;
      font-weight: 700;
      cursor: pointer;
      position: relative;
      z-index: 10;
  }