/* ============================================================
   KokotHub — Design System
   Font: Plus Jakarta Sans | Palette: Indigo-Violet + Amber
   ============================================================ */

:root {
  --brand-50:  #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-400: #818cf8;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --ink-100: #f1f5f9;
  --surface: #f6f7fb;
  --white: #ffffff;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --red-500: #ef4444;
  --red-600: #dc2626;

  --grad-brand: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%);
  --grad-brand-soft: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  --grad-amber: linear-gradient(135deg, #fbbf24, #f59e0b);
  --grad-dark: linear-gradient(160deg, #111827 0%, #1e1b4b 100%);

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, .06);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 50px rgba(49, 46, 129, .16);
  --shadow-brand: 0 10px 25px rgba(79, 70, 229, .28);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--ink-700);
  letter-spacing: -.01em;
}

h1, h2, h3, h4, h5, h6 { color: var(--ink-900); font-weight: 800; letter-spacing: -.02em; }
a { text-decoration: none; }
::selection { background: var(--brand-200); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ink-300); border-radius: 99px; border: 2px solid var(--surface); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-500); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --bs-btn-border-radius: var(--radius-full);
  font-weight: 700;
  padding: .55rem 1.25rem;
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
}
.btn:focus-visible { box-shadow: 0 0 0 4px var(--brand-200); }

.btn-gradient {
  background: var(--grad-brand);
  color: #fff;
  border: 0;
  box-shadow: var(--shadow-brand);
}
.btn-gradient:hover, .btn-gradient:focus {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(79, 70, 229, .38);
  filter: brightness(1.06);
}
.btn-gradient:active { transform: translateY(0); }

.btn-soft {
  background: var(--brand-50);
  color: var(--brand-600);
  border: 1px solid var(--brand-100);
  font-weight: 700;
}
.btn-soft:hover { background: var(--brand-100); color: var(--brand-700); }

