/* =========================================================
   Siber Group — Testimoni
   Palet: putih (dominan), hitam, merah
   Dipakai bersama Bootstrap 5.3 + Tailwind (prefix tw-)
   ========================================================= */
:root {
  --sg-red: #d7192f;
  --sg-red-dark: #a8101f;
  --sg-red-soft: #fdecee;
  --sg-ink: #0b0b0d;
  --sg-ink-2: #16161a;
  --sg-ink-3: #24242a;
  --sg-white: #ffffff;
  --sg-paper: #f6f6f7;
  --sg-line: #e7e7ea;
  --sg-line-2: #d9d9de;
  --sg-text: #18181b;
  --sg-muted: #6b6b75;
  --sg-good: #13874b;
  --sg-radius: 14px;
  --sg-shadow: 0 1px 2px rgba(11, 11, 13, .04), 0 8px 24px -12px rgba(11, 11, 13, .12);
  --sg-shadow-lg: 0 2px 4px rgba(11, 11, 13, .04), 0 24px 48px -20px rgba(11, 11, 13, .28);

  --bs-body-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-body-color: var(--sg-text);
  --bs-body-bg: var(--sg-white);
  --bs-link-color: var(--sg-red);
  --bs-link-hover-color: var(--sg-red-dark);
  --bs-border-color: var(--sg-line);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--bs-body-font-family);
  background: var(--sg-white);
  color: var(--sg-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--sg-red); color: #fff; }
.font-mono, .sg-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ---------- Navbar ---------- */
.sg-nav {
  background: rgba(11, 11, 13, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.sg-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.sg-brand:hover { color: #fff; }
.sg-brand-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--sg-red);
  display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(215, 25, 47, .15);
}
.sg-brand-mark svg { width: 16px; height: 16px; }
.sg-brand-name { font-weight: 800; letter-spacing: -.2px; font-size: 16px; }
.sg-brand-sub { font-size: 10.5px; color: rgba(255, 255, 255, .5); letter-spacing: 1.6px; text-transform: uppercase; display: block; line-height: 1; margin-top: 3px; }
.sg-nav .nav-link { color: rgba(255, 255, 255, .68); font-size: 13.5px; font-weight: 500; padding: 8px 14px !important; }
.sg-nav .nav-link:hover, .sg-nav .nav-link.active { color: #fff; }
.sg-nav .navbar-toggler { border-color: rgba(255, 255, 255, .2); }
.sg-nav .navbar-toggler-icon { filter: invert(1); }

/* ---------- Buttons ---------- */
.btn-sg {
  --bs-btn-bg: var(--sg-red); --bs-btn-border-color: var(--sg-red); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--sg-red-dark); --bs-btn-hover-border-color: var(--sg-red-dark); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--sg-red-dark); --bs-btn-active-border-color: var(--sg-red-dark);
  --bs-btn-focus-shadow-rgb: 215, 25, 47;
  font-weight: 600; font-size: 13.5px; border-radius: 10px; padding: 9px 18px;
}
.btn-sg-ghost {
  --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .22);
  --bs-btn-hover-bg: rgba(255, 255, 255, .08); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: rgba(255, 255, 255, .35);
  font-weight: 600; font-size: 13.5px; border-radius: 10px; padding: 9px 18px;
}
.btn-sg-outline {
  --bs-btn-color: var(--sg-ink); --bs-btn-border-color: var(--sg-line-2); --bs-btn-bg: #fff;
  --bs-btn-hover-bg: var(--sg-ink); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--sg-ink);
  font-weight: 600; font-size: 13px; border-radius: 10px;
}

/* ---------- Hero ---------- */
.sg-hero {
  position: relative; overflow: hidden; background: var(--sg-ink); color: #fff;
  padding: 72px 0 0;
}
.sg-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.sg-hero::after {
  content: ""; position: absolute; width: 720px; height: 720px; border-radius: 50%;
  right: -260px; top: -380px;
  background: radial-gradient(circle, rgba(215, 25, 47, .28) 0%, rgba(215, 25, 47, 0) 62%);
  pointer-events: none;
}
.sg-hero > .container { position: relative; z-index: 1; }
.sg-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase;
  color: #ff8a97; background: rgba(215, 25, 47, .12); border: 1px solid rgba(215, 25, 47, .3);
  padding: 6px 12px; border-radius: 999px;
}
.sg-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sg-red); box-shadow: 0 0 0 3px rgba(215, 25, 47, .25); animation: sgPulse 2.2s infinite; }
@keyframes sgPulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(215, 25, 47, .25); } 50% { box-shadow: 0 0 0 6px rgba(215, 25, 47, .05); } }
.sg-hero h1 {
  font-weight: 800; letter-spacing: -1.4px; line-height: 1.06;
  font-size: clamp(32px, 5.2vw, 56px); margin: 22px 0 18px;
}
.sg-hero h1 em { font-style: normal; color: var(--sg-red); }
.sg-hero .lead { color: rgba(255, 255, 255, .64); font-size: 16px; line-height: 1.7; max-width: 560px; }

