:root {
  --ink: #1a2433;
  --ink-soft: #6b7280;
  --line: #dfe3ea;
  --bg: #f2f4f7;
  --card: #ffffff;
  --brand: #0f1b2d;
  --brand-mid: #1e3a5f;
  --brand-dark: #0a1322;
  --brand-soft: #e7ebf1;
  --gold: #16a085;
  --gold-soft: #ddf1eb;
  --cream: #eef5f2;
  --green: #1e7f4f;
  --green-soft: #e5f5ec;
  --amber: #9a6b0c;
  --amber-soft: #fdf3dc;
  --red: #b3352e;
  --red-soft: #fceceb;
  --blue: #2a5fa8;
  --blue-soft: #e9f1fb;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15, 27, 45, .07), 0 6px 24px rgba(15, 27, 45, .06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

a { color: var(--brand-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.22; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }

.eyebrow {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--brand-mid);
  margin-bottom: .6rem;
}
.eyebrow.gold { color: var(--gold); }

/* ---------- Brand mark ---------- */
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  color: var(--brand);
  font-size: 1.05rem;
  font-weight: 800;
  flex-shrink: 0;
}
.logo-mark img { width: 30px; height: 30px; display: block; }
.logo-lockup { display: inline-flex; align-items: center; gap: .6rem; }
.logo-lockup .t { line-height: 1.15; }
.logo-lockup .t b { display: block; font-size: 1.08rem; color: var(--ink); }
.logo-lockup .t small { display: block; font-size: .72rem; color: var(--ink-soft); font-weight: 500; }

