:root {
  --paper: #f8f7f2;
  --ink: #191b1b;
  --muted: #5b5f5b;
  --border: #d8d9d0;
  --blue: #3537d5;
  --green: #244b3c;
}
* {
  box-sizing: border-box;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  margin: 0;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
  border-bottom: 1px solid var(--border);
  padding: 0 max(24px, calc((100% - 1160px) / 2));
  gap: 16px;
}
.brand {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -1px;
  white-space: nowrap;
}
.brand i {
  font-size: 27px;
  letter-spacing: -4px;
  margin-right: 8px;
}
.brand span,
#mode {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.brand span {
  margin-left: 10px;
}
main {
  max-width: 1208px;
  margin: auto;
  padding: 22px 24px 70px;
}
nav,
.actions,
.tabs,
.step,
.stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
nav {
  gap: 4px;
  margin-bottom: 22px;
}
button,
select,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: transparent;
  padding: 10px 14px;
  font-weight: 620;
  min-height: 44px;
}
button:hover {
  border-color: #68735e;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #9896ff;
  outline-offset: 2px;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
nav button {
  border: 0;
  border-radius: 30px;
}
nav button.on,
.tabs .on {
  background: var(--ink);
  color: white;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.03;
  letter-spacing: -0.055em;
  margin: 10px 0 24px;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}
h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.muted,
small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: start;
}
.side,
.panel,
.order {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}
.side {
  position: sticky;
  top: 18px;
}
.side .primary {
  width: 100%;
  margin-top: 14px;
}
.tabs {
  margin: 0 0 16px;
}
.tabs button {
  border-radius: 22px;
}
.catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.tile {
  overflow: hidden;
  border: 1px solid var(--border);
  background: white;
  border-radius: 16px;
}
.tile img,
.tile .placeholder {
  width: 100%;
  height: clamp(120px, 16vw, 200px);
  object-fit: cover;
  display: block;
}
.tile .placeholder {
  background: #e3e8db;
  display: grid;
  place-items: center;
  font-size: 32px;
  color: var(--green);
}
.product {
  padding: 14px;
}
.product .line {
  margin-top: 10px;
}
.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.cartline,
.detail {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cartline .step {
  gap: 6px;
  margin-top: 7px;
}
.step button {
  min-width: 44px;
  padding: 5px;
}
.total {
  font-size: 19px;
  margin-top: 15px;
}
.form {
  display: grid;
  gap: 12px;
}
.panel,
.order,
.stats {
  margin-bottom: 14px;
}
label {
  display: block;
  margin: 10px 0;
  font-size: 14px;
  font-weight: 600;
}
input:not([type="checkbox"]),
select {
  display: block;
  width: 100%;
  padding: 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: #fff;
  margin-top: 5px;
  min-height: 44px;
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
#message:not(:empty) {
  background: #e9ebd8;
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.stats span,
.state {
  display: inline-block;
  background: #e3edde;
  color: #254a39;
  padding: 7px 11px;
  border-radius: 7px;
  font-size: 13px;
}
.order h2 {
  margin: 0;
}
.order ul {
  padding-left: 18px;
  margin: 14px 0;
}
.order li {
  margin: 5px 0;
}
.tablewrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 14px;
}
td,
th {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
th {
  color: var(--muted);
  font-size: 12px;
}
.wallet {
  background: var(--blue);
  border-radius: 18px;
  color: white;
  padding: 28px;
  max-width: 450px;
  margin-bottom: 18px;
}
.wallet p {
  margin-top: 42px;
  font-size: 26px;
}
.center {
  max-width: 720px;
}
.empty {
  padding: 18px 0;
}
.actions {
  margin-top: 12px;
}
a {
  color: var(--blue);
}
@media (max-width: 760px) {
  header {
    padding: 0 16px;
    height: 61px;
  }
  .brand {
    font-size: 18px;
  }
  .brand span {
    font-size: 10px;
  }
  #mode {
    font-size: 10px;
  }
  main {
    padding: 14px 14px 55px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .side {
    position: static;
  }
  .catalog {
    gap: 9px;
  }
  .product {
    padding: 10px;
  }
  .product h3 {
    font-size: 15px;
  }
  .product .line {
    align-items: start;
    flex-direction: column;
  }
  .tile img {
    height: 135px;
  }
  nav button {
    padding: 8px 10px;
    font-size: 14px;
  }
  .side,
  .panel,
  .order {
    padding: 16px;
  }
  .brand i {
    font-size: 23px;
  }
}
.cart-jump {
  display: none;
}
@media (max-width: 760px) {
  .cart-jump {
    position: fixed;
    z-index: 1;
    bottom: 12px;
    right: 16px;
    left: 16px;
    display: block;
    box-shadow: 0 3px 16px #19251030;
  }
  .side {
    scroll-margin-top: 12px;
  }
}

.summary-list {
  margin: 12px 0;
}
.summary-list > div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  gap: 14px;
  padding: 10px 0;
}
.summary-list dd {
  margin: 0;
  font-weight: 650;
}
fieldset {
  border: 1px solid var(--border);
  border-radius: 9px;
  margin-bottom: 12px;
  padding: 14px;
}
legend {
  font-weight: 700;
}
.order .panel {
  margin-top: 14px;
}
.panel p + p {
  margin-top: 7px;
}
.tablewrap {
  max-width: 100%;
}
.columns > section {
  min-width: 0;
}

.floor-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: start;
}
.floor-area {
  margin: 0 0 28px;
}
.floor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
button.floor-cell {
  background: #f1f4eb;
  border: 1px solid #a5b49a;
  text-align: left;
  display: grid;
  gap: 7px;
  padding: 16px;
  color: #23352d;
  min-width: 0;
}
.floor-cell strong {
  font-size: 14px;
}
.floor-cell small {
  color: inherit;
}
.floor-cell .place-name {
  font-size: 21px;
  font-weight: 800;
}
button.floor-cell.seated {
  background: #e6e5ff;
  border-color: #9696e0;
  color: #343477;
}
button.floor-cell.expected,
button.floor-cell.late {
  background: #fff0d7;
  border-color: #dfb978;
  color: #694513;
}
button.floor-cell.blocked {
  background: #e9e8e4;
  border-style: dashed;
  color: #4d504b;
}
button.floor-cell.focus {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
#place-details form,
.settlement {
  border-top: 1px solid var(--border);
  margin-top: 18px;
  padding-top: 12px;
}
.bill-order {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.balance {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: #e9e8ff;
  color: #2d3067;
  border-radius: 9px;
  padding: 15px;
  font-size: 20px;
}
@media (max-width: 760px) {
  .floor-layout {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .floor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  button.floor-cell {
    padding: 12px;
  }
}
.equipment {
  margin-top: 20px;
}
.equipment summary {
  font-weight: 650;
  cursor: pointer;
  padding: 10px 0;
}
.equipment input[type="checkbox"] {
  width: auto;
  display: inline-block;
  margin-right: 8px;
}

[hidden] {
  display: none !important;
}
.call-status {
  background: #e5efe5;
  padding: 10px 12px;
  border-radius: 8px;
}
.audit-history summary {
  cursor: pointer;
  font-weight: 650;
  margin-top: 12px;
}
.audit-history p {
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
form[data-form="count_fridge"] fieldset {
  margin-top: 12px;
}
.club-card {
  padding: 24px;
  margin: 18px 0;
  border-radius: 15px;
  background: #243c32;
  color: #f4f6ec;
}
.club-card small {
  color: #dce9dd;
  letter-spacing: 0.08em;
}
.club-card h2 {
  font-size: 48px;
  margin: 26px 0 10px;
  color: inherit;
}
.club-card span,
.demo-code {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.09em;
}
.profile-phone {
  margin: 8px 0 18px;
}
form[data-form="verify_code"] input {
  font-size: 24px;
  letter-spacing: 0.18em;
}

.bonus-picker {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #bdd2c0;
  border-radius: 12px;
  background: #eff5ed;
  color: #203d30;
}
.bonus-picker h3,
.bonus-picker p {
  margin: 0 0 10px;
}
.bonus-picker p:last-child {
  margin: 12px 0 0;
}
.bonus-picker small {
  float: right;
  color: #395140;
}
.bonus-preview {
  font-variant-numeric: tabular-nums;
}

.bill-payment {
  margin: 18px 0;
  padding: 18px;
  border-radius: 12px;
  background: #efeffa;
}
.bill-payment h3 {
  margin: 0 0 8px;
}
.bill-payment p {
  margin: 8px 0;
}
.bill-payment button,
.bank-link {
  margin-top: 8px;
}
.bill-payment.pending {
  background: #fff0d7;
}
.bill-payment.success {
  background: #e4f0e4;
  color: #234b36;
}
.bank-link {
  display: inline-block;
  padding: 10px 0;
  font-weight: 650;
}

.history-entry {
  display: grid;
  width: 100%;
  text-align: left;
  gap: 5px;
  padding: 16px 18px;
  margin: 9px 0;
  background: white;
}
.history-entry strong {
  font-size: 18px;
}
.history-entry span {
  color: #245039;
  font-weight: 650;
}
.receipt-paper {
  margin: 15px 0;
  padding: 22px;
  border: 1px solid #c5cdbf;
  background: #fff;
  border-radius: 12px;
}
.receipt-paper h2 {
  font-size: 21px;
}
.receipt-paper section {
  border-top: 1px dashed #acb7a5;
  margin: 17px 0;
}
.receipt-head {
  background: #244a38;
  color: #fff;
  border-radius: 8px;
  padding: 16px;
}
.receipt-head h1,
.receipt-head small {
  color: inherit;
}
.receipt-head h1 {
  font-size: 30px;
  margin: 6px 0;
}
.receipt-head p {
  font-size: 13px;
  margin: 4px 0;
}
.receipt-paper .summary-list dt {
  overflow-wrap: anywhere;
  min-width: 0;
}
.receipt-download {
  display: inline-block;
  padding: 13px 22px;
  background: #3537d5;
  border-radius: 9px;
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}
.club-fold {
  background: var(--panel, #fff);
  border: 1px solid #ccd2c6;
  border-radius: 12px;
  margin: 14px 0;
  padding: 16px;
  text-align: left;
}
.club-fold summary {
  font-weight: 700;
  cursor: pointer;
}
.club-fold .panel {
  margin-top: 12px;
}
.club-fold p {
  overflow-wrap: anywhere;
}
.visit-qr {
  width: 190px;
  max-width: 100%;
  display: block;
  margin: 12px auto;
}
.news-cover {
  width: 100%;
  height: 9rem;
  object-fit: cover;
  border-radius: 8px;
}
.news-text {
  white-space: pre-wrap;
}

.club-home {
  max-width: 64rem;
  margin: auto;
}
.club-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 15rem;
  padding: clamp(1.4rem, 5vw, 3.5rem);
  border-radius: 1rem;
  background:
    linear-gradient(90deg, rgba(15, 18, 24, 0.93), rgba(15, 18, 24, 0.32)),
    url("/static/cover-club.jpg") center/cover;
  color: white;
}
.club-hero h1 {
  color: white;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5rem);
  line-height: 1;
}
.club-hero p {
  color: white;
  margin: 0.7rem 0 1.5rem;
}
.club-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}
.club-actions button {
  display: grid;
  text-align: left;
  gap: 0.5rem;
  padding: 1rem;
}
.club-actions strong {
  font-size: 1.1rem;
}
.club-actions span {
  font-weight: 400;
}
