/* =====================================================================
   Sistem Antrian Digital — Stylesheet utama
   Warna utama diambil dari pengaturan (variabel --primary di <head>)
   ===================================================================== */

:root {
  --primary: #0e9f6e;
  --primary-700: color-mix(in srgb, var(--primary) 78%, #000);
  --primary-800: color-mix(in srgb, var(--primary) 60%, #000);
  --primary-100: color-mix(in srgb, var(--primary) 14%, #fff);
  --primary-50: color-mix(in srgb, var(--primary) 7%, #fff);
  --primary-soft: color-mix(in srgb, var(--primary) 22%, transparent);

  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-2: #f8faf9;
  --border: #e3e9e6;
  --border-strong: #cfd8d4;
  --text: #0f1f18;
  --text-2: #4b5b54;
  --muted: #7a8a83;

  --danger: #dc2626;
  --danger-50: #fef2f2;
  --warning: #d97706;
  --warning-50: #fffbeb;
  --info: #2563eb;
  --info-50: #eff6ff;
  --success: var(--primary);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 31, 24, .06);
  --shadow: 0 4px 16px rgba(15, 31, 24, .06), 0 1px 3px rgba(15, 31, 24, .05);
  --shadow-lg: 0 20px 50px rgba(15, 31, 24, .12);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sidebar-w: 256px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--primary-700); }
code { font-family: ui-monospace, Consolas, monospace; background: var(--primary-50); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.tabular { font-variant-numeric: tabular-nums; }
.icon { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

/* --------------------------- Buttons --------------------------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  --btn-bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; min-height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .08s ease, background .15s, box-shadow .15s, opacity .15s;
  user-select: none;
}
.btn:hover { box-shadow: var(--shadow-sm); filter: brightness(.98); }
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 3px solid var(--primary-soft); outline-offset: 2px; }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }
.btn-primary { --btn-bg: var(--primary); --btn-fg: #fff; --btn-bd: var(--primary); }
.btn-primary:hover { --btn-bg: var(--primary-700); }
.btn-soft { --btn-bg: var(--primary-50); --btn-fg: var(--primary-800); --btn-bd: var(--primary-100); }
.btn-danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-bd: var(--danger); }
.btn-danger-soft { --btn-bg: var(--danger-50); --btn-fg: var(--danger); --btn-bd: #fecaca; }
.btn-warning { --btn-bg: var(--warning); --btn-fg: #fff; --btn-bd: var(--warning); }
.btn-info { --btn-bg: var(--info); --btn-fg: #fff; --btn-bd: var(--info); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; }
.btn-ghost:hover { --btn-bg: var(--primary-50); box-shadow: none; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.btn-lg { min-height: 52px; padding: 12px 22px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; padding: 0; }
.btn-icon.btn-sm { width: 34px; }

/* --------------------------- Forms ----------------------------- */
.form-stack { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field small { color: var(--muted); font-size: 12px; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 10px 12px; min-height: 42px; transition: border .15s, box-shadow .15s;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
input[type=color] { width: 56px; height: 42px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 3px; background: var(--surface); cursor: pointer; }
input[type=range] { width: 100%; accent-color: var(--primary); }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 13px; font-weight: 600; cursor: pointer; background: var(--surface); }
.chip-check input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip-check input:focus-visible + span { box-shadow: 0 0 0 3px var(--primary-soft); }

/* Toggle switch */
.switch { position: relative; display: inline-flex; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--border-strong); border-radius: 99px; cursor: pointer; transition: background .2s; }
.switch span::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm); transition: transform .2s; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::before { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px var(--primary-soft); }

/* --------------------------- Cards etc ------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-head h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-body { padding: 20px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--primary-100); color: var(--primary-800); }
.badge-warning { background: var(--warning-50); color: #b45309; }
.badge-danger { background: var(--danger-50); color: var(--danger); }
.badge-info { background: var(--info-50); color: var(--info); }
.badge-muted { background: #eef1f0; color: var(--muted); }
.badge.no-dot::before { display: none; }

.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; }
.alert-danger { background: var(--danger-50); color: var(--danger); border: 1px solid #fecaca; }
.alert-info { background: var(--primary-50); color: var(--primary-800); border: 1px solid var(--primary-100); }
.alert-warning { background: var(--warning-50); color: #92400e; border: 1px solid #fde68a; }

.svc-tag { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 8px; color: #fff; font-weight: 800; font-size: 13px; }

.empty { text-align: center; padding: 28px 16px; color: var(--muted); font-size: 14px; }
.empty .icon { width: 36px; height: 36px; margin-bottom: 8px; opacity: .5; }

/* Table */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Connection dot */
.conn { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.conn i { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 3px rgba(0,0,0,.05); }
.conn.online i { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.25); animation: pulse-dot 2s infinite; }
.conn.offline i { background: var(--danger); box-shadow: 0 0 0 3px rgba(220,38,38,.25); }
@keyframes pulse-dot { 50% { box-shadow: 0 0 0 6px rgba(34,197,94,.08); } }

/* --------------------------- Modal & toast --------------------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(8, 20, 15, .45); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; z-index: 100; animation: fade-in .15s ease; }
.modal { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: pop-in .2s cubic-bezier(.2, .9, .3, 1.2); }
.modal.wide { width: min(760px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 18px; }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--border); flex-wrap: wrap; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.94) translateY(10px); } }

.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 10px; z-index: 200; width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; background: #0f1f18; color: #fff; padding: 14px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500; animation: toast-in .25s ease; }
.toast.success .icon { color: #4ade80; }
.toast.error { background: #7f1d1d; }
.toast.leaving { animation: toast-out .2s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }

/* =====================================================================
   Layout dashboard (panel petugas & admin) dengan sidebar
   ===================================================================== */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 50; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 20px 18px; border-bottom: 1px solid var(--border); }
.sidebar-brand strong { display: block; font-size: 15px; line-height: 1.25; }
.sidebar-brand small { color: var(--muted); font-size: 12px; display: block; }
.brand-logo { width: 42px; height: 42px; border-radius: 12px; object-fit: contain; flex: none; }
.brand-logo.lg { width: 56px; height: 56px; border-radius: 16px; }
.brand-logo-default { display: grid; place-items: center; background: var(--primary); color: #fff; }
.brand-logo-default svg { width: 58%; height: 58%; }
.nav { padding: 14px 12px; display: grid; gap: 4px; overflow-y: auto; flex: 1; align-content: start; }
.nav-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 14px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--primary-50); color: var(--primary-800); }
.nav a.active { background: var(--primary); color: #fff; box-shadow: 0 6px 14px var(--primary-soft); }
.sidebar-foot { padding: 14px; border-top: 1px solid var(--border); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--surface-2); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-100); color: var(--primary-800); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.user-chip .who { flex: 1; min-width: 0; }
.user-chip .who strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .who small { color: var(--muted); font-size: 12px; text-transform: capitalize; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: rgba(255,255,255,.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
.topbar h1 { font-size: 20px; font-weight: 800; flex: 1; min-width: 0; }
.topbar .clock { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 14px; }
.menu-toggle { display: none; }
.content { padding: 24px 28px 48px; display: grid; gap: 20px; align-content: start; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h2 { font-size: 22px; font-weight: 800; }
.page-head p { color: var(--muted); margin-top: 4px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stat { padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.stat .stat-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); flex: none; }
.stat .stat-icon.warning { background: var(--warning-50); color: var(--warning); }
.stat .stat-icon.info { background: var(--info-50); color: var(--info); }
.stat .stat-icon.danger { background: var(--danger-50); color: var(--danger); }
.stat .stat-value { font-size: 26px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .stat-label { font-size: 13px; color: var(--muted); font-weight: 600; }

.sidebar-overlay { display: none; }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w); transform: translateX(-100%); transition: transform .25s ease; }
  .app.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .app.nav-open .sidebar-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 45; }
  .menu-toggle { display: inline-flex; }
  .topbar { padding: 12px 16px; }
  .content { padding: 16px 16px 40px; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .topbar .clock { display: none; }
}

/* =====================================================================
   Panel petugas
   ===================================================================== */
.panel-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.counter-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.counter-picker button { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 12px; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; text-align: left; line-height: 1.2; }
.counter-picker button small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.counter-picker button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.counter-picker button.active small { color: rgba(255,255,255,.8); }
.counter-picker button:disabled { opacity: .5; cursor: not-allowed; }

.now-card { overflow: hidden; }
.now-card .now-head { background: linear-gradient(135deg, var(--primary), var(--primary-700)); color: #fff; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.now-card .now-head h2 { font-size: 20px; font-weight: 800; letter-spacing: .02em; }
.now-card .now-head .badge { background: rgba(255,255,255,.2); color: #fff; }
.now-number-wrap { padding: 28px 24px 8px; text-align: center; }
.now-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.now-number { font-size: clamp(64px, 11vw, 128px); font-weight: 900; letter-spacing: -.02em; line-height: 1; color: var(--primary-800); margin: 10px 0 8px; font-variant-numeric: tabular-nums; }
.now-number.is-empty { color: var(--border-strong); }
.now-meta { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; color: var(--text-2); font-size: 14px; }
.now-meta span { display: inline-flex; align-items: center; gap: 6px; }
.call-actions { display: grid; gap: 12px; padding: 22px 24px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.call-actions .btn { min-height: 64px; font-size: 16px; font-weight: 800; letter-spacing: .02em; border-radius: 14px; }
.call-actions .btn-next { grid-column: 1 / -1; min-height: 88px; font-size: 22px; box-shadow: 0 10px 24px var(--primary-soft); }
.call-actions .btn-next .icon { width: 28px; height: 28px; }
.call-actions .btn-pick { grid-column: 1 / -1; }
.kbd-hint { text-align: center; color: var(--muted); font-size: 12px; padding: 0 24px 18px; }
.kbd-hint kbd { font-family: inherit; background: var(--surface-2); border: 1px solid var(--border-strong); border-bottom-width: 2px; padding: 1px 6px; border-radius: 5px; font-size: 11px; font-weight: 700; }

.waiting-big { display: flex; align-items: center; gap: 16px; padding: 20px; }
.waiting-big .n { font-size: 48px; font-weight: 900; color: var(--primary); line-height: 1; font-variant-numeric: tabular-nums; }
.q-list { list-style: none; margin: 0; padding: 0; max-height: 340px; overflow-y: auto; }
.q-list li { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--border); font-size: 14px; }
.q-list li:last-child { border-bottom: 0; }
.q-list .code { font-weight: 800; font-size: 16px; min-width: 70px; font-variant-numeric: tabular-nums; }
.q-list .meta { color: var(--muted); font-size: 12px; flex: 1; }
.q-list li.new { animation: flash-row 1.6s ease; }
@keyframes flash-row { 0%, 40% { background: var(--primary-100); } }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.pick-grid button { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 12px; padding: 12px 8px; font: inherit; cursor: pointer; text-align: center; }
.pick-grid button strong { display: block; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pick-grid button small { color: var(--muted); font-size: 11px; }
.pick-grid button:hover { border-color: var(--primary); background: var(--primary-50); }
.pick-grid button.skipped { border-style: dashed; border-color: var(--warning); }

.pop { animation: num-pop .6s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes num-pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } }

@media (max-width: 1000px) { .panel-layout { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .call-actions { padding: 16px; gap: 10px; }
  .call-actions .btn { min-height: 56px; font-size: 14px; }
  .call-actions .btn-next { min-height: 76px; font-size: 19px; }
}

/* =====================================================================
   Login & beranda
   ===================================================================== */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(1200px 600px at 10% -10%, var(--primary-100), transparent), radial-gradient(900px 500px at 110% 110%, var(--primary-50), transparent), var(--bg); }
.auth-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.auth-brand { display: flex; align-items: center; gap: 14px; padding-bottom: 8px; }
.auth-brand h1 { font-size: 18px; font-weight: 800; }
.auth-brand p { color: var(--muted); font-size: 13px; }
.auth-card h2 { font-size: 24px; font-weight: 800; }
.auth-demo { display: grid; gap: 4px; font-size: 13px; color: var(--text-2); background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 12px 14px; }
.auth-back { font-size: 14px; text-decoration: none; font-weight: 600; text-align: center; }

.home { min-height: 100vh; padding: 48px 20px; background: radial-gradient(1200px 600px at 0% -20%, var(--primary-100), transparent), var(--bg); }
.home-inner { max-width: 1040px; margin: 0 auto; display: grid; gap: 32px; }
.home-hero { display: flex; align-items: center; gap: 18px; }
.home-hero h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; }
.home-hero p { color: var(--text-2); font-size: 16px; margin-top: 4px; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.home-card { display: grid; gap: 12px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; }
.home-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.home-card .hc-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; }
.home-card .hc-icon .icon { width: 28px; height: 28px; }
.home-card h3 { font-size: 18px; font-weight: 800; }
.home-card p { color: var(--muted); font-size: 14px; }
.home-note { font-size: 14px; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 6px; }

/* =====================================================================
   Tiket cetak (printer thermal 58/80mm)
   ===================================================================== */
#print-area { display: none; }
@media print {
  @page { margin: 0; }
  body * { visibility: hidden !important; }
  #print-area, #print-area * { visibility: visible !important; }
  #print-area { display: block !important; position: absolute; left: 0; top: 0; width: var(--paper, 58mm); padding: 4mm 3mm 8mm; font-family: Arial, sans-serif; color: #000; text-align: center; }
  .ticket h4 { font-size: 13px; margin: 0; }
  .ticket .t-addr { font-size: 9px; margin: 2px 0 4px; }
  .ticket hr { border: 0; border-top: 1px dashed #000; margin: 6px 0; }
  .ticket .t-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
  .ticket .t-number { font-size: 44px; font-weight: 900; line-height: 1.05; margin: 4px 0; }
  .ticket .t-service { font-size: 13px; font-weight: 700; }
  .ticket .t-small { font-size: 9px; margin-top: 3px; }
}
