/* Kit for the website template demos. Load it before the template's style.css:
     <link rel="stylesheet" href="/mau/_kit/kit.css" />
   A template restyles the kit parts it shows (form fields, sheets, account, app) by setting these on :root: */
@import url('fonts.css');

:root {
  --k-font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --k-font-display: var(--k-font);
  --k-accent: #0f766e; /* buttons, chosen chips, focus */
  --k-accent-ink: #ffffff; /* text on --k-accent */
  --k-ink: #1c1917; /* text in kit sheets */
  --k-paper: #ffffff; /* background of kit sheets */
  --k-muted: #6b6560;
  --k-line: rgba(0, 0, 0, 0.14);
  --k-radius: 12px;
}

/* A small base every template gets. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
}
img,
video {
  max-width: 100%;
  height: auto;
}
html.k-locked,
html.k-locked body {
  overflow: hidden;
}
[hidden] {
  display: none !important;
}

.k-icon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  vertical-align: -0.2em;
  fill: none;
  stroke: currentColor;
}
.k-muted {
  color: var(--k-muted);
}

/* ── CNTech parts (do not restyle) ─────────────────────────────────────────────────────────────────────── */
.k-demobar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 0;
  padding: 6px 12px;
  background: #121212;
  color: #f5f5f5;
  font:
    500 12px/1.4 'Be Vietnam Pro',
    system-ui,
    sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.k-demobar-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.k-demobar-stars {
  color: #ffc94a;
  font-weight: 700;
}
.k-demobar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.k-demobar a {
  color: #f5f5f5;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.k-demobar a.k-demobar-cta {
  color: #ffc94a;
  font-weight: 700;
}
.k-credit {
  margin: 0;
  padding: 16px 16px 20px;
  text-align: center;
  font:
    400 12px/1.5 'Be Vietnam Pro',
    system-ui,
    sans-serif;
  color: inherit;
  opacity: 0.8;
}
.k-credit a {
  color: inherit;
  font-weight: 700;
}
.k-watermark {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-repeat: repeat;
  background-size: 300px 200px;
}
.k-kit-error {
  margin: 0;
  padding: 12px 16px;
  background: #b91c1c;
  color: #fff;
  font:
    600 14px/1.4 system-ui,
    sans-serif;
}

/* ── Buttons, fields, chips ─────────────────────────────────────────────────────────────────────────────── */
.k-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1.5px solid var(--k-accent);
  border-radius: var(--k-radius);
  background: var(--k-accent);
  color: var(--k-accent-ink);
  font: 700 15px/1.2 var(--k-font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.k-button:disabled {
  opacity: 0.6;
  cursor: progress;
}
.k-button--ghost {
  background: transparent;
  color: var(--k-accent);
}
.k-link {
  padding: 8px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.k-field {
  margin: 0 0 14px;
}
.k-label {
  display: block;
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 0.92em;
}
.k-req {
  display: none;
  color: #c2410c;
}
.k-field--required .k-req {
  display: inline;
}
.k-input {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--k-line);
  border-radius: var(--k-radius);
  background: #fff;
  color: #1c1917;
  font: 400 16px/1.4 var(--k-font); /* 16px stops iOS from zooming in */
}
textarea.k-input {
  min-height: 92px;
  resize: vertical;
}
.k-input:focus-visible {
  outline: 2px solid var(--k-accent);
  outline-offset: 1px;
}
.k-input[aria-invalid] {
  border-color: #c0392b;
}
.k-input--sm {
  min-height: 36px;
  padding: 6px 10px;
  font-size: 14px;
}
.k-error {
  margin: 6px 0 0;
  color: #c0392b;
  font-size: 0.86em;
}
.k-option-group {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.k-option-name {
  margin: 0 0 6px;
  padding: 0;
  font-weight: 600;
  font-size: 0.92em;
}
.k-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.k-chip {
  position: relative;
  cursor: pointer;
}
.k-chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.k-chip span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--k-line);
  border-radius: 999px;
  font-size: 0.92em;
}
.k-chip input:checked + span {
  border-color: var(--k-accent);
  background: var(--k-accent);
  color: var(--k-accent-ink);
}
.k-chip input:focus-visible + span {
  outline: 2px solid var(--k-accent);
  outline-offset: 2px;
}
.k-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.07);
  font-size: 0.82em;
  font-weight: 600;
}
.k-badge--ok {
  background: #dcfce7;
  color: #14532d;
}
.k-badge--new {
  background: #fef3c7;
  color: #78350f;
}
.k-demo-hint {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px dashed #d4a017;
  border-radius: 10px;
  background: #fff8db;
  color: #5c4500;
  font-size: 0.92em;
}
.k-demo-hint strong {
  letter-spacing: 0.12em;
}
.k-map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: 0;
}

