*,
::before,
::after { box-sizing: border-box; }

/* Plus Jakarta Sans (self-hosted variable font) */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('/assets/fonts/plus-jakarta-sans.woff2') format('woff2');
}

.font-display {
    font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.02em;
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior-y: contain;
}

/* Safe area for iPhone notch */
.safe-area-bottom { padding-bottom: env(safe-area-inset-bottom, 0px); }
.safe-area-top { padding-top: env(safe-area-inset-top, 0px); }

/* Mobile Bottom Nav active state */
@media (max-width: 767px) {
    body { padding-bottom: 56px; }
    .hide-mobile { display: none !important; }
    .mobile-full { width: 100% !important; }
}

/* Signature pad */
#signature-pad canvas { width: 100% !important; height: 150px !important; cursor: crosshair; touch-action: none; }

/* Item row transitions */
.item-row { transition: all 0.2s ease; }
.item-row:hover { border-color: #93c5fd; }

/* Tool cards */
.tool-card { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.tool-card:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(0,0,0,0.1); }
@media (max-width: 767px) { .tool-card:hover { transform: none; } }

/* Feature cards */
.feature-card { transition: all 0.3s ease; }
.feature-card:hover { transform: translateY(-2px); }
.feature-card:hover .feature-icon { transform: scale(1.12); }
.feature-icon { transition: transform 0.3s ease; }

/* Smooth page transitions */
.htmx-swapping { opacity: 0; transition: opacity 0.15s ease; }
.htmx-settling { opacity: 1; transition: opacity 0.15s ease; }

/* Button hover lift */
.btn-lift { transition: all 0.2s ease; }
.btn-lift:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.btn-lift:active { transform: translateY(0); }

/* Input focus ring animation */
input:focus, select:focus, textarea:focus {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Smooth toast */
.toast {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Document page for PDF/preview */
.document-page { background: white; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
#document-preview { background: white; }

/* HTMX indicators */
.htmx-request { opacity: 0.7; pointer-events: none; }
.htmx-indicator { opacity: 0; }
.htmx-indicator.htmx-request { opacity: 1; display: flex; }
.htmx-request .htmx-indicator { opacity: 1; }
/* Keep preview action buttons clickable even during HTMX requests */
#preview-actions, #preview-actions button, #preview-actions a { pointer-events: auto !important; opacity: 1 !important; }

/* Spinner */
.spinner {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3); border-radius: 50%;
    border-top-color: #fff; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Print */
@media print {
    body { background: white; }
    nav, footer, .no-print, #mobile-menu, .fixed { display: none !important; }
    #document-preview { box-shadow: none; border: none; }
}

/* Toast (bottom sheet style on mobile) */
.toast {
    padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 500;
    color: white; animation: slideUp 0.3s ease; box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    max-width: 340px; word-wrap: break-word;
}
.toast-success { background: #16a34a; }
.toast-error { background: #dc2626; }
.toast-info { background: #2563eb; }

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Number input styling */
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; }

/* Improve touch targets on mobile */
@media (max-width: 767px) {
    button, a.btn, [role="button"] { min-height: 40px; min-width: 40px; }
    input, select, textarea { font-size: 16px !important; }
    .item-row { font-size: 13px; }
    .item-row input { padding: 6px 8px; }
    table { font-size: 12px; }
    h1 { font-size: 1.5rem !important; }
}

/* Smooth mobile menu */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 500px; opacity: 1;
}
#mobile-menu.hidden { max-height: 0; opacity: 0; overflow: hidden; }

/* Active bottom nav handled by JS */

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: -200% 0 } 100% { background-position: 200% 0 } }

/* Page skeleton overlay */
.page-skeleton {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(249, 250, 251, 0.85); z-index: 100;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 16px; opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.page-skeleton.active { opacity: 1; pointer-events: all; }
.page-skeleton .sk-bar {
    width: 60%; max-width: 320px; height: 16px;
    border-radius: 8px;
    background: linear-gradient(90deg, #e5e7eb 25%, #d1d5db 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
}
.page-skeleton .sk-bar.short { width: 40%; }
.page-skeleton .sk-bar.medium { width: 50%; }
.page-skeleton .sk-circle {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(90deg, #dbeafe 25%, #bfdbfe 50%, #dbeafe 75%);
    background-size: 200% 100%;
    animation: shimmer 1s infinite;
}

/* Better empty states */
.empty-state {
    text-align: center; padding: 3rem 1rem;
}
.empty-state i { opacity: 0.2; margin-bottom: 0.75rem; }
.empty-state p { color: #6b7280; }

/* Table responsive */
@media (max-width: 767px) {
    .table-responsive { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Generator form on mobile - stack instead of grid */
@media (max-width: 1023px) {
    .generator-grid { grid-template-columns: 1fr !important; }
    .preview-sticky { position: static !important; }
}

/* Ripple effect */
.ripple { position: relative; overflow: hidden; }
/* ---- Intro.js Tour Theme (Kejar Target brand) ---- */
.introjs-tooltip {
  border-radius: 12px !important;
  padding: 0 !important;
  min-width: 300px !important;
  max-width: 420px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
  border: 1px solid #e5e7eb !important;
}

.introjs-tooltip-header {
  padding: 18px 20px 0 20px !important;
}

.introjs-tooltiptitle {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  line-height: 1.3 !important;
}

.introjs-tooltip-body {
  padding: 8px 20px 16px 20px !important;
}

.introjs-tooltiptext {
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: #4b5563 !important;
}

.introjs-tooltiptext strong {
  color: #2563eb;
}

.introjs-tooltipbuttons {
  padding: 0 20px 16px 20px !important;
  border-top: none !important;
  display: flex !important;
  justify-content: flex-end !important;
}

.introjs-button {
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  text-shadow: none !important;
  box-shadow: none !important;
  line-height: 1.4 !important;
}

.introjs-nextbutton,
.introjs-donebutton {
  background: #2563eb !important;
  color: #fff !important;
  border: none !important;
}

.introjs-nextbutton:hover,
.introjs-donebutton:hover {
  background: #1d4ed8 !important;
}

.introjs-prevbutton {
  background: #f3f4f6 !important;
  color: #374151 !important;
  border: 1px solid #d1d5db !important;
  margin-right: 8px !important;
}

.introjs-prevbutton:hover {
  background: #e5e7eb !important;
}

.introjs-disabled {
  display: none !important;
}

.introjs-skipbutton {
  background: transparent !important;
  color: #6b7280 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  padding: 6px 12px !important;
  margin-right: auto !important;
  float: left !important;
}

.introjs-skipbutton:hover {
  color: #6b7280 !important;
}

.introjs-bullets {
  padding: 6px 0 !important;
}

.introjs-bullets ul li a {
  width: 6px !important;
  height: 6px !important;
  background: #d1d5db !important;
}

.introjs-bullets ul li a.active {
  background: #2563eb !important;
}

.introjs-helperLayer {
  border-radius: 12px !important;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.25), 0 0 30px rgba(37,99,235,0.1) !important;
}

.introjs-arrow {
  display: none !important;
}

/* Landing: Gratis Banner */
.gratis-banner {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 40%, #1e40af 100%);
    position: relative;
    overflow: hidden;
}

/* Landing: Device Mockup (How It Works step 2) */
.device-mockup {
    position: relative;
    width: 140px; height: 220px;
    background: #1e293b;
    border-radius: 16px;
    padding: 6px;
    margin: 12px auto -8px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
.device-mockup::before {
    content: '';
    position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
    width: 30px; height: 3px;
    background: #475569;
    border-radius: 2px;
}
.device-screen {
    background: #fff;
    border-radius: 12px;
    height: 100%;
    overflow: hidden;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.device-screen .ds-header {
    height: 10px;
    border-radius: 3px;
    background: var(--mock-pc, #2563eb);
    opacity: 0.8;
}
.device-screen .ds-row {
    display: flex; gap: 4px;
}
.device-screen .ds-row span {
    flex: 1; height: 6px; border-radius: 2px;
    background: #e5e7eb;
}
.device-screen .ds-row span.wide {
    flex: 2;
}
.device-screen .ds-total {
    height: 8px; border-radius: 3px;
    background: var(--mock-ac, #f59e0b);
    margin-top: auto;
    width: 60%;
    align-self: flex-end;
}
/* Landing: Document selector grid (How It Works step 1) */
.doc-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 130px;
    padding: 4px;
}
.dsg-item {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    transition: all 0.3s;
}
.dsg-item.active {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22,163,74,0.15);
}
.dsg-dot {
    width: 12px; height: 12px;
    border-radius: 4px;
}

/* Landing: Export/Share mockup (How It Works step 3) */
.export-mockup {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    width: 155px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.em-preview-line {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    margin-bottom: 6px;
}
.em-preview-line.short {
    width: 55%;
    margin-bottom: 12px;
}
.em-buttons {
    display: flex;
    gap: 5px;
}
.em-btn {
    flex: 1;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    background: #f3f4f6;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 1px solid #e5e7eb;
}
.em-btn.primary {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
.em-inline-icon {
    font-style: normal;
    font-size: 11px;
    line-height: 1;
}

/* Landing: Trust Badges strip */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    transition: all 0.3s;
}
.trust-badge:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(37,99,235,0.08);
    transform: translateY(-2px);
}

/* Landing: Testimonial cards */
.testimonial-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}
.testimonial-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transform: translateY(-4px);
    border-color: #d1d5db;
}
.testimonial-card .t-quote {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 48px;
    line-height: 1;
    color: #e5e7eb;
    font-family: 'Georgia', serif;
}
.testimonial-card .t-avatar {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}
@media (max-width: 767px) {
    .testimonial-card { padding: 20px; }
    .testimonial-card .t-quote { top: 10px; right: 12px; font-size: 36px; }
}

/* Landing: FAQ cards */
.faq-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px 20px;
    transition: all 0.3s;
    cursor: default;
}
.faq-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 2px 12px rgba(37,99,235,0.06);
}
.faq-card .faq-q {
    font-weight: 700;
    font-size: 15px;
    color: #111827;
    margin-bottom: 4px;
}
.faq-card .faq-a {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
}

/* Landing: Freshness badge in hero */
.freshness-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(251,191,36,0.15);
    border: 1px solid rgba(251,191,36,0.3);
    color: #fef3c7;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
}
@media (max-width: 640px) {
    .freshness-badge { font-size: 10px; padding: 3px 10px; }
}

/* Mobile: sticky CTA bar */
@media (max-width: 767px) {
    .mobile-cta-bar {
        display: flex;
        position: fixed;
        bottom: 56px;
        left: 0; right: 0;
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        padding: 10px 16px;
        z-index: 49;
        justify-content: center;
        gap: 10px;
        box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
    }
}

/* Landing: shared fade-in-up entrance (used by index + landing subpages) */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fade-in-up 0.52s var(--kt-ease-spring) forwards; opacity: 0; }

/* Landing: scroll reveal */
.reveal-up {
    transition: opacity 0.5s var(--kt-ease-spring), transform 0.5s var(--kt-ease-spring);
}
.reveal-enabled .reveal-up {
    opacity: 0;
    transform: translateY(18px);
}
.reveal-enabled .reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal-enabled .reveal-up,
    .reveal-enabled [data-hero-item],
    .reveal-enabled [data-stagger-item] { opacity: 1 !important; transform: none !important; transition: none !important; }
    .motion-pending { opacity: 1 !important; transform: none !important; }
}

/* Keyboard focus stays visible even after the motion layer mounts. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--kt-focus);
    outline-offset: 2px;
}

/* ── Motion layer (motion.dev) ─────────────────────────────────
   Purpose: scroll reveals guide reading order, hero staggers set
   hierarchy, press states confirm taps. No infinite loops. */
:root {
    --kt-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    /* Entrance pakai overshoot tipis biar ada rasa hidup, bukan geser datar.
       Hover/press tetap pakai --kt-ease-out yang tanpa overshoot. */
    --kt-ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
    --kt-focus: #2563eb;
}

/* Pending hides only items this layer is about to animate. */
.motion-pending {
    opacity: 0;
    transform: translateY(18px);
}

.motion-in {
    opacity: 1;
    transform: none;
}

/* Motion writes the frames; CSS must not double-animate them. */
.motion-ready .reveal-up,
.motion-ready [data-hero-item],
.motion-ready [data-stagger-item] {
    transition: none;
}

/* Tap feedback: the element confirms the press, then settles back. */
.tool-card:active,
.feature-card:active,
.item-row:active,
.kt-press:active {
    transform: scale(0.97);
}

.kt-press {
    transition: transform 0.18s var(--kt-ease-out), box-shadow 0.18s var(--kt-ease-out);
}

/* Grid items may shrink below their content so charts and long numbers
   never push the page wider than the viewport (R-03). */
.kt-grid-item {
    min-width: 0;
}

.kt-min-0 {
    min-width: 0;
}

/* Sosmed avatars: initials sit under the cached image, so an expired CDN URL
   degrades to the account initials instead of a broken image. */
.sm-avatar {
    position: relative;
}

.sm-avatar img {
    position: absolute;
    inset: 0;
}

/* Landing: FAQ accordion */
.kt-faq summary { list-style: none; cursor: pointer; }
.kt-faq summary::-webkit-details-marker { display: none; }
.kt-faq .kt-faq-chevron { transition: transform 0.25s ease; }
.kt-faq[open] .kt-faq-chevron { transform: rotate(180deg); }
.kt-faq { transition: border-color 0.25s ease; }
.kt-faq[open] { border-color: #bfdbfe; }

/* Bar navigasi sekarang punya belasan tautan; tingginya ikut isi, bukan dipatok 56px. */
.kt-navbar {
    height: auto;
    min-height: 56px;
    gap: 8px 16px;
}

/* ── Kejar Template, admin ──────────────────────────────────────
   Only the pieces the compiled Tailwind build can't express. */

/* Status tabs: the active one is a filled chip, so the current filter
   reads from shape and weight, not hue alone. */
.kt-tab {
    border-color: #d1d5db;
    transition: background-color 0.16s var(--kt-ease-out), border-color 0.16s var(--kt-ease-out);
}
.kt-tab[aria-current="true"] {
    background: #1f2937;
    border-color: #1f2937;
    color: #fff;
    font-weight: 600;
}

/* Satu kolom makin lebar setelah pratinjau ikut masuk; di bawah ini barisnya
   jadi tumpukan angka yang nggak kebaca, jadi wrapper-nya yang geser. */
.kt-table {
    min-width: 920px;
    border-collapse: separate;
    border-spacing: 0;
}

/* Modal scrim: flat translucent ink. Blur would sit on top of a table
   the admin is still trying to read. */
.kt-scrim {
    background: rgba(17, 24, 39, 0.45);
}

/* The slide-over owns its scroll; reaching the end must not drag the page. */
.kt-scroll {
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Pemilih template di panel bundle: tingginya dipatok di sini karena max-h-* belum ke-compile. */
.kt-pick { max-height: 22rem; }

/* Halaman dokumen yang dikecilin jadi 38px masih harus kebaca kertas, bukan
   kotak abu-abu: garis tepi keras + bayangan tipis, dan yang di baris dipotong
   dari atas biar kelihatan judulnya. */
.kt-thumb {
    display: block;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .14);
}
button > .kt-thumb {
    width: 38px;
    height: 52px;
    object-fit: cover;
    object-position: top;
}

body.kt-locked { overflow: hidden; }

/* Native pickers ignore utility classes, so the button is styled directly. */
.kt-file { background: #f9fafb; }
.kt-file::file-selector-button {
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 12px;
    margin-right: 12px;
    cursor: pointer;
}
.kt-file::file-selector-button:hover { background: #f3f4f6; }

.kt-chk {
    width: 15px;
    height: 15px;
    accent-color: #2563eb;
    cursor: pointer;
}

/* Local to the admin panel: SweetAlert2 isn't loaded on these pages. */
.kt-toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    max-width: min(360px, calc(100vw - 32px));
    padding: 12px 16px;
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.22);
    animation: kt-toast-in 0.22s var(--kt-ease-out);
}
.kt-toast-ok { background: #16a34a; }
.kt-toast-bad { background: #dc2626; }

@keyframes kt-toast-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

/* Indentasi subkategori: garis kiri doang, biar induknya kelihatan punya anak. */
.kt-sub {
    margin-left: 20px;
    padding-left: 12px;
    border-left: 1px solid #e5e7eb;
}

/* Nama kategori diedit inline: input-nya nyamar jadi teks sampai disentuh. */
.kt-name {
    background: transparent;
    border-color: transparent;
    transition: background-color 0.16s var(--kt-ease-out), border-color 0.16s var(--kt-ease-out);
}
.kt-name:hover { background: #fff; border-color: #d1d5db; }
.kt-name:focus { background: #fff; border-color: #3b82f6; }

/* Row actions in the category list: quiet until hovered, so the names lead. */
.kt-icon {
    font-size: 11px;
    font-weight: 500;
    color: #4b5563;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 5px 8px;
    cursor: pointer;
    line-height: 1;
    transition: background-color 0.16s var(--kt-ease-out), border-color 0.16s var(--kt-ease-out);
}
.kt-icon:hover { background: #f3f4f6; border-color: #d1d5db; }
.kt-icon-bad { color: #dc2626; }
.kt-icon-bad:hover { background: #fef2f2; border-color: #fecaca; }

/* Refetch feedback: htmx swaps the list for a fresh node, so the flag is set
   by hand rather than read off .htmx-request. */
[data-refreshing="1"] { opacity: 0.55; }

/* ── Kejar Template: katalog ───────────────────────────────────
   Kartu katalog memotong pratinjau dari atas, bukan mengecilkan satu
   halaman penuh: yang dicari orang di daftar adalah judul dokumennya,
   dan itu ada di bagian atas kertas. */
.kt-card-shot {
    position: relative;
    height: 9.5rem;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}
.kt-card-shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.35s var(--kt-ease-out);
}
.kt-tpl-card:hover .kt-card-shot img { transform: scale(1.02); }
.kt-card-shot-sm { height: 6.5rem; }

/* Pratinjau belum jadi: kotak tetap pegang tinggi yang sama biar grid
   nggak melompat waktu gambarnya nyusul. */
.kt-card-none {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100%;
    color: #6b7280;
    font-size: 11px;
}

/* Judul dua baris: cukup buat bedain template, nggak bikin kartu tinggi sebelah. */
.kt-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    min-height: 2.7em;
}

.kt-tpl-card { display: block; }
.kt-tpl-card:focus-visible { outline: 2px solid var(--kt-focus); outline-offset: 2px; }

.kt-chip-n { opacity: 0.65; font-variant-numeric: tabular-nums; }

/* Halaman detail: kolom aksi nempel selama pratinjau di-scroll. */
.kt-detail { display: flex; flex-direction: column; gap: 1.5rem; }
.kt-detail-main { flex: 1 1 auto; min-width: 0; }
.kt-detail-side { flex: 0 0 auto; }
@media (min-width: 768px) {
    .kt-detail { flex-direction: row; }
    .kt-detail-side { width: 20rem; position: sticky; top: 1.5rem; align-self: flex-start; }
}

/* Pratinjau di halaman detail dibikin kayak kertas: tepi keras, bayangan tipis. */
.kt-shot-frame {
    margin: 0;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}
.kt-shot-frame img { display: block; width: 100%; height: auto; border-radius: 2px; }

/* ── Kejar Template: katalog /template ──────────────────────────
   Band navy di atas menandai "ini market", bahasa visual yang sama
   dengan shelf di beranda. Fungsinya juga hierarki: satu titik fokus
   (pencarian) sebelum orang nyebur ke 24 kartu yang seragam. */
.kt-cat-hero {
    background: linear-gradient(135deg, #0f172a 0%, #16233d 52%, #1e3a8a 100%);
    color: #fff;
}
.kt-cat-hero-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 24px 16px 28px;
}
@media (min-width: 640px) { .kt-cat-hero-inner { padding: 32px 24px 36px; } }
@media (min-width: 1024px) { .kt-cat-hero-inner { padding: 38px 32px 42px; } }

.kt-cat-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 14px;
    font-size: 12px;
    color: #cbd5e1;
}
.kt-cat-crumbs a {
    color: #cbd5e1;
    text-decoration: none;
    border-bottom: 1px solid rgba(203, 213, 225, .35);
}
.kt-cat-crumbs a:hover { color: #fff; border-color: rgba(255, 255, 255, .6); }
.kt-cat-crumbs [aria-current] { color: #fff; font-weight: 600; }
.kt-cat-crumbs a:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; border-radius: 2px; }

.kt-cat-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #fbbf24;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.kt-cat-kicker > span {
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, .2);
    color: #cbd5e1;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: none;
    font-variant-numeric: tabular-nums;
}

.kt-cat-title {
    margin: 10px 0 0;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: #fff;
}
@media (min-width: 640px) { .kt-cat-title { font-size: 34px; } }

.kt-cat-sub {
    margin: 10px 0 0;
    max-width: 44rem;
    font-size: 14.5px;
    line-height: 1.65;
    color: #cbd5e1;
}
@media (min-width: 640px) { .kt-cat-sub { font-size: 15.5px; } }

.kt-cat-search {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    max-width: 40rem;
}
.kt-cat-search-field { position: relative; flex: 1 1 18rem; min-width: 0; }
.kt-cat-search > button { flex: 0 0 auto; }
@media (max-width: 639px) { .kt-cat-search > button { flex: 1 1 100%; } }

.kt-cat-wallet {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 16px;
    font-size: 12.5px;
    color: #cbd5e1;
}
.kt-cat-wallet-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .16s var(--kt-ease-out), border-color .16s var(--kt-ease-out);
}
.kt-cat-wallet-btn:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .32); }
.kt-cat-wallet-btn:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; }
.kt-cat-wallet-note strong { color: #fff; font-variant-numeric: tabular-nums; }

.kt-cat-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.kt-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .16s var(--kt-ease-out), color .16s var(--kt-ease-out), background-color .16s var(--kt-ease-out);
}
.kt-cat-chip:hover { border-color: #bfdbfe; color: #1d4ed8; }
.kt-cat-chip[aria-current="page"] { background: #2563eb; border-color: #2563eb; color: #fff; }
.kt-cat-chip:focus-visible { outline: 2px solid var(--kt-focus); outline-offset: 2px; }
.kt-cat-n {
    color: #6b7280;
    font-size: 11.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.kt-cat-chip[aria-current="page"] .kt-cat-n { color: rgba(255, 255, 255, .85); }

/* Di HP 16 kategori jadi empat baris: dijadikan satu rel yang bisa digeser,
   biar grid-nya tetap ketemu tanpa scroll setengah layar. */
    @media (max-width: 639px) {
    .kt-cat-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 -16px;
        padding: 2px 16px 8px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 26px), transparent 100%);
        mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 26px), transparent 100%);
    }
    .kt-cat-filters::-webkit-scrollbar { display: none; }
    .kt-cat-chip { flex: 0 0 auto; min-height: 44px; }
}

.kt-cat-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-top: 18px;
}
.kt-cat-count { margin: 0; font-size: 13px; color: #4b5563; }
.kt-cat-count strong {
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.kt-cat-clear {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin-left: 8px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #fff;
    color: #2563eb;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .16s var(--kt-ease-out), background-color .16s var(--kt-ease-out);
}
.kt-cat-clear:hover { border-color: #bfdbfe; background: #eff6ff; }
.kt-cat-clear:focus-visible { outline: 2px solid var(--kt-focus); outline-offset: 2px; }
@media (max-width: 639px) { .kt-cat-clear { min-height: 44px; } }

.kt-cat-sort {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    padding: 3px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}
.kt-cat-sort-label {
    padding: 0 8px 0 6px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.kt-cat-sort a {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 7px;
    color: #4b5563;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .16s var(--kt-ease-out), color .16s var(--kt-ease-out);
}
.kt-cat-sort a:hover { background: #f3f4f6; color: #1d4ed8; }
.kt-cat-sort a[aria-current="true"] { background: #eff6ff; color: #1d4ed8; }
.kt-cat-sort a:focus-visible { outline: 2px solid var(--kt-focus); outline-offset: 1px; }
@media (max-width: 639px) {
    .kt-cat-sort {
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 22px), transparent 100%);
        mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 22px), transparent 100%);
    }
    .kt-cat-sort::-webkit-scrollbar { display: none; }
    .kt-cat-sort a { min-height: 44px; }
}

.kt-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}
@media (min-width: 640px) { .kt-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .kt-cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Kartu katalog: kartu diam tanpa bayangan, bayangan cuma muncul saat
   hover biar kebaca sebagai "ini bisa diklik", bukan dekorasi. */
.kt-cat-card {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: border-color .18s var(--kt-ease-out), box-shadow .18s var(--kt-ease-out), transform .18s var(--kt-ease-out);
}
.kt-cat-card:hover {
    border-color: #bfdbfe;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -20px rgba(15, 23, 42, .45);
}
.kt-cat-card:focus-visible { outline: 2px solid var(--kt-focus); outline-offset: 2px; }
.kt-cat-card .kt-card-shot { height: 9rem; }
@media (min-width: 640px) { .kt-cat-card .kt-card-shot { height: 10.5rem; } }

.kt-cat-card-body { padding: 11px 13px 12px; }
.kt-cat-card-cat {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 6px 0 0;
    font-size: 12px;
    color: #4b5563;
}
.kt-cat-catname {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.kt-cat-card-pages {
    flex: 0 0 auto;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
}
.kt-cat-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid #f3f4f6;
}
.kt-cat-meta > .kt-cat-type {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #6b7280;
    font-size: 11.5px;
}
.kt-cat-ext { color: #6b7280; }
@media (max-width: 399px) { .kt-cat-ext { display: none; } }
.kt-cat-price {
    flex: 0 0 auto;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.kt-cat-empty {
    margin-top: 14px;
    padding: 56px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    text-align: center;
}

.kt-cat-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 26px;
}
.kt-cat-pager a,
.kt-cat-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}
.kt-cat-pager a:hover { border-color: #bfdbfe; color: #1d4ed8; }
.kt-cat-pager a:focus-visible { outline: 2px solid var(--kt-focus); outline-offset: 2px; }
.kt-cat-pager .kt-pager-nav { padding: 0 14px; }
.kt-cat-pager .kt-pager-on { background: #2563eb; border-color: #2563eb; color: #fff; }
.kt-cat-pager .kt-pager-dots { border-color: transparent; background: transparent; color: #6b7280; }
@media (max-width: 639px) {
    .kt-cat-pager .kt-pager-nav { padding: 0 10px; }
    .kt-cat-pager a,
    .kt-cat-pager span { min-width: 44px; min-height: 44px; }
}

.kt-cat-bundles { margin-top: 56px; }
.kt-cat-bundles-head { margin-bottom: 16px; }
.kt-cat-bundles-sub {
    margin: 4px 0 0;
    max-width: 40rem;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}
.kt-bundle-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}
@media (min-width: 640px) { .kt-bundle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .kt-bundle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }

.kt-bundle-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    transition: border-color .18s var(--kt-ease-out), box-shadow .18s var(--kt-ease-out);
}
.kt-bundle-card:hover { border-color: #bfdbfe; box-shadow: 0 14px 28px -22px rgba(15, 23, 42, .4); }
.kt-bundle-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.kt-bundle-top h3 { margin: 0; color: #111827; font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.kt-bundle-count {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.kt-bundle-desc { margin: 8px 0 0; color: #4b5563; font-size: 12.5px; line-height: 1.6; }
.kt-bundle-shots { display: flex; gap: 6px; margin-top: 12px; margin-bottom: 2px; }
.kt-bundle-shots img {
    flex: 1 1 0;
    width: 0;
    height: 7rem;
    object-fit: cover;
    object-position: top center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
}
@media (min-width: 640px) {
    .kt-bundle-shot-1 { transform: rotate(-1deg) translateY(2px); }
    .kt-bundle-shot-3 { transform: rotate(1deg) translateY(2px); }
}
.kt-bundle-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}
.kt-bundle-now { color: #111827; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kt-bundle-price s { color: #6b7280; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.kt-bundle-save {
    padding: 2px 6px;
    border: 1px solid #fde68a;
    border-radius: 6px;
    background: #fffbeb;
    color: #b45309;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.kt-bundle-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 12px;
    padding: 0 16px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    color: #374151;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .16s var(--kt-ease-out), border-color .16s var(--kt-ease-out), color .16s var(--kt-ease-out);
}
.kt-bundle-cta:hover { background: #f9fafb; border-color: #bfdbfe; color: #1d4ed8; }
.kt-bundle-cta-buy { background: #2563eb; border-color: #2563eb; color: #fff; }
.kt-bundle-cta-buy:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.kt-bundle-cta:focus-visible { outline: 2px solid var(--kt-focus); outline-offset: 2px; }

.kt-cat-foot {
    margin-top: 40px;
    color: #4b5563;
    font-size: 12.5px;
    line-height: 1.6;
}
.kt-cat-foot a { color: #2563eb; font-weight: 600; text-decoration: none; }
.kt-cat-foot a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
    .kt-cat-card, .kt-bundle-card, .kt-cat-chip, .kt-cat-sort a { transition: none; }
    .kt-cat-card:hover { transform: none; }
}

/* Kredit bulan ini: satu batang, warna netral sampai hampir habis. */
.kt-meter {
    height: 6px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}
.kt-meter > span { display: block; height: 100%; border-radius: inherit; background: #2563eb; }

/* Catatan jujur buat yang belum bisa dipencet. */
.kt-note {
    margin-top: 10px;
    padding: 9px 11px;
    border-radius: 8px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 12px;
    line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
    .kt-card-shot img { transition: none; }
    .kt-tpl-card:hover .kt-card-shot img { transform: none; }
}

/* ── Etalase template di landing ────────────────────────────────
   Tiga halaman template asli ditumpuk kayak kertas di atas meja. Tiap
   kartu tautan ke detailnya, jadi gambar pratinjau di sini juga jalan
   sebagai navigasi. Miringnya cuma di layar lebar; di HP kartu berjejer
   lurus biar judulnya kebaca. */

/* Grid sendiri, bukan utility col-span: `lg:col-span-6` nggak ikut
   ke-build di tailwind.css, jadi kolomnya runtuh ke 1/12. */
.kt-market {
    display: grid;
    gap: 2rem;
    align-items: center;
}
.kt-market > * { min-width: 0; }
@media (min-width: 1024px) {
    .kt-market {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 2.5rem;
    }
}

/* Daftar kategori: satu kolom di HP biar angka nggak nempel ke label
   sebelahnya, dua kolom mulai tablet. */
.kt-market-cats {
    display: grid;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
    max-width: 32rem;
}
@media (min-width: 640px) {
    .kt-market-cats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1.5rem;
    }
}

.kt-shelf-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #fbbf24;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.kt-shelf-label > span {
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, .2);
    color: #9ca3af;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: none;
}

.kt-shelf {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    align-items: start;
    padding: 6px 0 30px;
}
.kt-shelf-card {
    position: relative;
    display: block;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    padding: 5px 5px 0;
    box-shadow: 0 22px 34px -18px rgba(2, 6, 23, .65);
    color: #111827;
    text-decoration: none;
    transform-origin: 50% 100%;
    transition: transform .35s var(--kt-ease-out), box-shadow .35s var(--kt-ease-out);
}
/* Kipasnya cuma pas kolom kanan udah sempit (≥1024). Di lebar tengah
   kartu jadi selebar kontainer, kalau dimiringin malah kepotong tepi. */
@media (min-width: 1024px) {
    .kt-shelf { gap: 0; }
    .kt-shelf-card:nth-child(1) { transform: rotate(-5deg) translateY(18px); margin-right: -16%; z-index: 1; }
    .kt-shelf-card:nth-child(2) { transform: rotate(1deg); z-index: 3; }
    .kt-shelf-card:nth-child(3) { transform: rotate(5deg) translateY(28px); margin-left: -16%; z-index: 2; }
}
.kt-shelf-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px;
    background: #f3f4f6;
}
.kt-shelf-meta {
    display: block;
    padding: 7px 6px 8px;
    border-top: 1px solid #f1f5f9;
}
.kt-shelf-meta strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    min-height: 2.6em;
}
.kt-shelf-meta > span {
    display: block;
    margin-top: 2px;
    color: #6b7280;
    font-size: 10px;
}
.kt-shelf-card:hover,
.kt-shelf-card:focus-visible {
    transform: rotate(0deg) translateY(4px) scale(1.03);
    box-shadow: 0 26px 44px -16px rgba(2, 6, 23, .8);
    z-index: 4;
}
.kt-shelf-card:focus-visible { outline: 2px solid var(--kt-focus); outline-offset: 3px; }

.kt-shelf-cat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: #e5e7eb;
    font-size: 14px;
    text-decoration: none;
    transition: color .18s var(--kt-ease-out), border-color .18s var(--kt-ease-out);
}
.kt-shelf-cat:hover { color: #fff; border-color: rgba(251, 191, 36, .45); }
.kt-shelf-cat:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; border-radius: 3px; }
.kt-shelf-cat .kt-chip-n { color: #9ca3af; font-size: 12px; }

@media (max-width: 639px) {
    .kt-shelf { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0; }
    .kt-shelf-card { margin: 0 !important; transform: none !important; }
    .kt-shelf-card:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .kt-shelf-card { transition: none; }
}

/* ── Kejar Template: editor online ─────────────────────────────
   Halaman editor penuh layar tanpa header/footer situs; bar atas cuma
   nav balik, judul, status simpan, dan satu aksi unduh. Itu semua
   memakai state nyata dari Document Server, bukan hiasan. */
html.kt-editor-page { height: 100%; }

body.kt-editor-body {
    margin: 0;
    height: 100vh;
    height: 100dvh;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #eef0f3;
    color: #111827;
    font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.kt-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 50;
    padding: 8px 12px;
    border-radius: 0 0 8px 0;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.kt-skip:focus { left: 0; }

.kt-editor-bar {
    position: relative;
    z-index: 5;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 8px 12px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.kt-editor-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 6px 8px;
    border-radius: 8px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.16s var(--kt-ease-out), color 0.16s var(--kt-ease-out);
}
.kt-editor-back:hover { background: #f3f4f6; color: #111827; }
.kt-editor-back:focus-visible { outline: 2px solid var(--kt-focus); outline-offset: 2px; }

.kt-editor-head { flex: 1 1 auto; min-width: 0; }
.kt-editor-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kt-editor-meta { margin: 1px 0 0; font-size: 11px; color: #6b7280; }

.kt-editor-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}
.kt-editor-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #d1d5db;
}
.kt-editor-status.is-ready .kt-editor-dot { background: #16a34a; }
.kt-editor-status.is-saving .kt-editor-dot { background: #d97706; }
.kt-editor-status.is-error .kt-editor-dot { background: #dc2626; }

.kt-editor-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.16s var(--kt-ease-out), border-color 0.16s var(--kt-ease-out);
}
.kt-editor-btn:hover { background: #f9fafb; border-color: #9ca3af; }
.kt-editor-btn:focus-visible { outline: 2px solid var(--kt-focus); outline-offset: 2px; }
.kt-editor-btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.kt-editor-btn-solid { background: #2563eb; border-color: #2563eb; color: #fff; }
.kt-editor-btn-solid:hover { background: #1d4ed8; border-color: #1d4ed8; }

.kt-editor-frame { position: relative; flex: 1 1 auto; min-height: 0; }
.kt-editor-mount { position: absolute; inset: 0; }
.kt-editor-mount iframe { width: 100%; height: 100%; border: 0; }

.kt-editor-loader {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #eef0f3;
    color: #4b5563;
    font-size: 13px;
}
.kt-editor-loader[hidden] { display: none; }
.kt-editor-spin {
    width: 22px;
    height: 22px;
    border: 2px solid #d1d5db;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.kt-editor-error {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    background: #eef0f3;
    text-align: center;
}
.kt-editor-error[hidden] { display: none; }
.kt-editor-error-title { margin: 0; font-size: 15px; font-weight: 700; color: #111827; }
.kt-editor-error p { margin: 0; max-width: 46ch; font-size: 13px; line-height: 1.5; color: #4b5563; }
.kt-editor-error .kt-editor-btn { margin-top: 6px; }
.kt-editor-error-block {
    position: static;
    margin: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

@media (max-width: 640px) {
    .kt-editor-meta { display: none; }
    .kt-editor-back-text,
    .kt-editor-btn-text { display: none; }
    .kt-editor-bar { gap: 8px; }
}

/* ── Nav header: menu lengkap baru muat mulai 1024 ───────────────
   Sejak item Market Template masuk, menu horizontal nggak muat di lebar
   tablet dan bikin halaman geser ke samping. Di 768–1023 pakai drawer
   yang sama dengan HP; utility lg:flex nggak ikut ke-build. */
.kt-nav-wide { display: none; }
.kt-nav-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 1024px) {
    .kt-nav-wide { display: flex; }
    .kt-nav-burger { display: none; }
    .kt-nav-drawer { display: none; }
}

/* ── Landing: Sosmed Studio ───────────────────────────────────────
   Etalase sosmed butuh ruang lebih dari satu banner: kolom kiri jualan
   fitur, kolom kanan contoh kalender konten yang bisa lo jadwalin. */
.kt-soc {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .kt-soc {
        grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
        gap: 4rem;
        align-items: center;
    }
}

.kt-soc-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #be185d;
}

.kt-soc-label span {
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: none;
    color: #6b7280;
}

.kt-soc-label::after {
    content: "";
    flex: 1;
    height: 1px;
    margin-left: 0.35rem;
    background: #f1dfe7;
}

.kt-soc-feats {
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #e5e7eb;
}

.kt-soc-feats li {
    display: flex;
    gap: 0.9rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f2f4;
}

.kt-soc-ico {
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.7rem;
    background: #fdf2f8;
    color: #be185d;
}

.kt-soc-feats strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
}

.kt-soc-feats p {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: #6b7280;
}

.kt-soc-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
    margin-top: 2rem;
}

.kt-soc-plan {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 1px solid #d1d5db;
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.kt-soc-plan:hover {
    color: #be185d;
    border-color: #f9a8d4;
}

.kt-soc-board {
    position: relative;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    box-shadow: 0 28px 60px -40px rgba(15, 23, 42, 0.45);
}

.kt-soc-board-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f2f4;
}

.kt-soc-kicker {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7280;
}

.kt-soc-board-top strong {
    display: block;
    margin-top: 0.15rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #111827;
}

.kt-soc-count {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: #4b5563;
    background: #f3f4f6;
    border-radius: 0.5rem;
    padding: 0.3rem 0.55rem;
}

.kt-soc-rows {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kt-soc-rows li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f7f7f8;
}

.kt-soc-rows li:last-child {
    border-bottom: 0;
}

.kt-soc-plat {
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
}

.kt-soc-plat svg {
    width: 0.9rem;
    height: 0.9rem;
    display: block;
}

.kt-soc-plat[data-p="ig"] { background: #c13584; }
.kt-soc-plat[data-p="fb"] { background: #1877f2; }
.kt-soc-plat[data-p="th"] { background: #334155; }
.kt-soc-plat[data-p="tt"] { background: #0f172a; }
.kt-soc-plat[data-p="in"] { background: #0a66c2; }

.kt-soc-row-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.kt-soc-row-copy strong {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kt-soc-row-copy span {
    margin-top: 0.1rem;
    font-size: 0.72rem;
    color: #6b7280;
}

.kt-soc-state {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 0.4rem;
    padding: 0.2rem 0.45rem;
}

.kt-soc-state.is-plan { color: #4b5563; background: #f3f4f6; }
.kt-soc-state.is-live { color: #047857; background: #ecfdf5; }

.kt-soc-board-foot {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.9rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f2f4;
    font-size: 0.75rem;
    color: #6b7280;
}

@media (max-width: 639px) {
    .kt-soc-board { padding: 1rem; }
    .kt-soc-rows li { gap: 0.6rem; }
}

/* Landing: Hero product stats */
.kt-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 30rem;
    margin-top: 2.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}
.kt-hero-stat { display: block; text-decoration: none; }
.kt-hero-stat strong {
    display: block;
    font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111827;
    transition: color .18s ease;
}
.kt-hero-stat span {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.72rem;
    line-height: 1.35;
    font-weight: 600;
    color: #4b5563;
}
.kt-hero-stat:hover strong { color: #2563eb; }

/* Landing: Hero document mock */
.kt-hero-act {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.4rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #4b5563;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}
.kt-hero-act.is-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

/* Landing: Free banner */
.kt-free { display: grid; gap: 2rem; align-items: center; }
.kt-free-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #eff6ff;
}
.kt-free-copy { color: #eff6ff; }
.kt-free-link { color: #eff6ff; }
.kt-free-link:hover { color: #ffffff; }
.kt-free-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}
.kt-free-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.16);
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}
.kt-free-list li:last-child { border-bottom: 0; }
.kt-free-list li i,
.kt-free-list li svg { color: #a7f3d0; flex-shrink: 0; }

@media (min-width: 768px) {
    .kt-free { grid-template-columns: 1.12fr 0.88fr; gap: 2.5rem; }
    .kt-hero-act { font-size: 0.7rem; }
}
@media (max-width: 400px) {
    .kt-hero-stat strong { font-size: 1.25rem; }
    .kt-hero-stat span { font-size: 0.68rem; }
}

/* Saved clients & products: combobox, login-only */
body[data-user-logged-in="0"] [data-kt-save-client],
body[data-user-logged-in="0"] [data-kt-save-product] { display: none !important; }

.kt-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 5px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #4b5563;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.kt-save-btn:hover {
    color: #1d4ed8;
    border-color: #bfdbfe;
    background: #eff6ff;
}
.kt-save-btn:focus-visible,
.kt-save-icon:focus-visible,
.kt-combo-opt:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 1px;
}
.kt-save-btn:disabled,
.kt-save-icon:disabled { opacity: 0.55; cursor: wait; }
.kt-save-btn svg { width: 13px; height: 13px; }

.kt-save-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 8px;
    color: #6b7280;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.kt-save-icon:hover { color: #1d4ed8; background: #eff6ff; }
.kt-save-icon svg { width: 16px; height: 16px; }

.kt-combo {
    position: fixed;
    z-index: 90;
    padding: 4px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 16px 40px -16px rgba(15, 23, 42, 0.28), 0 2px 6px rgba(15, 23, 42, 0.06);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.kt-combo[hidden] { display: none; }
.kt-combo-list { display: flex; flex-direction: column; gap: 2px; }
.kt-combo-opt {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 8px 7px 10px;
    border-radius: 8px;
    cursor: pointer;
}
.kt-combo-opt.is-active { background: #eff6ff; }
.kt-combo-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}
.kt-combo-main {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kt-combo-meta {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kt-combo-del {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 4px;
    border-radius: 6px;
    color: #6b7280;
    opacity: 0;
    transition: opacity 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}
.kt-combo-opt:hover .kt-combo-del,
.kt-combo-opt.is-active .kt-combo-del,
.kt-combo-del:focus-visible { opacity: 1; }
.kt-combo-del:hover { color: #dc2626; background: #fef2f2; }
.kt-combo-empty {
    padding: 9px 11px;
    font-size: 12px;
    color: #6b7280;
}
.kt-combo.is-loading .kt-combo-empty { color: #6b7280; }

@media (max-width: 640px) {
    .kt-combo-del { opacity: 1; }
    .kt-save-btn { padding: 5px 8px; }
}

/* ── Artikel / blog ── */
.article-body {
    font-size: 16.5px;
    line-height: 1.85;
    color: #374151;
}
.article-body > * + * { margin-top: 1.15em; }
.article-body h2 {
    margin-top: 1.9em;
    margin-bottom: .6em;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.01em;
    color: #111827;
}
.article-body h3 {
    margin-top: 1.6em;
    margin-bottom: .5em;
    font-size: 1.12rem;
    font-weight: 700;
    color: #111827;
}
.article-body p { margin: 0; }
.article-body a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.article-body a:hover { color: #1d4ed8; }
.article-body ul, .article-body ol { padding-left: 1.4rem; }
.article-body li + li { margin-top: .35em; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
.article-body blockquote {
    border-left: 3px solid #2563eb;
    background: #eff6ff;
    padding: .85rem 1rem;
    border-radius: 0 10px 10px 0;
    color: #1e3a8a;
    font-style: normal;
}
.article-body pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 13.5px;
    line-height: 1.65;
}
.article-body code {
    background: #f3f4f6;
    padding: .12em .38em;
    border-radius: 5px;
    font-size: .92em;
}
.article-body pre code { background: none; padding: 0; }
.article-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}
.article-body th, .article-body td {
    border: 1px solid #e5e7eb;
    padding: .55rem .7rem;
    text-align: left;
    vertical-align: top;
}
.article-body th { background: #f9fafb; font-weight: 700; }
@media (max-width: 640px) {
    .article-body { font-size: 16px; line-height: 1.8; }
    .article-body h2 { font-size: 1.22rem; }
}

.article-body h2,
.article-body h3 { scroll-margin-top: 90px; }

/* ── Tap targets (R-03) ───────────────────────────────────────────
   Ukuran visual boleh tetap kecil, tapi area yang bisa ditap minimal
   44x44 supaya nggak salah pencet di layar sempit. */
.kt-nav-burger {
    min-width: 44px;
    min-height: 44px;
}

.kt-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
}

.kt-search-submit {
    min-height: 44px;
}

.kt-bottom-nav > div > a {
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

/* ── Tombol share artikel (R-25) ──────────────────────────────────
   Warna brand asli terlalu terang buat teks putih (WhatsApp 3.77:1,
   Facebook 4.19:1). Versi di bawah lolos 4.5:1. */
.kt-share-btn {
    color: #ffffff;
    transition: background-color .16s ease, color .16s ease;
}
.kt-share-wa { background: #047857; }
.kt-share-wa:hover { background: #065f46; }
.kt-share-fb { background: #0f66d0; }
.kt-share-fb:hover { background: #0b55ad; }
.kt-share-tg { background: #0f6f9c; }
.kt-share-tg:hover { background: #0c5a80; }
