:root {
  --ground: #1b140f;
  --panel: rgba(36, 27, 20, 0.82);
  --panel-solid: #241b14;
  --panel-2: #2c2117;
  --ink: #f1e6d6;
  --ink-muted: #b9a98f;
  --muted: #9c8b70;
  --brass: #c08a3e;
  --brass-bright: #e4b968;
  --copper: #b5603a;
  --line: rgba(192, 138, 62, 0.22);
  --line-strong: rgba(192, 138, 62, 0.42);
  --shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  --success: #6a9955;
  --danger: #c0564a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 760px at 12% -8%, rgba(192, 138, 62, 0.1), transparent 60%),
    var(--ground);
  color: var(--ink);
  font-family: "Work Sans", "Segoe UI", sans-serif;
}

.container {
  width: min(900px, 92vw);
  margin: 0 auto;
  padding: 64px 0 72px;
  position: relative;
  z-index: 1;
}

.hero h1,
.page h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
}

.page h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

.plate-number {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 14px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--brass);
  letter-spacing: 0.02em;
}

.plate-number::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

.subtitle {
  margin: 14px 0 0;
  font-size: 1.02rem;
  color: var(--ink-muted);
  max-width: 48ch;
  line-height: 1.5;
}

.hero {
  text-align: left;
}

.hero .subtitle {
  margin-left: 0;
  margin-right: 0;
}

/* index ledger */
.index-list {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.index-row {
  border-bottom: 1px solid var(--line);
}

.index-row a {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 4px 18px;
  align-items: baseline;
  text-decoration: none;
  color: inherit;
  padding: 22px 10px;
  border-radius: 10px;
  transition: background 200ms ease, padding-left 200ms ease;
}

.index-row a:hover,
.index-row a:focus-visible {
  background: var(--panel);
  padding-left: 18px;
}

.index-row .num {
  grid-row: 1 / 3;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.95rem;
  color: var(--ink-muted);
  transition: color 200ms ease;
}

.index-row a:hover .num,
.index-row a:focus-visible .num {
  color: var(--brass-bright);
}

.index-row h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
}

.index-row p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.96rem;
}

.page {
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.page-bingo,
.page-products {
  justify-content: flex-start;
}

.bingo-shell {
  position: relative;
  width: min(560px, 94vw);
  margin-top: 30px;
  padding: 26px 24px 22px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
}

.bingo-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--copper), var(--brass) 45%, var(--brass-bright) 75%, var(--brass));
}

.bingo-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.bingo-tab {
  appearance: none;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--ink-muted);
  font: inherit;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0 2px 10px;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.bingo-tab:hover,
.bingo-tab:focus-visible {
  color: var(--ink);
}

.bingo-tab.is-active {
  color: var(--brass-bright);
  border-color: var(--brass);
}

.bingo-game-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.bingo-game-tab {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 11px;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.bingo-game-tab:hover,
.bingo-game-tab:focus-visible {
  border-color: var(--line-strong);
  color: var(--ink);
}

.bingo-game-tab.is-active {
  border-color: var(--brass);
  background: rgba(192, 138, 62, 0.14);
  color: var(--brass-bright);
}

.bingo-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(430px, 72vw);
  aspect-ratio: 1 / 1;
}

.bingo-layout {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  width: min(520px, 94vw);
}

.bingo-row-prices {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 78px;
}

.bingo-row-price {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 10px;
  border-left: 2px solid var(--line);
  color: var(--ink-muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  cursor: default;
}

.bingo-row-price.is-editable {
  border-left-color: var(--brass);
  color: var(--brass-bright);
  cursor: pointer;
}

.bingo-row-price.is-editing {
  text-decoration: none;
}

.bingo-row-price-input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(10, 7, 5, 0.9);
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 6px;
  outline: none;
}

.bingo-row-price-input:focus {
  box-shadow: 0 0 0 1px var(--line-strong);
}

.bingo-access {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-solid);
}

.bingo-access-text {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink-muted);
  font-size: 0.8rem;
  text-align: left;
}

.bingo-access-text::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}

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