/* ── Toast, sheet, push (kit overlays stay below the watermark) ─────────────────────────────────────────── */
.k-toast {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 2147482500;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border-radius: 14px;
  background: #1c1917;
  color: #fff;
  font: 500 14px/1.4 var(--k-font);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transform: translateX(-50%);
}
.k-toast-link {
  flex: none;
  color: #fde68a;
  font-weight: 700;
}
.k-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 12, 10, 0.5);
}
.k-sheet {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  background: var(--k-paper);
  color: var(--k-ink);
  font: 400 15px/1.55 var(--k-font);
}
@media (min-width: 640px) {
  .k-overlay {
    align-items: center;
  }
  .k-sheet {
    border-radius: 20px;
  }
}
.k-sheet-title {
  margin: 0 36px 12px 0;
  font: 700 20px/1.3 var(--k-font-display);
}
.k-sheet-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.k-sheet .k-button {
  width: 100%;
  margin-top: 4px;
}
.k-sheet p {
  margin: 0 0 10px;
}
.k-otp-input {
  margin-bottom: 10px;
  font-size: 24px;
  letter-spacing: 0.4em;
  text-align: center;
}
.k-qr {
  position: relative;
  width: 196px;
  margin: 14px auto 10px;
  color: #111;
}
.k-qr svg {
  display: block;
  width: 100%;
  height: auto;
}
.k-qr-tag {
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 2px #111;
  font: 700 12px/1.2 var(--k-font);
  transform: translate(-50%, -50%);
}
.k-pay-ref {
  text-align: center;
}
.k-success-total strong {
  font-size: 1.15em;
}
.k-notify {
  margin: 14px 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.04);
}
.k-notify-head {
  font-weight: 700;
  font-size: 0.9em;
}
.k-bubble {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 14px 14px 14px 4px;
  background: #e8f1ff;
  color: #13233d;
  font-size: 0.92em;
}
.k-bubble--me {
  border-radius: 14px 14px 4px 14px;
  background: #e7f8ee;
  color: #12341f;
}
.k-bubble-from {
  display: block;
  margin-bottom: 2px;
  font-size: 0.8em;
  font-weight: 700;
  opacity: 0.75;
}
.k-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  text-align: center;
}
.k-push {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 2147482600;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: min(380px, calc(100% - 24px));
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(250, 250, 250, 0.97);
  color: #111;
  font: 400 14px/1.4 var(--k-font);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  transform: translateX(-50%);
  animation: k-push-in 0.35s ease-out;
}
.k-push--out {
  opacity: 0;
  transition: opacity 0.5s;
}
@keyframes k-push-in {
  from {
    transform: translate(-50%, -120%);
  }
}
.k-push-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--k-accent);
  color: var(--k-accent-ink);
  font-weight: 800;
}
.k-push-text {
  display: grid;
  gap: 1px;
}
.k-push-app {
  color: #666;
  font-size: 12px;
}

/* ── Account (4.8+) ─────────────────────────────────────────────────────────────────────────────────────── */
.k-account {
  max-width: 560px;
  margin: 0 auto;
  font-family: var(--k-font);
}
.k-account .k-button {
  margin: 8px 0;
}
.k-account-title {
  margin: 18px 0 10px;
  font: 700 20px/1.3 var(--k-font-display);
}
.k-account-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.k-account-head p {
  margin: 0;
}
.k-account-phone {
  font-size: 1.2em;
  font-weight: 700;
}
.k-login-step {
  margin-top: 12px;
}
.k-points {
  margin: 14px 0;
  padding: 16px;
  border-radius: var(--k-radius);
  background: var(--k-accent);
  color: var(--k-accent-ink);
}
.k-points p {
  margin: 0;
}
.k-points .k-muted {
  color: inherit;
  opacity: 0.85;
}
.k-points-value {
  font-size: 1.8em;
  font-weight: 800;
}
.k-order {
  margin: 0 0 10px;
  padding: 14px;
  border: 1px solid var(--k-line);
  border-radius: var(--k-radius);
}
.k-order p {
  margin: 0 0 4px;
}
.k-order-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* ── App phone (5.0) ────────────────────────────────────────────────────────────────────────────────────── */
.k-phone {
  position: relative;
  width: min(300px, 100%);
  margin: 0 auto;
  padding: 12px;
  border-radius: 42px;
  background: #121212;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.k-phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 84px;
  height: 22px;
  border-radius: 999px;
  background: #121212;
  transform: translateX(-50%);
}
.k-phone-screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 560px;
  padding: 46px 14px 0;
  overflow: hidden;
  border-radius: 32px;
  background: var(--k-paper);
  color: var(--k-ink);
  font: 400 13px/1.4 var(--k-font);
}
.k-app-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.k-app-top .k-icon {
  margin-left: auto;
}
.k-app-logo {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--k-accent);
  color: var(--k-accent-ink);
  font-weight: 800;
}
.k-app-card {
  display: grid;
  gap: 2px;
  padding: 14px;
  border-radius: 16px;
  background: var(--k-accent);
  color: var(--k-accent-ink);
}
.k-app-card strong {
  font-size: 22px;
}
.k-app-reorder {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--k-line);
  border-radius: 14px;
}
.k-app-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  font-weight: 600;
}
.k-app-section {
  margin: 4px 0 0;
  font-weight: 700;
}
.k-app-items {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.k-app-items li {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
}
.k-app-items img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}
.k-app-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: auto -14px 0;
  padding: 8px 4px 16px;
  border-top: 1px solid var(--k-line);
  font-size: 10px;
  text-align: center;
}
.k-app-tabs span {
  display: grid;
  justify-items: center;
  gap: 2px;
  opacity: 0.6;
  overflow-wrap: anywhere;
}
.k-app-tabs .is-on {
  color: var(--k-accent);
  opacity: 1;
}