/* ---------- Admin shell ---------- */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 228px;
  flex-shrink: 0;
  background: var(--brand);
  color: #cfe0d8;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  transition: width .16s ease;
}
.sidebar .brand {
  padding: 1.1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.nav-toggle {
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(255,255,255,.1); border: none; color: #cfe0d8; cursor: pointer;
  font-size: 1rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.nav-toggle:hover { background: rgba(255,255,255,.2); color: #fff; }
.nav-toggle::before { content: "«"; }

/* ----- Collapsed icon-rail ----- */
html.nav-collapsed .sidebar { width: 64px; }
html.nav-collapsed .sidebar .brand { flex-direction: column; gap: .55rem; padding: .9rem .4rem; }
html.nav-collapsed .sidebar .brand .t { display: none; }
html.nav-collapsed .nav-toggle::before { content: "»"; }
html.nav-collapsed .sidebar nav { padding: .85rem .4rem; }
html.nav-collapsed .sidebar nav a { justify-content: center; gap: 0; padding: .55rem 0; }
html.nav-collapsed .sidebar nav a .lbl { display: none; }
html.nav-collapsed .sidebar nav a .ic { width: auto; font-size: 1.1rem; }
html.nav-collapsed .sidebar .nav-label { padding: .7rem .4rem .35rem; }
html.nav-collapsed .sidebar .nav-label .lbl { display: none; }
html.nav-collapsed .sidebar .nav-label::after { content: ""; display: block; height: 1px; background: rgba(255,255,255,.14); }
html.nav-collapsed .sidebar .foot { padding: .8rem .4rem; text-align: center; }
html.nav-collapsed .sidebar .foot .who, html.nav-collapsed .sidebar .foot .muted { display: none; }
html.nav-collapsed .sidebar .foot button .lbl { display: none; }
html.nav-collapsed .sidebar .foot button .ic { display: inline; font-size: 1.1rem; }
.sidebar .foot button .ic { display: none; }
.sidebar .brand .logo-mark { background: #fff; color: var(--brand); width: 32px; height: 32px; border-radius: 9px; }
.sidebar .brand .t b { display: block; color: #fff; font-size: 1rem; line-height: 1.2; }
.sidebar .brand .t small { display: block; color: #9fbcae; font-size: .7rem; font-weight: 500; }
.sidebar nav { padding: .85rem .65rem; flex: 1; overflow-y: auto; }
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: .7rem;
  white-space: nowrap;
  padding: .55rem .8rem;
  border-radius: 9px;
  color: #cfe0d8;
  margin-bottom: 3px;
  font-size: .93rem;
}
.sidebar nav a .ic { width: 1.4rem; flex-shrink: 0; text-align: center; font-size: 1rem; line-height: 1; }
.sidebar nav a .lbl { overflow: hidden; text-overflow: ellipsis; }
.sidebar nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.sidebar nav a.active { background: var(--brand-mid); color: #fff; font-weight: 600; }
.sidebar .nav-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #7fa392;
  padding: .95rem .8rem .3rem;
}
.sidebar .foot { padding: .9rem 1.2rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.sidebar .foot .who { color: #fff; font-weight: 600; }
.sidebar .foot .muted { color: #9fbcae; }
.sidebar .foot form { display: flex; align-items: center; gap: .5rem; margin-top: .25rem; }
.sidebar .foot button {
  background: none; border: none; color: #e9cf9b; cursor: pointer;
  padding: 0; font-size: .85rem;
}
.sidebar .foot button:hover { text-decoration: underline; }
.sidebar .foot .app-version { margin-left: auto; color: #6f8c7f; font-size: .72rem; letter-spacing: .02em; white-space: nowrap; }
html.nav-collapsed .sidebar .foot form { flex-direction: column; gap: .4rem; }
html.nav-collapsed .sidebar .foot .app-version { margin-left: 0; font-size: .62rem; }

.main { flex: 1; padding: 1.5rem 2rem 3rem; min-width: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.page-head p { margin: .15rem 0 0; color: var(--ink-soft); }

/* ---------- Cards, tables ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.card h2 { margin-bottom: .9rem; }

.grid { display: grid; gap: 1.25rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.stat { padding: 1rem 1.25rem; }
.stat .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.stat .value { font-size: 1.65rem; font-weight: 700; margin-top: .15rem; color: var(--brand); }

table.list { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.list th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink-soft); padding: .5rem .65rem; border-bottom: 2px solid var(--line);
}
table.list td { padding: .6rem .65rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr:last-child td { border-bottom: none; }
table.list .num { text-align: right; font-variant-numeric: tabular-nums; }
table.list th.num { text-align: right; }
.table-scroll { overflow-x: auto; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block; padding: .12rem .6rem; border-radius: 99px;
  font-size: .74rem; font-weight: 600; white-space: nowrap;
}
.badge.pending { background: var(--amber-soft); color: var(--amber); }
.badge.confirmed { background: var(--green-soft); color: var(--green); }
.badge.in_progress { background: var(--blue-soft); color: var(--blue); }
.badge.completed { background: var(--brand-soft); color: var(--brand-mid); }
.badge.cancelled, .badge.void, .badge.refunded { background: var(--red-soft); color: var(--red); }
.badge.event { background: var(--blue-soft); color: var(--blue); }
.badge.catering { background: var(--gold-soft); color: var(--gold); }
.badge.muted { background: var(--bg); color: var(--ink-soft); }

/* Product image thumbnails (inventory list) */
.prod-name { display: flex; align-items: center; gap: .6rem; }
.prod-thumb { width: 38px; height: 38px; flex: none; border-radius: 7px; object-fit: cover; border: 1px solid var(--line); background: var(--bg); }
.prod-thumb.empty { background: repeating-linear-gradient(45deg, var(--bg), var(--bg) 5px, var(--card) 5px, var(--card) 10px); }
/* Product image on POS tiles */
.pos-item-thumb { width: 100%; height: 70px; object-fit: cover; border-radius: 7px; margin-bottom: .35rem; }

/* Category sub-rows (Categories admin) */
tr.subcategory-row td { background: var(--bg); }
.tree-indent { display: inline-block; width: 1.1rem; color: var(--ink-soft); }

/* ---------- Forms & buttons ---------- */
label.field { display: block; margin-bottom: .9rem; }
label.field > span { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .3rem; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; padding: .58rem .75rem; border: 1px solid #cfd6cd; border-radius: 9px;
  font: inherit; color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--brand-mid); outline-offset: 0; border-color: var(--brand-mid);
}
textarea { resize: vertical; min-height: 90px; }
.check { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; font-size: .92rem; }
.check input { width: auto; }

.btn {
  display: inline-block; padding: .58rem 1.2rem; border-radius: 9px; border: 1px solid transparent;
  background: var(--brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn.secondary { background: #fff; color: var(--ink); border-color: #cfd6cd; }
.btn.secondary:hover { background: var(--bg); }
.btn.outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn.outline:hover { background: var(--brand-soft); }
.btn.danger { background: var(--red); }
.btn.danger:hover { background: #92251f; }
.btn.small { padding: .32rem .75rem; font-size: .84rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 1rem; }
.actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }

/* ---------- Alerts ---------- */
.alert { padding: .7rem 1rem; border-radius: 9px; margin-bottom: 1rem; font-size: .92rem; }
.alert.success { background: var(--green-soft); color: var(--green); }
.alert.error { background: var(--red-soft); color: var(--red); }
.alert ul { margin: 0; padding-left: 1.1rem; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: .35rem; margin-top: 1rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 7px;
  background: #fff; font-size: .88rem; color: var(--ink);
}
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .disabled { color: #aab5ac; }
.pagination a:hover { background: var(--bg); text-decoration: none; }

/* ---------- Reports ---------- */
.report-sheet { padding: 1.5rem 1.75rem; }
.rpt-head { text-align: center; }
.rpt-head .line { font-size: .9rem; line-height: 1.45; }
.rpt-head .line.strong { font-weight: 700; }
.rpt-head .line.upper { text-transform: uppercase; }
.rpt-head .line.accent { color: var(--brand-mid); }
.rpt-title { font-size: 1.9rem; font-weight: 800; margin: 1.1rem 0 1rem; }
.rpt-meta { border-top: 1px solid var(--ink); padding: .6rem 0; font-size: .95rem; }
.rpt-meta div { display: flex; gap: .75rem; padding: .1rem 0; }
.rpt-meta span { min-width: 130px; font-weight: 700; }

table.rpt-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
table.rpt-table th {
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  padding: .45rem .4rem; text-align: left; font-weight: 700; line-height: 1.2;
}
table.rpt-table th.num, table.rpt-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.rpt-table td { padding: .4rem; border-bottom: 1px solid var(--line); }
table.rpt-table tfoot .grand td {
  border-top: 1.5px solid var(--ink); border-bottom: none;
  font-weight: 800; font-size: .88rem; padding: .55rem .4rem;
}

/* ---------- POS full screen (kiosk) ---------- */
body.pos-fullscreen .sidebar { display: none; }
body.pos-fullscreen .main { padding: 1rem 1.25rem 2rem; }

/* ---------- Shifts ---------- */
.shift-bar {
  display: flex; align-items: center; gap: .8rem; font-size: .9rem;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .5rem .9rem;
}
.shift-open-card { max-width: 520px; }
.pos-locked { pointer-events: none; opacity: .45; filter: grayscale(.3); user-select: none; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(20, 33, 28, .55);
  display: flex; align-items: flex-start; justify-content: center; padding: 4vh 1rem;
  overflow-y: auto;
}
.shift-modal {
  width: 100%; max-width: 460px; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
}
.shift-modal .sm-head {
  background: var(--brand); color: #fff; font-weight: 800; letter-spacing: .06em;
  padding: .8rem 1.2rem; font-size: .95rem;
}
.shift-modal .sm-body { padding: 1rem 1.2rem .4rem; }
.sm-row { display: flex; align-items: baseline; gap: .6rem; padding: .18rem 0; font-size: .93rem; }
.sm-row span { min-width: 130px; font-weight: 600; color: var(--ink); }
.sm-row em { font-style: normal; color: var(--brand-mid); flex: 1; }
.sm-row b { font-variant-numeric: tabular-nums; }
.sm-row.strong b, .sm-row.strong span { font-weight: 700; color: var(--brand); }
.sm-row.grand { font-size: 1.05rem; }
.sm-row.grand b, .sm-row.grand span { font-weight: 800; }
.sm-row b.neg { color: var(--red); }
.sm-sep { border-top: 1px solid var(--line); margin: .45rem 0; }
.sm-cash {
  display: flex; align-items: center; gap: .7rem; background: var(--brand-soft);
  padding: .8rem 1.2rem; margin-top: .5rem;
}
.sm-cash input { max-width: 150px; text-align: right; font-weight: 700; }
.sm-cash .diff { font-size: .9rem; color: var(--ink-soft); white-space: nowrap; }
.sm-cash .diff b { font-variant-numeric: tabular-nums; }
.sm-notes { padding: .7rem 1.2rem 0; }
.sm-notes textarea { min-height: 56px; margin-top: .3rem; }
.sm-actions { display: flex; justify-content: space-between; padding: 1rem 1.2rem 1.2rem; }

/* ---------- POS tables strip ---------- */
.pos-tables {
  display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.1rem;
}
.pos-table-btn {
  min-width: 104px; padding: .5rem .85rem; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; font: inherit; cursor: pointer;
  text-align: left; font-weight: 700; font-size: .9rem; line-height: 1.3;
}
.pos-table-btn small { display: block; font-weight: 500; font-size: .74rem; color: var(--ink-soft); }
.pos-table-btn:hover { border-color: var(--brand-mid); }
.pos-table-btn.occupied { border-color: var(--brand-mid); background: var(--brand-soft); }
.pos-table-btn.occupied small { color: var(--brand-mid); font-weight: 700; }
.pos-table-btn.billed { border-color: var(--amber); background: var(--amber-soft); }
.pos-table-btn.billed small { color: var(--amber); font-weight: 700; }
.pos-table-btn.active { outline: 2.5px solid var(--brand); outline-offset: 1px; }

.pos-grid-wrap { position: relative; }
.pos-grid-overlay {
  position: absolute; inset: 0; z-index: 2; border-radius: var(--radius);
  background: rgba(247, 245, 240, .82); backdrop-filter: blur(1.5px);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 3rem;
  font-size: 1.05rem; color: var(--ink); text-align: center;
}

/* ---------- POS ---------- */
/* Categories (left) | products (middle) | cart (right) */
.pos-wrap { display: grid; grid-template-columns: 210px 1fr 360px; gap: 1.25rem; align-items: start; }
@media (max-width: 1100px) {
  .pos-wrap { grid-template-columns: 180px 1fr; }
  .pos-cart { grid-column: 1 / -1; position: static; }
}
@media (max-width: 640px) { .pos-wrap { grid-template-columns: 1fr; } .pos-cats { position: static; max-height: none; } }

/* Left-hand categories panel (titled, vertical, scrollable) */
.pos-cats {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card, #fff); border: 1px solid var(--line); border-radius: var(--radius);
  position: sticky; top: 1.25rem; max-height: calc(100vh - 2.5rem);
}
.pos-cats-head {
  flex: none; background: var(--brand); color: #fff; font-weight: 700; text-align: center;
  text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; padding: .75rem .5rem;
}
.pos-cats-list { display: flex; flex-direction: column; gap: .3rem; padding: .45rem; overflow-y: auto; }
.pos-cats-list button {
  padding: .62rem .7rem; border-radius: 8px; border: none; background: transparent;
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink);
  cursor: pointer; text-align: center; line-height: 1.25;
}
.pos-cats-list button:hover { background: var(--brand-soft); }
.pos-cats-list button.active { background: var(--brand); color: #fff; }

.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.pos-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem; cursor: pointer; text-align: left; font: inherit;
  transition: border-color .1s, transform .05s;
}
.pos-item:hover { border-color: var(--brand-mid); }
.pos-item:active { transform: scale(.98); }
.pos-item .name { font-weight: 600; font-size: .92rem; }
.pos-item .set-tag {
  display: inline-block; font-size: .58rem; font-weight: 800; letter-spacing: .06em;
  background: var(--blue-soft); color: var(--blue); border-radius: 4px;
  padding: .06rem .3rem; vertical-align: 2px; margin-left: .2rem;
}
.pos-item .price { color: var(--brand-mid); font-weight: 700; margin-top: .2rem; }
.pos-item .stock { font-size: .76rem; color: var(--ink-soft); margin-top: .15rem; }
.pos-item.out { opacity: .45; cursor: not-allowed; }
.pos-item.low .stock { color: var(--red); font-weight: 600; }

.pos-cart { position: sticky; top: 1.25rem; }
.cart-lines { max-height: 320px; overflow-y: auto; margin-bottom: .75rem; }
.cart-line {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .9rem;
}
.cart-line .n { flex: 1; min-width: 0; }
.cart-line .qty { display: flex; align-items: center; gap: .3rem; }
.cart-line .qty button {
  width: 24px; height: 24px; border-radius: 6px; border: 1px solid #cfd6cd;
  background: #fff; cursor: pointer; font-weight: 700; line-height: 1;
}
.cart-line .amt { width: 72px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.cart-line .rm { background: none; border: none; color: var(--red); cursor: pointer; font-size: 1rem; padding: 0 .2rem; }
.cart-empty { color: var(--ink-soft); text-align: center; padding: 1.5rem 0; }

.cart-totals { border-top: 2px solid var(--line); padding-top: .7rem; font-size: .95rem; }
.cart-totals .row { display: flex; justify-content: space-between; padding: .15rem 0; }
.cart-totals .grand { font-size: 1.25rem; font-weight: 700; }
.pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin: .75rem 0; }
.pay-methods button {
  padding: .5rem; border-radius: 9px; border: 1px solid #cfd6cd; background: #fff;
  font: inherit; font-size: .88rem; cursor: pointer;
}
.pay-methods button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.change-due { font-size: 1rem; font-weight: 700; color: var(--green); }

/* ---------- Public site ---------- */
.pub-header {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.pub-header .inner {
  max-width: 1160px; margin: 0 auto; padding: .8rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.pub-header nav { display: flex; gap: 1.35rem; align-items: center; flex-wrap: wrap; }
.pub-header nav a { color: var(--ink); font-weight: 500; font-size: .93rem; }
.pub-header nav a:hover { color: var(--brand-mid); text-decoration: none; }
.pub-header .cta { display: flex; gap: .6rem; align-items: center; }

.pub-main { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem 4rem; }

/* Hero */
.hero2 {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0 3rem;
  background:
    radial-gradient(circle at 88% 12%, rgba(201, 165, 106, .22), transparent 34%),
    radial-gradient(circle at 70% 65%, rgba(255, 244, 219, .8), transparent 42%),
    radial-gradient(circle at 96% 50%, rgba(12, 59, 46, .10), transparent 30%);
}
@media (max-width: 900px) { .hero2 { grid-template-columns: 1fr; } }
.hero2.has-img {
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  border-radius: 16px;
  padding: 3.5rem 2.5rem 3rem;
  margin-top: 1.25rem;
}
@media (max-width: 900px) {
  .hero2.has-img { background-image: none !important; background-color: var(--cream); }
}
.hero2 h1 { font-size: 2.9rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 1rem; }
.hero2 h1 .accent { color: var(--brand-mid); }
.hero2 .sub { color: var(--ink-soft); font-size: 1.05rem; max-width: 460px; margin: 0 0 1.8rem; }

.trust { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: .6rem; font-size: .86rem; font-weight: 600; color: var(--ink); }
.trust-item .ic {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--brand-mid);
  color: var(--brand-mid); display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; background: #fff; flex-shrink: 0;
}
.trust-item small { display: block; font-weight: 400; color: var(--ink-soft); }

/* Hero search widget */
.search-card {
  background: #fff; border-radius: 16px; box-shadow: 0 8px 40px rgba(12, 59, 46, .14);
  padding: 1.4rem 1.5rem 1.5rem; border: 1px solid var(--line);
}
.search-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem;
  border-bottom: 1px solid var(--line); margin-bottom: 1.1rem;
}
.search-tabs button {
  background: none; border: none; font: inherit; cursor: pointer;
  padding: .5rem .25rem .7rem; color: var(--ink-soft); font-size: .88rem; font-weight: 600;
  border-bottom: 2.5px solid transparent; margin-bottom: -1px;
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
}
.search-tabs button .ti { font-size: 1.15rem; }
.search-tabs button.active { color: var(--brand); border-bottom-color: var(--brand); }
.search-card .field > span { font-size: .8rem; }
.search-card .btn { width: 100%; padding: .75rem; font-size: 1rem; margin-top: .25rem; }

/* Section headers */
.sec { padding: 2.6rem 0 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.sec-head h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.sec-head .more { font-weight: 600; font-size: .9rem; white-space: nowrap; }

/* Service cards */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.1rem; }
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: visible; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.svc-img { height: 120px; border-radius: var(--radius) var(--radius) 0 0; position: relative; }
.svc-img.v1 { background: linear-gradient(135deg, #efe6d3, #d9c49a 60%, #b99a5e); }
.svc-img.v2 { background: linear-gradient(135deg, #e9efe8, #c2d4c3 60%, #8dab90); }
.svc-img.v3 { background: linear-gradient(135deg, #f0ece4, #d8d2c2 60%, #a9a184); }
.svc-img.v4 { background: linear-gradient(135deg, #e8ebef, #c3ccd4 60%, #8f9dab); }
.svc-img.v5 { background: linear-gradient(135deg, #f2e9e2, #dcc8b4 60%, #b6926f); }
.svc-img::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.55), transparent 45%),
              radial-gradient(circle at 75% 70%, rgba(255,255,255,.25), transparent 40%);
}
.svc-icon {
  position: absolute; bottom: -20px; left: 16px; width: 42px; height: 42px; z-index: 1;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(12,59,46,.18);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.svc-body { padding: 1.7rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 { font-size: 1rem; margin-bottom: .25rem; }
.svc-body p { margin: 0 0 .9rem; color: var(--ink-soft); font-size: .87rem; flex: 1; }
.svc-body .explore { font-weight: 700; font-size: .87rem; color: var(--brand-mid); }

/* Steps band */
.steps-band { background: var(--cream); border-radius: 16px; padding: 2.5rem 2rem; margin-top: 3rem; text-align: center; }
.steps-band h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 1.8rem; }
.steps4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; text-align: left; }
.step4 { display: flex; gap: .9rem; align-items: flex-start; }
.step4 .ic {
  width: 54px; height: 54px; border-radius: 50%; background: #fff; flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(12,59,46,.10); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--brand-mid);
}
.step4 b { display: block; font-size: .95rem; margin-bottom: .15rem; }
.step4 span { color: var(--ink-soft); font-size: .86rem; }

/* POS showcase */
.pos-show { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; margin-top: 3.5rem; }
@media (max-width: 900px) { .pos-show { grid-template-columns: 1fr; } }
.pos-show h2 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.01em; }
.pos-show .blurb { color: var(--ink-soft); margin: 0 0 1.2rem; max-width: 440px; }
.checks { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.checks li { display: flex; align-items: center; gap: .65rem; padding: .32rem 0; font-weight: 500; }
.checks li::before {
  content: "✓"; width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-soft); color: var(--brand-mid); font-size: .8rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Event promotion card */
.promo-card {
  background:
    radial-gradient(circle at 85% 12%, rgba(201, 165, 106, .28), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(12, 59, 46, .08), transparent 40%),
    linear-gradient(150deg, #fffdf8, var(--cream));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem 2.1rem;
  box-shadow: 0 10px 44px rgba(12, 59, 46, .14);
}
.promo-card .tag {
  display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold); background: #fff;
  border: 1px solid var(--gold); border-radius: 99px;
  padding: .22rem .8rem; margin-bottom: .9rem;
}
.promo-card h3 { font-size: 1.45rem; margin-bottom: .35rem; }
.promo-card .desc { color: var(--ink-soft); font-size: .94rem; margin: 0 0 .9rem; }
.promo-card .price { font-size: 1.5rem; font-weight: 800; color: var(--brand); }
.promo-card .price small { font-size: .82rem; font-weight: 500; color: var(--ink-soft); }
.promo-card .meta { font-size: .86rem; color: var(--ink-soft); margin: .2rem 0 1.1rem; }
.promo-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem;
  border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.25rem;
}
.promo-stat .v { font-size: 1.35rem; font-weight: 800; color: var(--brand-mid); line-height: 1.2; }
.promo-stat .l { font-size: .78rem; color: var(--ink-soft); }

/* Package cards */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.pkg-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.pkg-card h3 { margin-bottom: .3rem; }
.pkg-card .desc { color: var(--ink-soft); font-size: .92rem; flex: 1; }
.pkg-card .price { font-size: 1.3rem; font-weight: 800; color: var(--brand); margin: .8rem 0 .2rem; }
.pkg-card .price small { font-size: .8rem; font-weight: 500; color: var(--ink-soft); }
.pkg-card .meta { font-size: .84rem; color: var(--ink-soft); margin-bottom: 1rem; }

/* Logos strip */
.logos-strip { margin-top: 3.5rem; text-align: center; }
.logos-strip .cap { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.1rem; }
.logos-row { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; align-items: center; }
.logos-row .lg { font-family: Georgia, "Times New Roman", serif; color: #8b9189; letter-spacing: .12em; text-transform: uppercase; font-size: .92rem; }
.logos-row .lg small { display: block; font-size: .58rem; letter-spacing: .3em; text-align: center; }

/* Public footer */
.pub-footer { background: var(--brand); color: #cfe0d8; margin-top: 4rem; }
.pub-footer .inner { max-width: 1160px; margin: 0 auto; padding: 2.5rem 1.25rem 1.5rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .pub-footer .inner { grid-template-columns: 1fr; } }
.pub-footer h4 { color: #fff; margin: 0 0 .6rem; font-size: .95rem; }
.pub-footer a { color: #cfe0d8; display: block; padding: .15rem 0; font-size: .9rem; }
.pub-footer a:hover { color: #fff; }
.pub-footer p { font-size: .9rem; margin: .5rem 0 0; max-width: 340px; }
.pub-footer .base { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 1rem; font-size: .8rem; color: #9fbcae; }
.pub-footer .logo-lockup .t b { color: #fff; }
.pub-footer .logo-lockup .t small { color: #9fbcae; }
.pub-footer .logo-mark { background: #fff; color: var(--brand); }

.menu-pick { border: 1px solid var(--line); border-radius: 9px; max-height: 340px; overflow-y: auto; }
.menu-pick .group { padding: .45rem .8rem; background: var(--bg); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); position: sticky; top: 0; }
.menu-pick .row { display: flex; align-items: center; gap: .75rem; padding: .45rem .8rem; border-top: 1px solid var(--line); font-size: .92rem; }
.menu-pick .row .n { flex: 1; }
.menu-pick .row .p { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.menu-pick .row input { width: 70px; padding: .3rem .5rem; }

.summary-box { background: var(--brand-soft); border-radius: 9px; padding: 1rem 1.2rem; }
.summary-box .row { display: flex; justify-content: space-between; padding: .12rem 0; font-size: .94rem; }
.summary-box .grand { font-weight: 700; font-size: 1.15rem; border-top: 1px solid #c4d8cd; margin-top: .4rem; padding-top: .5rem; }

.conf-ref {
  font-size: 1.6rem; font-weight: 800; letter-spacing: .04em;
  background: var(--brand); color: #fff; display: inline-block;
  padding: .5rem 1.2rem; border-radius: 9px; margin: .5rem 0 1rem;
}

.steps { display: flex; gap: 1rem; margin: 1.5rem 0; flex-wrap: wrap; }
.steps .step { display: flex; gap: .5rem; align-items: center; color: var(--ink-soft); font-size: .9rem; }
.steps .step b {
  width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-mid);
  display: inline-flex; align-items: center; justify-content: center; font-size: .8rem;
}

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.login-card { width: 100%; max-width: 400px; }
.login-card .head { display: flex; justify-content: center; margin-bottom: 1.25rem; }

/* ---------- Receipt ---------- */
.receipt {
  max-width: 380px; margin: 2rem auto; background: #fff; padding: 1.5rem;
  border: 1px solid var(--line); border-radius: 9px;
  font-family: "Courier New", monospace; font-size: .85rem;
}
.receipt h2 { text-align: center; font-size: 1.05rem; }
.receipt .center { text-align: center; }
.receipt hr { border: none; border-top: 1px dashed #999; margin: .7rem 0; }
.receipt table { width: 100%; border-collapse: collapse; }
.receipt td { padding: .12rem 0; vertical-align: top; }
.receipt .num { text-align: right; white-space: nowrap; }
.receipt .total-row td { font-weight: 700; font-size: .95rem; }
.no-print { text-align: center; margin: 1rem auto; }
.low-alert {
  max-width: 380px; margin: 1rem auto; padding: .8rem 1rem; text-align: left;
  background: var(--amber-soft); color: var(--amber); border-radius: 9px; font-size: .9rem;
}
.low-alert ul { margin: .35rem 0; padding-left: 1.2rem; }
.low-alert a { color: var(--amber); font-weight: 700; }

@media print {
  body { background: #fff; }
  .no-print, .sidebar { display: none !important; }
  .receipt { border: none; margin: 0; }
}

/* ---------- Uploaded logo & settings pages ---------- */
.logo-img { height: 38px; max-width: 160px; object-fit: contain; display: block; }
.sidebar .logo-img { background: #fff; border-radius: 8px; padding: 3px 6px; }

.logo-preview {
  display: flex; align-items: center; gap: 1rem; margin: -.2rem 0 1rem;
  padding: .6rem .8rem; border: 1px dashed var(--line); border-radius: 9px; background: var(--bg);
}
.logo-preview img { height: 44px; max-width: 180px; object-fit: contain; }

.hero-img-preview {
  display: flex; align-items: center; gap: 1rem; margin: -.2rem 0 1rem;
  padding: .6rem .8rem; border: 1px dashed var(--line); border-radius: 9px; background: var(--bg);
}
.hero-img-preview img { height: 72px; max-width: 220px; object-fit: cover; border-radius: 6px; }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; }
.swatch {
  display: flex; align-items: center; gap: .55rem; padding: .55rem .7rem;
  border: 1.5px solid var(--line); border-radius: 9px; background: #fff;
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; text-align: left;
}
.swatch:hover { border-color: var(--brand-mid); }
.swatch.active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.swatch .dots { display: inline-flex; gap: 3px; }
.swatch .dots i { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }

input[type=color] {
  width: 100%; height: 42px; padding: 3px; border: 1px solid #cfd6cd;
  border-radius: 9px; background: #fff; cursor: pointer;
}

.theme-preview { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .25rem; }
.theme-preview span {
  padding: .45rem .8rem; border-radius: 8px; font-size: .82rem; font-weight: 600;
}
.theme-preview .chip-brand { color: #fff; }

.stock-in-inline { display: inline-flex; gap: .3rem; vertical-align: middle; }
.stock-in-inline input { width: 64px; padding: .3rem .45rem; font-size: .84rem; }

/* ---------- Booking calendar ---------- */
.cal-card { padding: .9rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.cal-head { margin-bottom: 6px; }
.cal-dow {
  text-align: center; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-soft); padding: .3rem 0;
}
.cal-cell {
  background: #fbfaf7; border: 1px solid var(--line); border-radius: 9px;
  min-height: 108px; padding: .4rem .45rem; min-width: 0;
}
.cal-cell.other { background: transparent; border-style: dashed; }
.cal-cell.other .cal-date .d { color: #b3bcb2; }
.cal-cell.today { background: var(--brand-soft); border-color: var(--brand-mid); }
.cal-cell.today .cal-date .d {
  background: var(--brand); color: #fff; border-radius: 50%;
  width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
}
.cal-date { display: flex; align-items: center; justify-content: space-between; margin-bottom: .3rem; }
.cal-date .d { font-weight: 700; font-size: .85rem; }
.cal-date .count {
  font-size: .66rem; font-weight: 700; color: var(--brand-mid);
  background: var(--brand-soft); border-radius: 99px; padding: .02rem .4rem;
}
.cal-cell.today .cal-date .count { background: #fff; }
.cal-chip {
  display: block; font-size: .72rem; line-height: 1.25; padding: .22rem .4rem;
  border-radius: 6px; margin-bottom: 3px; color: var(--ink);
  border-left: 3px solid transparent; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.cal-chip:hover { text-decoration: none; filter: brightness(.96); }
.cal-chip b { font-weight: 700; }
.cal-chip small { color: var(--ink-soft); }
.cal-chip.pending { background: var(--amber-soft); border-left-color: var(--amber); }
.cal-chip.confirmed { background: var(--green-soft); border-left-color: var(--green); }
.cal-chip.in_progress { background: var(--blue-soft); border-left-color: var(--blue); }
.cal-chip.completed { background: var(--brand-soft); border-left-color: var(--brand-mid); }
.cal-chip.cancelled { background: var(--red-soft); border-left-color: var(--red); text-decoration: line-through; }
.cal-chip.cancelled:hover { text-decoration: line-through; }

.cal-legend { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: .82rem; color: var(--ink-soft); }
.cal-legend .item { display: inline-flex; align-items: center; gap: .4rem; }
.cal-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.cal-dot.pending { background: var(--amber); }
.cal-dot.confirmed { background: var(--green); }
.cal-dot.in_progress { background: var(--blue); }
.cal-dot.completed { background: var(--brand-mid); }
.cal-dot.cancelled { background: var(--red); }

@media (max-width: 860px) {
  .cal-cell { min-height: 72px; }
  .cal-chip small { display: none; }
}

/* ---------- Detail lists ---------- */
.dl { display: grid; grid-template-columns: 150px 1fr; gap: .35rem 1rem; font-size: .94rem; }
.dl dt { color: var(--ink-soft); }
.dl dd { margin: 0; font-weight: 500; }

.empty { color: var(--ink-soft); text-align: center; padding: 2rem 1rem; }
.muted { color: var(--ink-soft); }
.mt { margin-top: 1rem; }
.right { text-align: right; }

@media (max-width: 640px) {
  .hero2 h1 { font-size: 2.1rem; }
  .mini-dash .md-side { display: none; }
}
