:root {
  --rms-accent: #e8590c; --rms-accent-dark: #c2410c; --rms-side: #1f2433; --rms-side-2: #2a3042;
  --bs-primary: #e8590c; --bs-primary-rgb: 232, 89, 12; --bs-link-color: #c2410c; --bs-link-hover-color: #9a3412;
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.btn-primary { --bs-btn-bg: var(--rms-accent); --bs-btn-border-color: var(--rms-accent); --bs-btn-hover-bg: var(--rms-accent-dark); --bs-btn-hover-border-color: var(--rms-accent-dark); --bs-btn-active-bg: #9a3412; --bs-btn-disabled-bg: #f08c5a; --bs-btn-disabled-border-color: #f08c5a; }
.btn-outline-primary { --bs-btn-color: var(--rms-accent-dark); --bs-btn-border-color: var(--rms-accent); --bs-btn-hover-bg: var(--rms-accent); --bs-btn-hover-border-color: var(--rms-accent); --bs-btn-active-bg: var(--rms-accent-dark); }
.text-bg-primary { background-color: var(--rms-accent) !important; }
.form-control:focus, .form-select:focus { border-color: #f4a372; box-shadow: 0 0 0 .2rem rgba(232, 89, 12, .2); }
:focus-visible { outline: 3px solid #f59f00; outline-offset: 2px; }
body.app-body { background: #f4f5f8; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: var(--rms-side); color: #cfd4e0; flex-shrink: 0; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { display: flex; gap: .6rem; align-items: center; padding: 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-name { color: #fff; font-weight: 700; letter-spacing: .2px; }
.brand-sub { font-size: .75rem; color: #9aa3b8; max-width: 160px; }
.sidebar .nav-link { color: #cfd4e0; padding: .5rem 1rem; display: flex; gap: .65rem; align-items: center; border-left: 3px solid transparent; font-size: .93rem; }
.sidebar .nav-link:hover { background: var(--rms-side-2); color: #fff; }
.sidebar .nav-link.active { background: var(--rms-side-2); color: #fff; border-left-color: var(--rms-accent); }
.sidebar .nav-section { text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; color: #7d869c; padding: 1rem 1rem .3rem; }
.sidebar .nav-divider { border-top: 1px solid rgba(255,255,255,.12); margin: .75rem 1rem .4rem; }
.sidebar .nav-help.active, .sidebar .nav-help:hover { color: #fff; }
.sidebar-foot { margin-top: auto; padding: .75rem 1rem; border-top: 1px solid rgba(255,255,255,.08); color: #9aa3b8; }
.sidebar-foot a { color: #ffb38a; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { background: #fff; border-bottom: 1px solid #e3e6ee; padding: .55rem 1rem; display: flex; align-items: center; gap: .75rem; position: sticky; top: 0; z-index: 1020; }
.page-title { font-size: 1.15rem; margin: 0; font-weight: 600; }
.content { padding: 1.25rem; }
.card { border: 1px solid #e3e6ee; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.card-header { background: #fff; font-weight: 600; }
.stat-card .stat-label { font-size: .8rem; color: #6c757d; text-transform: uppercase; letter-spacing: .04em; }
.stat-card .stat-value { font-size: clamp(1.05rem, 1.45vw, 1.4rem); font-weight: 700; white-space: nowrap; }
.stat-card .stat-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-size: 1.2rem; }
.table > :not(caption) > * > * { padding: .5rem .6rem; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: #5c6477; background: #f8f9fb; white-space: nowrap; }
.notif-menu { width: 340px; max-height: 420px; overflow-y: auto; }
@media (max-width: 991.98px) {
  .sidebar { position: fixed; left: -260px; z-index: 1050; transition: left .2s; }
  body.nav-open .sidebar { left: 0; }
}
/* Public / auth */
body.public-body { background: #faf7f5; }
.hero { background: linear-gradient(135deg, #1f2433 0%, #3b2a26 100%); color: #fff; }
.hero .lead { color: #e6e0dc; }
.plan-card.featured { border: 2px solid var(--rms-accent); }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.auth-card { max-width: 440px; width: 100%; }
.pin-pad button { font-size: 1.4rem; height: 64px; }
/* POS */
body.pos-body { background: #eef0f4; overflow: hidden; }
.pos-shell { display: grid; grid-template-columns: 1fr 420px; height: calc(100vh - 52px); }
.pos-menu { overflow-y: auto; padding: .75rem; }
.pos-cart { background: #fff; border-left: 1px solid #dde1ea; display: flex; flex-direction: column; min-height: 0; }
.pos-cart .cart-lines { flex: 1; overflow-y: auto; }
.cat-pills { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; }
.cat-pills .btn { white-space: nowrap; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.item-tile { border: 0; background: #fff; border-radius: 12px; padding: .7rem; text-align: left; min-height: 96px; box-shadow: 0 1px 2px rgba(0,0,0,.06); border-top: 4px solid var(--c, #adb5bd); display: flex; flex-direction: column; }
.item-tile:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.item-tile:disabled { opacity: .45; }
.item-tile .name { font-weight: 600; font-size: .92rem; line-height: 1.2; }
.item-tile .price { margin-top: auto; color: var(--rms-accent-dark); font-weight: 700; }
.cart-line { padding: .5rem .75rem; border-bottom: 1px solid #f0f1f4; }
.cart-line .meta { font-size: .78rem; color: #6c757d; }
.pos-top { height: 52px; background: var(--rms-side); color: #fff; display: flex; align-items: center; gap: .5rem; padding: 0 .75rem; }
.pos-top .btn { --bs-btn-padding-y: .3rem; }
.qty-btn { width: 30px; height: 30px; padding: 0; }
.big-btn { min-height: 54px; font-weight: 600; }
@media (max-width: 991.98px) { .pos-shell { grid-template-columns: 1fr; height: auto; } body.pos-body { overflow: auto; } }
/* Tables */
.floor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .75rem; }
.table-tile { border-radius: 14px; padding: .8rem; color: #fff; min-height: 110px; border: 0; text-align: left; position: relative; }
.table-tile .tname { font-size: 1.35rem; font-weight: 700; }
.table-tile.available { background: #2f9e44; } .table-tile.reserved { background: #1c7ed6; } .table-tile.occupied { background: #e03131; }
.table-tile.awaiting_payment { background: #f08c00; } .table-tile.cleaning { background: #868e96; } .table-tile.out_of_service { background: #343a40; }
/* KDS */
body.kds-body { background: #15181f; color: #e9ecef; }
.kds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .8rem; padding: .8rem; }
.kds-ticket { background: #222733; border-radius: 12px; overflow: hidden; border-top: 6px solid #4dabf7; }
.kds-ticket.delayed { border-top-color: #fa5252; animation: pulse 1.5s infinite; }
.kds-ticket.urgent { border-top-color: #fd7e14; }
.kds-ticket .head { padding: .6rem .8rem; display: flex; justify-content: space-between; background: #2b3140; }
.kds-item { padding: .5rem .8rem; border-bottom: 1px solid #2f3545; cursor: pointer; }
.kds-item.st-accepted { background: #1e3a5f; } .kds-item.st-preparing { background: #5c3d00; } .kds-item.st-ready { background: #1b4d2b; text-decoration: line-through; opacity: .8; }
.kds-item .mods { font-size: .8rem; color: #ffd43b; } .kds-item .note { font-size: .82rem; color: #ff8787; font-weight: 600; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgba(250,82,82,.4); } }
/* Receipts */
.receipt { width: 300px; margin: 0 auto; font-family: "Courier New", monospace; font-size: 12px; color: #000; }
.receipt hr { border-top: 1px dashed #000; opacity: 1; margin: 4px 0; }
@media print { .no-print { display: none !important; } body { background: #fff !important; } .sidebar, .topbar { display: none !important; } .content { padding: 0; } }
/* Shop */
.shop-hero { background: var(--rms-side); color: #fff; }
.shop-item { border-radius: 12px; }
.badge-diet { font-size: .7rem; }

/* ---------------------------------------------------------------- Pricing / signup (SaaS) */
.pricing { --pr-teal: #146c5a; --pr-teal-dark: #0f5546; --pr-ink: #13201c; --pr-muted: #66736f; --pr-line: #e3ebe8; --pr-soft: #eaf4f0; color: var(--pr-ink); }
.pricing-page { background: linear-gradient(180deg, #eef7f3 0%, #f7fbf9 45%, #fff 100%); min-height: 100vh; }
.pricing-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .35rem; }
.pricing-sub { color: var(--pr-muted); max-width: 560px; font-size: .95rem; }
.cycle-toggle { display: inline-flex; gap: .25rem; padding: .25rem; border-radius: 999px; background: #fff; border: 1px solid var(--pr-line); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.cycle-toggle button { border: 0; background: transparent; border-radius: 999px; padding: .4rem 1rem; font-size: .85rem; font-weight: 600; color: var(--pr-ink); display: inline-flex; align-items: center; gap: .4rem; }
.cycle-toggle button.active { background: var(--pr-ink); color: #fff; }
.cycle-toggle button:focus-visible { outline: 2px solid var(--pr-teal); outline-offset: 2px; }
.save-badge { background: #fde68a; color: #6b4b00; border-radius: 999px; padding: .1rem .5rem; font-size: .7rem; font-weight: 700; }
.price-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--pr-line); border-radius: 12px; padding: 1.4rem 1.25rem 1.1rem; box-shadow: 0 1px 3px rgba(16,40,34,.05); transition: box-shadow .15s, transform .15s; }
.price-card:hover { box-shadow: 0 8px 24px rgba(16,40,34,.08); }
.price-card.popular { border: 1.5px solid var(--pr-teal); box-shadow: 0 10px 30px rgba(20,108,90,.12); }
.price-card.current { border: 1.5px solid var(--pr-ink); }
.price-card.selected { outline: 3px solid rgba(20,108,90,.35); outline-offset: 2px; }
.card-pill { position: absolute; top: -.7rem; left: 50%; transform: translateX(-50%); background: var(--pr-teal); color: #fff; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: .18rem .7rem; white-space: nowrap; }
.card-pill.pill-current { background: var(--pr-ink); }
.plan-name { font-size: 1rem; font-weight: 700; margin-bottom: .2rem; }
.plan-tagline { color: var(--pr-muted); font-size: .8rem; min-height: 2.4em; margin-bottom: .9rem; }
.plan-price .amount { font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; }
.plan-price .per { color: var(--pr-muted); font-size: .8rem; }
.billed { color: var(--pr-muted); font-size: .75rem; margin-bottom: .9rem; }
.plan-list { list-style: none; padding: 0; margin: 0 0 1.1rem; font-size: .82rem; }
.plan-list li { padding: .22rem 0 .22rem 1.35rem; position: relative; }
.plan-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--pr-teal); font-weight: 700; }
.plan-list li.fw-semibold::before { content: ""; }
.plan-cta { border: 1px solid #cfd9d5; background: #fff; color: var(--pr-ink); font-weight: 600; font-size: .88rem; padding: .55rem; border-radius: 8px; }
.plan-cta:hover { border-color: var(--pr-teal); color: var(--pr-teal); background: #fff; }
.plan-cta.filled { background: var(--pr-teal); border-color: var(--pr-teal); color: #fff; }
.plan-cta.filled:hover { background: var(--pr-teal-dark); color: #fff; }
.plan-sub { font-size: .78rem; color: var(--pr-teal); text-decoration: none; padding: .35rem 0 0; }
.plan-sub:hover { text-decoration: underline; color: var(--pr-teal-dark); }
.fineprint { color: var(--pr-muted); font-size: .75rem; }
.compare-title { font-size: 1.4rem; font-weight: 800; margin: 2.75rem 0 1.25rem; }
.compare-wrap { max-width: 980px; margin: 0 auto; background: #fff; border: 1px solid var(--pr-line); border-radius: 12px; }
.compare-table { font-size: .83rem; }
.compare-table th, .compare-table td { padding: .7rem .9rem; border-color: var(--pr-line); vertical-align: middle; }
.compare-table thead th { font-size: .72rem; letter-spacing: .06em; color: var(--pr-ink); font-weight: 700; }
.compare-table tbody th { font-weight: 500; color: #2f3c38; }
.compare-table .hl { background: var(--pr-soft); }
.compare-table .yes { color: var(--pr-teal); font-size: 1rem; }
.compare-table .no { color: #b8c4c0; }
.pricing-nav { padding: 1rem 0; }
.pricing-nav .brand { font-weight: 800; color: var(--pr-ink, #13201c); text-decoration: none; display: flex; align-items: center; gap: .5rem; }
.signup-modal .plan-summary { background: #eaf4f0; border-radius: 10px; padding: .75rem 1rem; }
.signup-modal .mode-opt { border: 1px solid #dfe7e4; border-radius: 10px; padding: .7rem .9rem; cursor: pointer; height: 100%; }
.signup-modal .btn-check:checked + .mode-opt { border-color: #146c5a; background: #f2f9f6; box-shadow: 0 0 0 2px rgba(20,108,90,.2); }
.btn-teal { background: #146c5a; border-color: #146c5a; color: #fff; }
.btn-teal:hover, .btn-teal:focus { background: #0f5546; border-color: #0f5546; color: #fff; }
/* billing page */
.billing-pricing { background: linear-gradient(180deg, #eef7f3 0%, #fff 100%); border-radius: 14px; padding: 1.75rem 1rem 1.5rem; }
.pay-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.pay-steps li { counter-increment: s; padding: .35rem 0 .35rem 2rem; position: relative; font-size: .9rem; }
.pay-steps li::before { content: counter(s); position: absolute; left: 0; top: .3rem; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: #146c5a; color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.paybill-box { background: #f6faf8; border: 1px dashed #b9cfc7; border-radius: 10px; padding: .8rem 1rem; }
.paybill-box .val { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.15rem; font-weight: 700; letter-spacing: .04em; }
.trial-badge { background: #fff4e5; color: #8a4b00; border: 1px solid #ffd8a8; }

/* ---------------------------------------------------------------- Onboarding */
.progress-ring { --p: 0; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--rms-accent, #e8590c) calc(var(--p) * 1%), #eceff3 0); }
.progress-ring span { width: 72px; height: 72px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; }
.onboard-step { border-left: 4px solid #dee2e6; }
.onboard-step.is-next { border-left-color: var(--rms-accent, #e8590c); box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.onboard-step.is-done { border-left-color: #198754; background: #fbfdfb; }
.onboard-step.is-done h3 { color: #5c6b63; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: #f1f3f5; display: grid; place-items: center; font-weight: 700; flex: none; }
.is-next .step-num { background: var(--rms-accent, #e8590c); color: #fff; }
.is-done .step-num { background: #198754; color: #fff; }
.tour-spot { position: fixed; z-index: 2000; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(15,20,30,.55); pointer-events: none; transition: all .2s ease; }
.tour-pop { position: fixed; z-index: 2001; }

/* ---------------------------------------------------------------- Platform console */
.avatar-circle { width: 30px; height: 30px; border-radius: 50%; background: #1f2433; color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem; }
.pkpi { background: #fff; border: 1px solid #e3e6ee; border-radius: 12px; padding: 1rem; height: 100%; }
.pkpi .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7385; font-weight: 600; }
.pkpi .val { font-size: 1.45rem; font-weight: 800; margin: .2rem 0; }
.pkpi .sub { font-size: .78rem; color: #6b7385; }
.pkpi .ico { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; font-size: 1.1rem; }
.pkpi a.stretched-link:focus-visible { outline: none; }
.pkpi:has(a.stretched-link:focus-visible) { outline: 2px solid #146c5a; outline-offset: 2px; }
.ptable th { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7385; font-weight: 600; }
.ptable td { font-size: .85rem; }
.state-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: .3rem; }

/* ---------------------------------------------------------------- Happy hour */
.hh-live { background: #fff4e6; border: 1px solid #ffc078; color: #7a3a00; }
.hh-pulse { width: 12px; height: 12px; border-radius: 50%; background: #e8590c; flex: none; animation: hhpulse 1.6s infinite; }
@keyframes hhpulse { 0% { box-shadow: 0 0 0 0 rgba(232,89,12,.55); } 70% { box-shadow: 0 0 0 10px rgba(232,89,12,0); } 100% { box-shadow: 0 0 0 0 rgba(232,89,12,0); } }
@media (prefers-reduced-motion: reduce) { .hh-pulse { animation: none; } }
.hh-week { position: relative; }
.hh-hours { position: relative; height: 18px; margin-left: 48px; font-size: .7rem; color: #868e96; }
.hh-hours span { position: absolute; transform: translateX(-50%); }
.hh-row { display: flex; align-items: center; height: 26px; }
.hh-day { width: 48px; font-size: .8rem; color: #495057; }
.hh-track { position: relative; flex: 1; height: 16px; background: repeating-linear-gradient(90deg, #f1f3f5 0, #f1f3f5 calc(100%/8 - 1px), #e9ecef calc(100%/8 - 1px), #e9ecef calc(100%/8)); border-radius: 4px; }
.hh-bar { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; opacity: .85; }
.hh-now { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #dc3545; }
.hh-card { border-left: 4px solid var(--hh, #e8590c); }
.hh-card.is-live { box-shadow: 0 0 0 2px rgba(232,89,12,.25); }
.hh-days .btn-check + label { min-width: 52px; }
.hh-banner { background: linear-gradient(90deg, #e8590c, #f08c00); color: #fff; border-radius: 8px; padding: .35rem .75rem; font-size: .85rem; display: flex; align-items: center; gap: .5rem; }
.hh-banner.next { background: #f1f3f5; color: #495057; }

/* ---------------------------------------------------------------- Messaging */
.msg-bubble { background: #dcf8c6; border-radius: 12px 12px 12px 2px; padding: .6rem .8rem; white-space: pre-wrap; font-size: .9rem; max-width: 100%; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