.sg-stats {
  margin-top: 56px; border-top: 1px solid rgba(255, 255, 255, .08);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.sg-stat { padding: 26px 24px 30px; border-right: 1px solid rgba(255, 255, 255, .08); }
.sg-stat:last-child { border-right: 0; }
.sg-stat:first-child { padding-left: 0; }
.sg-stat-value { font-size: 30px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.sg-stat-value small { font-size: 16px; color: var(--sg-red); margin-left: 2px; }
.sg-stat-label { font-size: 12.5px; color: rgba(255, 255, 255, .5); margin-top: 8px; }

.sg-assure { display: flex; flex-direction: column; gap: 12px; }
.sg-assure-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px; padding: 16px 18px;
}
.sg-assure-icon {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px;
  background: rgba(215, 25, 47, .14); color: #ff6b7c; display: grid; place-items: center;
}
.sg-assure-icon svg { width: 17px; height: 17px; }
.sg-assure-title { font-size: 14px; font-weight: 600; color: #fff; }
.sg-assure-desc { font-size: 12.5px; color: rgba(255, 255, 255, .52); line-height: 1.55; margin-top: 2px; }

/* ---------- Toolbar ---------- */
.sg-toolbar-wrap {
  position: sticky; top: 64px; z-index: 20;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--sg-line);
}
.sg-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.sg-chips::-webkit-scrollbar { display: none; }
.sg-chip {
  flex-shrink: 0; border: 1px solid var(--sg-line-2); background: #fff; color: var(--sg-text);
  font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  transition: all .18s ease; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px;
}
.sg-chip:hover { border-color: var(--sg-ink); }
.sg-chip.active { background: var(--sg-ink); border-color: var(--sg-ink); color: #fff; }
.sg-chip .count {
  font-size: 11px; font-weight: 700; min-width: 20px; padding: 1px 6px; border-radius: 999px;
  background: var(--sg-paper); color: var(--sg-muted);
}
.sg-chip.active .count { background: var(--sg-red); color: #fff; }

.sg-select {
  border: 1px solid var(--sg-line-2); border-radius: 10px; font-size: 13px; font-weight: 500;
  padding: 8px 34px 8px 12px; min-width: 0; color: var(--sg-text); background-color: #fff;
  width: auto; flex: 1 1 140px;
}
@media (min-width: 992px) { .sg-select { flex: 0 0 auto; min-width: 150px; } }
.sg-select:focus { border-color: var(--sg-ink); box-shadow: 0 0 0 3px rgba(11, 11, 13, .08); }

/* ---------- Section ---------- */
.sg-section { background: var(--sg-paper); padding: 36px 0 64px; min-height: 60vh; }
.sg-resultbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.sg-resultbar .meta { font-size: 13px; color: var(--sg-muted); }
.sg-resultbar .meta strong { color: var(--sg-text); }

/* ---------- Card ---------- */
.sg-card {
  position: relative; height: 100%; background: #fff; border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius); padding: 18px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--sg-shadow); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  cursor: pointer; overflow: hidden;
}
.sg-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--sg-red), var(--sg-ink));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.sg-card:hover { transform: translateY(-3px); box-shadow: var(--sg-shadow-lg); border-color: var(--sg-line-2); }
.sg-card:hover::before { transform: scaleX(1); }
.sg-card:focus-visible { outline: 2px solid var(--sg-red); outline-offset: 2px; }

.sg-avatar {
  width: 42px; height: 42px; border-radius: 11px; background: var(--sg-ink); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; flex-shrink: 0; position: relative;
}
.sg-avatar::after {
  content: ""; position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--sg-red); border: 2.5px solid #fff;
}
.sg-name { font-size: 14.5px; font-weight: 700; letter-spacing: .3px; line-height: 1.2; }
.sg-date { font-size: 12px; color: var(--sg-muted); margin-top: 3px; }
.sg-verified {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700;
  color: var(--sg-good); background: #e9f7ef; border-radius: 999px; padding: 4px 9px; white-space: nowrap;
}
.sg-verified svg { width: 12px; height: 12px; }

