/* =========================================================
   Basha Bakery & Restaurant — shared styles (customer + staff)
   Brand colours can be changed in Admin > Settings.
   ========================================================= */
:root {
  --primary: #17283f;        /* navy from the website header */
  --primary-2: #22395a;
  --accent: #c9473b;         /* menu heading red */
  --accent-soft: #fbe9e6;
  --price: #1f7a3a;
  --bg: #f4f2ee;
  --surface: #ffffff;
  --line: #e4e0d8;
  --text: #1d232b;
  --muted: #6a7280;
  --ok: #1f7a3a;
  --warn: #b7791f;
  --info: #2b6cb0;
  --danger: #c0392b;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(23,40,63,.06), 0 6px 18px rgba(23,40,63,.06);
  --serif: "Crimson Pro", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--sans); color: var(--text); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3 { font-family: var(--serif); color: var(--primary); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 2rem; } h2 { font-size: 1.6rem; } h3 { font-size: 1.25rem; }
code { background: #eee9e0; padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px;
  border-radius: 10px; border: 1px solid transparent; font: 600 14px var(--sans); cursor: pointer;
  text-decoration: none; background: #e9e5dd; color: var(--text); transition: filter .15s, transform .05s; }
.btn:hover { filter: brightness(.96); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--primary); }
.btn-sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; margin-top: 8px; }
.form label { display: block; font-weight: 600; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
input[type=text], input[type=password], input[type=number], input[type=tel], input[type=email], input[type=date],
input[type=color], input:not([type]), select, textarea {
  width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: 15px var(--sans); background: #fff; color: var(--text); }
input[type=color] { padding: 2px; height: 42px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
textarea { min-height: 80px; resize: vertical; }
.check { display: flex !important; gap: 8px; align-items: center; color: var(--text) !important; }
.check input { width: auto; margin: 0; }

.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.alert-success { background: #e6f4ea; color: #1e5631; }
.alert-error { background: #fdecea; color: #8a1c13; }
.alert-info { background: #e8f0fb; color: #1d4b80; }
.alert-warn { background: #fff4de; color: #7a4f06; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card h3 { margin-top: 0; }

.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font: 600 12px var(--sans); background: #eee; color: #333; white-space: nowrap; }
.st-pending   { background: #fde2e1; color: #9b1c1c; }
.st-confirmed { background: #e4ecfb; color: #1e4b8f; }
.st-preparing { background: #fff1d6; color: #8a5a00; }
.st-ready     { background: #dcf3e3; color: #145c2c; }
.st-served    { background: #e8e4f7; color: #4a3a8a; }
.st-completed { background: #e7e7e7; color: #444; }
.st-cancelled { background: #f1f1f1; color: #888; text-decoration: line-through; }
.pay-paid   { background: #dcf3e3; color: #145c2c; }
.pay-unpaid { background: #fff1d6; color: #8a5a00; }

table.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #faf8f4; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

/* =========================================================
   CUSTOMER SITE
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line); }
.site-header .inner { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 52px; height: 52px; object-fit: contain; border-radius: 6px; background: #fff; }
.brand span { font: 600 1.45rem var(--serif); color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.site-nav a { font: 500 1.05rem var(--serif); color: var(--primary); text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.site-nav a:hover { background: #f1eee8; }
.cart-btn { white-space: nowrap; position: relative; background: var(--primary); color: #fff !important; font-family: var(--sans) !important; font-size: 14px !important; font-weight: 600 !important; padding: 9px 14px !important; }
.cart-btn .count { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12px; margin-left: 4px; }
@media (max-width: 720px) {
  .site-nav a:not(.cart-btn) { display: none; }
  .brand span { font-size: 1.1rem; }
  .brand img { width: 42px; height: 42px; }
}

.hero { position: relative; min-height: 300px; display: flex; align-items: flex-end; color: #fff;
  background: #1a1a1a center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(10,18,30,.82)); }
.hero .inner { position: relative; z-index: 1; max-width: 1180px; width: 100%; margin: 0 auto; padding: 28px 16px; }
.hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 6px; }
.hero p { margin: 0 0 14px; opacity: .92; font-size: 1.05rem; }
.table-banner { display: inline-flex; gap: 8px; align-items: center; background: var(--accent); color: #fff; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.announce { background: var(--primary); color: #fff; text-align: center; padding: 8px 16px; font-size: 14px; }

.menu-wrap { max-width: 1180px; margin: 0 auto; padding: 18px 16px 120px; display: grid; grid-template-columns: 1fr 360px; gap: 24px; }
.menu-wrap > main, .menu-wrap > aside { min-width: 0; }
@media (max-width: 980px) { .menu-wrap { grid-template-columns: 1fr; } .cart-panel { display: none; } }

.section-tabs { display: flex; gap: 10px; justify-content: center; margin: 4px 0 14px; }
.section-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 22px; font: 600 15px var(--sans); cursor: pointer; color: var(--primary); }
.section-tabs button.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.cat-bar { position: sticky; top: 73px; z-index: 20; background: var(--bg); padding: 8px 0; margin-bottom: 8px;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.cat-bar::-webkit-scrollbar { display: none; }
.cat-bar a { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 600 13px var(--sans); color: var(--primary); text-decoration: none; }
.cat-bar a.active { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 720px) { .cat-bar { top: 63px; } }

.search-box { margin-bottom: 10px; }
.cat-section { scroll-margin-top: 140px; margin-bottom: 26px; }
.cat-section h2 { color: var(--accent); font-family: var(--sans); font-weight: 700; font-size: 1.35rem; border-bottom: 2px solid var(--accent); padding-bottom: 8px; margin-bottom: 4px; }
.cat-note { color: #138086; font-weight: 600; font-size: .95rem; margin: 6px 0 4px; }
.item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.item:last-child { border-bottom: 0; }
.item .thumb { width: 78px; height: 78px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; background: #eee; }
.item .body { flex: 1; min-width: 0; }
.item .top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.item .name { min-width: 0; }
.item .name { font-weight: 700; font-size: 1.02rem; }
.item .price { color: var(--price); font-weight: 700; white-space: nowrap; font-size: .95rem; }
.item .desc { color: var(--muted); font-size: .9rem; margin: 4px 0 8px; }
.item .add-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.size-pick { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.size-pick label { padding: 5px 10px; font-size: 13px; cursor: pointer; border-right: 1px solid var(--line); background: #fff; }
.size-pick label:last-child { border-right: 0; }
.size-pick input { display: none; }
.size-pick input:checked + span { color: #fff; }
.size-pick label:has(input:checked) { background: var(--primary); color: #fff; }
.featured-tag { font-size: 11px; background: var(--accent-soft); color: var(--accent); padding: 2px 7px; border-radius: 999px; font-weight: 700; margin-left: 6px; vertical-align: middle; }

/* Cart */
.cart-panel { position: sticky; top: 90px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
.cart-line { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line .nm { flex: 1; font-size: 14px; font-weight: 600; }
.cart-line .nm small { display: block; color: var(--muted); font-weight: 400; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; }
.qty button { width: 28px; height: 28px; border: 0; background: #fff; cursor: pointer; font-size: 16px; border-radius: 8px; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; font-size: 14px; }
.totals { margin-top: 10px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.totals .grand { font-size: 1.1rem; font-weight: 800; color: var(--primary); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.type-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0; }
.type-pick label { border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px; text-align: center; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--primary) !important; margin: 0 !important; }
.type-pick input { display: none; }
.type-pick label:has(input:checked) { background: var(--primary); color: #fff !important; border-color: var(--primary); }

.mobile-cart-bar { display: none; }
@media (max-width: 980px) {
  .mobile-cart-bar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    background: var(--primary); color: #fff; border-radius: 14px; padding: 14px 18px; justify-content: space-between;
    align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-weight: 700; border: 0; font-size: 15px; cursor: pointer; }
}
.drawer-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50; }
.drawer { position: fixed; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow: auto; background: #fff; z-index: 51;
  border-radius: 18px 18px 0 0; padding: 18px 16px 24px; }

.toast-wrap { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--primary); color: #fff; padding: 12px 14px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.2);
  font-size: 14px; animation: slidein .25s ease-out; display: flex; gap: 10px; align-items: flex-start; }
.toast.t-new_order { background: var(--accent); }
.toast.t-waiter_call { background: #b7791f; }
.toast.t-error { background: var(--danger); }
.toast .x { margin-left: auto; cursor: pointer; opacity: .8; background: none; border: 0; color: #fff; font-size: 16px; }
@keyframes slidein { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Tracking page */
.track { max-width: 640px; margin: 24px auto; padding: 0 16px 60px; }
.steps { display: flex; justify-content: space-between; margin: 20px 0 8px; position: relative; }
.steps::before { content: ""; position: absolute; top: 15px; left: 6%; right: 6%; height: 3px; background: var(--line); }
.steps .bar { position: absolute; top: 15px; left: 6%; height: 3px; background: var(--ok); transition: width .4s; }
.step { position: relative; z-index: 1; text-align: center; flex: 1; font-size: 12px; color: var(--muted); }
.step .dot { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 3px solid var(--line); margin: 0 auto 6px; display: grid; place-items: center; font-weight: 800; }
.step.done .dot { border-color: var(--ok); background: var(--ok); color: #fff; }
.step.current .dot { border-color: var(--ok); color: var(--ok); box-shadow: 0 0 0 5px rgba(31,122,58,.15); }
.step.done, .step.current { color: var(--text); font-weight: 600; }
.big-status { font: 700 1.6rem var(--serif); color: var(--primary); margin: 6px 0; }

.site-footer { background: #2c3e50; color: #d9dee5; margin-top: 30px; }
.site-footer .inner { max-width: 1180px; margin: 0 auto; padding: 30px 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.site-footer h4 { font: 600 1.15rem var(--serif); color: #fff; border-bottom: 2px solid #3d8bd4; padding-bottom: 8px; margin: 0 0 12px; }
.site-footer a { color: #d9dee5; }
.site-footer p { margin: 0 0 8px; font-size: 14px; }
.site-footer .copy { text-align: center; padding: 14px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.wa-float { position: fixed; left: 14px; bottom: 14px; z-index: 35; background: #25d366; color: #fff; border-radius: 999px; padding: 10px 14px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.2); font-size: 14px; }
@media (max-width: 980px) { .wa-float { bottom: 84px; } .toast-wrap { bottom: 84px; } }

/* =========================================================
   STAFF / ADMIN
   ========================================================= */
.admin { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar { background: var(--primary); color: #cfd8e3; padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .logo { display: flex; gap: 10px; align-items: center; padding: 4px 8px 16px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 10px; text-decoration: none; }
.sidebar .logo img { width: 40px; height: 40px; border-radius: 8px; background: #fff; object-fit: contain; }
.sidebar .logo b { color: #fff; font: 600 1.05rem var(--serif); line-height: 1.15; }
.sidebar nav a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; color: #cfd8e3; text-decoration: none; border-radius: 9px; font-size: 14px; font-weight: 500; }
.sidebar nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar nav a.active { background: rgba(255,255,255,.14); color: #fff; }
.sidebar nav .ico { width: 18px; text-align: center; }
.sidebar nav .pill { margin-left: auto; background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; font-weight: 700; }
.sidebar .who { margin-top: 18px; padding: 12px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.sidebar .who b { color: #fff; display: block; }
.main { padding: 22px 26px 60px; min-width: 0; }
.pos > * { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.topbar h1 { margin: 0; font-size: 1.75rem; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(31,122,58,.5); animation: pulse 2s infinite; }
.live-dot.off::before { background: var(--danger); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31,122,58,.45); } 70% { box-shadow: 0 0 0 8px rgba(31,122,58,0); } 100% { box-shadow: 0 0 0 0 rgba(31,122,58,0); } }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 250px; z-index: 60; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; }
  .menu-toggle { display: inline-flex; }
  .main { padding: 16px 14px 60px; }
}

.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.stat .lbl { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.stat .val { font: 700 1.7rem var(--sans); color: var(--primary); margin-top: 4px; }
.stat .sub { font-size: 12px; color: var(--muted); }

/* Orders board / KDS */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.ocard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; border-top: 5px solid #ccc; }
.ocard.s-pending { border-top-color: #d64545; }
.ocard.s-confirmed { border-top-color: #3b6fc4; }
.ocard.s-preparing { border-top-color: #d69e2e; }
.ocard.s-ready { border-top-color: #2f855a; }
.ocard.s-served { border-top-color: #6b5bb5; }
.ocard.flash { animation: flash 1.2s ease-in-out 3; }
@keyframes flash { 50% { box-shadow: 0 0 0 4px rgba(201,71,59,.45); } }
.ocard .hd { padding: 12px 14px 8px; display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.ocard .code { font: 800 1.1rem var(--sans); color: var(--primary); }
.ocard .meta { font-size: 12px; color: var(--muted); }
.ocard ul { list-style: none; margin: 0; padding: 4px 14px; flex: 1; }
.ocard li { padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 14px; display: flex; gap: 8px; }
.ocard li .q { font-weight: 800; min-width: 26px; color: var(--accent); }
.ocard li small { display: block; color: #b45309; font-style: italic; }
.ocard .note { margin: 6px 14px; padding: 8px 10px; background: #fff8e6; border-radius: 8px; font-size: 13px; }
.ocard .ft { padding: 10px 14px 14px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); margin-top: 6px; }
.ocard .tot { font-weight: 800; margin-right: auto; }
.age { font-size: 12px; font-weight: 700; }
.age.late { color: var(--danger); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters a, .filters button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 600 13px var(--sans); color: var(--primary); text-decoration: none; cursor: pointer; }
.filters .active { background: var(--primary); color: #fff; border-color: var(--primary); }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; border: 2px dashed var(--line); border-radius: var(--radius); }

body.kds { background: #0f1722; color: #e6ebf2; }
body.kds .main { padding: 14px; }
body.kds .topbar h1 { color: #fff; }
body.kds .ocard { background: #1a2433; border-color: #273347; color: #e6ebf2; }
body.kds .ocard .code { color: #fff; font-size: 1.3rem; }
body.kds .ocard li { border-color: #2c3a50; font-size: 16px; }
body.kds .ocard .ft { border-color: #2c3a50; }
body.kds .ocard .note { background: #3a3220; color: #f7e3b0; }
body.kds .ocard li small { color: #f6c26b; }
body.kds .btn-ghost { color: #fff; border-color: #3a4a63; }
body.kds .ocard .btn-primary { background: #3b6fc4; }
body.kds .ocard .meta { color: #9fb0c6; }
body.kds .kds-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
body.kds .kds-col h2 { color: #fff; font-family: var(--sans); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; display: flex; justify-content: space-between; }
body.kds .kds-col .board { grid-template-columns: 1fr; }
@media (max-width: 1000px) { body.kds .kds-cols { grid-template-columns: 1fr; } }

/* POS */
.pos { display: grid; grid-template-columns: 1fr 380px; gap: 16px; }
@media (max-width: 1100px) { .pos { grid-template-columns: 1fr; } }
.pos-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pos-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; text-align: left; font: inherit; min-height: 84px; display: flex; flex-direction: column; justify-content: space-between; }
.pos-item:hover { border-color: var(--primary); }
.pos-item b { font-size: 14px; line-height: 1.25; }
.pos-item span { color: var(--price); font-weight: 700; font-size: 13px; margin-top: 6px; }
.pos-item.na { opacity: .45; }

.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal { background: #fff; border-radius: 16px; padding: 20px; width: min(520px, 100%); max-height: 90vh; overflow: auto; }

/* Auth */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--primary); }
.auth-card { background: #fff; border-radius: 18px; padding: 28px; width: min(400px, 100%); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.auth-card.wide { width: min(520px, 100%); }
.auth-logo { width: 96px; margin: 0 auto 10px; }
.auth-card h1 { text-align: center; font-size: 1.6rem; }
.checklist { list-style: none; padding: 0; margin: 0 0 16px; font-size: 14px; }
.checklist li { padding: 4px 0; }
.checklist .ok { color: var(--ok); } .checklist .bad { color: var(--danger); font-weight: 600; }

/* Receipt (print) */
.receipt { width: 300px; margin: 0 auto; font: 13px/1.4 "Courier New", monospace; color: #000; background: #fff; padding: 12px; }
.receipt h2 { font: 700 16px "Courier New", monospace; text-align: center; margin: 4px 0; color: #000; }
.receipt .c { text-align: center; }
.receipt hr { border: 0; border-top: 1px dashed #000; margin: 8px 0; }
.receipt table { width: 100%; border-collapse: collapse; }
.receipt td { padding: 2px 0; vertical-align: top; }
.receipt img { width: 70px; margin: 0 auto; filter: grayscale(1); }
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .receipt { width: auto; padding: 0; }
  @page { margin: 4mm; }
}
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.qr-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; }
.qr-card .qr { width: 180px; height: 180px; margin: 8px auto; }
.qr-card .qr img, .qr-card .qr canvas { width: 180px !important; height: 180px !important; }
@media print {
  .admin { display: block; } .sidebar, .topbar .row, .qr-actions { display: none !important; }
  .qr-card { break-inside: avoid; border: 1px solid #000; }
}