.btn-amber {
  background: var(--grad-amber);
  color: #451a03;
  border: 0;
  font-weight: 800;
}
.btn-amber:hover { color: #451a03; filter: brightness(1.05); transform: translateY(-2px); }

.btn-dark-ink { background: var(--ink-900); color: #fff; border: 0; }
.btn-dark-ink:hover { color: #fff; background: #1e293b; }

.btn-icon {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border-radius: 12px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease;
}
.card-body { padding: 1.5rem; }

.card-hover { cursor: pointer; }
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-soft {
  background: var(--grad-brand-soft);
  border: 1px solid var(--brand-100);
  box-shadow: none;
}

/* ============================================================
   NAVBAR (PUBLIC)
   ============================================================ */
.navbar-public {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  transition: box-shadow .25s ease;
}
.navbar-public .navbar-brand { color: var(--ink-900); font-weight: 800; display: flex; align-items: center; gap: .6rem; }
.navbar-public .nav-link { color: var(--ink-700); font-weight: 600; border-radius: var(--radius-full); padding: .45rem 1rem !important; transition: all .2s; }
.navbar-public .nav-link:hover { color: var(--brand-600); background: var(--brand-50); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--grad-brand);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.05rem;
  box-shadow: var(--shadow-brand);
}

/* ============================================================
   HERO (LANDING)
   ============================================================ */
.hero {
  position: relative;
  background: var(--grad-dark);
  color: #fff;
  border-radius: 0 0 32px 32px;
  overflow: hidden;
  padding: 4.5rem 0 5.5rem;
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
}
.hero::before {
  width: 480px; height: 480px;
  background: #4f46e5;
  top: -220px; right: -120px;
}
.hero::after {
  width: 380px; height: 380px;
  background: #a855f7;
  bottom: -220px; left: -100px;
}
.hero .badge-hero {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #e0e7ff;
  padding: .45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: .82rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3.2rem); font-weight: 900; line-height: 1.12; }
.hero h1 .grad-text {
  background: linear-gradient(90deg, #a5b4fc, #e9d5ff, #fcd34d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead { color: #c7d2fe; font-weight: 500; max-width: 560px; }

.hero-search {
  background: rgba(255, 255, 255, .97);
  border-radius: var(--radius-full);
  padding: .4rem;
  display: flex;
  gap: .4rem;
  box-shadow: var(--shadow-lg);
  max-width: 620px;
}
.hero-search .form-control, .hero-search .form-select {
  border: 0; background: transparent; box-shadow: none !important;
  font-weight: 600; color: var(--ink-900);
}
.hero-search .form-control::placeholder { color: var(--ink-500); font-weight: 500; }

/* Stats strip */
.stat-strip {
  margin-top: -2.6rem;
  position: relative;
  z-index: 2;
}
.stat-strip .stat-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .9rem;
  height: 100%;
}
.stat-box .ico {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
}
.stat-box .num { font-size: 1.3rem; font-weight: 900; color: var(--ink-900); line-height: 1; }
.stat-box .lbl { font-size: .78rem; color: var(--ink-500); font-weight: 600; }

/* ============================================================
   TENANT CARDS
   ============================================================ */
.tenant-card {
  overflow: hidden;
  height: 100%;
}
.tenant-card .banner { height: 130px; object-fit: cover; width: 100%; }
.tenant-card .banner-fallback {
  height: 130px;
  background: var(--grad-brand-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-400); font-size: 2rem;
}
.tenant-card .logo {
  width: 62px; height: 62px;
  border-radius: 16px;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: var(--shadow-sm);
  margin-top: -31px;
  background: #fff;
}
.tenant-card .body { padding: 0 1.4rem 1.2rem; }
.tenant-card h5 { font-weight: 800; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--brand-50);
  color: var(--brand-600);
  border: 1px solid var(--brand-100);
  font-size: .72rem; font-weight: 700;
  padding: .28rem .75rem;
  border-radius: var(--radius-full);
}

/* ============================================================
   SECTION / PAGE HEADERS
   ============================================================ */
.section-title { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.4rem; }
.section-title .bar { width: 5px; height: 26px; border-radius: 99px; background: var(--grad-brand); flex-shrink: 0; }
.section-title h2 { margin: 0; font-size: 1.35rem; }
.section-title .link { margin-left: auto; font-weight: 700; font-size: .88rem; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head h1 { font-size: 1.45rem; margin: 0; display: flex; align-items: center; gap: .7rem; }
.page-head h1 i { color: var(--brand-600); }
.page-head .sub { color: var(--ink-500); font-size: .88rem; font-weight: 500; margin-top: .2rem; }

/* ============================================================
   FORMS
   ============================================================ */
.form-label { font-weight: 700; font-size: .86rem; color: var(--ink-700); margin-bottom: .35rem; }
.form-control, .form-select {
  border: 1.5px solid var(--ink-100);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: .6rem .95rem;
  font-weight: 500;
  color: var(--ink-900);
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .12);
}
.form-control::placeholder { color: #94a3b8; }
.form-check-input { border: 1.5px solid var(--ink-300); }
.form-check-input:checked { background-color: var(--brand-600); border-color: var(--brand-600); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(99, 102, 241, .12); border-color: var(--brand-400); }
.form-switch .form-check-input { cursor: pointer; }
.input-group-text { border-radius: var(--radius-sm); border: 1.5px solid var(--ink-100); background: var(--ink-100); }

/* ============================================================
   TABLES
   ============================================================ */
.table { color: var(--ink-700); margin: 0; }
.table thead th {
  background: transparent;
  color: var(--ink-500);
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--ink-100);
  padding: .9rem 1rem;
  white-space: nowrap;
}
.table tbody td { padding: .95rem 1rem; vertical-align: middle; border-color: var(--ink-100); }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: #fafbff; }
.table-sm tbody td { padding: .6rem .75rem; }

/* ============================================================
   BADGES
   ============================================================ */
.badge { border-radius: var(--radius-full); font-weight: 700; padding: .42em .8em; letter-spacing: .01em; }
.badge-soft-success { background: #dcfce7; color: #166534; }
.badge-soft-warning { background: #fef3c7; color: #92400e; }
.badge-soft-danger  { background: #fee2e2; color: #991b1b; }
.badge-soft-info    { background: #e0f2fe; color: #075985; }
.badge-soft-brand   { background: var(--brand-50); color: var(--brand-600); }
.badge-soft-secondary { background: var(--ink-100); color: var(--ink-500); }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  background:
    radial-gradient(700px 380px at 8% -8%, rgba(99, 102, 241, .16), transparent 60%),
    radial-gradient(700px 380px at 100% 110%, rgba(168, 85, 247, .14), transparent 60%),
    var(--surface);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 2.6rem;
  animation: riseIn .5s cubic-bezier(.2, .8, .2, 1);
}
.auth-logo {
  width: 56px; height: 56px;
  border-radius: 18px;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem;
  box-shadow: var(--shadow-brand);
  margin-bottom: 1.2rem;
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: .3rem; }
.auth-card .sub { color: var(--ink-500); font-size: .92rem; margin-bottom: 1.6rem; }

/* ============================================================
   DASHBOARD LAYOUT
   ============================================================ */
.dash-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 250px;
  flex-shrink: 0;
  background: var(--grad-dark);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1rem;
  overflow-y: auto;
  z-index: 10;
}
.dash-sidebar .brand {
  display: flex; align-items: center; gap: .7rem;
  color: #fff; font-weight: 800;
  padding: .4rem .6rem 1.2rem;
}
.dash-sidebar .tenant-chip {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: .8rem 1rem;
  margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: .7rem;
}
.dash-sidebar .tenant-chip img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: #fff; }
.dash-sidebar .tenant-chip .name { color: #fff; font-weight: 700; font-size: .88rem; line-height: 1.15; }
.dash-sidebar .tenant-chip .role { font-size: .7rem; color: #a5b4fc; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

.dash-sidebar .nav-label {
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #64748b;
  padding: .9rem .8rem .4rem;
}
.dash-sidebar a.side-link {
  display: flex; align-items: center; gap: .75rem;
  color: #cbd5e1;
  font-weight: 600;
  font-size: .9rem;
  padding: .62rem .9rem;
  border-radius: 12px;
  margin-bottom: .15rem;
  transition: all .18s ease;
}
.dash-sidebar a.side-link i { font-size: 1.05rem; width: 22px; text-align: center; opacity: .85; }
.dash-sidebar a.side-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.dash-sidebar a.side-link.active {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 70, 229, .4);
}
.dash-sidebar .divider { border-top: 1px solid rgba(255, 255, 255, .08); margin: .8rem .4rem; }

.dash-main {
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.dash-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(246, 247, 251, .85);
  backdrop-filter: blur(12px);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, .05);
}
.dash-content { padding: 1.8rem 2rem 3rem; flex: 1; }

/* Stat cards (dashboard) */
.stat-card {
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-card .ico {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.ico-brand { background: var(--brand-50); color: var(--brand-600); }
.ico-green { background: #dcfce7; color: var(--green-600); }
.ico-amber { background: #fef3c7; color: #b45309; }
.ico-red   { background: #fee2e2; color: var(--red-600); }
.ico-violet{ background: #f3e8ff; color: var(--violet-600); }
.stat-card .val { font-size: 1.35rem; font-weight: 900; color: var(--ink-900); line-height: 1.1; }
.stat-card .lbl { font-size: .8rem; color: var(--ink-500); font-weight: 600; }
.stat-card .more { font-size: .78rem; font-weight: 700; color: var(--brand-600); }

/* ============================================================
   PRODUCT / MENU CARDS (STOREFRONT, POS, MENU)
   ============================================================ */
.product-card { overflow: hidden; height: 100%; }
.product-card .thumb {
  height: 150px;
  width: 100%;
  object-fit: cover;
  background: var(--ink-100);
}
.product-card .body { padding: .9rem 1rem 1rem; }
.product-card .name { font-weight: 700; color: var(--ink-900); font-size: .93rem; }
.product-card .price { color: var(--brand-600); font-weight: 800; }
.product-card .muted { color: var(--ink-500); font-size: .78rem; }

.pos-item { cursor: pointer; }
.pos-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pos-item:hover .name { color: var(--brand-600); }
.pos-item .thumb { height: 74px; object-fit: cover; width: 100%; border-radius: 12px; }

/* ============================================================
   KITCHEN DISPLAY
   ============================================================ */
body.kitchen {
  background: #0b0f1a;
  color: #e2e8f0;
}
body.kitchen h1, body.kitchen h2, body.kitchen h3 { color: #fff; }
.kitchen-order {
  background: #151b2e;
  border-radius: 18px;
  border-left: 6px solid var(--amber-400);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  animation: riseIn .35s ease;
}
.kitchen-order.preparing { border-left-color: var(--brand-500); }
.kitchen-order.ready { border-left-color: var(--green-500); }
.kitchen-order .k-title { font-weight: 800; color: #fff; }
.kitchen-order .elapsed { font-size: .78rem; color: #94a3b8; font-weight: 600; }
.kitchen-order .elapsed.late { color: #f87171; }

/* ============================================================
   MISC
   ============================================================ */
.empty-state { text-align: center; padding: 3.5rem 1rem; color: var(--ink-500); }
.empty-state .big { font-size: 3rem; color: var(--ink-300); line-height: 1; }
.empty-state .title { font-weight: 800; color: var(--ink-700); margin-top: .8rem; }

.avatar-initial {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--grad-brand);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem;
  flex-shrink: 0;
}

.tenant-logo {
  width: 64px; height: 64px;
  border-radius: 16px;
  object-fit: cover;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.alert { border: 0; border-radius: var(--radius); font-weight: 600; box-shadow: var(--shadow-xs); }
.alert-success { background: #dcfce7; color: #166534; }
.alert-danger  { background: #fee2e2; color: #991b1b; }
.alert-info    { background: #e0f2fe; color: #075985; }
.alert-warning { background: #fef3c7; color: #92400e; }
.btn-close { filter: grayscale(1); }

.modal-content { border: 0; border-radius: var(--radius-lg); }
.pagination .page-link { border-radius: 12px !important; margin: 0 3px; border: 0; color: var(--ink-700); font-weight: 700; }
.pagination .page-item.active .page-link { background: var(--grad-brand); box-shadow: var(--shadow-brand); }

/* Item card (rincian item keuangan) — layout card agar nyaman di mobile */
.item-list { min-height: 40px; }
.item-card {
  background: #fff;
  font-size: .9rem;
}
.item-card .form-control-sm,
.item-card .form-select-sm {
  font-size: .95rem;
  padding: .45rem .6rem;
  min-height: 38px;
}
.item-card .form-label { font-size: .72rem; }
@media (max-width: 575.98px) {
  .item-card .form-control-sm,
  .item-card .form-select-sm {
    font-size: 1rem; /* cegah zoom otomatis iOS saat fokus */
  }
}

.breadcrumb { font-weight: 600; font-size: .85rem; }
.breadcrumb-item a { color: var(--ink-500); }
.breadcrumb-item.active { color: var(--brand-600); }

/* Judul berita/event adaptif: selalu wrap penuh, tidak terpotong */
.pub-title {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word;
  display: block;
}

/* Timeline / steps */
.step-num {
  width: 30px; height: 30px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-600);
  font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
}

/* Receipt (print) */
.receipt { font-family: 'Courier New', monospace; width: 300px; margin: 20px auto; color: #000; }
.receipt .center { text-align: center; }
.receipt hr { border: none; border-top: 1px dashed #000; }
.receipt table { width: 100%; border-collapse: collapse; }
.receipt td { padding: 1px 0; vertical-align: top; }
.receipt .right { text-align: right; }
@media print { .receipt { margin: 0; } }

/* ============================================================
   NUMBER INPUT — sembunyikan spinner panah atas/bawah
   agar angka terlihat jelas, terutama di kolom sempit & mobile
   ============================================================ */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
/* fill-mode 'backwards' (bukan 'both') agar transform TIDAK tertinggal setelah animasi —
   transform yang tersisa pada ancestor merusak posisi modal fixed Bootstrap */
.rise { animation: riseIn .5s cubic-bezier(.2, .8, .2, 1) backwards; }
.rise-1 { animation-delay: .05s; } .rise-2 { animation-delay: .1s; }
.rise-3 { animation-delay: .15s; } .rise-4 { animation-delay: .2s; }
.rise-5 { animation-delay: .25s; } .rise-6 { animation-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .dash-sidebar {
    position: fixed;
    left: -260px;
    transition: left .28s ease;
    box-shadow: var(--shadow-lg);
  }
  .dash-sidebar.open { left: 0; }
  .dash-content { padding: 1.2rem; }
  .dash-topbar { padding: .8rem 1.2rem; }
  .hero { padding: 3rem 0 4rem; border-radius: 0 0 24px 24px; }
  .stat-strip { margin-top: -2rem; }
}
.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .5);
  z-index: 9;
}
.sidebar-backdrop.show { display: block; }

/* ============================================================
   TITLE CLAMP — judul kartu selalu muat (wrap + potong max baris)
   ============================================================ */
.clamp-2, .clamp-3 {
  overflow-wrap: break-word;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clamp-2 { -webkit-line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; }
