/* ==========================================================================
   KHAYSO – Portal Pengenalan Produk
   style.css : token reka bentuk, komponen asas dan setiap seksyen
   ========================================================================== */

/* ---------- 1. Token reka bentuk ---------- */
:root {
  /* Palet KHAYSO: hitam, oren-merah dan emas di atas latar krim */
  --navy: #1A1410;      /* hitam hangat (warna logo) */
  --navy-2: #2A1F17;
  --royal: #D9620B;     /* oren utama */
  --royal-2: #F7931E;
  --teal: #B9781A;      /* emas gelap */
  --cyan: #F2C14E;      /* emas cerah */
  --crimson: #A8221A;   /* merah gelap logo */
  --green: #12A66A;
  --amber: #E39A12;
  --red: #E0484F;

  --bg: #FFFCF7;
  --bg-alt: #FBF1E3;
  --card: #FFFFFF;
  --text: #2A1F17;
  --heading: #17110C;
  --muted: #6E5F52;
  --border: #EEDFCB;
  --ring: rgba(217, 98, 11, .25);

  /* Antara muka mockup */
  --ui-bg: #FBF5EC;
  --ui-card: #FFFFFF;
  --ui-side: #1A1410;
  --ui-line: #F0E4D4;
  --ui-text: #2A1F17;
  --ui-muted: #8C7B6C;

  --grad: linear-gradient(120deg, var(--crimson) 0%, #DB5F0A 100%);
  --grad-navy: linear-gradient(140deg, #14100C 0%, #2A1D14 55%, #4A2A12 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(26, 20, 16, .05), 0 2px 8px rgba(26, 20, 16, .04);
  --shadow: 0 10px 30px -10px rgba(26, 20, 16, .14), 0 2px 6px rgba(26, 20, 16, .04);
  --shadow-lg: 0 30px 60px -20px rgba(26, 20, 16, .30), 0 10px 20px -10px rgba(26, 20, 16, .12);

  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

[data-theme="dark"] {
  /* Mod gelap: coklat hangat sederhana, bukan hitam pekat, untuk kebolehbacaan */
  --bg: #2A221C;
  --bg-alt: #332A22;
  --card: #3D3229;
  --text: #F3EAE0;
  --heading: #FFF8F0;
  --muted: #D2C2B0;
  --border: #54463A;
  --ring: rgba(247, 147, 30, .4);

  --ui-bg: #30271F;
  --ui-card: #3F342A;
  --ui-side: #221B16;
  --ui-line: #54463A;
  --ui-text: #F5ECE2;
  --ui-muted: #C2B09D;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .2);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, .35);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .45);
}

/* ---------- 2. Asas ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--royal); text-decoration: none; }
[data-theme="dark"] a { color: var(--royal-2); }
h1, h2, h3, h4 { color: var(--heading); margin: 0; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; position: relative; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="dark"] .grad-text { background-image: linear-gradient(120deg, #FF7A3D 0%, #FFB547 100%); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--royal); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* Tajuk seksyen */
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head.left { text-align: left; margin: 0; }
.section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 700; }
.section-head p { margin-top: 18px; font-size: 1.06rem; color: var(--muted); }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--royal); margin-bottom: 14px;
}
.kicker::before { content: ''; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
[data-theme="dark"] .kicker { color: var(--cyan); }
.kicker-light { color: var(--cyan) !important; }

/* ---------- 3. Butang ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 12px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn .ic { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn-sm { padding: 9px 16px; font-size: .88rem; border-radius: 10px; }
.btn-lg { padding: 15px 28px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff !important; box-shadow: 0 8px 20px -8px rgba(217, 98, 11, .6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(217, 98, 11, .7); }
.btn-ghost { background: var(--card); color: var(--heading) !important; border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--royal); color: var(--royal) !important; transform: translateY(-2px); }
.btn-ghost:hover .ic { transform: none; }
.btn-white { background: #fff; color: var(--navy) !important; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .45); }
.btn-outline-light { background: rgba(255, 255, 255, .06); color: #fff !important; border-color: rgba(255, 255, 255, .35); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); border-color: #fff; transform: translateY(-2px); }

.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--card); color: var(--heading); display: inline-grid; place-items: center;
  transition: border-color .2s, color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--royal); color: var(--royal); }

/* ---------- 4. Navigasi ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, height .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 6px 24px -14px rgba(26, 20, 16, .25);
  border-bottom-color: var(--border);
}
.nav-wrap { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--heading) !important; flex-shrink: 0; }
/* Logo rasmi KHAYSO: tanda K + wordmark dipotong daripada imej asal (latar telus),
   tagline sebagai teks sebenar supaya jelas dibaca. */
.brand-logo { display: flex; align-items: center; gap: 5px; border-radius: 12px; }
.bl-mark { display: block; width: auto; height: 50px; }
.bl-text { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bl-word { display: block; height: 38px; width: auto; }
.bl-tag { font-size: 7.4px; letter-spacing: -.02em; font-weight: 600; font-style: italic; line-height: 1; color: #2A1F17; white-space: nowrap; }
/* Mod gelap: versi logo putih. Footer mod cerah (latar gelap) kekal guna lencana krim */
[data-theme="dark"] .bl-mark, [data-theme="dark"] .hub-logo { content: url("../assets/images/khayso-mark-dark.png"); object-fit: contain; }
[data-theme="dark"] .bl-word { content: url("../assets/images/khayso-wordmark-dark.png"); }
[data-theme="dark"] .bl-tag { color: #fff; }
:root:not([data-theme="dark"]) .site-footer .brand-logo { background: #FBEEDB; padding: 5px 12px 5px 8px; }
.hub-logo { display: block; width: 52px; height: 52px; border-radius: 12px; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: block; white-space: nowrap; padding: 8px 12px; border-radius: 10px; font-size: .88rem; font-weight: 500;
  color: var(--muted) !important; position: relative; transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--heading) !important; background: var(--bg-alt); }
.nav-link.active { color: var(--royal) !important; }
[data-theme="dark"] .nav-link.active { color: var(--cyan) !important; }
.nav-link.active::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta-mobile { display: none; }
.theme-toggle .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
.hamburger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.hamburger span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-overlay { display: none; }

/* ---------- 5. Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 72px) 0 96px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #FBEEDB 0%, var(--bg) 100%); }
[data-theme="dark"] .hero-bg { background: linear-gradient(180deg, #3A2D22 0%, var(--bg) 100%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hero .blob-1 { width: 520px; height: 520px; background: #FFD3A1; top: -180px; right: -120px; }
.hero .blob-2 { width: 420px; height: 420px; background: #F7E2B0; bottom: -160px; left: -140px; }
[data-theme="dark"] .hero .blob-1 { background: #A8421A; opacity: .4; }
[data-theme="dark"] .hero .blob-2 { background: #8F6A1E; opacity: .35; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: .82rem; font-weight: 500; color: var(--heading);
}
.eyebrow .ic { color: var(--teal); }
.hero-title { font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 700; margin: 22px 0 20px; line-height: 1.12; }
.hero-title .grad-text { display: inline; }
.hero-sub { font-size: clamp(1rem, 1.3vw, 1.14rem); color: var(--muted); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); font-weight: 500; }
.hero-points .ic { color: #fff; background: var(--teal); border-radius: 50%; padding: 3px; width: 18px; height: 18px; stroke-width: 3; }

/* Mockup hero */
.hero-visual { position: relative; font-size: clamp(6.5px, .78vw, 10px); padding: 2em 0 4em 0; }
.laptop { position: relative; margin-right: 6em; }
.laptop-screen {
  background: #16110D; border-radius: 1.6em 1.6em 0 0; padding: 1.2em 1.2em 1.2em;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .06);
}
.laptop-base {
  height: 1.8em; margin: 0 -6%; border-radius: 0 0 1.6em 1.6em;
  background: linear-gradient(180deg, #D8DEEA, #AEB8CB); position: relative;
  box-shadow: 0 20px 30px -18px rgba(26, 20, 16, .5);
}
.laptop-base::before { content: ''; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 16%; height: .7em; background: #9AA5BA; border-radius: 0 0 .8em .8em; }
[data-theme="dark"] .laptop-base { background: linear-gradient(180deg, #6A5A4C, #463A30); }

.app { display: grid; grid-template-columns: 13em 1fr; background: var(--ui-bg); border-radius: .6em; overflow: hidden; color: var(--ui-text); min-height: 34em; }
.app-side { background: var(--ui-side); color: #E4D6C4; padding: 1.6em 1.1em; }
.app-logo { display: flex; align-items: center; gap: .7em; font-weight: 700; color: #fff; font-size: 1.4em; margin-bottom: 1.6em; }
.app-logo span { width: 1.4em; height: 1.4em; border-radius: .4em; background: var(--grad); }
.app-side li { display: flex; align-items: center; gap: .8em; padding: .75em .9em; border-radius: .7em; font-size: 1.12em; margin-bottom: .25em; }
.app-side li .ic { width: 1.25em; height: 1.25em; }
.app-side li.on { background: rgba(247, 147, 30, .22); color: #fff; }
.app-main { padding: 1.6em 1.8em; display: flex; flex-direction: column; gap: 1.4em; min-width: 0; }
.app-top { display: flex; justify-content: space-between; align-items: center; gap: 1em; }
.app-top b { display: block; font-size: 1.55em; }
.app-top small { color: var(--ui-muted); font-size: 1.05em; }
.app-top-r { display: flex; align-items: center; gap: .8em; }
.app-search { display: flex; align-items: center; gap: .5em; background: var(--ui-card); border: 1px solid var(--ui-line); border-radius: .7em; padding: .55em 1em; color: var(--ui-muted); font-size: 1.05em; min-width: 11em; }
.app-bell { position: relative; width: 2.8em; height: 2.8em; border-radius: .7em; background: var(--ui-card); border: 1px solid var(--ui-line); display: grid; place-items: center; color: var(--ui-muted); }
.app-bell i { position: absolute; top: .55em; right: .6em; width: .55em; height: .55em; background: var(--red); border-radius: 50%; }

.avatar { display: inline-grid; place-items: center; width: 2.8em; height: 2.8em; border-radius: 50%; color: #fff; font-weight: 600; font-size: 1em; flex-shrink: 0; position: relative; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.avatar.a1 { background: linear-gradient(135deg, #D9620B, #F7A54A); }
.avatar.a2 { background: linear-gradient(135deg, #B9781A, #F2C14E); }
.avatar.a3 { background: linear-gradient(135deg, #8E1114, #C9473A); }
.avatar.a4 { background: linear-gradient(135deg, #E39A12, #F3C24B); }
.avatar.xl { width: 72px; height: 72px; font-size: 1.4rem; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1em; }
.stat { background: var(--ui-card); border: 1px solid var(--ui-line); border-radius: 1em; padding: 1.1em 1.2em; display: flex; flex-direction: column; gap: .15em; min-width: 0; }
.stat small { color: var(--ui-muted); font-size: 1em; line-height: 1.3; }
.stat b { font-size: 1.7em; line-height: 1.2; color: var(--ui-text); }
.stat em { font-style: normal; font-size: .95em; color: var(--ui-muted); }
.stat em.up { color: var(--green); }
.stat em.warn { color: var(--amber); }
.stat-ic { width: 2.6em; height: 2.6em; border-radius: .7em; display: grid; place-items: center; margin-bottom: .5em; }
.c-blue { background: rgba(217, 98, 11, .12); color: var(--royal); }
.c-teal { background: rgba(185, 120, 26, .14); color: var(--teal); }
.c-amber { background: rgba(227, 154, 18, .14); color: var(--amber); }
.c-navy { background: rgba(26, 20, 16, .09); color: var(--navy); }
[data-theme="dark"] .c-navy { background: rgba(255, 255, 255, .08); color: #EADBC8; }
[data-theme="dark"] .c-blue { color: var(--royal-2); }

.app-panels { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1em; flex: 1; }
.panel { background: var(--ui-card); border: 1px solid var(--ui-line); border-radius: 1em; padding: 1.2em 1.3em; min-width: 0; color: var(--ui-text); }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: .8em; margin-bottom: 1em; flex-wrap: wrap; }
.panel-h b { font-size: 1.15em; }
.panel-h small { color: var(--ui-muted); font-size: .95em; display: inline-flex; align-items: center; gap: .4em; }
.panel-h.mt { margin-top: 1.4em; }

.bars { display: flex; align-items: flex-end; justify-content: space-between; gap: .9em; height: 11em; padding-top: .4em; }
.bars.tall { height: 200px; }
.bar-g { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: .25em; position: relative; padding-bottom: 1.6em; }
.bar-g i { width: 38%; max-width: 18px; height: var(--h); background: var(--grad); border-radius: .4em .4em .15em .15em; transform-origin: bottom; }
.bar-g i.b2 { background: rgba(185, 120, 26, .35); }
.bar-g span { position: absolute; bottom: 0; font-size: .9em; color: var(--ui-muted); }
.is-visible .bar-g i { animation: grow 1s var(--ease) both; }
.is-visible .bar-g:nth-child(2) i { animation-delay: .08s; }
.is-visible .bar-g:nth-child(3) i { animation-delay: .16s; }
.is-visible .bar-g:nth-child(4) i { animation-delay: .24s; }
.is-visible .bar-g:nth-child(5) i { animation-delay: .32s; }
.is-visible .bar-g:nth-child(6) i { animation-delay: .40s; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.mini-list li { display: flex; align-items: center; gap: .8em; padding: .7em 0; border-bottom: 1px dashed var(--ui-line); }
.mini-list li:last-child { border-bottom: 0; }
.mini-list li > div { flex: 1; min-width: 0; }
.mini-list b { display: block; font-size: 1.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-list small { color: var(--ui-muted); font-size: .95em; }
.dot { width: .8em; height: .8em; border-radius: 50%; flex-shrink: 0; }
.d-blue { background: var(--royal); } .d-teal { background: var(--teal); } .d-navy { background: var(--navy-2); }
.d-amber { background: var(--amber); } .d-red { background: var(--red); } .d-grey { background: #C9D1E0; }
[data-theme="dark"] .d-navy { background: #D6B98F; }

.pill { display: inline-flex; align-items: center; gap: .3em; padding: .3em .8em; border-radius: 999px; font-size: .88em; font-weight: 600; white-space: nowrap; font-style: normal; }
.p-green { background: rgba(18, 166, 106, .12); color: #0E8A57; }
.p-amber { background: rgba(227, 154, 18, .14); color: #B87700; }
.p-red { background: rgba(224, 72, 79, .12); color: #C9333A; }
.p-blue { background: rgba(217, 98, 11, .11); color: var(--royal); }
.p-grey { background: rgba(122, 134, 160, .14); color: var(--ui-muted); }
[data-theme="dark"] .p-green { color: #45D49A; } [data-theme="dark"] .p-amber { color: #F4BC4E; }
[data-theme="dark"] .p-red { color: #FF7A80; } [data-theme="dark"] .p-blue { color: #FFB26B; }

/* Telefon */
.phone {
  position: absolute; right: -1em; bottom: 0; width: 21em; z-index: 2;
  background: #16110D; border-radius: 3em; padding: .9em; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .08);
  animation: floatY 6s ease-in-out infinite;
}
.phone-notch { position: absolute; top: .9em; left: 50%; transform: translateX(-50%); width: 7em; height: 1.5em; background: #16110D; border-radius: 0 0 1em 1em; z-index: 1; }
.phone-screen { background: var(--ui-bg); border-radius: 2.3em; padding: 3.2em 1.6em 1.8em; color: var(--ui-text); }
.ph-head small { color: var(--ui-muted); font-size: 1.05em; display: block; }
.ph-head b { font-size: 1.5em; }
.ph-amount { margin: 1.3em 0 1em; background: var(--grad); color: #fff; border-radius: 1.2em; padding: 1.2em 1.4em; }
.ph-amount small { opacity: .85; font-size: 1em; display: block; }
.ph-amount b { font-size: 1.75em; white-space: nowrap; }
.ph-progress > div { height: .7em; border-radius: 1em; background: var(--ui-line); overflow: hidden; }
.ph-progress span { display: block; height: 100%; background: var(--grad); border-radius: inherit; }
.ph-progress small { display: block; margin-top: .5em; color: var(--ui-muted); font-size: .98em; }
.ph-list { margin-top: 1em; }
.ph-list li { display: flex; justify-content: space-between; align-items: center; padding: .75em 0; border-bottom: 1px solid var(--ui-line); font-size: 1.05em; }
.ph-btn { margin-top: 1.2em; text-align: center; background: var(--navy); color: #fff; padding: .9em; border-radius: 1em; font-weight: 600; font-size: 1.05em; }
[data-theme="dark"] .ph-btn { background: var(--royal); }

/* Maskot: kiri bawah laptop, sedikit bertindih supaya hologram "menunjuk" ke dashboard */
.hero-mascot {
  position: absolute; left: -10.5em; bottom: 1.5em; z-index: 4;
  width: auto; height: 28em; pointer-events: none;
  filter: drop-shadow(0 1.6em 1.8em rgba(26, 20, 16, .28));
  animation: floatY 7s ease-in-out infinite .8s;
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- 6. Masalah ---------- */
.problems { background: var(--bg-alt); }
.split-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; margin-bottom: 64px; }
/* Maskot + hologram carousel: maklumat bertaburan (gaya maskot KHAYSO) */
.mascot-proj { position: relative; width: 100%; max-width: 520px; aspect-ratio: 5 / 4; margin: 0 auto; }
.mascot-proj::before { content: ''; position: absolute; right: -4%; top: -6%; width: 62%; height: 72%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 181, 71, .35), transparent); z-index: 0; }
.mp-mascot {
  position: absolute; left: 0; bottom: 0; z-index: 1; width: 72%; height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%), linear-gradient(to right, transparent 0, #000 12%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%), linear-gradient(to right, transparent 0, #000 12%);
  mask-composite: intersect;
  filter: drop-shadow(0 12px 18px rgba(26, 20, 16, .22));
}
.mp-beam { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; filter: blur(1.5px); animation: mpFlicker 3.2s ease-in-out infinite; }
@keyframes mpFlicker { 0%, 100% { opacity: .85; } 45% { opacity: 1; } 55% { opacity: .7; } }
.mp-screen {
  position: absolute; right: 0; top: 12%; z-index: 3; width: 46%; padding: 10px 12px 10px; overflow: hidden;
  color: #fff; border-radius: 14px; border: 1.5px solid rgba(255, 214, 140, .95);
  background: linear-gradient(150deg, rgba(255, 181, 71, .96), rgba(232, 96, 30, .94) 60%, rgba(176, 38, 22, .94));
  box-shadow: 0 0 0 4px rgba(255, 190, 90, .22), 0 0 34px rgba(247, 147, 30, .65), 0 18px 30px -16px rgba(142, 17, 20, .5);
  transform: perspective(800px) rotateY(-9deg); transform-origin: left center;
  animation: mpFloat 6s ease-in-out infinite;
}
.mp-screen::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 4px); }
@keyframes mpFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.mp-top { display: flex; align-items: center; gap: 6px; padding-bottom: 7px; margin-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .35); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.mp-top .ic { width: 15px; height: 15px; }
.mp-count { margin-left: auto; font-family: ui-monospace, Consolas, monospace; font-size: 10px; opacity: .85; }
.mp-slides { position: relative; height: 118px; }
.mp-slide {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  opacity: 0; translate: 0 8px; transition: opacity .22s ease, translate .22s ease;
}
/* Slaid keluar hilang dahulu, kemudian slaid baharu muncul: teks tidak bertindih */
.mp-slide.is-active { opacity: 1; translate: 0 0; transition: opacity .4s var(--ease) .22s, translate .4s var(--ease) .22s; }
.mp-ic { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 2px; border-radius: 50%; background: #fff; color: var(--royal); box-shadow: 0 0 14px rgba(255, 255, 255, .6); }
.mp-ic .ic { width: 22px; height: 22px; }
.mp-slide b { font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; text-shadow: 0 1px 6px rgba(120, 20, 10, .35); }
.mp-slide p { margin: 0; font-size: 11.5px; line-height: 1.35; opacity: .95; max-width: 90%; }
.mp-dots { position: relative; z-index: 1; display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.mp-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .3s, background .3s; }
.mp-dots button.on { width: 18px; background: #fff; }
.mp-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.problem-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 28px;
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  position: relative; overflow: hidden;
}
.problem-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--red), var(--amber)); opacity: 0; transition: opacity .3s; }
.problem-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.problem-card:hover::before { opacity: 1; }
.pc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.pc-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(224, 72, 79, .09); color: var(--red); }
.pc-ic .ic { width: 26px; height: 26px; }
.pc-num { font-size: 2rem; font-weight: 700; color: var(--border); line-height: 1; }
.problem-card h3 { font-size: 1.16rem; font-weight: 600; margin-bottom: 10px; }
.problem-card > p { color: var(--muted); font-size: .93rem; margin-bottom: 18px; }
.x-list { border-top: 1px dashed var(--border); padding-top: 16px; display: grid; gap: 8px; }
.x-list li { position: relative; padding-left: 26px; font-size: .88rem; color: var(--text); }
.x-list li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(224, 72, 79, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E0484F' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='m7 7 10 10M17 7 7 17'/%3E%3C/svg%3E") center / 9px no-repeat;
}

.imagine { margin-top: 72px; text-align: center; }
.imagine p { font-size: clamp(1.35rem, 2.8vw, 2.1rem); font-weight: 600; color: var(--heading); max-width: 820px; margin: 0 auto; line-height: 1.35; letter-spacing: -.01em; }
.imagine-arrow {
  margin: 28px auto 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff !important; box-shadow: 0 10px 24px -8px rgba(217, 98, 11, .6);
  animation: bounce 2.2s ease-in-out infinite;
}
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- 7. Penyelesaian ---------- */
.sol-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; padding: 40px 0; }
.sol-row + .sol-row { border-top: 1px solid var(--border); padding-top: 72px; margin-top: 32px; }
.sol-row.reverse .sol-visual { order: 2; }
.sol-visual { position: relative; }
.sol-visual::before {
  content: ''; position: absolute; inset: 8% -4% -6% 6%; border-radius: 32px; z-index: -1;
  background: linear-gradient(135deg, rgba(217, 98, 11, .12), rgba(185, 120, 26, .14));
}
.sol-row.reverse .sol-visual::before { inset: 8% 6% -6% -4%; }
.sol-num { font-size: .85rem; font-weight: 700; color: var(--teal); letter-spacing: .1em; display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(185, 120, 26, .1); margin-bottom: 16px; }
.sol-copy h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; margin-bottom: 14px; }
.sol-copy p { color: var(--muted); font-size: 1.03rem; margin-bottom: 22px; }
.check-list { display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; font-weight: 500; color: var(--heading); }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad) ;
  -webkit-mask: none;
}
.check-list li::after {
  content: ''; position: absolute; left: 7px; top: 7px; width: 8px; height: 5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}

.mock-card {
  background: var(--ui-card); border: 1px solid var(--ui-line); border-radius: 20px; padding: 22px;
  box-shadow: var(--shadow-lg); font-size: 13px; color: var(--ui-text);
}
.mc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.mc-head b { font-size: 15px; }
.mc-search { display: inline-flex; align-items: center; gap: 6px; color: var(--ui-muted); background: var(--ui-bg); border: 1px solid var(--ui-line); padding: 6px 12px; border-radius: 10px; font-size: 12px; }
.mc-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ui-muted); }
.mc-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-left: 6px; }
.mc-btn { background: var(--grad); color: #fff; padding: 6px 12px; border-radius: 9px; font-size: 12px; font-weight: 600; }
/* Mockup direktori jurulatih */
.td-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.td-head b { display: block; font-size: 15px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.td-count { white-space: nowrap; font-size: 11px; font-weight: 600; color: var(--royal); background: rgba(217, 98, 11, .08); border: 1px solid rgba(217, 98, 11, .25); padding: 5px 10px; border-radius: 8px; }
.td-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.td-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--ui-card); border: 1px solid var(--ui-line); border-radius: 14px; }
.td-body { flex: 1; padding: 12px 12px 10px; }
.td-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.td-card .avatar { width: 44px; height: 44px; border-radius: 12px; font-size: 13px; }
.td-id { font-family: ui-monospace, Consolas, monospace; font-size: 10.5px; color: var(--royal); background: rgba(217, 98, 11, .08); border: 1px solid rgba(217, 98, 11, .2); border-radius: 6px; padding: 1px 6px; }
.td-card b { display: block; font-size: 12.5px; line-height: 1.3; }
.td-role { display: block; font-size: 11px; font-weight: 500; color: var(--royal); }
.td-info { display: grid; gap: 4px; margin: 9px 0; font-size: 10.5px; color: var(--ui-muted); }
.td-info span { display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-info .ic { width: 12px; height: 12px; flex-shrink: 0; }
.td-areas { border-top: 1px solid var(--ui-line); padding-top: 8px; }
.td-areas em { display: block; margin-bottom: 5px; font-style: normal; font-size: 9.5px; font-weight: 600; letter-spacing: .05em; color: var(--ui-muted); }
.td-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.td-tags i { font-style: normal; font-size: 10px; background: var(--ui-bg); border: 1px solid var(--ui-line); border-radius: 6px; padding: 2px 6px; }
.td-foot { display: flex; justify-content: center; align-items: center; gap: 5px; padding: 8px; border-top: 1px solid var(--ui-line); background: var(--ui-bg); font-size: 11.5px; font-weight: 600; }
.td-foot .ic { width: 13px; height: 13px; }
[data-theme="dark"] .td-count, [data-theme="dark"] .td-id, [data-theme="dark"] .td-role { color: var(--royal-2); }
.doc-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.doc-strip span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 9px; background: var(--ui-bg); border: 1px dashed var(--ui-line); font-size: 12px; color: var(--ui-muted); }
.doc-strip .ic { width: 14px; height: 14px; color: var(--royal); }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal > span { min-height: 58px; background: var(--ui-bg); border-radius: 9px; padding: 5px 6px; font-size: 11.5px; color: var(--ui-muted); display: flex; flex-direction: column; gap: 3px; min-width: 0; border: 1px solid transparent; }
.cal > span.cal-h { min-height: auto; background: none; text-align: center; font-weight: 600; padding: 0 0 2px; display: block; }
.cal > span.muted { opacity: .55; }
.cal > span.clash { border-color: rgba(224, 72, 79, .55); background: rgba(224, 72, 79, .06); }
.cal.big > span { min-height: 76px; }
.ev { font-style: normal; font-size: 10px; font-weight: 600; padding: 2px 5px; border-radius: 5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.e-blue { background: var(--royal); } .e-teal { background: var(--teal); } .e-amber { background: var(--amber); } .e-red { background: var(--red); }
.alert-bar { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(224, 72, 79, .08); border: 1px solid rgba(224, 72, 79, .25); color: var(--red); }
.alert-bar b { display: block; color: var(--ui-text); font-size: 13px; }
.alert-bar small { color: var(--ui-muted); font-size: 12px; }

/* Mockup tuntutan jurulatih */
.cl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.cl-stat { position: relative; min-width: 0; padding: 10px 11px; border-radius: 12px; border: 1px solid var(--ui-line); background: var(--ui-bg); --c: var(--ui-text); }
.cl-stat em { display: block; padding-right: 22px; font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--c); line-height: 1.25; min-height: 2.5em; }
.cl-stat b { display: block; margin: 5px 0 1px; font-size: 18px; line-height: 1.1; color: var(--c); }
.cl-stat small { display: block; font-size: 10px; color: var(--c); opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-stat .ic { position: absolute; top: 9px; right: 9px; width: 20px; height: 20px; padding: 4px; border-radius: 6px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.cl-stat.amber { --c: #B87700; background: rgba(227, 154, 18, .08); border-color: rgba(227, 154, 18, .3); }
.cl-stat.green { --c: #0E8A57; background: rgba(18, 166, 106, .07); border-color: rgba(18, 166, 106, .28); }
.cl-stat.red { --c: #C9333A; background: rgba(224, 72, 79, .07); border-color: rgba(224, 72, 79, .28); }
[data-theme="dark"] .cl-stat.amber { --c: #F4BC4E; }
[data-theme="dark"] .cl-stat.green { --c: #45D49A; }
[data-theme="dark"] .cl-stat.red { --c: #FF7A80; }
.cl-table-wrap { border: 1px solid var(--ui-line); border-radius: 12px; overflow-x: auto; }
.cl-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.cl-table th { padding: 8px 9px; background: var(--ui-bg); border-bottom: 1px solid var(--ui-line); text-align: left; white-space: nowrap; font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ui-muted); }
.cl-table td { padding: 8px 9px; border-bottom: 1px solid var(--ui-line); white-space: nowrap; vertical-align: middle; }
.cl-table tr:last-child td { border-bottom: 0; }
.cl-table .r { text-align: right; }
.cl-table .mono { font-family: ui-monospace, Consolas, monospace; font-size: 11px; }
.cl-table td b { display: block; font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; color: var(--royal); }
[data-theme="dark"] .cl-table td b { color: var(--royal-2); }
.cl-table td small { display: block; font-size: 10.5px; color: var(--ui-muted); }
.cl-table .pill { font-size: 10px; padding: .25em .7em; }
.pill-dot::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.cl-table .pay { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 6px; }
.cl-act { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--ui-bg); border: 1px solid var(--ui-line); color: var(--ui-muted); }
.cl-act .ic { width: 13px; height: 13px; }

.mini-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mini-table th { text-align: left; color: var(--ui-muted); font-weight: 500; padding: 8px 8px; border-bottom: 1px solid var(--ui-line); white-space: nowrap; }
.mini-table td { padding: 10px 8px; border-bottom: 1px solid var(--ui-line); white-space: nowrap; }
.mini-table tr:last-child td { border-bottom: 0; }
.mini-table td:first-child { font-weight: 600; color: var(--royal); }
[data-theme="dark"] .mini-table td:first-child { color: #FFB26B; }
.mini-table.lg { font-size: 14px; }
.mini-table.lg td, .mini-table.lg th { padding: 13px 12px; }
.table-wrap { overflow-x: auto; }

.pay-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.pay-sum > div { background: var(--ui-bg); border-radius: 12px; padding: 12px 14px; }
.pay-sum small { display: block; color: var(--ui-muted); font-size: 11.5px; }
.pay-sum b { font-size: 15px; }
.t-green { color: var(--green); } .t-amber { color: var(--amber); }
.progress { height: 9px; background: var(--ui-line); border-radius: 9px; overflow: hidden; margin-bottom: 18px; }
.progress span { display: block; height: 100%; background: var(--grad); border-radius: inherit; }
.timeline li { position: relative; display: flex; gap: 12px; padding: 0 0 16px 0; }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: var(--ui-line); }
.timeline li:last-child::before { display: none; }
.timeline li:last-child { padding-bottom: 0; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ui-line); background: var(--ui-card); margin-top: 3px; flex-shrink: 0; position: relative; z-index: 1; }
.tl-dot.ok { background: var(--green); border-color: var(--green); }
.timeline b { display: block; font-size: 13px; }
.timeline small { color: var(--ui-muted); font-size: 12px; }

/* Mockup penyata bayaran jurulatih */
.ps-head { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--ui-line); }
.ps-head b { display: block; font-size: 15px; }
.ps-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; margin-bottom: 16px; border-radius: 14px; background: var(--ui-bg); border: 1px solid var(--ui-line); }
.ps-sum > div { min-width: 0; padding: 10px; border-radius: 10px; text-align: center; background: var(--ui-card); border: 1px solid var(--ui-line); --c: var(--ui-text); }
.ps-sum em { display: block; font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ui-muted); }
.ps-sum b { display: block; margin-top: 4px; font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; color: var(--c); white-space: nowrap; }
.ps-sum .green { --c: #0E8A57; } .ps-sum .amber { --c: #B87700; }
.ps-sum .green em, .ps-sum .amber em { color: var(--c); }
[data-theme="dark"] .ps-sum .green { --c: #45D49A; } [data-theme="dark"] .ps-sum .amber { --c: #F4BC4E; }
.ps-title { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ps-title .ic { width: 15px; height: 15px; color: var(--royal); }
.ps-tx { padding: 11px 12px; margin-bottom: 8px; border-radius: 12px; background: var(--ui-card); border: 1px solid var(--ui-line); }
.ps-tx:last-child { margin-bottom: 0; }
.ps-tx-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ps-badge { display: inline-block; margin-bottom: 4px; font-size: 10px; font-weight: 700; color: #0E8A57; background: rgba(18, 166, 106, .1); border: 1px solid rgba(18, 166, 106, .3); border-radius: 6px; padding: 1px 7px; }
[data-theme="dark"] .ps-badge { color: #45D49A; }
.ps-tx-top b { display: block; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.ps-tx-top small { display: block; font-size: 10.5px; color: var(--ui-muted); }
.ps-meta { text-align: right; font-family: ui-monospace, Consolas, monospace; font-size: 10.5px; line-height: 1.6; color: var(--ui-muted); white-space: nowrap; }
.ps-tx-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--ui-line); font-size: 10.5px; color: var(--ui-muted); }
.ps-file, .ps-view { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ps-file .ic { width: 13px; height: 13px; color: var(--green); }
.ps-view { font-weight: 600; color: var(--royal); }
[data-theme="dark"] .ps-view { color: var(--royal-2); }
.ps-view .ic { width: 13px; height: 13px; }

/* Mockup kelulusan agensi */
.ag-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--ui-line); }
.ag-head b { font-size: 15px; }
.ag-count { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 700; color: #B87700; background: rgba(227, 154, 18, .12); border: 1px solid rgba(227, 154, 18, .35); white-space: nowrap; }
[data-theme="dark"] .ag-count { color: #F4BC4E; }
.ag-list li { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px dashed var(--ui-line); }
.ag-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.ag-st { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ui-line); }
.ag-st .ic { width: 13px; height: 13px; stroke-width: 3; }
.ok .ag-st { background: #12A66A; border-color: #12A66A; color: #fff; }
.na .ag-st { background: var(--ui-bg); }
.na .ag-st::before { content: ""; width: 8px; height: 2px; border-radius: 2px; background: var(--ui-muted); }
.wait .ag-st { border: 2px dashed #E39A12; }
.ag-name { flex: 1; min-width: 0; }
.ag-name b { display: block; font-size: 12.5px; }
.ag-name small { display: block; font-size: 10.5px; color: var(--ui-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-seg { flex: none; display: inline-flex; padding: 2px; border-radius: 9px; background: var(--ui-bg); border: 1px solid var(--ui-line); }
.ag-seg span { padding: 4px 8px; border-radius: 7px; font-size: 10px; font-weight: 600; color: var(--ui-muted); white-space: nowrap; }
.ok .ag-seg .on { background: rgba(18, 166, 106, .14); color: #0E8A57; box-shadow: inset 0 0 0 1px rgba(18, 166, 106, .35); }
.na .ag-seg .on { background: var(--ui-card); color: var(--ui-text); box-shadow: inset 0 0 0 1px var(--ui-line), 0 1px 2px rgba(42, 31, 23, .08); }
.wait .ag-seg .on { background: rgba(227, 154, 18, .16); color: #B87700; box-shadow: inset 0 0 0 1px rgba(227, 154, 18, .45); }
[data-theme="dark"] .ok .ag-seg .on { color: #45D49A; }
[data-theme="dark"] .wait .ag-seg .on { color: #F4BC4E; }

.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: var(--ui-bg); border-radius: 12px; padding: 12px 14px; position: relative; overflow: hidden; }
.kpi small { display: block; color: var(--ui-muted); font-size: 12px; }
.kpi b { font-size: 20px; }
.spark { display: block; height: 26px; margin-top: 6px; border-radius: 4px; background: no-repeat center / 100% 100%; }
.s1 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 26' preserveAspectRatio='none'%3E%3Cpath d='M0 20 15 16 30 18 45 10 60 12 75 6 100 4' fill='none' stroke='%23D9620B' stroke-width='2.5'/%3E%3C/svg%3E"); }
.s2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 26' preserveAspectRatio='none'%3E%3Cpath d='M0 18 15 20 30 12 45 14 60 8 75 10 100 5' fill='none' stroke='%23B9781A' stroke-width='2.5'/%3E%3C/svg%3E"); }
.s3 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 26' preserveAspectRatio='none'%3E%3Cpath d='M0 22 15 18 30 19 45 13 60 11 75 7 100 3' fill='none' stroke='%2312A66A' stroke-width='2.5'/%3E%3C/svg%3E"); }
.donut-row { display: flex; align-items: center; gap: 28px; margin-top: 18px; padding: 16px; background: var(--ui-bg); border-radius: 14px; }
.donut {
  --a: 60; --b: 25;
  width: 120px; height: 120px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: conic-gradient(var(--royal) 0 calc(var(--a) * 1%), var(--teal) 0 calc((var(--a) + var(--b)) * 1%), #C9D1E0 0);
}
.donut span { width: 78px; height: 78px; border-radius: 50%; background: var(--ui-bg); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut b { font-size: 19px; line-height: 1.1; }
.donut small { color: var(--ui-muted); font-size: 11px; }
.legend li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 4px 0; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }

/* ---------- 8. Fungsi sistem ---------- */
.features { background: var(--bg-alt); }
.filter-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -24px 0 40px; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--card);
  color: var(--muted); font-size: .88rem; font-weight: 500; transition: all .25s var(--ease);
}
.chip:hover { color: var(--heading); border-color: var(--royal); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
[data-theme="dark"] .chip.active { background: var(--royal); border-color: var(--royal); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s, opacity .35s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card.dim { opacity: .28; transform: scale(.98); filter: grayscale(.6); }
.fc-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 18px; box-shadow: 0 8px 18px -8px rgba(217, 98, 11, .55); }
.fc-ic .ic { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: .88rem; color: var(--muted); }

/* ---------- 9. Kelebihan ---------- */
.benefits { background: var(--grad-navy); color: #E3D5C3; overflow: hidden; }
.benefits::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 85% 10%, rgba(242, 193, 78, .18), transparent 70%), radial-gradient(500px 300px at 10% 90%, rgba(247, 147, 30, .25), transparent 70%);
}
.benefits .section-head h2 { color: #fff; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.benefit-card {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 28px 24px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .35s var(--ease), background .35s, border-color .35s;
}
.benefit-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .09); border-color: rgba(242, 193, 78, .45); }
.bc-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(242, 193, 78, .14); color: var(--cyan); margin-bottom: 18px; }
.bc-ic .ic { width: 24px; height: 24px; }
.benefit-card h3 { color: #fff; font-size: 1.02rem; font-weight: 600; margin-bottom: 8px; }
.benefit-card p { font-size: .88rem; color: #C2B19E; }

/* ---------- 10. Ekosistem ---------- */
.eco-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.eco-copy h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; margin-bottom: 18px; }
.eco-copy > p { color: var(--muted); font-size: 1.05rem; margin-bottom: 28px; }
.eco-list { display: grid; gap: 10px; }
.eco-list li {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--card); font-weight: 500; color: var(--heading); cursor: default; transition: all .3s var(--ease);
}
.eco-list li.on, .eco-list li:hover { border-color: var(--royal); box-shadow: var(--shadow); transform: translateX(6px); }
.el-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(217, 98, 11, .1); color: var(--royal); }
[data-theme="dark"] .el-ic { color: #FFB26B; }

.eco-visual { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1; margin: 0 auto; }
.eco-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.eco-lines .orbit { fill: none; stroke: var(--border); stroke-width: 1.5; stroke-dasharray: 3 7; }
.eco-lines .orbit.o2 { stroke-dasharray: none; opacity: .7; }
.eco-lines .link { stroke: url(#bm); stroke: var(--royal); stroke-width: 2; stroke-dasharray: 6 8; opacity: .35; animation: dash 2.4s linear infinite; transition: opacity .3s, stroke-width .3s; }
.eco-lines .link.on { opacity: 1; stroke-width: 3; stroke: var(--teal); }
@keyframes dash { to { stroke-dashoffset: -28; } }
.eco-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--card); box-shadow: var(--shadow-lg), 0 0 0 12px rgba(217, 98, 11, .07);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; z-index: 2;
}
.eco-hub b { font-size: 1.15rem; color: var(--heading); }
.eco-hub small { font-size: .74rem; color: var(--muted); }
.eco-node {
  position: absolute; transform: translate(-50%, -50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 6px; width: 120px; text-align: center;
  font-size: .8rem; font-weight: 600; color: var(--heading); cursor: default;
}
.eco-node span { background: var(--bg); padding: 2px 10px; border-radius: 999px; border: 1px solid var(--border); white-space: nowrap; }
.eco-node .ic {
  width: 58px; height: 58px; padding: 16px; border-radius: 18px; background: var(--card); color: var(--royal);
  border: 1px solid var(--border); box-shadow: var(--shadow); transition: all .3s var(--ease);
}
.eco-node.on .ic, .eco-node:hover .ic { background: var(--grad); color: #fff; border-color: transparent; transform: scale(1.1); }
.n0 { left: 50%; top: 12%; } .n1 { left: 86.2%; top: 38.2%; } .n2 { left: 72.4%; top: 80.8%; }
.n3 { left: 27.6%; top: 80.8%; } .n4 { left: 13.8%; top: 38.2%; }

/* ---------- 11. Pratonton produk ---------- */
.preview { background: var(--bg-alt); }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--card); color: var(--muted); font-size: .9rem; font-weight: 500; transition: all .25s var(--ease);
}
.tab:hover { color: var(--heading); border-color: var(--royal); }
.tab.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 22px -10px rgba(217, 98, 11, .6); }
.browser { background: var(--ui-card); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; max-width: 1040px; margin: 0 auto; }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--ui-line); background: var(--ui-bg); }
.browser-bar > span { width: 11px; height: 11px; border-radius: 50%; background: #F26B6B; }
.browser-bar > span:nth-child(2) { background: #F5C451; }
.browser-bar > span:nth-child(3) { background: #4CCB7A; }
.browser-url { margin-left: 14px; flex: 1; max-width: 420px; background: var(--ui-card); border: 1px solid var(--ui-line); border-radius: 8px; padding: 5px 12px; font-size: 12.5px; color: var(--ui-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-url b { color: var(--ui-text); font-weight: 600; }
.browser-body { background: var(--ui-bg); padding: 26px; font-size: 13.5px; min-height: 470px; }
.pv-panel { animation: fadeUp .45s var(--ease); }
.pv-panel[hidden] { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pv-dash { grid-template-columns: repeat(4, 1fr); }
.pv-dash .span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.browser-body .stat { font-size: 13px; }
.browser-body .stat b { font-size: 24px; }
.browser-body .panel { font-size: 13.5px; padding: 18px 20px; border-radius: 14px; }
.browser-body .bars { gap: 14px; }
.browser-body .bar-g i { max-width: 26px; }
.lg-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-left: 8px; }
.todo li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--ui-line); font-size: 13px; }
.todo li:last-child { border-bottom: 0; }
.todo .pill { min-width: 28px; justify-content: center; }
.profile-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.profile-card > b { font-size: 16px; margin-top: 8px; }
.profile-card > small { color: var(--ui-muted); font-size: 12.5px; }
.tag-row { display: flex; gap: 6px; margin: 8px 0 12px; }
.kv { width: 100%; margin: 0; text-align: left; }
.kv div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--ui-line); font-size: 12.5px; }
.kv dt { color: var(--ui-muted); } .kv dd { margin: 0; font-weight: 600; }
.cert-list li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--ui-bg); margin-bottom: 8px; }
.cert-list li > div { flex: 1; min-width: 0; }
.cert-list b { display: block; font-size: 13.5px; } .cert-list small { color: var(--ui-muted); font-size: 12px; }
.cl-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(185, 120, 26, .14); color: var(--teal); flex-shrink: 0; }
.seg { display: inline-flex; background: var(--ui-bg); border-radius: 10px; padding: 3px; font-size: 12.5px; }
.seg span { padding: 5px 12px; border-radius: 8px; color: var(--ui-muted); }
.seg span.on { background: var(--ui-card); color: var(--ui-text); font-weight: 600; box-shadow: var(--shadow-sm); }
.audit li { position: relative; padding: 0 0 14px 20px; }
.audit li::before { content: ''; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--royal); }
.audit li::after { content: ''; position: absolute; left: 3px; top: 17px; bottom: 0; width: 2px; background: var(--ui-line); }
.audit li:last-child::after { display: none; }
.audit b { display: block; font-size: 13px; } .audit small { color: var(--ui-muted); font-size: 12px; }

/* ---------- 12. FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-intro h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; margin-bottom: 16px; }
.faq-intro p { color: var(--muted); margin-bottom: 28px; }
.acc-item { border: 1px solid var(--border); border-radius: 16px; background: var(--card); margin-bottom: 12px; transition: border-color .3s, box-shadow .3s; }
.acc-item.open { border-color: var(--royal); box-shadow: var(--shadow); }
.acc-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left;
  padding: 20px 22px; background: none; border: 0; font-size: 1rem; font-weight: 600; color: var(--heading);
}
.acc-q .ic { width: 22px; height: 22px; color: var(--muted); transition: transform .35s var(--ease), color .3s; }
.acc-item.open .acc-q .ic { transform: rotate(180deg); color: var(--royal); }
.acc-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.acc-a > div { overflow: hidden; }
.acc-item.open .acc-a { grid-template-rows: 1fr; }
.acc-a p { padding: 0 22px 22px; color: var(--muted); font-size: .95rem; }

/* ---------- 13. CTA akhir + borang ---------- */
.final-cta { padding-top: 40px; }
.cta-card {
  position: relative; overflow: hidden; border-radius: 32px; padding: 64px;
  background: linear-gradient(135deg, #6E120E 0%, #B3261E 45%, #E0791A 100%);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; color: rgba(255, 255, 255, .85);
}
.cta-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.cta-bg .blob-1 { width: 420px; height: 420px; background: rgba(255, 255, 255, .2); top: -200px; left: -100px; }
.cta-bg .blob-2 { width: 360px; height: 360px; background: rgba(242, 193, 78, .5); bottom: -180px; right: 20%; }
.cta-copy { position: relative; z-index: 1; }
.cta-copy h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; margin-bottom: 18px; }
.cta-copy p { font-size: 1.05rem; }
.contact-info { display: grid; gap: 10px; margin-top: 30px; }
.contact-info:empty { display: none; }
.contact-info li { display: flex; align-items: center; gap: 12px; color: #fff; }
.contact-info li a { color: #fff !important; }
.contact-info .ic { width: 36px; height: 36px; padding: 9px; border-radius: 10px; background: rgba(255, 255, 255, .14); }
.contact-form { position: relative; z-index: 1; background: var(--card); border-radius: 22px; padding: 32px; box-shadow: var(--shadow-lg); color: var(--text); }
.contact-form h3 { font-size: 1.3rem; font-weight: 700; }
.cf-sub { color: var(--muted); font-size: .9rem; margin: 6px 0 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--heading); }
.field input, .field textarea {
  width: 100%; padding: 11px 14px; border-radius: 11px; border: 1.5px solid var(--border); background: var(--bg);
  color: var(--text); font-size: .93rem; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px var(--ring); }
.field.invalid input { border-color: var(--red); }
.form-msg { margin-top: 14px; font-size: .88rem; border-radius: 10px; }
.form-msg:not(:empty) { padding: 12px 14px; }
.form-msg.ok { background: rgba(18, 166, 106, .1); color: #0E8A57; }
.form-msg.err { background: rgba(224, 72, 79, .1); color: #C9333A; }
.form-msg.info { background: rgba(217, 98, 11, .08); color: var(--royal); }
[data-theme="dark"] .form-msg.ok { color: #45D49A; } [data-theme="dark"] .form-msg.err { color: #FF7A80; } [data-theme="dark"] .form-msg.info { color: #FFB26B; }

/* ---------- 14. Footer ---------- */
.site-footer { background: #0E0A07; color: #B8A794; padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.f-brand p { margin: 18px 0 22px; font-size: .9rem; max-width: 340px; }
.f-col h4 { color: #fff; font-size: .95rem; font-weight: 600; margin-bottom: 16px; }
.f-col li { margin-bottom: 10px; }
.f-col a, .footer-bottom a { color: #B8A794 !important; font-size: .9rem; transition: color .2s; }
.f-col a:hover, .footer-bottom a:hover { color: #fff !important; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 56px; padding-top: 24px; }

/* ---------- 15. Butang kembali ke atas ---------- */
.back-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 48px; height: 48px; border-radius: 14px; border: 0;
  background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(217, 98, 11, .6);
  opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .35s var(--ease);
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { transform: translateY(-3px); }

/* ---------- 16. Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