.bingo-access-btn {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.bingo-access-btn:hover,
.bingo-access-btn:focus-visible {
  border-color: var(--line-strong);
  color: var(--ink);
}

.bingo-access-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.bingo-access-btn.is-ghost {
  background: transparent;
}

.bingo-access-btn:not(.is-ghost):not(:disabled) {
  border-color: var(--brass);
  background: var(--brass);
  color: #1b140f;
}

.bingo-access-btn:not(.is-ghost):not(:disabled):hover {
  background: var(--brass-bright);
  border-color: var(--brass-bright);
}

.bingo-access-btn.is-active {
  border-color: var(--brass);
  background: rgba(192, 138, 62, 0.16);
  color: var(--brass-bright);
}

.page-tools {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(460px, 94vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 20;
  pointer-events: none;
}

.page-tools-toggle {
  pointer-events: auto;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 16px;
  background: var(--panel-solid);
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  transition: color 180ms ease, border-color 180ms ease;
}

.page-tools-toggle::before {
  content: "Nastavení ";
}

.page-tools-toggle:hover,
.page-tools-toggle:focus-visible {
  color: var(--ink);
  border-color: var(--brass);
}

.page-tools-body {
  pointer-events: auto;
  width: 100%;
  margin-top: 8px;
}

.page-tools.is-collapsed .page-tools-body {
  display: none;
}

.bingo-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-solid);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.3;
  padding: 12px;
  text-wrap: balance;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.bingo-cell-text {
  max-width: 90%;
  white-space: pre-wrap;
  word-break: break-word;
}

.bingo-cell:hover,
.bingo-cell:focus-visible {
  border-color: var(--brass);
}

.bingo-cell.is-readonly {
  cursor: not-allowed;
}

.bingo-cell.is-readonly:hover,
.bingo-cell.is-readonly:focus-visible {
  border-color: var(--line);
}

.bingo-cell.is-editing {
  border-color: var(--brass);
}

.bingo-inline-textarea {
  width: 92%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(10, 7, 5, 0.92);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 9px;
  line-height: 1.25;
  outline: none;
  resize: none;
  min-height: 76%;
}

.bingo-inline-textarea:focus {
  box-shadow: 0 0 0 1px var(--line-strong);
}

.bingo-cell.is-checked {
  border-color: var(--copper);
  background: var(--copper);
  color: #211005;
  font-weight: 600;
}

.bingo-cell-check {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: transparent;
  font-size: 0.72rem;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.bingo-cell.is-checked .bingo-cell-check {
  border-color: rgba(10, 7, 5, 0.4);
  background: rgba(10, 7, 5, 0.75);
  color: var(--brass-bright);
}

.bingo-note {
  margin: 16px 0 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
  text-align: center;
}

.back-link {
  margin-top: 26px;
  width: fit-content;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  background: rgba(192, 138, 62, 0.08);
  transition: border-color 180ms ease, background 180ms ease;
}

.back-link:hover,
.back-link:focus-visible {
  border-color: var(--brass);
  background: rgba(192, 138, 62, 0.16);
}

.reveal {
  animation: rise 550ms ease both;
}

.index-list .index-row:nth-child(2) {
  animation-delay: 60ms;
}

.index-list .index-row:nth-child(3) {
  animation-delay: 120ms;
}

.index-list .index-row:nth-child(4) {
  animation-delay: 180ms;
}

.index-list .index-row:nth-child(5) {
  animation-delay: 240ms;
}

.index-list .index-row:nth-child(n+6) {
  animation-delay: 300ms;
}

.products-shell {
  width: min(980px, 94vw);
  margin-top: 28px;
  padding: 20px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.products-state {
  margin: 0;
  min-height: 1.4em;
  color: var(--ink-muted);
  text-align: center;
}

.products-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel-solid);
  text-align: left;
}

.product-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.product-card-body {
  padding: 12px 12px 14px;
}

.product-card-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.2;
}

.product-card-description {
  margin: 8px 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.42;
}

/* ---------- shop: toolbar, price, stock, cart toggle ---------- */

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

.cart-toggle {
  position: relative;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--panel-solid);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 180ms ease;
}

.cart-toggle:hover,
.cart-toggle:focus-visible {
  border-color: var(--brass);
}

