:root {
  --bg: #fbfaf6;
  --panel: #fff;
  --ink: #1f2a24;
  --muted: #65746b;
  --line: #e6e0d4;
  --brand: #315fd6;
  --brand-dark: #2449a8;
  --accent: #f28c38;
  --soft: #eef3ff;
  --warn: #fff5dd;
  --danger: #b42318;
  --shadow: 0 16px 40px rgba(58, 77, 66, .10);
}

* { box-sizing: border-box; }

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

a { color: var(--brand); text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: 0; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: 24px; margin-bottom: 16px; }
h3 { font-size: 18px; }
label { font-weight: 740; color: #323831; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.sidebar {
  background: #17213d;
  color: #f8fff9;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.brand { display: flex; gap: 12px; align-items: center; font-weight: 850; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f5c86a;
  color: #17213d;
  font-weight: 900;
}
.nav { display: grid; gap: 8px; }
.nav a { color: #dcebe5; padding: 10px 12px; border-radius: 8px; font-weight: 700; }
.nav a.active, .nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.side-meta { margin-top: auto; color: #abc0b8; font-size: 14px; }
.content { padding: 30px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 24px; }
.eyebrow { color: var(--muted); font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.stat { min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; }
.stat strong { font-size: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn, button {
  appearance: none;
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 780;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  white-space: nowrap;
}
.btn:hover, button:hover { background: var(--brand-dark); }
.btn.secondary { background: #e5eae4; color: var(--ink); }
.btn.secondary:hover { background: #d8dfd6; }

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); }
.login-art {
  padding: 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(rgba(255, 250, 238, .88), rgba(237, 248, 244, .84)),
    url("https://images.unsplash.com/photo-1555396273-367ea4eb4db5?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  color: var(--ink);
}
.login-art h1 { max-width: 780px; font-size: clamp(38px, 6vw, 68px); }
.login-panel { display: grid; place-items: center; padding: 30px; }
.login-card {
  width: min(100%, 430px);
  background: white;
  padding: 28px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.landing-body {
  background: #fbfaf6;
}
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 82px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(31, 42, 36, .06);
}
.landing-brand {
  color: var(--ink);
}
.landing-brand > span:last-child {
  display: grid;
  gap: 1px;
}
.landing-brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}
.landing-nav nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 780;
}
.landing-nav nav a:not(.btn) {
  color: var(--ink);
  padding: 9px 8px;
  border-radius: 8px;
}
.landing-nav nav a:not(.btn):hover {
  background: var(--soft);
}
.landing-hero {
  position: relative;
  overflow: hidden;
  min-height: 82vh;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, .72fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(52px, 8vw, 98px) clamp(20px, 6vw, 80px) clamp(38px, 6vw, 70px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .96), rgba(238, 243, 255, .9)),
    url("https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&w=1800&q=85");
  background-size: cover;
  background-position: center;
  color: var(--ink);
}
.hero-copy {
  width: min(760px, 100%);
  display: grid;
  gap: 22px;
}
.hero-copy h1 {
  max-width: 860px;
  font-size: clamp(42px, 6.4vw, 78px);
}
.hero-copy p:not(.eyebrow) {
  max-width: 680px;
  font-size: 20px;
  color: var(--muted);
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(49, 95, 214, .15);
  color: #31405d;
  font-size: 13px;
  font-weight: 850;
}
.hero-product {
  position: relative;
  min-height: 510px;
  display: grid;
  align-items: center;
}
.product-window {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(49, 95, 214, .18);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 30px 70px rgba(31, 42, 36, .18);
}
.window-bar {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin: -4px -4px 16px;
  padding: 0 4px 12px;
  color: var(--muted);
  font-size: 13px;
}
.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f28c38;
}
.window-bar span:nth-child(2) { background: #f5c86a; }
.window-bar span:nth-child(3) { background: #315fd6; }
.window-bar strong {
  margin-left: auto;
  color: var(--ink);
}
.preview-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.preview-top div,
.preview-card {
  background: #f8faff;
  border: 1px solid #dfe8ff;
  border-radius: 8px;
  padding: 14px;
}
.preview-top span,
.preview-card span,
.receipt-float span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.preview-top strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.preview-card.wide {
  grid-column: 1 / -1;
  min-height: 148px;
  background: #fff;
}
.preview-card strong {
  display: block;
  margin-top: 5px;
  font-size: 24px;
}
.accent-card {
  background: #fff7e9;
  border-color: #f9d6ad;
}
.preview-lines {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.preview-lines i {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #89a6ff);
}
.receipt-float {
  position: absolute;
  right: -18px;
  bottom: 16px;
  z-index: 2;
  width: 210px;
  display: grid;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 20px 46px rgba(31, 42, 36, .16);
  font-family: "Courier New", ui-monospace, monospace;
}
.receipt-float b {
  border-top: 1px dashed #111;
  padding-top: 8px;
}
.landing-band {
  padding: clamp(46px, 7vw, 86px) clamp(20px, 6vw, 80px);
}
.landing-band#features {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(251, 250, 246, .93), rgba(251, 250, 246, .96)),
    url("https://images.unsplash.com/photo-1559329007-40df8a9345d8?auto=format&fit=crop&w=1800&q=85");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.landing-band.alt {
  background: #fff7e9;
  color: var(--ink);
}
.landing-band.alt .muted,
.landing-band.alt p {
  color: var(--muted);
}
.landing-snapshot {
  padding-top: 24px;
  padding-bottom: 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.metric-strip div {
  display: grid;
  gap: 4px;
  padding: 14px 0;
}
.metric-strip strong {
  font-size: 18px;
}
.metric-strip span {
  color: var(--muted);
}
.section-head {
  width: min(780px, 100%);
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}
.section-head h2,
.landing-cta h2 {
  font-size: clamp(30px, 5vw, 54px);
}
.feature-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature-card,
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.feature-card {
  display: grid;
  gap: 12px;
  align-content: start;
}
.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #eef3ff, #fff7e9);
  border: 1px solid #dfe8ff;
  color: var(--brand);
}
.feature-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card:nth-child(2n) .feature-icon {
  color: #b35b16;
  background: linear-gradient(135deg, #fff7e9, #fff);
  border-color: #f9d6ad;
}
.feature-card p,
.price-card p {
  color: var(--muted);
}
.staff-band {
  background:
    linear-gradient(90deg, rgba(255,255,255,.94), rgba(248,250,255,.92)),
    url("https://images.unsplash.com/photo-1556745757-8d76bdb6984b?auto=format&fit=crop&w=1800&q=85");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.staff-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.staff-module-grid div {
  min-height: 160px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  border: 1px solid #dfe8ff;
  box-shadow: var(--shadow);
}
.staff-module-grid .feature-icon {
  margin-bottom: 4px;
}
.staff-module-grid div:nth-child(2) .feature-icon {
  color: #b35b16;
  background: linear-gradient(135deg, #fff7e9, #fff);
  border-color: #f9d6ad;
}
.staff-module-grid div:nth-child(3) .feature-icon {
  color: #2449a8;
  background: linear-gradient(135deg, #eef3ff, #fff);
}
.staff-module-grid strong {
  font-size: 24px;
}
.staff-module-grid span {
  color: var(--muted);
  font-weight: 700;
}
.ops-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.ops-grid div {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.ops-grid span {
  color: var(--accent);
  font-weight: 900;
}
.ops-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 22px;
}
.price-card {
  display: grid;
  gap: 14px;
  align-content: start;
}
.price-card.featured {
  border-color: var(--brand);
  box-shadow: 0 20px 50px rgba(49, 95, 214, .16);
}
.price-card h3 {
  font-size: 38px;
}
.price-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}
.price-card li {
  margin: 8px 0;
}
.landing-cta {
  display: grid;
  place-items: center;
  gap: 18px;
  text-align: center;
  padding: clamp(52px, 8vw, 96px) 20px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.contact-hero {
  padding: clamp(46px, 7vw, 86px) clamp(20px, 6vw, 80px) 24px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.95), rgba(237,248,244,.88)),
    url("https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&w=1600&q=85");
  background-size: cover;
  background-position: center;
}
.contact-hero h1 {
  font-size: clamp(34px, 6vw, 64px);
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(320px, 1.25fr);
  gap: 18px;
}
.contact-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
}

form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 88px; resize: vertical; }
.notice { padding: 12px 14px; border-radius: 8px; background: var(--soft); color: var(--brand-dark); border: 1px solid #c8ded8; font-weight: 650; }
.notice.error { background: #fff1f0; color: var(--danger); border-color: #ffd0cc; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pill { display: inline-flex; padding: 4px 9px; border-radius: 999px; background: var(--soft); color: var(--brand-dark); font-size: 13px; font-weight: 800; }
.pill.warn { background: var(--warn); color: #7a4b00; }
.pill.busy { background: #fff0ed; color: #9d2f18; }

.table-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.table-tile {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 5px solid var(--brand);
  color: var(--ink);
}
.table-tile:hover { transform: translateY(-1px); border-color: var(--line); }
.table-tile.occupied { border-left-color: var(--accent); }
.table-tile.reserved { border-left-color: #b27a00; }
.table-name { font-size: 26px; font-weight: 900; }
.table-total { margin-top: 8px; color: var(--muted); font-weight: 750; }
.totals-panel {
  margin-left: auto;
  width: min(100%, 340px);
  display: grid;
  gap: 8px;
}
.totals-panel div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.totals-panel .final {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 20px;
  font-weight: 900;
}

.bar-chart {
  display: grid;
  gap: 14px;
}
.bar-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(140px, 2fr) 110px;
  gap: 12px;
  align-items: center;
}
.bar-label {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.bar-label span {
  color: var(--muted);
  font-size: 13px;
}
.bar-track {
  height: 14px;
  background: #e5eae4;
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  min-width: 4px;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #f0b84e);
  border-radius: inherit;
}
.bar-value {
  text-align: right;
  font-weight: 850;
}
.mini-chart {
  min-height: 220px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}
.mini-bar {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.mini-bar-fill {
  width: 100%;
  max-width: 38px;
  min-height: 8px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--brand), #89a6ff);
}
.mini-bar.alt .mini-bar-fill {
  background: linear-gradient(180deg, var(--accent), #ffd0a8);
}
.mini-bar strong {
  color: var(--ink);
  font-size: 12px;
  text-align: center;
  word-break: break-word;
}
.summary-list {
  display: grid;
  gap: 14px;
}
.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.summary-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.summary-list span {
  color: var(--muted);
  font-weight: 700;
}
.summary-list strong {
  font-size: 20px;
}
.finance-panel {
  border-top: 4px solid var(--brand);
}
.finance-panel:nth-child(2) {
  border-top-color: var(--accent);
}
.inner-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.inner-menu a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: #e5eae4;
  color: var(--ink);
  font-weight: 780;
}
.inner-menu a.active,
.inner-menu a:hover {
  background: var(--brand);
  color: #fff;
}

.line-items { display: grid; gap: 10px; }
.line-row { display: grid; grid-template-columns: minmax(180px, 1fr) 90px 120px 110px 42px; gap: 10px; align-items: end; }
.icon-btn { width: 42px; height: 42px; padding: 0; background: #e5eae4; color: var(--ink); }

.receipt-wrap { display: grid; justify-items: center; }
.receipt {
  width: min(100%, 360px);
  background: #fff;
  color: #111;
  border: 1px solid #ddd;
  padding: 18px;
  box-shadow: var(--shadow);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 13px;
}
.receipt h2 { font-family: inherit; font-size: 18px; text-align: center; margin-bottom: 6px; }
.receipt .center { text-align: center; }
.receipt .rule { border-top: 1px dashed #111; margin: 10px 0; }
.receipt-row { display: flex; justify-content: space-between; gap: 12px; }
.receipt-table { width: 100%; font-size: 12px; }
.receipt-table th, .receipt-table td { border: 0; padding: 4px 0; letter-spacing: 0; text-transform: none; color: #111; }
.receipt-table th { border-bottom: 1px dashed #111; }
.receipt-total { font-size: 18px; font-weight: 900; }

@media (max-width: 900px) {
  .shell, .login-page { grid-template-columns: 1fr; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; }
  .line-row { grid-template-columns: 1fr 1fr; }
  .line-row .icon-btn { width: 100%; }
  .bar-row { grid-template-columns: 1fr; }
  .bar-value { text-align: left; }
  .mini-chart { gap: 6px; }
  .mini-bar strong { font-size: 10px; }
  .landing-nav {
    align-items: flex-start;
    flex-direction: column;
  }
  .landing-nav nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .landing-hero {
    min-height: 78vh;
    grid-template-columns: 1fr;
    background:
      linear-gradient(rgba(255, 255, 255, .94), rgba(238, 243, 255, .9)),
      url("https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&w=1200&q=85");
    background-size: cover;
    background-position: center;
  }
  .landing-band#features,
  .staff-band {
    background-attachment: scroll;
  }
  .hero-product {
    min-height: 420px;
  }
  .receipt-float {
    right: 10px;
    bottom: -8px;
  }
  .metric-strip,
  .feature-grid,
  .pricing-grid,
  .ops-grid,
  .contact-layout,
  .staff-module-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  body { background: #fff; }
  .sidebar, .topbar .actions, .no-print { display: none !important; }
  .shell { display: block; }
  .content { padding: 0; }
  .receipt {
    width: 72mm;
    box-shadow: none;
    border: 0;
    padding: 0;
    font-size: 11px;
  }
  @page { size: 80mm auto; margin: 4mm; }
}