.sg-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 7px; letter-spacing: .2px;
}
.sg-tag-red { background: var(--sg-red-soft); color: var(--sg-red); }
.sg-tag-ink { background: var(--sg-ink); color: #fff; }
.sg-tag-line { background: #fff; color: var(--sg-muted); border: 1px solid var(--sg-line); }

.sg-detail { font-size: 13px; color: var(--sg-muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

.sg-proofs { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.sg-proofs.one { grid-template-columns: 1fr; }
.sg-proof {
  position: relative; border-radius: 10px; overflow: hidden; background: var(--sg-paper);
  aspect-ratio: 4 / 3; border: 1px solid var(--sg-line);
}
.sg-proofs.one .sg-proof { aspect-ratio: 16 / 9; }
.sg-proof img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.sg-card:hover .sg-proof img { transform: scale(1.04); }
.sg-proof-label {
  position: absolute; left: 8px; bottom: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .3px;
  background: rgba(11, 11, 13, .82); color: #fff; padding: 3px 8px; border-radius: 6px;
}
.sg-proof-empty {
  display: grid; place-items: center; text-align: center; padding: 18px; color: var(--sg-muted); font-size: 12px;
  aspect-ratio: auto; min-height: 96px; background: repeating-linear-gradient(135deg, #fafafa 0 10px, #f3f3f5 10px 20px);
}

.sg-quote {
  position: relative; font-size: 13.5px; color: #3a3a42; line-height: 1.65; padding-left: 14px;
  border-left: 2px solid var(--sg-red); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sg-card-foot {
  margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--sg-line);
  display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--sg-muted);
}
.sg-card-foot .more { color: var(--sg-ink); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.sg-card:hover .sg-card-foot .more { color: var(--sg-red); }
.sg-card-foot .more svg { width: 14px; height: 14px; transition: transform .2s; }
.sg-card:hover .sg-card-foot .more svg { transform: translateX(3px); }

/* Entrance */
.sg-fade { opacity: 0; transform: translateY(10px); animation: sgIn .45s ease forwards; }
@keyframes sgIn { to { opacity: 1; transform: none; } }

/* Skeleton */
.sg-skel { background: linear-gradient(90deg, #efeff1 25%, #f7f7f8 37%, #efeff1 63%); background-size: 400% 100%; animation: sgShimmer 1.3s ease infinite; border-radius: 8px; }
@keyframes sgShimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* Empty state */
.sg-empty {
  background: #fff; border: 1px dashed var(--sg-line-2); border-radius: var(--sg-radius);
  padding: 56px 24px; text-align: center; color: var(--sg-muted);
}
.sg-empty-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--sg-red-soft); color: var(--sg-red); display: grid; place-items: center; margin: 0 auto 14px; }
.sg-empty-icon svg { width: 24px; height: 24px; }
.sg-empty h3 { font-size: 16px; font-weight: 700; color: var(--sg-text); margin-bottom: 6px; }

/* ---------- Pagination ---------- */
.sg-pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.sg-pager .info { font-size: 13px; color: var(--sg-muted); }
.sg-pager .pagination { margin: 0; gap: 6px; }
.sg-pager .page-link {
  border: 1px solid var(--sg-line-2) !important; border-radius: 10px !important; color: var(--sg-text);
  min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px;
  font-size: 13.5px; font-weight: 600; background: #fff; box-shadow: none !important;
}
.sg-pager .page-link:hover { border-color: var(--sg-ink) !important; background: #fff; color: var(--sg-ink); }
.sg-pager .page-item.active .page-link { background: var(--sg-ink); border-color: var(--sg-ink) !important; color: #fff; }
.sg-pager .page-item.disabled .page-link { color: #b5b5bd; background: #fafafa; }
.sg-pager .page-link svg { width: 16px; height: 16px; }
.sg-pager .ellipsis .page-link { border-color: transparent !important; background: transparent; }

/* ---------- Modal ---------- */
.sg-modal .modal-content { border: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .45); }
.sg-modal .modal-header { background: var(--sg-ink); color: #fff; border: 0; padding: 20px 24px; }
.sg-modal .btn-close { filter: invert(1) grayscale(1) brightness(2); opacity: .7; }
.sg-modal .modal-body { padding: 24px; }
.sg-modal-proof { border-radius: 12px; overflow: hidden; border: 1px solid var(--sg-line); background: var(--sg-paper); position: relative; cursor: zoom-in; }
.sg-modal-proof img { width: 100%; max-height: 420px; object-fit: contain; display: block; background: #fff; }
.sg-kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; font-size: 13.5px; }
.sg-kv dt { color: var(--sg-muted); font-weight: 500; }
.sg-kv dd { margin: 0; font-weight: 600; }
.sg-modal-quote { background: var(--sg-paper); border-radius: 12px; padding: 18px 20px; font-size: 14.5px; line-height: 1.7; color: #2b2b31; position: relative; }
.sg-modal-quote::before { content: "\201C"; position: absolute; top: -8px; left: 14px; font-size: 54px; color: var(--sg-red); font-family: Georgia, serif; line-height: 1; }

.sg-zoom .modal-content { background: transparent; border: 0; box-shadow: none; }
.sg-zoom img { max-width: 100%; max-height: 86vh; border-radius: 12px; display: block; margin: 0 auto; }
.sg-zoom .btn-close-white { position: absolute; top: -40px; right: 0; opacity: .9; }
.modal-backdrop.show { opacity: .82; }

/* ---------- CTA band ---------- */
.sg-cta { background: #fff; border-top: 1px solid var(--sg-line); padding: 56px 0; }
.sg-cta-box {
  position: relative; overflow: hidden; border-radius: 20px; background: var(--sg-ink); color: #fff; padding: 40px;
}
.sg-cta-box::after {
  content: ""; position: absolute; right: -120px; bottom: -200px; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 25, 47, .35), transparent 62%);
}
.sg-cta-box > * { position: relative; z-index: 1; }
.sg-cta-box h2 { font-weight: 800; letter-spacing: -.6px; font-size: clamp(22px, 3vw, 30px); }
.sg-cta-box p { color: rgba(255, 255, 255, .6); margin: 0; font-size: 14.5px; line-height: 1.65; }

/* ---------- Footer ---------- */
.sg-footer { background: var(--sg-ink); color: rgba(255, 255, 255, .55); font-size: 13px; padding: 40px 0 28px; }
.sg-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.sg-footer a:hover { color: #fff; }
.sg-footer .sep { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 28px; padding-top: 20px; font-size: 12px; }
.sg-footer .reg { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; border: 1px solid rgba(255, 255, 255, .12); padding: 4px 10px; border-radius: 999px; color: rgba(255, 255, 255, .6); }

/* ---------- Legal pages ---------- */
.sg-legal-hero { background: var(--sg-ink); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.sg-legal-hero::after {
  content: ""; position: absolute; width: 560px; height: 560px; right: -200px; top: -300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 25, 47, .25), transparent 62%);
}
.sg-legal-hero > .container { position: relative; z-index: 1; }
.sg-legal-hero h1 { font-weight: 800; letter-spacing: -1px; font-size: clamp(30px, 4vw, 44px); margin: 16px 0 10px; }
.sg-legal-hero .updated { color: rgba(255, 255, 255, .5); font-size: 13px; }
.sg-legal { padding: 48px 0 72px; background: #fff; }
.sg-toc { position: sticky; top: 96px; border-left: 2px solid var(--sg-line); padding-left: 16px; }
.sg-toc .label { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--sg-muted); margin-bottom: 12px; }
.sg-toc a { display: block; color: var(--sg-muted); text-decoration: none; font-size: 13.5px; padding: 5px 0; transition: color .15s; }
.sg-toc a:hover, .sg-toc a.active { color: var(--sg-red); }
.sg-prose h2 { font-size: 19px; font-weight: 700; letter-spacing: -.2px; margin: 0 0 12px; display: flex; gap: 12px; align-items: baseline; }
.sg-prose h2 .num { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--sg-red); font-weight: 600; }
.sg-prose section { padding: 26px 0; border-bottom: 1px solid var(--sg-line); scroll-margin-top: 90px; }
.sg-prose section:first-child { padding-top: 0; }
.sg-prose section:last-child { border-bottom: 0; }
.sg-prose p, .sg-prose li { color: #3d3d45; font-size: 15px; line-height: 1.8; }
.sg-prose ul { padding-left: 0; list-style: none; margin: 0; }
.sg-prose ul li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.sg-prose ul li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 8px; height: 8px; border-radius: 2px; background: var(--sg-red); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .sg-stats { grid-template-columns: repeat(2, 1fr); }
  .sg-stat:nth-child(2) { border-right: 0; }
  .sg-stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .sg-stat:nth-child(3) { padding-left: 0; }
  .sg-nav .navbar-collapse { padding: 10px 0 16px; }
}
@media (max-width: 767.98px) {
  .sg-hero { padding-top: 48px; }
  .sg-toolbar-wrap { top: 60px; }
  .sg-stat { padding: 20px 16px 22px; }
  .sg-stat-value { font-size: 24px; }
  .sg-kv { grid-template-columns: 1fr; gap: 2px; }
  .sg-kv dd { margin-bottom: 10px; }
  .sg-cta-box { padding: 28px 22px; }
  .sg-pager { justify-content: center; }
  .sg-pager .info { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .sg-fade { opacity: 1; transform: none; }
}
.sg-footer a { overflow-wrap: anywhere; }

/* Logo */
.sg-logo { width: 36px; height: 36px; display: block; flex-shrink: 0; transition: transform .25s ease; }
.sg-brand:hover .sg-logo { transform: translateY(-1px) scale(1.04); }
.sg-footer .sg-logo { width: 40px; height: 40px; }
.sg-footer .sg-brand, .sg-footer .sg-brand:hover { color: #fff; }