.cart-toggle-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brass);
  color: #1b140f;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  font-weight: 700;
}

.product-card-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-price {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--brass-bright);
}

.stock-note {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.stock-note.is-low {
  color: var(--brass-bright);
}

.stock-note.is-out {
  color: var(--muted);
}

.add-to-cart-btn {
  appearance: none;
  border: 1px solid var(--brass);
  border-radius: 7px;
  background: var(--brass);
  color: #1b140f;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 120ms ease;
}

.add-to-cart-btn:hover {
  background: var(--brass-bright);
  border-color: var(--brass-bright);
}

.add-to-cart-btn:active {
  transform: scale(0.97);
}

.add-to-cart-btn:disabled {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

.add-to-cart-btn.is-added {
  background: var(--copper);
  border-color: var(--copper);
  color: #fff;
}

/* ---------- cart drawer ---------- */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 7, 5, 0.6);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.cart-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: var(--panel-solid);
  border-left: 1px solid var(--line-strong);
  z-index: 41;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 240ms ease;
  box-shadow: -24px 0 48px rgba(0, 0, 0, 0.4);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer-header h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.3rem;
}

.cart-drawer-close {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  background: transparent;
  color: var(--ink-muted);
  font-size: 1rem;
  cursor: pointer;
}

.cart-drawer-close:hover {
  color: var(--ink);
  border-color: var(--brass);
}

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-drawer-empty {
  margin: 40px 0;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
}

.cart-line-image {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.cart-line-name {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-line-price {
  margin: 2px 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.cart-line-note {
  margin: 4px 0 0;
  font-size: 0.76rem;
  color: var(--danger);
}

.cart-line-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.qty-stepper button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ink);
  width: 26px;
  height: 26px;
  font-size: 0.95rem;
  cursor: pointer;
  line-height: 1;
}

.qty-stepper button:hover {
  background: rgba(192, 138, 62, 0.14);
}

.qty-stepper button:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.qty-stepper span {
  min-width: 26px;
  text-align: center;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.82rem;
}

.cart-line-remove {
  appearance: none;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 0.74rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.cart-line-remove:hover {
  color: var(--danger);
}

.cart-drawer-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
}

.cart-drawer-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 1rem;
}

.cart-drawer-total strong {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.2rem;
  color: var(--brass-bright);
}

/* ---------- generic buttons ---------- */

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 18px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-primary {
  border-color: var(--brass);
  background: var(--brass);
  color: #1b140f;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brass-bright);
  border-color: var(--brass-bright);
  color: #1b140f;
}

.btn-primary:disabled,
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-danger {
  border-color: rgba(192, 86, 74, 0.5);
  color: var(--danger);
}

.btn-danger:hover {
  border-color: var(--danger);
  background: rgba(192, 86, 74, 0.1);
}

.btn-block {
  width: 100%;
}

.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ---------- forms (checkout + admin) ---------- */

.form-grid {
  display: grid;
  gap: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="password"],
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  padding: 10px 12px;
  outline: none;
  transition: border-color 180ms ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--brass);
}

.field textarea {
  resize: vertical;
  min-height: 70px;
}

.field-error {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--danger);
}

.field-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.banner {
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.banner-error {
  border-color: rgba(192, 86, 74, 0.5);
  background: rgba(192, 86, 74, 0.08);
  color: #f0c9c3;
}

.banner-success {
  border-color: rgba(106, 153, 85, 0.5);
  background: rgba(106, 153, 85, 0.08);
  color: #cfe3c4;
}

.banner-info {
  border-color: var(--line-strong);
  background: var(--panel-2);
  color: var(--ink-muted);
}

/* ---------- checkout ---------- */

.checkout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.checkout-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}

.order-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.order-summary-line:last-of-type {
  border-bottom: none;
}

.order-summary-line .name {
  color: var(--ink);
}

.order-summary-line .meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.order-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
  font-size: 1rem;
}

.order-summary-total strong {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.3rem;
  color: var(--brass-bright);
}

.payment-options {
  display: grid;
  gap: 10px;
  margin: 6px 0 4px;
}

.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.payment-option:has(input:checked) {
  border-color: var(--brass);
  background: rgba(192, 138, 62, 0.08);
}