/* ── Admin preview (_kit/quan-tri.html) ─────────────────────────────────────────────────────────────────── */
.k-admin-page {
  background: #f4f4f2;
  color: #1c1917;
  font: 400 14px/1.5 var(--k-font);
}
.k-admin-loading,
.k-admin-missing {
  padding: 24px 16px;
}
.k-admin {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}
.k-admin-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--k-line);
}
.k-admin-top div {
  display: grid;
  flex: 1;
  min-width: 0;
}
.k-admin-top span {
  color: var(--k-muted);
  font-size: 12px;
}
.k-admin-top .k-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}
.k-admin-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--k-accent);
  color: var(--k-accent-ink) !important;
  font-weight: 800;
  font-size: 16px !important;
}
.k-admin-nav {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid var(--k-line);
}
.k-admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 8px 12px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.k-admin-tab[aria-current] {
  background: var(--k-accent);
  color: var(--k-accent-ink);
}
.k-admin-main {
  min-width: 0;
  padding: 16px;
}
.k-admin-main h1 {
  margin: 0 0 12px;
  font-size: 22px;
}
.k-admin-main h2 {
  margin: 20px 0 10px;
  font-size: 16px;
}
.k-admin-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.k-admin-head h1 {
  margin: 0;
}
.k-stats,
.k-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.k-stat,
.k-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--k-line);
}
.k-stat strong {
  font-size: 20px;
}
.k-card p {
  margin: 0;
}
.k-table {
  display: grid;
  gap: 8px;
}
.k-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--k-line);
}
.k-row--local {
  border-color: #f59e0b;
  box-shadow: 0 0 0 1px #f59e0b inset;
}
.k-row--item {
  grid-template-columns: 56px 1fr;
  align-items: center;
}
.k-cell {
  display: grid;
  gap: 2px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.k-cell small,
.k-cell span {
  color: var(--k-muted);
}
.k-cell--wide {
  grid-column: 1 / -1;
}
.k-row--item .k-cell--wide {
  grid-column: auto;
}
.k-cell--code {
  display: flex;
  align-items: center;
  gap: 8px;
}
.k-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
}
.k-switch {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.k-switch input {
  position: absolute;
  opacity: 0;
}
.k-switch > span:last-child {
  display: grid;
}
.k-switch small {
  color: var(--k-muted);
}
.k-switch-track {
  position: relative;
  flex: none;
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: #d6d3d1;
  transition: background 0.2s;
}
.k-switch-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.k-switch input:checked + .k-switch-track {
  background: var(--k-accent);
}
.k-switch input:checked + .k-switch-track::after {
  transform: translateX(16px);
}
.k-switch input:focus-visible + .k-switch-track {
  outline: 2px solid var(--k-accent);
  outline-offset: 2px;
}
.k-admin-main .k-label {
  margin-top: 10px;
}
.k-admin-main .k-button {
  margin-top: 12px;
}
@media (min-width: 900px) {
  .k-admin {
    grid-template-columns: 230px 1fr;
    grid-template-rows: auto 1fr;
  }
  .k-admin-top {
    grid-column: 1 / -1;
  }
  .k-admin-nav {
    flex-direction: column;
    padding: 12px;
    border-bottom: 0;
    border-right: 1px solid var(--k-line);
  }
  .k-admin-main {
    padding: 24px 28px;
  }
  .k-row {
    grid-template-columns: 150px 170px 1fr 130px 130px 140px;
    align-items: center;
  }
  .k-cell--wide {
    grid-column: auto;
  }
  .k-row--item {
    grid-template-columns: 56px 1fr 150px 150px;
  }
}
