/* =====================================================================
   CARILAPTOP.ID — Design System
   Navy / putih / abu-abu modern + aksen biru teknologi.
   Tanpa framework: tidak butuh build step dan aman dengan CSP ketat.
   ===================================================================== */

:root {
  --navy-950: #061229;
  --navy-900: #0a1c3d;
  --navy-800: #11295a;
  --navy-700: #1a3a78;
  --blue-700: #1554c4;
  --blue-600: #1d64e0;
  --blue-500: #3b82f6;
  --blue-100: #dbe8fe;
  --blue-50: #eff5ff;

  --gray-0: #ffffff;
  --gray-25: #fafbfd;
  --gray-50: #f5f7fa;
  --gray-100: #eef1f6;
  --gray-200: #e3e8ef;
  --gray-300: #cdd5e0;
  --gray-400: #9aa6b8;
  --gray-500: #6b778a;
  --gray-600: #4d586b;
  --gray-700: #36404f;
  --gray-800: #222a36;
  --gray-900: #121821;

  --green-700: #0f7a43;
  --green-600: #13924f;
  --green-50: #e9f8f0;
  --red-700: #b42323;
  --red-600: #d23030;
  --red-50: #fdeeee;
  --amber-700: #a35a06;
  --amber-50: #fff5e6;
  --wa: #1fa855;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 28, 61, .06);
  --shadow: 0 1px 2px rgba(10, 28, 61, .05), 0 6px 20px -8px rgba(10, 28, 61, .14);
  --shadow-lg: 0 24px 60px -24px rgba(6, 18, 41, .35);
  --ring: 0 0 0 3px rgba(29, 100, 224, .25);

  --surface: #ffffff;
  --heading: #061229;
  --header-bg: rgba(255,255,255,.92);
  --header-h: 68px;
  --container: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6;
  color: var(--gray-800); background: var(--gray-50);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; color: var(--heading); line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
[hidden] { display: none !important; }
::selection { background: var(--blue-100); color: var(--heading); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy-950); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-white { background: var(--surface); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.stack > * + * { margin-top: 16px; }
.grid { display: grid; gap: 24px; }
.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)); }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.muted { color: var(--gray-500); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.mono { font-family: var(--mono); }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head .lead { max-width: 620px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.h1 { font-size: clamp(30px, 4.4vw, 46px); }
.h2 { font-size: clamp(24px, 3vw, 32px); }
.h3 { font-size: 18px; letter-spacing: -.01em; }
.lead { color: var(--gray-600); font-size: 16px; margin-top: 10px; }
.link-arrow { font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i { transform: translateX(3px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
  text-decoration: none; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.btn-xs { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 7px; gap: 6px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 36px; }
.btn-icon.btn-xs { width: 30px; }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-700); color: #fff; }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-800); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--heading); border-color: var(--gray-300); }
.btn-secondary:hover { background: var(--gray-50); border-color: var(--gray-400); color: var(--heading); }
.btn-ghost { background: transparent; color: var(--gray-700); }
.btn-ghost:hover { background: var(--gray-100); color: var(--heading); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #188f48; color: #fff; }
.btn-danger { background: var(--red-600); color: #fff; }
.btn-danger:hover { background: var(--red-700); color: #fff; }
.btn-danger-soft { background: var(--red-50); color: var(--red-700); border-color: #f6caca; }
.btn-danger-soft:hover { background: #fbdcdc; color: var(--red-700); }
.btn-success { background: var(--green-600); color: #fff; }
.btn-success:hover { background: var(--green-700); color: #fff; }
.btn .spin, .spin { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.badge-ready { background: var(--green-50); color: var(--green-700); }
.badge-ready::before, .badge-sold::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-sold { background: var(--red-50); color: var(--red-700); }
.badge-blue { background: var(--blue-50); color: var(--blue-700); }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.badge-amber { background: var(--amber-50); color: var(--amber-700); }
.badge-navy { background: var(--navy-900); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 7px; background: var(--gray-100); color: var(--gray-700); font-size: 12px; font-weight: 600; }
.chip i { color: var(--gray-500); font-size: 11px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 24px; }
.card-head { padding: 18px 24px; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { font-size: 16px; letter-spacing: -.01em; }
.card-body { padding: 24px; }
.card-foot { padding: 16px 24px; border-top: 1px solid var(--gray-200); background: var(--gray-25); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

.feature { padding: 26px; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); font-size: 18px; margin-bottom: 18px; }
.feature h3 { font-size: 16px; margin-bottom: 8px; }
.feature p { color: var(--gray-600); font-size: 14px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.col-12 { grid-column: span 12; } .col-8 { grid-column: span 8; } .col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; } .col-3 { grid-column: span 3; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-size: 13px; font-weight: 700; color: var(--gray-700); }
.label .req { color: var(--red-600); }
.hint { font-size: 12px; color: var(--gray-500); }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--gray-300); border-radius: 10px;
  background: var(--surface); color: var(--gray-900); font-size: 14px; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b778a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.input-sm, .select-sm { height: 38px; font-size: 13px; border-radius: 9px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--gray-400); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: var(--ring); }
.input::placeholder, .textarea::placeholder { color: var(--gray-400); }
.input:disabled { background: var(--gray-100); color: var(--gray-500); }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-400); font-size: 13px; pointer-events: none; }
.input-icon > .input { padding-left: 38px; }
.input-icon > .input-action { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--gray-700); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue-600); }
.range { width: 100%; accent-color: var(--blue-600); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.dropzone { border: 1.5px dashed var(--gray-300); border-radius: var(--radius); background: var(--gray-25); padding: 22px; text-align: center; color: var(--gray-500); cursor: pointer; transition: border-color .15s, background .15s; display: block; }
.dropzone:hover, .dropzone.is-drag { border-color: var(--blue-500); background: var(--blue-50); color: var(--blue-700); }
.dropzone i { font-size: 22px; margin-bottom: 8px; display: block; }
.dropzone input { display: none; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; margin-top: 14px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--gray-200); background: var(--gray-100); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .thumb-actions { position: absolute; inset: auto 6px 6px 6px; display: flex; justify-content: space-between; gap: 4px; }
.thumb .thumb-btn { width: 28px; height: 28px; border-radius: 7px; border: 0; background: rgba(6,18,41,.78); color: #fff; font-size: 11px; display: grid; place-items: center; }
.thumb .thumb-btn:hover { background: var(--navy-950); }
.thumb .thumb-btn.danger:hover { background: var(--red-600); }
.thumb .cover-tag { position: absolute; top: 6px; left: 6px; background: var(--blue-600); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 6px; letter-spacing: .04em; }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); font-size: 14px; border: 1px solid; }
.alert i { margin-top: 3px; }
.alert-info { background: var(--blue-50); border-color: var(--blue-100); color: var(--navy-800); }
.alert-warn { background: var(--amber-50); border-color: #f7dfb5; color: #6d3f05; }
.alert-error { background: var(--red-50); border-color: #f6caca; color: var(--red-700); }
.alert-success { background: var(--green-50); border-color: #bfe8d1; color: var(--green-700); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--gray-200); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--heading); }
.brand:hover { color: var(--heading); }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--navy-900); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -.02em; line-height: 1; }
.brand-name span { color: var(--blue-600); }
.brand-sub { display: block; font-size: 10.5px; font-weight: 600; color: var(--gray-500); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--gray-600); }
.nav a:hover { color: var(--heading); background: var(--gray-100); }
.nav a[aria-current="page"] { color: var(--heading); background: var(--blue-50); box-shadow: inset 0 -2px 0 var(--blue-600); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.admin-link { color: var(--gray-500); }
.menu-toggle { display: none; }
.mobile-nav { display: none; border-top: 1px solid var(--gray-200); background: var(--surface); padding: 12px 20px 18px; }
.mobile-nav a { display: flex; align-items: center; justify-content: space-between; padding: 12px 6px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); font-weight: 600; }
.mobile-nav a[aria-current="page"] { color: var(--blue-600); }
.mobile-nav .mobile-admin { border-bottom: 0; color: var(--gray-500); font-size: 14px; margin-top: 6px; }
.site-header.is-open .mobile-nav { display: block; }

/* ---------- Page header / breadcrumb ---------- */
.page-hero { background: var(--navy-950); color: #cdd6e6; padding: 44px 0 46px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 260px at 85% -10%, rgba(59,130,246,.22), transparent 60%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(26px, 3.6vw, 38px); }
.page-hero p { margin-top: 10px; max-width: 680px; color: #b9c4d8; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 14px; color: #8fa0bd; }
.breadcrumb a { color: #b9c4d8; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .5; font-size: 10px; }
.breadcrumb [aria-current] { color: #fff; font-weight: 600; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumb-light { color: var(--gray-500); margin-bottom: 18px; }
.breadcrumb-light a { color: var(--gray-500); }
.breadcrumb-light a:hover { color: var(--blue-600); }
.breadcrumb-light [aria-current] { color: var(--heading); }

/* ---------- Hero (beranda) ---------- */
.hero { position: relative; background: var(--navy-950); color: #c9d3e5; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .4s; }
.hero-bg.is-loaded { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,18,41,.96) 0%, rgba(6,18,41,.78) 50%, rgba(6,18,41,.45) 100%); }
.hero-shade { position: absolute; inset: 0; background: rgba(6,18,41,.4); }
.hero .container { position: relative; z-index: 1; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; padding: 72px 0 76px; }
.hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 50px); letter-spacing: -.03em; }
.hero h1 .accent { color: #7fb0ff; }
.hero p.hero-text { margin-top: 18px; font-size: 17px; max-width: 580px; color: #c1cce0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: 13.5px; color: #aebbd2; }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; }
.hero-points i { color: #7fb0ff; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(127,176,255,.12); border: 1px solid rgba(127,176,255,.25); color: #b8d2ff; font-size: 12.5px; font-weight: 700; margin-bottom: 18px; }
.hero-panel { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-xl); padding: 26px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-panel h2 { color: #fff; font-size: 16px; letter-spacing: -.01em; }
.hero-panel .sub { font-size: 13px; color: #9fb0cc; margin-top: 4px; }
.qc-list { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.qc-list li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 11px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); font-size: 14px; color: #dbe3f1; }
.qc-list li i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(29,100,224,.25); color: #9cc2ff; font-size: 12px; flex: none; }
.qc-list li .ok { margin-left: auto; color: #4fd18b; font-size: 12px; background: none; width: auto; height: auto; }

/* ---------- Brand chips ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.brand-tile { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 18px; background: var(--surface); border: 1px solid var(--gray-200); border-radius: var(--radius); color: var(--heading); font-weight: 700; transition: border-color .15s, box-shadow .15s, transform .15s; }
.brand-tile:hover { border-color: var(--blue-500); box-shadow: var(--shadow); color: var(--heading); transform: translateY(-1px); }
.brand-tile small { font-weight: 600; color: var(--gray-500); font-size: 12px; }

/* ---------- Banners ---------- */
.banner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.banner { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-900); border: 1px solid var(--gray-200); }
.banner-img { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; transition: transform .4s ease; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6,18,41,.85)); }
.banner-title { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; color: #fff; font-weight: 800; font-size: 16px; line-height: 1.3; letter-spacing: -.01em; }
.banner:hover .banner-img { filter: brightness(1.05); }

/* ---------- QC promo ---------- */
.qc-promo { background: var(--navy-950); border-radius: var(--radius-xl); padding: 44px; color: #c3cee2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; position: relative; overflow: hidden; }
.qc-promo::before { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(59,130,246,.3), transparent 70%); }
.qc-promo h2 { color: #fff; }
.qc-promo p { margin-top: 12px; }
.qc-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; position: relative; }
.qc-tool { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); color: #e3e9f4; font-weight: 600; font-size: 14px; }
.qc-tool i { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(29,100,224,.28); color: #a8c8ff; flex: none; }
.qc-tool:hover { background: rgba(255,255,255,.09); color: #fff; }

/* ---------- Testimonials ---------- */
.testi-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.testi-track::-webkit-scrollbar { display: none; }
.testi { scroll-snap-align: start; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.stars { display: flex; gap: 3px; color: #f2a818; font-size: 13px; }
.stars .off { color: var(--gray-300); }
.testi blockquote { margin: 0; color: var(--gray-700); font-size: 15px; line-height: 1.65; flex: 1; }
.testi-person { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-700); font-weight: 800; font-size: 14px; flex: none; }
.testi-person strong { display: block; color: var(--heading); font-size: 14px; }
.testi-person span { font-size: 12.5px; color: var(--gray-500); }
.slider-ctrl { display: flex; gap: 8px; }

/* ---------- Product grid / card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .15s, box-shadow .2s, transform .2s; height: 100%; }
.p-card:hover { border-color: var(--gray-300); box-shadow: var(--shadow); transform: translateY(-2px); }
.p-media { position: relative; aspect-ratio: 4 / 3; background: var(--gray-100); overflow: hidden; display: block; }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.p-card:hover .p-media img { transform: scale(1.03); }
.p-card.is-sold .p-media img { filter: grayscale(.85); opacity: .75; }
.p-badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 6px; }
.p-badges .badge { box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.p-badges .badge-ready, .p-badges .badge-sold, .p-badges .badge-gray { background-color: rgba(255,255,255,.95); }
.p-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.p-meta { font-size: 12px; color: var(--gray-500); font-weight: 600; display: flex; gap: 6px; align-items: center; min-width: 0; }
.p-meta .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-title { font-size: 15.5px; font-weight: 800; color: var(--heading); line-height: 1.35; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.p-title a { color: inherit; }
.p-title a:hover { color: var(--blue-600); }
.p-specs { display: grid; gap: 6px; font-size: 13px; color: var(--gray-600); }
.p-specs div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.p-specs i { width: 14px; color: var(--gray-400); font-size: 12px; text-align: center; flex: none; }
.p-specs span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-size: 18px; font-weight: 800; color: var(--heading); letter-spacing: -.02em; }
.p-card.is-sold .price { color: var(--gray-400); text-decoration: line-through; text-decoration-thickness: 1.5px; }

/* ---------- Skeleton / empty / error ---------- */
.skeleton { position: relative; overflow: hidden; background: var(--gray-100); border-radius: 8px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-card { background: var(--surface); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.sk-card .sk-media { aspect-ratio: 4 / 3; border-radius: 0; }
.sk-card .sk-body { padding: 16px 18px 20px; display: grid; gap: 10px; }
.sk-line { height: 12px; }
.sk-line.w60 { width: 60%; } .sk-line.w80 { width: 80%; } .sk-line.w40 { width: 40%; } .sk-line.lg { height: 18px; }
.state { text-align: center; padding: 56px 24px; background: var(--surface); border: 1px dashed var(--gray-300); border-radius: var(--radius-lg); grid-column: 1 / -1; }
.state i.state-icon { font-size: 28px; color: var(--gray-400); margin-bottom: 14px; display: block; }
.state h3 { font-size: 17px; margin-bottom: 6px; }
.state p { color: var(--gray-500); font-size: 14px; max-width: 420px; margin: 0 auto; }
.state .btn { margin-top: 18px; }
.state-error i.state-icon { color: var(--red-600); }

/* ---------- Catalog page ---------- */
.catalog-layout { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); }
.filters .card-body { display: grid; gap: 18px; }
.filters-head { display: flex; align-items: center; justify-content: space-between; }
.filters-head h2 { font-size: 15px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .result-count { font-size: 14px; color: var(--gray-600); }
.toolbar .result-count strong { color: var(--heading); }
.search-box { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.search-box i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-400); font-size: 13px; }
.search-box .input { padding-left: 38px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter-pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: 12.5px; font-weight: 700; border: 1px solid var(--blue-100); }
.filter-pill button { width: 20px; height: 20px; border-radius: 50%; border: 0; background: transparent; color: inherit; display: grid; place-items: center; font-size: 10px; }
.filter-pill button:hover { background: var(--blue-100); }
.filter-toggle { display: none; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.pagination button { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--gray-300); background: var(--surface); font-weight: 700; font-size: 14px; color: var(--gray-700); }
.pagination button:hover:not(:disabled) { border-color: var(--blue-500); color: var(--blue-600); }
.pagination button[aria-current="page"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.pagination button:disabled { opacity: .45; cursor: not-allowed; }
.pagination .gap { color: var(--gray-400); padding: 0 4px; }

/* ---------- Product detail ---------- */
.pd-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px; align-items: start; }
.gallery-main { position: relative; aspect-ratio: 4 / 3; background: var(--gray-100); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-200); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: var(--surface); }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gray-200); background: rgba(255,255,255,.94); color: var(--heading); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.gallery-nav.prev { left: 12px; } .gallery-nav.next { right: 12px; }
.gallery-nav:hover { background: var(--surface); color: var(--blue-600); }
.gallery-count { position: absolute; right: 12px; bottom: 12px; background: rgba(6,18,41,.75); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; margin-top: 12px; }
.gallery-thumbs button { aspect-ratio: 1; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--gray-100); }
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--blue-600); }
.pd-info { position: sticky; top: calc(var(--header-h) + 20px); }
.pd-info h1 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 8px; }
.pd-price { font-size: 30px; font-weight: 800; color: var(--heading); letter-spacing: -.02em; margin-top: 16px; }
.pd-price.sold { color: var(--gray-400); text-decoration: line-through; }
.pd-actions { display: grid; gap: 10px; margin-top: 20px; }
.pd-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.pd-hl { padding: 12px; border-radius: 12px; background: var(--gray-50); border: 1px solid var(--gray-200); min-width: 0; }
.pd-hl small { display: block; font-size: 11px; color: var(--gray-500); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.pd-hl strong { display: block; font-size: 13.5px; color: var(--heading); margin-top: 3px; overflow-wrap: anywhere; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--gray-100); vertical-align: top; }
.spec-table th { width: 42%; color: var(--gray-500); font-weight: 600; padding-right: 16px; }
.spec-table td { color: var(--heading); font-weight: 600; overflow-wrap: anywhere; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.note-box { padding: 16px 18px; border-radius: 12px; background: var(--amber-50); border: 1px solid #f7dfb5; color: #5d3604; font-size: 14px; }
.note-box strong { display: block; margin-bottom: 4px; color: #4d2d03; }

/* ---------- About / contact ---------- */
.about-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.steps { display: grid; gap: 14px; counter-reset: step; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 18px; background: var(--surface); border: 1px solid var(--gray-200); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--navy-900); color: #fff; font-weight: 800; font-size: 14px; }
.step h3 { font-size: 15px; margin-bottom: 4px; }
.step p { color: var(--gray-600); font-size: 14px; }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--surface); border: 1px solid var(--gray-200); border-radius: var(--radius); }
.contact-item i.ci { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); flex: none; }
.contact-item small { display: block; font-size: 12px; color: var(--gray-500); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.contact-item strong, .contact-item a.val { display: block; color: var(--heading); font-weight: 700; margin-top: 2px; overflow-wrap: anywhere; }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.faq details { border-bottom: 1px solid var(--gray-200); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--heading); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--gray-400); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--gray-600); font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #93a3bf; font-size: 14px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 0 40px; }
.site-footer h3 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #b8c4d9; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { background: var(--blue-600); }
.site-footer .brand-sub { color: #7f90ad; }
.footer-about { margin-top: 16px; max-width: 340px; line-height: 1.7; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { margin-top: 4px; color: #6f86ad; width: 16px; text-align: center; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #7586a3; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.page > main { flex: 1; }

/* ---------- Toast & modal ---------- */
.toast-wrap { position: fixed; z-index: 2000; right: 20px; bottom: 20px; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--navy-950); color: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14px; animation: toastIn .25s ease; }
.toast i { margin-top: 3px; }
.toast.success i { color: #4fd18b; }
.toast.error { background: #3b0d0d; }
.toast.error i { color: #ff8a8a; }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: all .25s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

.modal-backdrop { position: fixed; inset: 0; z-index: 1500; background: rgba(6,18,41,.55); display: grid; place-items: center; padding: 20px; animation: fadeIn .15s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: var(--radius-lg); width: 100%; max-width: 460px; box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-lg { max-width: 760px; }
.modal-head { padding: 20px 24px 0; }
.modal-head h2 { font-size: 18px; }
.modal-body { padding: 14px 24px 22px; color: var(--gray-600); font-size: 14px; max-height: 70vh; overflow: auto; }
.modal-foot { padding: 16px 24px; background: var(--gray-50); border-top: 1px solid var(--gray-200); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.lightbox img { width: 100%; max-height: 72vh; object-fit: contain; background: var(--gray-100); border-radius: 10px; }

/* =====================================================================
   QUALITY CONTROL
   ===================================================================== */
.qc-sysinfo { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.sys-item { padding: 14px; background: var(--surface); border: 1px solid var(--gray-200); border-radius: 12px; min-width: 0; }
.sys-item small { display: block; font-size: 11px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .06em; }
.sys-item strong { display: block; margin-top: 4px; color: var(--heading); font-size: 14px; overflow-wrap: anywhere; }
.qc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 24px; }
.qc-nav { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 8px; }
.qc-nav-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--gray-200); text-align: left; transition: border-color .15s, box-shadow .15s; }
.qc-nav-btn:hover { border-color: var(--gray-300); }
.qc-nav-btn[aria-selected="true"] { border-color: var(--blue-600); box-shadow: 0 0 0 1px var(--blue-600); background: var(--blue-50); }
.qc-nav-btn .qi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--navy-900); color: #fff; font-size: 14px; flex: none; }
.qc-nav-btn .qt { flex: 1; min-width: 0; }
.qc-nav-btn .qt strong { display: block; font-size: 14px; color: var(--heading); }
.qc-nav-btn .qt span { display: block; font-size: 12px; }
.st-untested { color: var(--gray-500); }
.st-testing { color: var(--blue-600); }
.st-pass { color: var(--green-700); }
.st-fail { color: var(--red-700); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.st-untested { background: var(--gray-100); }
.status-pill.st-testing { background: var(--blue-50); }
.status-pill.st-testing::before { animation: pulse 1.2s infinite; }
.status-pill.st-pass { background: var(--green-50); }
.status-pill.st-fail { background: var(--red-50); }
@keyframes pulse { 50% { opacity: .3; } }
.qc-panel { min-width: 0; }
.qc-panel > .card { overflow: hidden; }
.qc-panel-head { padding: 22px 24px; border-bottom: 1px solid var(--gray-200); display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.qc-panel-head h2 { font-size: 20px; }
.qc-panel-head p { color: var(--gray-500); font-size: 14px; margin-top: 4px; max-width: 640px; }
.qc-verdict { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 24px; border-top: 1px solid var(--gray-200); background: var(--gray-25); }
.qc-verdict .vq { font-size: 14px; font-weight: 700; color: var(--heading); }
.qc-note { width: 100%; }
.qc-stage { background: var(--navy-950); color: #c5d0e3; padding: 24px; }
.qc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.qc-stat { padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); min-width: 0; }
.qc-stat small { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #8696b3; }
.qc-stat strong { display: block; font-size: 20px; color: #fff; margin-top: 2px; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress { height: 8px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3b82f6, #22d3ee, #4ade80); border-radius: inherit; transition: width .2s; }
.progress.light { background: var(--gray-200); }

/* Keyboard */
.kb-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 14px; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: #b5c1d6; font-size: 13px; font-weight: 700; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--heading); }
.kb-wrap { overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.kb { --u: 40px; --g: 5px; display: inline-flex; gap: 18px; padding: 16px; border-radius: 16px; background: #0b1730; border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); user-select: none; }
.kb-block { display: flex; flex-direction: column; gap: var(--g); }
.kb-row { display: flex; gap: var(--g); min-height: var(--u); }
.kb-row.spacer-row { min-height: calc(var(--u) * .35); }
.key {
  --w: 1; --hue: 210;
  width: calc(var(--u) * var(--w) + var(--g) * (var(--w) - 1)); height: var(--u);
  border-radius: 7px; border: 1px solid rgba(255,255,255,.1); background: #17243f;
  color: #7f8fab; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  text-align: center; line-height: 1.05; padding: 2px; flex: none; position: relative;
  transition: background .12s, color .12s, box-shadow .12s, transform .05s; white-space: pre-line;
}
.key.gap { visibility: hidden; }
.key.tall { height: calc(var(--u) * 2 + var(--g)); }
.key.half { height: calc((var(--u) - var(--g)) / 2); font-size: 9px; }
.key::after { content: ""; position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.12); }
.key.done { background: hsl(var(--hue) 85% 52% / .22); border-color: hsl(var(--hue) 90% 60% / .65); color: #fff; box-shadow: 0 0 14px -2px hsl(var(--hue) 95% 58% / .55), inset 0 0 0 1px hsl(var(--hue) 90% 60% / .35); }
.key.done::after { background: hsl(var(--hue) 95% 62%); box-shadow: 0 0 6px hsl(var(--hue) 95% 62%); }
.key.down { background: hsl(var(--hue) 90% 55%); color: #fff; transform: translateY(1px); box-shadow: 0 0 22px hsl(var(--hue) 95% 58% / .9); }
.kb-half-stack { display: flex; flex-direction: column; gap: var(--g); }
.kb-last { margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kb-extra { margin-top: 12px; font-size: 13px; color: #8f9fbb; }
.kb-extra code { font-family: var(--mono); background: rgba(255,255,255,.08); padding: 2px 6px; border-radius: 5px; color: #dbe5f5; margin: 2px; display: inline-block; }
.capture-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.capture-badge.on { background: rgba(74,222,128,.15); color: #6ee7a0; }
.capture-badge.off { background: rgba(255,255,255,.08); color: #b5c1d6; }
.capture-badge.on::before, .capture-badge.off::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.capture-badge.on::before { animation: pulse 1.2s infinite; }

/* Dead pixel */
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.swatch { aspect-ratio: 16 / 10; border-radius: 12px; border: 1px solid rgba(255,255,255,.15); display: flex; align-items: flex-end; padding: 10px 12px; font-weight: 800; font-size: 13px; transition: transform .15s, box-shadow .15s; }
.swatch:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.6); }
.swatch span { background: rgba(0,0,0,.55); color: #fff; padding: 3px 8px; border-radius: 6px; }
.pixel-overlay { position: fixed; inset: 0; z-index: 3000; cursor: none; }
.pixel-overlay.show-ui { cursor: default; }
.pixel-hint { position: absolute; left: 50%; top: 24px; transform: translateX(-50%); background: rgba(10,16,28,.82); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: opacity .3s; pointer-events: none; }
.pixel-ctrl { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; gap: 8px; padding: 8px; background: rgba(10,16,28,.82); border-radius: 14px; transition: opacity .3s; }
.pixel-ctrl .btn { height: 38px; }
.pixel-overlay:not(.show-ui) .pixel-ctrl, .pixel-overlay:not(.show-ui) .pixel-hint { opacity: 0; pointer-events: none; }
.pixel-name { color: #fff; font-weight: 800; font-size: 13px; align-self: center; padding: 0 10px; min-width: 76px; text-align: center; }

/* Speaker */
.spk-stage { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 20px 0 8px; }
.spk { display: grid; place-items: center; gap: 12px; text-align: center; }
.spk-cone { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; position: relative; background: radial-gradient(circle at 50% 50%, #22345a 0 28%, #121f3b 29% 60%, #0c1730 61%); border: 2px solid rgba(255,255,255,.08); color: #7f8fab; font-size: 26px; transition: color .2s, box-shadow .2s; }
.spk-cone::before, .spk-cone::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(59,130,246,.0); }
.spk.active .spk-cone { color: #fff; box-shadow: 0 0 40px -6px rgba(59,130,246,.8); }
.spk.active .spk-cone::before { animation: ring 1.2s infinite; }
.spk.active .spk-cone::after { animation: ring 1.2s .6s infinite; }
@keyframes ring { from { inset: -6px; border-color: rgba(96,165,250,.7); } to { inset: -34px; border-color: rgba(96,165,250,0); } }
.spk strong { color: #fff; }
.spk small { font-size: 12px; color: #8696b3; }
.spk-center { text-align: center; font-size: 13px; color: #8696b3; }
.spk-center .big { font-family: var(--mono); font-size: 18px; color: #fff; }
.ctrl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.qc-controls { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 18px; font-size: 13px; }
.qc-controls label { display: flex; align-items: center; gap: 10px; color: #b5c1d6; font-weight: 600; }
.qc-controls .select, .qc-controls .input { background: #13213f; border-color: rgba(255,255,255,.14); color: #fff; height: 36px; font-size: 13px; }
.qc-controls .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23aab6cc' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.qc-controls input[type="range"] { width: 140px; accent-color: #3b82f6; }
.confirm-list { display: grid; gap: 10px; margin-top: 4px; }
.confirm-list .check { font-weight: 600; }

/* Mic & camera */
.meter { height: 18px; border-radius: 8px; background: #0b1730; border: 1px solid rgba(255,255,255,.1); overflow: hidden; position: relative; }
.meter > span { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #22c55e 0%, #84cc16 60%, #f59e0b 80%, #ef4444 100%); background-size: 100vw 100%; transition: width .05s linear; }
.meter > i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--surface); left: 0; opacity: .8; }
.wave { width: 100%; height: 150px; border-radius: 12px; background: #0b1730; border: 1px solid rgba(255,255,255,.08); margin-top: 14px; }
.media-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #b5c1d6; }
.media-status .dot { width: 9px; height: 9px; border-radius: 50%; background: #64748b; }
.media-status.live .dot { background: #ef4444; animation: pulse 1.2s infinite; }
.media-status.ok .dot { background: #22c55e; }
.media-status.err .dot { background: #f59e0b; }
.cam-box { position: relative; aspect-ratio: 16 / 9; background: #050b18; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); display: grid; place-items: center; }
.cam-box video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.cam-box video.mirror { transform: scaleX(-1); }
.cam-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #6f80a0; font-size: 14px; padding: 20px; }
.cam-placeholder i { font-size: 34px; margin-bottom: 10px; display: block; }
.cam-live-tag { position: absolute; left: 12px; top: 12px; background: rgba(239,68,68,.92); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 6px; letter-spacing: .06em; }
.cam-res { position: absolute; right: 12px; top: 12px; background: rgba(6,18,41,.75); color: #fff; font-size: 12px; font-family: var(--mono); padding: 3px 9px; border-radius: 6px; }
.captures { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.capture { border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: #0b1730; }
.capture img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.capture a { display: block; text-align: center; font-size: 12px; font-weight: 700; padding: 7px; color: #a8c8ff; }
.rec-box { margin-top: 16px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rec-box audio { height: 40px; max-width: 100%; }

/* Summary */
.sum-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sum-table th, .sum-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.sum-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-500); background: var(--gray-25); }
.sum-table td.actions { white-space: nowrap; text-align: right; }
.report-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.print-only { display: none; }

/* =====================================================================
   LOGIN
   ===================================================================== */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--surface); }
.auth-side { background: var(--navy-950); color: #b9c4d8; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; right: -160px; bottom: -160px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(59,130,246,.28), transparent 70%); }
.auth-side h2 { color: #fff; font-size: 28px; max-width: 420px; }
.auth-side p { margin-top: 12px; max-width: 420px; }
.auth-side .brand { color: #fff; }
.auth-side .brand-mark { background: var(--blue-600); }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 26px; }
.caps-warn { font-size: 12px; color: var(--amber-700); font-weight: 600; }

/* =====================================================================
   ADMIN
   ===================================================================== */
.admin-body { background: var(--gray-50); }
.admin-body.is-booting .admin-shell { visibility: hidden; }
.boot-screen { position: fixed; inset: 0; display: grid; place-items: center; background: var(--gray-50); z-index: 100; color: var(--gray-500); font-weight: 600; }
.admin-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--navy-950); color: #9fb0cc; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 14px; overflow-y: auto; }
.sidebar .brand { color: #fff; padding: 6px 8px 18px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 14px; }
.sidebar .brand-mark { background: var(--blue-600); }
.sidebar .brand-sub { color: #7184a5; }
.side-label { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #5f7193; padding: 14px 12px 8px; }
.side-nav { display: grid; gap: 2px; }
.side-nav a, .side-nav button { display: flex; align-items: center; gap: 12px; width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; border: 0; background: transparent; color: #b3c0d6; font-size: 14px; font-weight: 600; text-align: left; }
.side-nav a i, .side-nav button i { width: 18px; text-align: center; color: #6f84a8; }
.side-nav a:hover, .side-nav button:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a[aria-current="page"] { background: var(--blue-600); color: #fff; }
.side-nav a[aria-current="page"] i { color: #fff; }
.side-nav .count { margin-left: auto; font-size: 11px; font-weight: 800; background: rgba(255,255,255,.12); color: #fff; padding: 2px 8px; border-radius: 999px; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 13px; color: #cfd8e7; }
.side-user .avatar { background: rgba(255,255,255,.1); color: #fff; width: 34px; height: 34px; font-size: 13px; }
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; height: 64px; background: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 28px; }
.topbar h1 { font-size: 18px; letter-spacing: -.01em; }
.topbar .sub { font-size: 12px; color: var(--gray-500); }
.admin-content { padding: 28px; display: grid; gap: 24px; align-content: start; }
.sidebar-toggle { display: none; }
.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.stat .stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat .stat-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; }
.stat small { font-size: 12px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; }
.stat strong { font-size: 28px; color: var(--heading); letter-spacing: -.02em; line-height: 1; }
.ic-blue { background: var(--blue-50); color: var(--blue-600); }
.ic-green { background: var(--green-50); color: var(--green-700); }
.ic-red { background: var(--red-50); color: var(--red-700); }
.ic-amber { background: var(--amber-50); color: var(--amber-700); }
.ic-navy { background: var(--navy-900); color: #fff; }

.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.table thead th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-500); font-weight: 700; background: var(--gray-25); white-space: nowrap; }
.table tbody tr:hover { background: var(--gray-25); }
.table .t-thumb { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; border: 1px solid var(--gray-200); background: var(--gray-100); }
.table .t-title { font-weight: 700; color: var(--heading); display: block; max-width: 320px; }
.table .t-sub { font-size: 12px; color: var(--gray-500); }
.table td.actions { white-space: nowrap; text-align: right; }
.table td.actions .btn { margin-left: 4px; }
.table-empty { padding: 40px 16px !important; text-align: center; color: var(--gray-500); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-bar .search-box { max-width: 320px; }
.filter-bar .select { width: auto; min-width: 150px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--gray-200); font-size: 13px; color: var(--gray-500); flex-wrap: wrap; }
.pager .pagination { margin: 0; }
.pager .pagination button { min-width: 34px; height: 34px; font-size: 13px; border-radius: 8px; }
.form-section { display: grid; gap: 18px; }
.form-section + .form-section { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--gray-200); }
.form-section > h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); }
.sticky-actions { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 14px 24px; background: var(--header-bg); border-top: 1px solid var(--gray-200); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.preview-box { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--navy-900); border: 1px solid var(--gray-200); }
.preview-box .pv-img { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; }
.preview-box .pv-shade { position: absolute; inset: 0; pointer-events: none; }
.preview-box .pv-label { position: absolute; left: 14px; bottom: 12px; color: #fff; font-weight: 800; font-size: 14px; z-index: 1; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.preview-box .pv-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #7d8fae; font-size: 13px; }
.banner-editor { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.testi-editor { display: grid; gap: 14px; }
.testi-row { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 16px; background: var(--gray-25); }
.list-compact { list-style: none; display: grid; }
.list-compact li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--gray-100); font-size: 14px; align-items: center; }
.list-compact li:last-child { border-bottom: 0; }
.list-compact .lc-main { min-width: 0; }
.list-compact .lc-main strong { display: block; color: var(--heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-photos { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.offer-photos button { padding: 0; border: 1px solid var(--gray-200); border-radius: 7px; overflow: hidden; width: 40px; height: 40px; background: var(--gray-100); }
.offer-photos img { width: 100%; height: 100%; object-fit: cover; }
.view { display: none; }
.view.is-active { display: grid; gap: 24px; }
.sidebar-backdrop { display: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qc-sysinfo { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav, .header-actions .admin-link { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0 60px; gap: 32px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; width: min(340px, 88vw); z-index: 60; transform: translateX(-102%); transition: transform .25s; top: 0; border-radius: 0; overflow-y: auto; }
  .filters.is-open { transform: none; box-shadow: var(--shadow-lg); }
  .filters .card { border-radius: 0; min-height: 100%; border: 0; }
  .filter-toggle { display: inline-flex; }
  .filters-backdrop { position: fixed; inset: 0; background: rgba(6,18,41,.45); z-index: 55; }
  .pd-layout { grid-template-columns: 1fr; }
  .pd-info { position: static; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .banner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qc-promo { grid-template-columns: 1fr; padding: 32px; }
  .about-split { grid-template-columns: 1fr; gap: 32px; }
  .testi-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .qc-layout { grid-template-columns: 1fr; }
  .qc-nav { position: static; display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: thin; }
  .qc-nav-btn { width: auto; flex: none; padding: 10px 12px; }
  .qc-nav-btn .qi { width: 30px; height: 30px; font-size: 12px; }
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 80; transform: translateX(-102%); transition: transform .25s; }
  .admin-body.sidebar-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .admin-body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(6,18,41,.45); z-index: 70; }
  .sidebar-toggle { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .admin-content { padding: 20px 16px; }
  .banner-editor { grid-template-columns: 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .section { padding: 52px 0; }
  .container { padding: 0 16px; }
  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .p-body { padding: 12px 12px 14px; gap: 8px; }
  .p-title { font-size: 14px; }
  .p-specs { font-size: 12px; }
  .p-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .price { font-size: 16px; }
  .p-badges { top: 8px; left: 8px; right: 8px; }
  .p-badges .badge { height: 22px; font-size: 10px; padding: 0 7px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .banner-grid { grid-template-columns: 1fr; }
  .testi-track { grid-auto-columns: 88%; gap: 14px; }
  .form-grid { gap: 14px; }
  .col-8, .col-6, .col-4, .col-3 { grid-column: span 12; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 28px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qc-sysinfo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kb-last { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ctrl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spk-stage { grid-template-columns: 1fr 1fr; }
  .spk-center { grid-column: 1 / -1; order: 3; }
  .spk-cone { width: 96px; height: 96px; }
  .qc-stage { padding: 18px; }
  .qc-panel-head, .qc-verdict { padding-left: 18px; padding-right: 18px; }
  .card-body, .card-pad { padding: 18px; }
  .card-head { padding: 16px 18px; }
  .pd-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-meta { grid-template-columns: 1fr; }
  .toolbar .search-box { max-width: none; min-width: 0; flex-basis: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }
  .brand-sub { display: none; }
  .topbar .sub { display: none; }
  .modal-foot .btn { flex: 1; }

  /* Tabel admin jadi kartu */
  .table.responsive thead { display: none; }
  .table.responsive, .table.responsive tbody, .table.responsive tr, .table.responsive td { display: block; width: 100%; }
  .table.responsive tr { border-bottom: 1px solid var(--gray-200); padding: 12px 4px; }
  .table.responsive td { border: 0; padding: 6px 14px; display: flex; gap: 12px; justify-content: space-between; align-items: center; text-align: right; }
  .table.responsive td::before { content: attr(data-label); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); text-align: left; flex: none; }
  .table.responsive td.td-main { display: block; text-align: left; }
  .table.responsive td.td-main::before { display: none; }
  .table.responsive td.actions { justify-content: flex-end; flex-wrap: wrap; }
  .table.responsive td.actions::before { margin-right: auto; }
  .table.responsive .t-title { max-width: none; }
  .sum-table thead { display: none; }
  .sum-table, .sum-table tbody, .sum-table tr, .sum-table td { display: block; width: 100%; }
  .sum-table tr { padding: 10px 0; border-bottom: 1px solid var(--gray-200); }
  .sum-table td { border: 0; padding: 6px 16px; text-align: left !important; }
}
@media (max-width: 380px) {
  .product-grid, .product-grid.cols-3 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   PRINT (laporan QC)
   ===================================================================== */
@media print {
  @page { margin: 16mm; }
  body { background: var(--surface); font-size: 12px; color: #000; }
  .site-header, .site-footer, .page-hero, .qc-nav, .qc-sysinfo, .no-print, .toast-wrap, .skip-link { display: none !important; }
  .qc-layout { display: block; margin: 0; }
  .qc-panel { display: none !important; }
  .qc-panel#panel-summary { display: block !important; }
  .card { border: 0; box-shadow: none; }
  .print-only { display: block; }
  .sum-table th, .sum-table td { padding: 8px 6px; border-bottom: 1px solid #ccc; }
  .status-pill { border: 1px solid #999; background: none !important; }
  .container { max-width: none; padding: 0; }
  .section { padding: 0; }
  a { color: #000; }
}

/* ---------- Tambahan utilitas ---------- */
@media (max-width: 960px) { .hide-md { display: none !important; } }
@media (min-width: 961px) { .show-md { display: none !important; } }
.cta-band { background: var(--navy-950); border-radius: var(--radius-xl); padding: 40px 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: #b9c4d8; }
.cta-band h2 { color: #fff; font-size: clamp(22px, 2.6vw, 28px); }
.cta-band p { margin-top: 8px; max-width: 560px; }
.cta-band .row { gap: 10px; }
@media (max-width: 720px) { .cta-band { padding: 28px 22px; } .cta-band .row, .cta-band .row .btn { width: 100%; } }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 14px; }
.kv dt { color: var(--gray-500); font-weight: 600; }
.kv dd { margin: 0; color: var(--heading); font-weight: 600; overflow-wrap: anywhere; }
.split-contact { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; }
.split-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; }
@media (max-width: 960px) { .split-contact, .split-hero { grid-template-columns: 1fr; } }
.kb.abs { display: block; position: relative; padding: 0; }
.kb.abs .key { position: absolute; font-size: inherit; }
.key.na { border-style: dashed; opacity: .45; }
.key.na::after { display: none; }
kbd { font-family: var(--mono); font-size: 12px; background: var(--gray-100); border: 1px solid var(--gray-300); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; }
/* Item grid tidak boleh melebar karena konten panjang (mencegah horizontal scroll) */
.grid > *, .qc-layout > *, .catalog-layout > *, .pd-layout > *, .about-split > *, .admin-content > *, .view > *, .form-grid > *, .stat-grid > * { min-width: 0; }
.list-compact > li { min-width: 0; }
.list-compact li .badge { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.qc-panel-head .capture-badge.off { background: var(--gray-100); color: var(--gray-600); }
.qc-panel-head .capture-badge.on { background: var(--green-50); color: var(--green-700); }
.qc-panel-head .media-status { color: var(--gray-600); }
@media (min-width: 961px) { .admin-shell { background: linear-gradient(90deg, var(--navy-950) 252px, var(--gray-50) 252px); } }
.pd-layout { grid-template-areas: "gal info" "spec info"; row-gap: 24px; }
.pd-gallery { grid-area: gal; min-width: 0; }
.pd-specs { grid-area: spec; min-width: 0; }
.pd-info { grid-area: info; align-self: start; }
@media (max-width: 960px) { .pd-layout { grid-template-areas: "gal" "info" "spec"; } }

/* =====================================================================
   MODE GELAP  (html[data-theme="dark"])
   Diaktifkan lewat tombol bulan/matahari; default mengikuti sistem.
   ===================================================================== */
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #0f1b31;
  --heading: #f1f5fb;
  --header-bg: rgba(10, 20, 38, .9);
  --gray-0: #0f1b31;
  --gray-25: #12203a;
  --gray-50: #09121f;
  --gray-100: #172742;
  --gray-200: #213453;
  --gray-300: #2e4569;
  --gray-400: #6b80a4;
  --gray-500: #96a6c1;
  --gray-600: #b4c1d6;
  --gray-700: #ccd6e5;
  --gray-800: #dfe6f0;
  --gray-900: #eef2f8;
  --blue-50: rgba(59, 130, 246, .14);
  --blue-100: rgba(59, 130, 246, .3);
  --blue-700: #7fb0ff;
  --green-50: rgba(34, 197, 94, .14);
  --green-700: #5ee08f;
  --red-50: rgba(239, 68, 68, .15);
  --red-700: #ff8a8a;
  --amber-50: rgba(245, 158, 11, .15);
  --amber-700: #fbbf24;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px -10px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .75);
  --ring: 0 0 0 3px rgba(96, 165, 250, .35);
}
:root[data-theme="dark"] ::selection { background: rgba(59, 130, 246, .45); color: #fff; }
:root[data-theme="dark"] .btn-primary:hover { background: #2f78f0; }
:root[data-theme="dark"] .site-header .brand-mark,
:root[data-theme="dark"] .step::before,
:root[data-theme="dark"] .qc-nav-btn .qi { background: var(--blue-600); }
:root[data-theme="dark"] .pagination button[aria-current="page"] { background: var(--blue-600); border-color: var(--blue-600); }
:root[data-theme="dark"] .nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 #60a5fa; }
:root[data-theme="dark"] .p-badges .badge-ready,
:root[data-theme="dark"] .p-badges .badge-sold,
:root[data-theme="dark"] .p-badges .badge-gray { background-color: rgba(9, 18, 31, .88); }
:root[data-theme="dark"] .gallery-nav { background: rgba(15, 27, 49, .92); border-color: var(--gray-300); }
:root[data-theme="dark"] .seg button[aria-pressed="true"] { background: #fff; color: #061229; }
:root[data-theme="dark"] .skeleton::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); }
:root[data-theme="dark"] .alert-info { border-color: rgba(59, 130, 246, .35); color: #c7dbff; }
:root[data-theme="dark"] .alert-warn { border-color: rgba(245, 158, 11, .35); color: #fcd88a; }
:root[data-theme="dark"] .alert-error { border-color: rgba(239, 68, 68, .4); }
:root[data-theme="dark"] .alert-success { border-color: rgba(34, 197, 94, .35); }
:root[data-theme="dark"] .note-box { background: var(--amber-50); border-color: rgba(245, 158, 11, .35); color: #fcd88a; }
:root[data-theme="dark"] .note-box strong { color: #fde9b5; }
:root[data-theme="dark"] .btn-danger-soft { border-color: rgba(239, 68, 68, .4); }
:root[data-theme="dark"] .btn-danger-soft:hover { background: rgba(239, 68, 68, .25); }
:root[data-theme="dark"] .cta-band,
:root[data-theme="dark"] .qc-promo,
:root[data-theme="dark"] .page-hero,
:root[data-theme="dark"] .hero { border-bottom: 1px solid var(--gray-200); }
:root[data-theme="dark"] .cta-band, :root[data-theme="dark"] .qc-promo { border: 1px solid var(--gray-200); }
:root[data-theme="dark"] .site-footer { border-top: 1px solid var(--gray-200); }
:root[data-theme="dark"] .modal-backdrop, :root[data-theme="dark"] .filters-backdrop { background: rgba(0, 0, 0, .65); }
:root[data-theme="dark"] img[src*="placeholder-laptop"] { opacity: .85; }
:root[data-theme="dark"] .toast { border: 1px solid var(--gray-200); }

/* Tombol ganti tema */
.theme-toggle i { font-size: 15px; }
.theme-toggle .fa-sun { color: #fbbf24; }
.auth-theme { position: absolute; top: 18px; right: 18px; }
.auth-main { position: relative; }

/* Laporan QC selalu dicetak dengan warna terang */
@media print {
  :root[data-theme="dark"] {
    --surface: #fff; --heading: #061229; --gray-0: #fff; --gray-25: #fafbfd; --gray-50: #f5f7fa; --gray-100: #eef1f6;
    --gray-200: #e3e8ef; --gray-300: #cdd5e0; --gray-500: #6b778a; --gray-600: #4d586b; --gray-700: #36404f; --gray-800: #222a36;
    --green-50: #e9f8f0; --green-700: #0f7a43; --red-50: #fdeeee; --red-700: #b42323; --blue-50: #eff5ff; --amber-50: #fff5e6; --amber-700: #a35a06;
  }
  .theme-toggle { display: none !important; }
}

/* =====================================================================
   v3.2 — Kontak WhatsApp, tombol melayang, sosial media, hero penuh
   ===================================================================== */
/* Ikon sosial (footer) */
.social-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 16px; transition: transform .15s, background .15s, border-color .15s; }
.social-icon:hover { color: #fff; transform: translateY(-2px); }
.social-icon.social-facebook:hover { background: #1877f2; border-color: #1877f2; }
.social-icon.social-instagram:hover { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); border-color: transparent; }
.social-icon.social-tiktok:hover { background: #000; border-color: #25f4ee; box-shadow: 2px 2px 0 #fe2c55; }
.social-icon.social-tokopedia:hover { background: #03ac0e; border-color: #03ac0e; }
.social-icon.social-shopee:hover { background: #ee4d2d; border-color: #ee4d2d; }
.social-btn .fa-facebook-f { color: #1877f2; }
.social-btn .fa-instagram { color: #e1306c; }
.social-btn .fa-tiktok { color: var(--heading); }

/* Status buka / tutup */
.open-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-top: 6px; }
.open-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.open-status.is-open { color: var(--green-700); background: var(--green-50); }
.open-status.is-open::before { animation: pulse 1.6s infinite; }
.open-status.is-closed { color: var(--amber-700); background: var(--amber-50); }
.site-footer .open-status.is-open { color: #5ee08f; background: rgba(34,197,94,.14); }
.site-footer .open-status.is-closed { color: #fbbf24; background: rgba(245,158,11,.14); }

/* Tombol WhatsApp melayang */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: flex; align-items: center; gap: 12px; }
.wa-btn { position: relative; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 32px; box-shadow: 0 12px 28px -8px rgba(37,211,102,.7), 0 2px 6px rgba(0,0,0,.18); transition: transform .15s, background .15s; }
.wa-btn:hover { color: #fff; background: #1ebe5a; transform: scale(1.06); }
.wa-btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: waPulse 2.2s ease-out infinite; }
@keyframes waPulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.55); opacity: 0; } }
.wa-tip { display: grid; gap: 1px; background: var(--surface); color: var(--heading); border: 1px solid var(--gray-200); padding: 9px 14px; border-radius: 12px; box-shadow: var(--shadow); font-size: 12px; line-height: 1.35; opacity: 0; transform: translateX(8px); transition: opacity .2s, transform .2s; pointer-events: none; white-space: nowrap; }
.wa-tip strong { font-size: 13px; }
.wa-tip span { color: var(--gray-500); }
.wa-float:hover .wa-tip, .wa-btn:focus-visible + .wa-tip { opacity: 1; transform: none; }
.has-wa-float .toast-wrap { bottom: 96px; }
@media (max-width: 720px) { .wa-float { right: 14px; bottom: 14px; } .wa-btn { width: 54px; height: 54px; font-size: 28px; } .wa-tip { display: none; } .has-wa-float .toast-wrap { bottom: 84px; right: 14px; } }
@media print { .wa-float { display: none !important; } }

/* Header transparan di atas hero beranda (menjadi solid saat digulir / menu dibuka) */
.site-header.is-overlay { transition: background .25s, border-color .25s, box-shadow .25s; }
.site-header.is-overlay:not(.is-solid):not(.is-open) { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.is-overlay:not(.is-solid):not(.is-open) .brand,
.site-header.is-overlay:not(.is-solid):not(.is-open) .brand-name { color: #fff; }
.site-header.is-overlay:not(.is-solid):not(.is-open) .brand-sub { color: rgba(255,255,255,.7); }
.site-header.is-overlay:not(.is-solid):not(.is-open) .brand-mark { background: var(--blue-600); }
.site-header.is-overlay:not(.is-solid):not(.is-open) .nav a { color: rgba(255,255,255,.86); }
.site-header.is-overlay:not(.is-solid):not(.is-open) .nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.site-header.is-overlay:not(.is-solid):not(.is-open) .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.12); box-shadow: inset 0 -2px 0 #7fb0ff; }
.site-header.is-overlay:not(.is-solid):not(.is-open) .btn-ghost { color: rgba(255,255,255,.88); }
.site-header.is-overlay:not(.is-solid):not(.is-open) .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.site-header.is-overlay:not(.is-solid):not(.is-open) .menu-toggle { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.3); }

/* Hero layar penuh: wallpaper tampil utuh dari atas, di belakang menu transparan */
.hero.hero-full { margin-top: calc(-1 * var(--header-h) - 1px); min-height: max(600px, 100svh); display: flex; align-items: center; }
.hero.hero-full > .container { width: 100%; }
.hero.hero-full .hero-inner { padding: calc(var(--header-h) + 48px) 0 72px; }
.hero.hero-full::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 160px; background: linear-gradient(180deg, rgba(6,18,41,.6), transparent); z-index: 1; pointer-events: none; }
.hero.hero-full .hero-overlay { background: linear-gradient(90deg, rgba(6,18,41,.88) 0%, rgba(6,18,41,.6) 45%, rgba(6,18,41,.15) 100%); }
.hero.hero-full .container { z-index: 2; }
.hero h1, .hero p.hero-text { text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.75); font-size: 12px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hero-scroll i { animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }
@media (max-width: 960px) { .hero.hero-full { min-height: auto; } .hero.hero-full .hero-inner { padding: calc(var(--header-h) + 36px) 0 56px; } .hero-scroll { display: none; } }

/* ---------- Halaman kebijakan & FAQ (v3.4) ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal-meta { font-size: 13px; color: var(--gray-500, #6b7588); margin-bottom: 18px; display: flex; gap: 8px; align-items: center; }
.legal h2 { font-size: 21px; margin: 40px 0 12px; scroll-margin-top: 96px; }
.legal p { color: var(--gray-600); margin: 10px 0; line-height: 1.75; }
.legal ul, .legal ol { padding-left: 22px; margin: 10px 0; color: var(--gray-600); line-height: 1.75; }
.legal li { margin: 6px 0; }
.legal li::marker { color: var(--blue-600); }
.legal strong { color: var(--heading); }
.legal-toc { margin: 8px 0 8px; }
.legal-toc strong { display: block; margin-bottom: 6px; }
.legal-toc ol { margin: 0; columns: 2; column-gap: 28px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border: 1px solid var(--gray-200); vertical-align: top; color: var(--gray-600); }
.legal-table th { background: var(--gray-25, #f7f9fc); color: var(--heading); font-weight: 700; }
.legal .faq-group { margin-top: 36px; }
.legal .faq-group:first-child { margin-top: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-links a { color: inherit; }
.footer-links a:hover { color: #fff; }
.form-note { font-size: 12.5px; color: var(--gray-500, #6b7588); margin-top: 8px; text-align: center; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } .legal-table { font-size: 13px; } .legal-table th, .legal-table td { padding: 8px; } }

/* ---------- Halaman alat tes satuan (v3.5) ---------- */
.tool-link { color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.tool-link:hover { border-color: var(--blue-600); transform: translateY(-2px); }
.tool-link p { color: var(--gray-600); }

/* =====================================================================
   PESAN SELAMAT DATANG / POPUP PROMO (v3.6) — assets/js/popup.js
   ===================================================================== */
.wp-root { position: relative; z-index: 1200; }
.wp-backdrop { position: fixed; inset: 0; background: rgba(6, 18, 41, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s ease; z-index: 1200; }
.wp-root.is-open .wp-backdrop { opacity: 1; }
html.wp-lock { overflow: hidden; }
.wp { position: fixed; z-index: 1201; font-family: var(--font); }
.wp-card { position: relative; background: var(--surface); color: var(--gray-700); border: 1px solid var(--gray-200); box-shadow: var(--shadow-lg); overflow: hidden; }
.wp-close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 34px; height: 34px; border-radius: 999px; border: 0; display: grid; place-items: center; cursor: pointer; font-size: 16px; background: rgba(6, 18, 41, .55); color: #fff; backdrop-filter: blur(4px); transition: background .15s, transform .15s; }
.wp-close:hover { background: rgba(6, 18, 41, .8); transform: scale(1.06); }
.wp-close:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 0 5px var(--blue-600); }
.wp-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.wp-label { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--blue-600); color: #fff; }
.wp-ad { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; background: #ffd34d; color: #3d2a00; }
.wp-title { font-size: 19px; line-height: 1.3; margin: 8px 0 6px; color: var(--heading); letter-spacing: -.01em; }
.wp-text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--gray-600); }
.wp-actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.wp-cta { flex: 1 1 auto; justify-content: center; }
.wp-later { border: 0; background: none; color: var(--gray-500); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; padding: 8px 6px; }
.wp-later:hover { color: var(--heading); text-decoration: underline; }

/* --- Gaya bubble: pojok kanan bawah, di atas tombol WhatsApp --- */
.wp-bubble { right: 20px; bottom: 92px; width: 340px; max-width: calc(100vw - 28px); opacity: 0; transform: translateY(16px) scale(.97); transform-origin: bottom right; transition: opacity .28s ease, transform .28s cubic-bezier(.2,.8,.2,1); }
.wp-root.is-open .wp-bubble { opacity: 1; transform: none; }
.wp-bubble .wp-card { border-radius: 18px 18px 6px 18px; }
.wp-bubble::after { content: ""; position: absolute; right: 22px; bottom: -8px; width: 16px; height: 16px; background: var(--surface); border-right: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); transform: rotate(45deg); border-bottom-right-radius: 3px; }
.wp-bubble .wp-media { position: relative; aspect-ratio: 16 / 9; background: var(--gray-100); }
.wp-bubble .wp-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wp-bubble .wp-media .wp-tags { position: absolute; left: 12px; bottom: 12px; }
.wp-bubble .wp-body { padding: 16px 18px 18px; }
.wp-from { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.25; padding-right: 30px; }
.wp-from strong { display: block; color: var(--heading); font-size: 13.5px; }
.wp-from small { color: var(--gray-500); font-size: 12px; }
.wp-avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--navy-950); color: #fff; font-size: 14px; flex: none; position: relative; }
.wp-avatar::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; border: 2px solid var(--surface); }
.wp-bubble .wp-media + .wp-body .wp-from { padding-right: 0; }
.wp-bubble .wp-body > .wp-tags { margin-top: 12px; }
.wp-bubble .wp-title { font-size: 17px; margin-top: 12px; }
.wp-bubble:not(:has(.wp-media)) .wp-close { background: var(--gray-100); color: var(--gray-600); }
.wp-bubble:not(:has(.wp-media)) .wp-close:hover { background: var(--gray-200); color: var(--heading); }

/* --- Gaya tengah: kartu besar dengan gambar promo sebagai latar --- */
.wp-center { inset: 0; display: grid; place-items: center; padding: 20px; pointer-events: none; }
.wp-center .wp-card { pointer-events: auto; width: min(520px, 100%); min-height: 420px; border-radius: 24px; border: 0; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: linear-gradient(140deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--blue-700) 100%); opacity: 0; transform: translateY(18px) scale(.96); transition: opacity .28s ease, transform .3s cubic-bezier(.2,.8,.2,1); }
.wp-root.is-open .wp-center .wp-card { opacity: 1; transform: none; }
.wp-center .wp-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.wp-center .wp-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,18,41,0) 0%, rgba(6,18,41, calc(var(--wp-ov, .55) * .6)) 40%, rgba(6,18,41, calc(var(--wp-ov, .55) + .3)) 100%); }
.wp-center:not(.has-img) .wp-shade { background: radial-gradient(120% 80% at 100% 0%, rgba(59,130,246,.35), transparent 60%); }
.wp-center .wp-body { position: relative; z-index: 2; padding: 28px; }
.wp-center .wp-title { color: #fff; font-size: clamp(22px, 3.4vw, 28px); margin-top: 12px; }
.wp-center .wp-text { color: rgba(255,255,255,.86); font-size: 15px; }
.wp-center .wp-later { color: rgba(255,255,255,.8); }
.wp-center .wp-later:hover { color: #fff; }
.wp-center .wp-cta { flex: 0 1 auto; }

/* Preview di admin: tampil di dalam kotak, bukan melayang */
.wp.is-preview { position: relative; inset: auto; right: auto; bottom: auto; opacity: 1; transform: none; padding: 0; z-index: 1; pointer-events: auto; }
.wp.is-preview .wp-card { opacity: 1; transform: none; }
.wp-center.is-preview { display: block; }
.wp-center.is-preview .wp-card { width: 100%; min-height: 380px; }
.wp-bubble.is-preview { width: 340px; margin: 0 0 10px auto; }

@media (max-width: 640px) {
  .wp-bubble { right: 12px; left: 12px; width: auto; max-width: none; bottom: 84px; }
  .wp-bubble .wp-media { aspect-ratio: 3 / 1; }
  .wp-bubble .wp-body { padding: 12px 14px 14px; }
  .wp-bubble .wp-media + .wp-body .wp-from { display: none; }
  .wp-bubble .wp-title { font-size: 15.5px; margin-top: 4px; }
  .wp-bubble .wp-text { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .wp-bubble .wp-actions { margin-top: 10px; }
  .wp-bubble .wp-cta { padding-top: 9px; padding-bottom: 9px; }
  .wp-bubble .wp-card { border-radius: 18px 18px 6px 18px; }
  .wp-center { place-items: end center; padding: 0; }
  .wp-center .wp-card { width: 100%; min-height: 0; height: auto; max-height: 78vh; border-radius: 24px 24px 0 0; transform: translateY(100%); }
  .wp-center .wp-card::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(255,255,255,.5); z-index: 3; }
  .wp-center.has-img .wp-card { padding-top: 46%; }
  .wp-center .wp-body { padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); }
  .wp-center.is-preview .wp-card { border-radius: 24px; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .wp-bubble, .wp-center .wp-card, .wp-backdrop { transition: none; } }
@media print { .wp-root { display: none !important; } }
:root[data-theme="dark"] .wp-bubble .wp-card, :root[data-theme="dark"] .wp-bubble::after { border-color: rgba(255,255,255,.08); }
.popup-preview { border-radius: var(--radius-lg); border: 1px dashed var(--gray-300); background: repeating-linear-gradient(45deg, var(--gray-50), var(--gray-50) 10px, var(--gray-100) 10px, var(--gray-100) 20px); padding: 18px; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; }
.popup-preview .pv-off { margin: auto; color: var(--gray-500); font-size: 13px; text-align: center; }

/* =====================================================================
   TEMA C — "CLEAN COMMERCE" (v4.0)
   Lapisan gaya di atas design system lama: bersih, terang, sudut membulat,
   tombol pil, aksen biru tua. Semua halaman publik & admin ikut.
   ===================================================================== */
:root {
  --ink: #111827;
  --blue-700: #1e3a8a;
  --blue-600: #1e40af;
  --blue-500: #3b6fe0;
  --blue-100: #dbe6f9;
  --blue-50: #eef3fb;
  --navy-950: #111827;
  --navy-900: #111827;
  --navy-800: #1f2937;
  --heading: #111827;
  --soft: #f6f7f9;
  --panel: #eef3fb;
  --line: #eef0f3;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --header-h: 72px;
  --container: 1240px;
  --shadow: 0 1px 2px rgba(17,24,39,.05), 0 10px 30px -12px rgba(17,24,39,.12);
  --ring: 0 0 0 3px rgba(30,64,175,.22);
}
:root[data-theme="dark"] {
  --ink: #e8edf5;
  --soft: #12203a;
  --panel: #13213b;
  --line: #213453;
  --blue-600: #5b8cf0;
  --blue-500: #7aa5f7;
  --navy-950: #0b1426;
  --navy-900: #0b1426;
}
:root:not([data-theme="dark"]) body { background: #ffffff; }
.container { padding: 0 24px; }
.section { padding: 80px 0; }
.section-white { background: transparent; border: 0; }
.h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; }
.lead { color: var(--gray-500); font-size: 16px; }
.eyebrow { letter-spacing: .06em; }
.eyebrow::before { display: none; }

/* Tombol: pil */
.btn { border-radius: 999px; font-weight: 700; }
.btn-sm, .btn-xs { border-radius: 999px; }
.btn-primary { background: var(--blue-600); }
.btn-primary:hover { background: var(--blue-700); }
:root[data-theme="dark"] .btn-primary { background: #3567d8; }
:root[data-theme="dark"] .btn-primary:hover { background: #2f5cc4; }
.btn-secondary { border: 1.5px solid var(--ink); background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--surface); }
.btn-ink:hover { background: #000; color: #fff; }
:root[data-theme="dark"] .btn-ink:hover { background: #fff; color: #0b1426; }

/* Kartu & input */
.card { border-color: var(--line); box-shadow: none; }
.input, .select, .textarea { border-radius: 12px; }
.feature-icon { border-radius: 14px; background: var(--panel); color: var(--blue-600); }

/* ---------- Header ---------- */
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--line); }
.brand-mark { background: var(--ink); border-radius: 12px; }
:root[data-theme="dark"] .site-header .brand-mark { background: var(--blue-600); }
.brand-name { font-size: 19px; }
.brand-name span { color: var(--blue-600); }
.nav { gap: 6px; }
.nav a { height: 44px; padding: 0 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink); background: transparent; }
.nav a:hover { background: var(--soft); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--soft); box-shadow: none; color: var(--ink); font-weight: 800; }
:root[data-theme="dark"] .nav a[aria-current="page"] { box-shadow: none; }
.header-actions .btn-primary { background: var(--ink); color: var(--surface); height: 44px; padding: 0 20px; font-size: 14px; }
.header-actions .btn-primary:hover { background: #000; color: #fff; }
:root[data-theme="dark"] .header-actions .btn-primary { background: #f1f5fb; color: #0b1426; }
.mobile-nav a { border-bottom-color: var(--line); color: var(--ink); }

/* ---------- Hero halaman dalam: terang ---------- */
.page-hero { background: var(--panel); color: var(--gray-600); padding: 48px 0 52px; }
.page-hero::after { display: none; }
.page-hero h1 { color: var(--ink); font-size: clamp(30px, 4vw, 44px); letter-spacing: -.035em; }
.page-hero p { color: var(--gray-600); font-size: 16.5px; }
.page-hero .breadcrumb { color: var(--gray-500); }
.page-hero .breadcrumb a { color: var(--gray-600); }
.page-hero .breadcrumb a:hover { color: var(--blue-600); }
.page-hero .breadcrumb [aria-current] { color: var(--ink); }

/* ---------- Kartu produk ---------- */
.product-grid { gap: 20px; }
.p-card { border-color: var(--line); border-radius: 24px; }
.p-card:hover { border-color: var(--gray-300); box-shadow: var(--shadow); }
.p-media { background: var(--soft); }
.p-body { padding: 18px 20px 20px; gap: 8px; }
.p-fit { font-size: 12.5px; font-weight: 800; color: var(--blue-600); }
.p-title { font-size: 16.5px; }
.p-foot { border-top: 0; padding-top: 14px; }
.p-foot .btn { height: 38px; padding: 0 16px; }
.price { font-size: 19px; }
.badge-qc { background: rgba(255,255,255,.95); color: #15803d; }
:root[data-theme="dark"] .badge-qc { background: rgba(9,18,31,.88); color: #5ee08f; }
.badge-qc::before { content: "\2713"; font-weight: 900; }
.sk-card { border-color: var(--line); border-radius: 24px; }
.state { border-color: var(--line); border-radius: 24px; }

/* ---------- Merek, banner, testimoni ---------- */
.brand-tile { border-color: var(--line); border-radius: 18px; padding: 20px; }
.brand-tile:hover { border-color: var(--ink); box-shadow: none; }
.banner { border-radius: 24px; border-color: var(--line); }
.testi { border-radius: 24px; background: var(--soft); border: 0; }

/* ---------- Footer: terang ---------- */
.site-footer { background: #fafbfc; color: var(--gray-500); border-top: 1px solid var(--line); }
:root[data-theme="dark"] .site-footer { background: #0b1426; }
.site-footer h3 { color: var(--ink); letter-spacing: 0; text-transform: none; font-size: 15px; }
.site-footer a { color: var(--gray-600); }
.site-footer a:hover { color: var(--blue-600); }
.site-footer .brand, .site-footer .brand-name { color: var(--ink); }
.site-footer .brand-mark { background: var(--ink); }
:root[data-theme="dark"] .site-footer .brand-mark { background: var(--blue-600); }
.site-footer .brand-sub { color: var(--gray-500); }
.footer-contact i { color: var(--gray-400); }
.footer-bottom { border-top-color: var(--line); color: var(--gray-500); }
.footer-links a:hover { color: var(--blue-600); }

/* ---------- Bagian umum lain ---------- */
.cta-band { border-radius: 32px; }
.qc-promo { border-radius: 32px; }
.alert { border-radius: 16px; }

/* =====================================================================
   BERANDA TEMA C
   ===================================================================== */
.c-hero { padding: 24px 0 0; }
.c-hero-panel { background: var(--panel); border-radius: 32px; padding: 56px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.c-hero h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.05; letter-spacing: -.04em; }
.c-hero .c-sub { margin-top: 18px; max-width: 500px; font-size: 18px; line-height: 1.55; color: var(--gray-600); }
.c-search { margin-top: 28px; display: flex; width: 100%; box-sizing: border-box; align-items: center; background: var(--surface); border-radius: 999px; padding: 6px; max-width: 540px; box-shadow: 0 1px 2px rgba(17,24,39,.06), 0 10px 28px rgba(30,64,175,.10); }
.c-search i { color: var(--gray-400); margin-left: 16px; }
.c-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 12px; height: 48px; font-size: 15px; color: var(--ink); }
.c-search input::placeholder { color: var(--gray-400); }
.c-search .btn { height: 48px; padding: 0 26px; }
.c-chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.c-chip { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid #d6deeb; color: var(--ink); font-size: 13.5px; font-weight: 700; }
:root[data-theme="dark"] .c-chip { border-color: var(--line); }
.c-chip:hover { border-color: var(--ink); color: var(--ink); }
.c-visual { position: relative; min-height: 340px; display: flex; align-items: center; justify-content: center; }
.c-photo { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: var(--surface); }
.c-photo-img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .4s; }
.c-photo-img.is-loaded { opacity: 1; }
.c-illus { width: 100%; max-width: 480px; }
.c-photo.has-img .c-illus { display: none; }
.c-qc-float { position: absolute; right: -8px; bottom: -14px; background: var(--surface); border-radius: 18px; padding: 16px 18px; box-shadow: 0 16px 40px -10px rgba(17,24,39,.22); min-width: 228px; }
.c-qc-float strong { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink); }
.c-qc-float strong i { color: #15803d; }
.c-qc-float ul { list-style: none; margin-top: 8px; display: grid; gap: 4px; font-size: 13px; color: var(--gray-600); }
.c-qc-float li i { color: #15803d; width: 16px; font-size: 11px; }

.c-trust { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.c-trust div { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 18px; background: var(--soft); font-size: 14px; font-weight: 700; color: var(--ink); }
.c-trust i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--blue-600); flex: none; }
.c-trust small { display: block; font-weight: 500; color: var(--gray-500); font-size: 12.5px; }

.c-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.c-head p { margin-top: 6px; color: var(--gray-500); font-size: 15.5px; }
.c-tabs { display: flex; flex-wrap: wrap; gap: 4px; background: var(--soft); padding: 5px; border-radius: 999px; }
.c-tab { border: 0; background: transparent; border-radius: 999px; height: 40px; padding: 0 16px; font-size: 14px; font-weight: 600; color: var(--gray-600); }
.c-tab:hover { color: var(--ink); }
.c-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 800; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.c-more { margin-top: 24px; text-align: center; }

.c-qc { background: #111827; color: #c7cede; border-radius: 32px; padding: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
:root[data-theme="dark"] .c-qc { background: #0b1426; border: 1px solid var(--line); }
.c-qc .eyebrow { color: #93c5fd; }
.c-qc h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -.03em; }
.c-qc p { margin-top: 16px; font-size: 16.5px; line-height: 1.6; }
.c-qc .btn { margin-top: 24px; background: #fff; color: #111827; }
.c-qc .btn:hover { background: #e5e7eb; color: #111827; }
.c-report { background: #fff; color: #111827; border-radius: 22px; padding: 24px 26px; }
.c-report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #eef0f3; }
.c-report-head strong { font-size: 16px; color: #111827; }
.c-report-head span.sub { display: block; font-size: 13px; color: #6b7280; margin-top: 2px; }
.c-report-badge { background: #dcfce7; color: #166534; font-size: 11.5px; font-weight: 800; padding: 5px 10px; border-radius: 999px; letter-spacing: .04em; white-space: nowrap; }
.c-report ul { list-style: none; }
.c-report li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f3f4f6; font-size: 14px; color: #111827; }
.c-report li span:first-child { display: flex; align-items: center; gap: 10px; }
.c-report li i { color: #15803d; }
.c-report li span:last-child { color: #4b5563; text-align: right; }
.c-report-foot { margin-top: 12px; font-size: 12.5px; color: #6b7280; }
.c-report-foot a { color: #1e40af; font-weight: 700; }

.c-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.c-step { background: var(--soft); border-radius: 24px; padding: 28px; }
.c-step b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--blue-600); color: #fff; font-weight: 800; }
.c-step h3 { margin: 16px 0 6px; font-size: 18px; }
.c-step p { font-size: 14.5px; line-height: 1.6; color: var(--gray-600); }

.c-tools { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.c-tool { border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); font-weight: 800; font-size: 15px; transition: border-color .15s, transform .15s; }
.c-tool:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.c-tool i { width: 44px; height: 44px; border-radius: 14px; background: var(--panel); color: var(--blue-600); display: grid; place-items: center; font-size: 18px; }
.c-tool small { font-weight: 500; color: var(--gray-500); font-size: 13px; margin-top: -6px; }

.c-cta { background: var(--panel); border-radius: 32px; padding: 44px 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.c-cta h2 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.03em; }
.c-cta p { margin-top: 8px; color: var(--gray-600); max-width: 560px; }

@media (max-width: 1080px) {
  .c-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .c-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .c-hero-panel, .c-qc { grid-template-columns: minmax(0, 1fr); padding: 36px 28px; gap: 36px; }
  .c-visual { min-height: 0; }
  .c-qc-float { right: 8px; }
  .c-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .c-hero { padding-top: 12px; }
  .c-hero-panel { padding: 28px 20px 32px; border-radius: 24px; }
  .c-hero .c-sub { font-size: 16px; }
  .c-search .btn { padding: 0 18px; }
  .c-qc-float { position: relative; z-index: 1; right: auto; bottom: auto; margin-top: -28px; min-width: 0; width: calc(100% - 24px); }
  .c-visual { flex-direction: column; }
  .c-trust { grid-template-columns: 1fr; }
  .c-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .c-tab { white-space: nowrap; }
  .c-qc { border-radius: 24px; }
  .c-report { padding: 20px; }
  .c-cta { padding: 32px 24px; border-radius: 24px; }
}

/* =====================================================================
   SLIDER BANNER PROMO (v4.1) — home.js initSlider()
   ===================================================================== */
.c-promo { padding: 28px 0 0; }
.c-slider { position: relative; }
.c-slider-viewport { overflow: hidden; border-radius: 28px; }
.c-slides { display: flex; column-gap: 16px; transition: transform .7s cubic-bezier(.22,.8,.2,1); will-change: transform; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.c-slide.banner { flex: 0 0 86%; aspect-ratio: 16 / 9; border-radius: 28px; border: 0; background: var(--soft); opacity: .45; transform: scale(.94); transition: opacity .6s ease, transform .7s cubic-bezier(.22,.8,.2,1); cursor: pointer; }
.c-slider.is-single .c-slide.banner { flex-basis: 100%; }
.c-slide.banner.is-active { opacity: 1; transform: none; }
.c-slide .banner-img { transform: scale(var(--z, 1)); transition: none; }
.c-slide.is-active .banner-img { animation: clKenBurns 7s ease-out forwards; }
@keyframes clKenBurns { from { transform: scale(var(--z, 1)); } to { transform: scale(calc(var(--z, 1) * 1.06)); } }
.banner::after { display: none; }
.banner.has-title::after { display: block; }
.c-slide .banner-title { font-size: clamp(18px, 2.2vw, 28px); left: 32px; right: 32px; bottom: 28px; opacity: 0; transform: translateY(14px); transition: opacity .5s ease .25s, transform .5s ease .25s; }
.c-slide.is-active .banner-title { opacity: 1; transform: none; }
.c-slide:focus-visible { box-shadow: var(--ring); outline: none; }
.c-slider-bar { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 4px; }
.c-slider.is-single .c-slider-bar { display: none; }
.c-dots { display: flex; gap: 8px; flex-wrap: wrap; }
.c-dot { border: 0; padding: 10px 0; background: none; cursor: pointer; }
.c-dot span { display: block; position: relative; width: 28px; height: 6px; border-radius: 999px; background: var(--gray-200); overflow: hidden; transition: width .3s ease; }
.c-dot.is-active span { width: 56px; }
.c-dot span::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--ink); border-radius: inherit; }
.c-dot.is-active span::after { animation: clDotFill 5s linear forwards; }
.c-slider.is-paused .c-dot.is-active span::after { animation: none; transform: scaleX(1); }
@keyframes clDotFill { to { transform: scaleX(1); } }
.c-slider-btns { display: flex; gap: 8px; }
.c-sbtn { width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; transition: border-color .15s, background .15s; }
.c-sbtn:hover { border-color: var(--ink); }
@media (max-width: 640px) {
  .c-promo { padding-top: 20px; }
  .c-slider-viewport, .c-slide.banner { border-radius: 20px; }
  .c-slide.banner { flex-basis: 90%; transform: scale(.96); }
  .c-slides { column-gap: 10px; }
  .c-slide .banner-title { left: 18px; right: 18px; bottom: 16px; }
  .c-sbtn { width: 40px; height: 40px; }
  .c-dot span { width: 18px; } .c-dot.is-active span { width: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .c-slides, .c-slide.banner, .c-slide .banner-title { transition: none; }
  .c-slide.is-active .banner-img { animation: none; }
  .c-dot.is-active span::after { animation: none; transform: scaleX(1); }
}