.payment-option input {
  margin-top: 3px;
}

.payment-option.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.payment-option-title {
  font-weight: 600;
  font-size: 0.92rem;
}

.payment-option-desc {
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.qr-panel {
  text-align: center;
  padding: 20px 0 4px;
}

.qr-panel img {
  width: 220px;
  height: 220px;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.qr-details {
  margin-top: 14px;
  display: inline-block;
  text-align: left;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.84rem;
  color: var(--ink-muted);
  line-height: 1.8;
}

.qr-details strong {
  color: var(--ink);
}

.order-confirm {
  text-align: center;
  padding: 24px 0;
}

.order-confirm-number {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.1rem;
  color: var(--brass-bright);
  margin: 10px 0 0;
}

/* ---------- admin ---------- */

.login-shell {
  width: min(380px, 92vw);
  margin-top: 60px;
  padding: 28px 26px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.admin-shell {
  width: min(1040px, 94vw);
  margin-top: 24px;
}

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

.admin-header p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.admin-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.admin-tab {
  appearance: none;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--ink-muted);
  font: inherit;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0 2px 10px;
  margin-bottom: -1px;
  cursor: pointer;
}

.admin-tab:hover {
  color: var(--ink);
}

.admin-tab.is-active {
  color: var(--brass-bright);
  border-color: var(--brass);
}

.admin-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}

.admin-product-form {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.admin-product-form h3 {
  margin: 0 0 14px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.admin-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.image-upload-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.image-upload-preview {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.admin-table th {
  text-align: left;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.admin-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.admin-row-actions {
  display: flex;
  gap: 8px;
}

.link-btn {
  appearance: none;
  border: none;
  background: none;
  color: var(--brass-bright);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.link-btn.is-danger {
  color: var(--danger);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--line);
}

.status-badge.status-pending {
  color: var(--brass-bright);
  border-color: var(--line-strong);
}

.status-badge.status-paid {
  color: #cfe3c4;
  border-color: rgba(106, 153, 85, 0.5);
}

.status-badge.status-shipped {
  color: #bcd4ea;
  border-color: rgba(127, 163, 196, 0.5);
}

.status-badge.status-cancelled {
  color: var(--danger);
  border-color: rgba(192, 86, 74, 0.5);
}

.status-badge.status-active {
  color: #cfe3c4;
  border-color: rgba(106, 153, 85, 0.5);
}

.status-badge.status-hidden {
  color: var(--muted);
}

.admin-status-select {
  font: inherit;
  font-size: 0.8rem;
  background: var(--panel-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 7px;
}

/* ---------- personal page ---------- */

.profile-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 34px;
  align-items: center;
  margin-top: 30px;
}

.profile-photo {
  width: 220px;
  height: 220px;
  border-radius: 14px;
  border: 1px dashed var(--line-strong);
  background: var(--panel-solid);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 14px;
}

.profile-section {
  margin-top: 40px;
}

.profile-section h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.profile-section p {
  margin: 0 0 10px;
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 62ch;
}

.profile-gallery {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.profile-gallery-slot {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px dashed var(--line-strong);
  background: var(--panel-solid);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.74rem;
  padding: 10px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 48px 0 56px;
  }

  .index-row a {
    grid-template-columns: 2.1rem 1fr;
    padding: 18px 6px;
  }

  .index-row a:hover,
  .index-row a:focus-visible {
    padding-left: 10px;
  }

  .bingo-shell {
    padding: 16px;
  }

  .bingo-cell {
    font-size: 0.88rem;
  }

  .bingo-layout {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px;
    width: min(520px, 92vw);
  }

  .bingo-board {
    width: 100%;
  }

  .bingo-row-prices {
    width: 64px;
    gap: 8px;
  }

  .bingo-access-text {
    justify-content: center;
  }

  .bingo-access-actions {
    justify-content: center;
  }

  .page-tools {
    width: min(820px, 96vw);
    bottom: 8px;
  }

  .products-shell {
    padding: 14px;
    border-radius: 14px;
  }

  .products-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .cart-drawer {
    width: 100vw;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .checkout-panel {
    padding: 16px;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-panel {
    padding: 16px;
  }
}
