/* =====================================================================
   Ctrl+Fix — Stylesheet
   Identik dengan bad-coder.com: token warna, font (Space Mono + DM Sans),
   grid background hijau, scanline, logo "BC", eyebrow pill, sec-label,
   tombol btn-p / btn-g, kartu surface radius 16px.
   Bootstrap 5 tetap dipakai untuk grid & komponen; tampilannya di-override.
   ===================================================================== */
:root {
  /* — token resmi bad-coder.com — */
  --bg: #080c10;
  --surface: #0d1117;
  --surface-2: #111820;
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(99,235,168,0.25);
  --accent: #63eba8;
  --accent-hover: #7fffc4;
  --accent-dim: rgba(99,235,168,0.12);
  --accent-blue: #5bb4f5;
  --accent-blue-dim: rgba(91,180,245,0.12);
  --accent-gold: #f5c842;
  --accent-gold-dim: rgba(245,200,66,0.12);
  --accent-gold-border: rgba(245,200,66,0.3);
  --red: #f87171;
  --red-dim: rgba(248,113,113,0.07);
  --red-border: rgba(248,113,113,0.25);
  --text-primary: #e8edf2;
  --text-secondary: #7c8c9c;
  --text-muted: #4a5568;
  --mono: 'Space Mono', monospace;
  --sans: 'DM Sans', sans-serif;
  --r: 8px;
  --rl: 16px;

  /* jembatan ke variabel Bootstrap */
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text-primary);
  --bs-border-color: var(--border);
  --bs-link-color: var(--accent);
  --bs-link-hover-color: var(--accent-hover);
  --bs-emphasis-color: var(--text-primary);
  --bs-secondary-color: var(--text-secondary);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
/* scanline halus — sama seperti bad-coder.com */
body::before {
  content: "";
  position: fixed; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
  pointer-events: none;
  z-index: 9999;
}
.grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(99,235,168,0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,235,168,0.024) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}
/* catatan: JANGAN beri z-index pada main — modal Bootstrap di dalamnya akan tertutup backdrop */
main, footer { position: relative; }
main { flex: 1 0 auto; }

::selection { background: var(--accent); color: #080c10; }

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
h5, h6 { font-size: 15px; letter-spacing: .02em; }
strong, b, th { font-weight: 600; }
code, .mono { font-family: var(--mono); }

.container { max-width: 1120px; padding-left: 24px; padding-right: 24px; }
@media (max-width: 576px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .row.g-5, .row.gx-5 { --bs-gutter-x: 2rem; }
}

/* ============ HEADER ============ */
.bc-header {
  position: sticky; top: 0;
  z-index: 1000;
  padding: 14px 0;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.bc-header.scrolled, .bc-header.solid {
  background: rgba(8,12,16,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.bc-header .navbar { padding: 0; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
  width: 36px; height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px;
  color: var(--accent);
  letter-spacing: -1px;
  user-select: none;
  transition: .15s;
}
.logo:hover .logo-icon { border-color: #fff; box-shadow: 0 0 8px rgba(99,235,168,.5); }
.logo-text {
  font-family: var(--mono); font-size: 15px; font-weight: 700;
  letter-spacing: .08em; color: var(--text-primary);
}
.logo-text span { color: var(--accent); }
.logo-sub {
  font-family: var(--mono); font-size: 11px; color: var(--text-muted);
  letter-spacing: .05em; margin-left: -4px;
}

.bc-header .nav-link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-secondary) !important;
  letter-spacing: .05em;
  padding: 8px 12px !important;
  transition: color .2s;
}
.bc-header .nav-link:hover,
.bc-header .nav-link:focus,
.bc-header .nav-link.active,
.bc-header .nav-link.show { color: var(--accent) !important; }

.navbar-toggler {
  border: 1px solid var(--border) !important;
  padding: 6px 10px;
  color: var(--text-secondary);
  box-shadow: none !important;
}
.navbar-toggler i { font-size: 20px; }

@media (max-width: 991.98px) {
  .bc-header .navbar-collapse {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--rl);
    margin-top: 14px;
    padding: 12px;
  }
  .bc-header .nav-actions { padding: 8px 12px 4px; }
}

.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  color: var(--text-secondary) !important;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px !important;
}
.user-chip .role { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }

.dropdown-menu {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r) !important;
  padding: 6px;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.7);
}
.dropdown-item {
  font-family: var(--mono); font-size: 12px;
  color: var(--text-secondary) !important;
  border-radius: 6px;
  padding: 8px 12px;
}
.dropdown-item i { color: var(--text-muted); margin-right: 6px; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--accent-dim) !important; color: var(--accent) !important; }
.dropdown-item:hover i { color: var(--accent); }
.dropdown-divider { border-color: var(--border) !important; }
.dropdown-header { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--text-muted); text-transform: uppercase; }

/* link ke bad-coder.com */
a.bc-link { color: inherit; text-decoration: underline dotted rgba(99,235,168,.45); text-underline-offset: 3px; transition: color .2s; }
a.bc-link:hover { color: var(--accent); text-decoration-style: solid; }
a.bc-link.logo-sub { color: var(--text-secondary); text-decoration: none; white-space: nowrap; }
a.bc-link.logo-sub:hover { color: var(--accent); }
.eyebrow a.bc-link { color: var(--accent); }
.bc-footer .fi p a.bc-link { color: var(--accent); }
@media (max-width: 380px) { a.bc-link.logo-sub { font-size: 10px; } }

/* ============ HERO (beranda) ============ */
.hero {
  min-height: calc(100vh - 66px);
  display: flex; align-items: center;
  padding: 60px 0 80px;
  position: relative;
}
.hero-glow {
  position: absolute; top: 10%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px; max-width: 100%;
  background: radial-gradient(circle, rgba(99,235,168,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  color: var(--accent);
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  background: var(--accent-dim);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .2; } }

.hero h1 {
  font-family: var(--mono);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.hero h1 .ac, .ac { color: var(--accent); }
.hero-sub {
  font-size: 1.15rem; color: var(--text-secondary);
  max-width: 560px; margin-bottom: 12px; font-weight: 300;
}
.hero-desc {
  font-family: var(--mono); font-size: 12px;
  color: var(--text-muted); margin-bottom: 40px; letter-spacing: .05em;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* terminal mini pada hero */
.bc-terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.8);
}
.bc-terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.bc-terminal-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.bc-terminal-dot.lit { background: var(--accent); }
.bc-terminal-title { margin-left: 8px; font-family: var(--mono); font-size: 11px; color: var(--text-muted); }
.bc-terminal-body {
  padding: 20px 22px 24px;
  font-family: var(--mono); font-size: 12.5px;
  color: var(--text-secondary);
  min-height: 190px;
}
.bc-terminal-body .prompt { color: var(--accent); }
.bc-terminal-body .cmd { color: var(--text-primary); }
.bc-terminal-cursor {
  display: inline-block; width: 8px; height: 1em;
  background: var(--accent); vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

/* ============ SECTION ============ */
.section { padding: 80px 0; }
.section-tight { padding: 48px 0; }
.sec-label {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent);
  letter-spacing: .15em; text-transform: uppercase;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.sec-label::after {
  content: ""; flex: 1; max-width: 40px; height: 1px;
  background: var(--border-accent);
}
.sec-title {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}
.sec-title .dim, .dim { color: var(--text-muted); }

.page-head { margin: 36px 0 28px; }
.page-head .sec-title { margin-bottom: 8px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.page-sub { color: var(--text-secondary); font-size: 14px; margin: 0; max-width: 680px; }

/* ============ SERVICE GRID (svc-card) ============ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  overflow: hidden;
}
.svc-card { background: var(--surface); padding: 32px; transition: background .2s; }
.svc-card:hover { background: var(--surface-2); }
.svc-ico {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.02);
  color: var(--text-secondary);
  font-size: 19px;
  transition: .2s;
}
.svc-card:hover .svc-ico { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
.svc-card h3 { font-family: var(--mono); font-size: 14px; font-weight: 700; margin-bottom: 10px; letter-spacing: .02em; }
.svc-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 14px; }
.svc-card .svc-div {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
@media (max-width: 400px) { .svc-grid { grid-template-columns: 1fr; } .svc-card { padding: 24px; } }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--mono); font-size: 10px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  letter-spacing: .04em;
}

/* ============ STEPS / ALUR ============ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--rl); padding: 24px;
  position: relative;
}
.step-num {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  letter-spacing: .1em; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.step-num i {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-dim); border: 1px solid var(--border-accent);
  font-size: 14px;
}
.step h3 { font-family: var(--mono); font-size: 14px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--text-secondary); margin: 0; line-height: 1.7; }

/* ============ BUTTONS (btn-p / btn-g) ============ */
.btn {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: var(--r) !important;
  padding: 11px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .2s;
  box-shadow: none !important;
}
.btn-lg { padding: 14px 28px; font-size: 13px; }
.btn-sm { padding: 6px 12px; font-size: 11px; gap: 6px; }

.btn-primary, .btn-p {
  background: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  color: #080c10 !important;
}
.btn-primary:hover, .btn-p:hover {
  background: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,235,168,0.25) !important;
}
.btn-outline-primary, .btn-outline-secondary, .btn-outline-light, .btn-g {
  background: transparent !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border) !important;
  font-weight: 400;
}
.btn-outline-primary:hover, .btn-outline-secondary:hover, .btn-outline-light:hover, .btn-g:hover {
  border-color: var(--border-accent) !important;
  color: var(--text-primary) !important;
}
.btn-outline-primary { color: var(--accent) !important; border-color: var(--border-accent) !important; }
.btn-outline-danger, .btn-danger {
  background: var(--red-dim) !important;
  color: var(--red) !important;
  border: 1px solid var(--red-border) !important;
  font-weight: 400;
}
.btn-outline-danger:hover, .btn-danger:hover { background: rgba(248,113,113,.15) !important; }
.btn-gold {
  background: var(--accent-gold-dim) !important; color: var(--accent-gold) !important;
  border: 1px solid var(--accent-gold-border) !important; font-weight: 400;
}
.btn-close { filter: invert(1) grayscale(1) brightness(1.5); opacity: .5; }

/* ============ CARDS ============ */
.card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--rl) !important;
  color: var(--text-primary);
  overflow: hidden;
}
.card-header {
  background: transparent !important;
  border-bottom: 1px solid var(--border) !important;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted) !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card-header .ch-title { color: var(--accent); }
.card-header .ch-title::before { content: "// "; color: var(--text-muted); }
.card-body { padding: 22px; }
.card-footer { background: transparent !important; border-top: 1px solid var(--border) !important; }

/* ============ STAT BOX ============ */
.bc-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 20px 22px;
  height: 100%;
  position: relative;
  transition: border-color .2s;
}
.bc-stat:hover { border-color: var(--border-accent); }
.bc-stat .num { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--accent); line-height: 1.2; word-break: break-word; }
.bc-stat .num small { font-size: 13px; color: var(--text-muted); font-weight: 400; }
.bc-stat .lbl { font-family: var(--mono); font-size: 11px; color: var(--text-muted); margin-top: 6px; letter-spacing: .04em; text-transform: uppercase; }
.bc-stat-ico {
  position: absolute; top: 18px; right: 18px;
  width: 32px; height: 32px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-dim); border: 1px solid var(--border-accent);
  color: var(--accent); font-size: 14px;
}
.bc-stat.blue .num { color: var(--accent-blue); }
.bc-stat.blue .bc-stat-ico { background: var(--accent-blue-dim); border-color: rgba(91,180,245,.3); color: var(--accent-blue); }
.bc-stat.gold .num { color: var(--accent-gold); }
.bc-stat.gold .bc-stat-ico { background: var(--accent-gold-dim); border-color: var(--accent-gold-border); color: var(--accent-gold); }
.bc-stat.red .num { color: var(--red); }
.bc-stat.red .bc-stat-ico { background: var(--red-dim); border-color: var(--red-border); color: var(--red); }
.bc-stat.white .num { color: var(--text-primary); }
.bc-stat.white .bc-stat-ico { background: rgba(255,255,255,.04); border-color: var(--border); color: var(--text-secondary); }

/* ============ QUICK ACTIONS (dashboard customer) ============ */
.qa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.qa {
  display: flex; gap: 14px; align-items: center;
  padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text-secondary);
  transition: .2s;
}
.qa:hover { border-color: var(--border-accent); color: var(--text-primary); }
.qa-ico {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--accent-dim); border: 1px solid var(--border-accent);
  border-radius: 6px; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.qa strong { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--text-primary); }
.qa span { font-size: 12.5px; }
@media (max-width: 576px) {
  .qa-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .qa { padding: 12px; gap: 10px; }
  .qa span { display: none; }
}

/* ============ TABLES ============ */
.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text-primary);
  --bs-table-hover-bg: var(--surface-2);
  --bs-table-hover-color: var(--text-primary);
  --bs-table-border-color: var(--border);
  color: var(--text-primary) !important;
  font-size: 13.5px;
  margin-bottom: 0;
}
.table > :not(caption) > * > * { background: transparent !important; color: inherit; padding: 13px 16px; border-color: var(--border) !important; }
.table thead th {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-muted) !important;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid var(--border) !important;
}
.table-hover > tbody > tr:hover > * { background: var(--surface-2) !important; }
.table td { vertical-align: middle; }
.table .kode { font-family: var(--mono); font-size: 12px; color: var(--accent); white-space: nowrap; }
.table-borderless > :not(caption) > * > * { border: 0 !important; padding: 7px 0; }
.table-borderless th { color: var(--text-muted); font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: .03em; vertical-align: top; }
.td-empty { text-align: center; color: var(--text-muted) !important; padding: 36px 16px !important; font-family: var(--mono); font-size: 12px; }

/* tabel detail: label kiri, nilai kanan */
.kv { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 10px 16px; margin: 0; }
.kv dt { font-family: var(--mono); font-size: 11px; color: var(--text-muted); font-weight: 400; letter-spacing: .05em; text-transform: uppercase; padding-top: 3px; }
.kv dd { margin: 0; font-size: 14px; color: var(--text-primary); word-break: break-word; }
@media (max-width: 480px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 10px; } }

/* ============ FORMS ============ */
.form-label, label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: .06em;
  margin-bottom: 7px;
  text-transform: uppercase;
}
.form-check-label { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 14px; color: var(--text-secondary); }
.form-control, .form-select {
  width: 100%;
  padding: 10px 14px;
  background-color: var(--bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r) !important;
  color: var(--text-primary) !important;
  font-family: var(--mono);
  font-size: 13px;
  transition: border-color .2s, box-shadow .2s;
}
textarea.form-control { font-family: var(--sans); font-size: 14px; line-height: 1.6; }
.form-control:focus, .form-select:focus {
  border-color: var(--border-accent) !important;
  box-shadow: 0 0 0 3px rgba(99,235,168,0.07) !important;
  outline: none;
}
.form-control::placeholder { color: var(--text-muted); opacity: 1; }
.form-control:disabled, .form-control[readonly] { opacity: .55; }
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%237c8c9c' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}
.form-select option { background: var(--surface); color: var(--text-primary); }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.6); }
input[type="file"].form-control { padding: 8px 10px; }
input[type="file"]::file-selector-button {
  font-family: var(--mono); font-size: 11px;
  background: var(--accent-dim); color: var(--accent);
  border: 1px solid var(--border-accent); border-radius: 4px;
  padding: 5px 10px; margin-right: 12px; cursor: pointer;
}
.form-text { color: var(--text-muted) !important; font-size: 12px; margin-top: 6px; }
.req { color: var(--accent); }
.was-validated .form-control:invalid, .was-validated .form-select:invalid { border-color: var(--red-border) !important; }
.was-validated .form-control:valid, .was-validated .form-select:valid { border-color: var(--border-accent) !important; background-image: none; }
.invalid-feedback { color: var(--red); font-family: var(--mono); font-size: 11px; }
.form-check-input { background-color: var(--bg); border-color: var(--border-accent); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }

.input-group-text {
  background: var(--surface-2) !important; color: var(--text-muted) !important;
  border: 1px solid var(--border) !important; font-family: var(--mono); font-size: 12px;
}

.char-counter { display: block; text-align: right; font-family: var(--mono); font-size: 11px; color: var(--text-muted); margin-top: 6px; }

/* star rating */
.star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; font-size: 1.8rem; line-height: 1; }
.star-rating input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-rating label { cursor: pointer; color: var(--text-muted); transition: color .12s; margin: 0; font-size: inherit; text-transform: none; }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: var(--accent-gold); }
.star-rating input:focus-visible + label { outline: 1px dashed var(--accent); outline-offset: 2px; }

/* ============ ALERTS ============ */
.alert {
  border-radius: var(--r) !important;
  font-size: 13.5px;
  border: 1px solid;
  padding: 12px 16px;
}
.alert-success { background: var(--accent-dim) !important; border-color: var(--border-accent) !important; color: var(--accent) !important; }
.alert-danger  { background: var(--red-dim) !important; border-color: var(--red-border) !important; color: var(--red) !important; }
.alert-warning { background: var(--accent-gold-dim) !important; border-color: var(--accent-gold-border) !important; color: var(--accent-gold) !important; }
.alert-info    { background: var(--accent-blue-dim) !important; border-color: rgba(91,180,245,.3) !important; color: var(--accent-blue) !important; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert-link { color: inherit !important; text-decoration: underline; font-weight: 600; }

/* ============ STATUS PILL ============ */
.status-pill, .badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 4px !important;
  border: 1px solid;
  white-space: nowrap;
  line-height: 1.4;
}
.sp-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.status-pass    { color: var(--accent);       background: var(--accent-dim);      border-color: var(--border-accent); }
.status-info    { color: var(--accent-blue);  background: var(--accent-blue-dim); border-color: rgba(91,180,245,.3); }
.status-warn, .status-gold { color: var(--accent-gold); background: var(--accent-gold-dim); border-color: var(--accent-gold-border); }
.status-fail    { color: var(--red);          background: var(--red-dim);         border-color: var(--red-border); }
.status-neutral { color: var(--text-secondary); background: rgba(255,255,255,.03); border-color: var(--border); }
.status-info .sp-dot { animation: blink 1.5s ease-in-out infinite; }

/* ============ TIMELINE STATUS ============ */
.bc-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.bc-timeline::before {
  content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px;
  width: 1px; background: var(--border);
}
.bc-timeline li {
  position: relative;
  padding: 0 0 20px 40px;
  font-family: var(--mono); font-size: 12.5px;
  color: var(--text-muted);
}
.bc-timeline li:last-child { padding-bottom: 0; }
.bc-timeline li::before {
  content: ""; position: absolute; left: 4px; top: 3px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border);
}
.bc-timeline li strong { font-weight: 400; }
.bc-timeline li.done { color: var(--text-secondary); }
.bc-timeline li.done::before { background: var(--accent); border-color: var(--accent); }
.bc-timeline li.done::after {
  content: ""; position: absolute; left: 11px; top: 18px; bottom: -3px;
  width: 1px; background: var(--accent);
}
.bc-timeline li.active { color: var(--text-primary); }
.bc-timeline li.active strong { font-weight: 700; color: var(--accent); }
.bc-timeline li.active::before {
  background: var(--accent-dim); border: 2px dashed var(--accent);
  box-shadow: 0 0 0 4px rgba(99,235,168,.08);
}
.bc-timeline li.skip { color: var(--text-muted); }
.bc-timeline li.skip strong { text-decoration: line-through; text-decoration-color: var(--text-muted); }
.bc-timeline li.skip::before { background: var(--surface); border: 2px dashed var(--border); }
.bc-timeline li.skip::after {
  content: ""; position: absolute; left: 11px; top: 18px; bottom: -3px;
  width: 1px; background: var(--accent);
}
.tl-skip { font-size: 11px; color: var(--text-muted); margin-left: 6px; }
.tl-now { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.bc-cancelled {
  padding: 14px 16px; border-radius: var(--r);
  background: var(--red-dim); border: 1px solid var(--red-border); color: var(--red);
  font-family: var(--mono); font-size: 12.5px;
}

/* ============ LOG AKTIVITAS ============ */
.bc-log { list-style: none; padding: 0; margin: 0; }
.bc-log li { padding: 12px 0; border-bottom: 1px dashed var(--border); }
.bc-log li:first-child { padding-top: 0; }
.bc-log li:last-child { border-bottom: 0; padding-bottom: 0; }
.bc-log-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.bc-log-meta { font-family: var(--mono); font-size: 11px; color: var(--text-muted); }
.bc-log-note {
  margin-top: 8px; padding: 10px 12px;
  background: var(--bg); border: 1px solid var(--border); border-left: 2px solid var(--accent);
  border-radius: 6px; font-size: 13.5px; color: var(--text-secondary);
}

/* aktivitas di dashboard customer */
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { display: flex; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.feed li:last-child { border-bottom: 0; }
.feed .feed-ico { color: var(--accent); margin-top: 2px; }
.feed .feed-body { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text-secondary); }
.feed .feed-body a { font-family: var(--mono); font-size: 12px; }
.feed .feed-time { font-family: var(--mono); font-size: 10.5px; color: var(--text-muted); white-space: nowrap; }

/* ============ HIGHLIGHT / INFO BOX ============ */
.tl-highlight, .bc-note {
  padding: 14px 16px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--r);
  font-family: var(--mono); font-size: 12px;
  color: var(--accent);
  line-height: 1.7;
}
.bc-note.gold { background: var(--accent-gold-dim); border-color: var(--accent-gold-border); color: var(--accent-gold); }
.bc-note.plain { background: var(--bg); border-color: var(--border); color: var(--text-secondary); font-family: var(--sans); font-size: 13.5px; }
.bc-file { font-family: var(--mono); font-size: 12px; }
.bc-kode-big {
  font-family: var(--mono); font-size: 13px; color: var(--accent);
  background: var(--accent-dim); border: 1px solid var(--border-accent);
  padding: 4px 10px; border-radius: 4px; letter-spacing: .06em;
}
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ============ FILTER BAR ============ */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end;
  padding: 16px; margin-bottom: 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--rl);
}
.filter-bar > div { flex: 1 1 180px; }
.filter-bar > .fb-actions { flex: 0 0 auto; display: flex; gap: 8px; }
.filter-bar label { margin-bottom: 5px; }

/* ============ TESTIMONI ============ */
.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  height: 100%;
  transition: border-color .2s;
}
.testi-card:hover { border-color: var(--border-accent); }
.testi-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.testi-stars { color: var(--accent-gold); letter-spacing: 2px; font-size: 14px; }
.testi-msg { color: var(--text-secondary); font-size: 14px; line-height: 1.75; flex-grow: 1; margin: 0; font-style: italic; }
.testi-foot { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 11px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 12px; }
.testi-name { color: var(--text-primary); }
.chip-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.chip-filter a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  padding: 6px 12px; border-radius: 4px;
  border: 1px solid var(--border); color: var(--text-secondary);
}
.chip-filter a:hover { border-color: var(--border-accent); color: var(--text-primary); }
.chip-filter a.on { background: var(--accent); border-color: var(--accent); color: #080c10; font-weight: 700; }
.rating-big { font-family: var(--mono); font-size: 44px; font-weight: 700; color: var(--accent-gold); line-height: 1; }

.empty-state {
  border: 1px dashed var(--border);
  border-radius: var(--rl);
  padding: 44px 24px;
  text-align: center;
  color: var(--text-secondary);
}
.empty-state .cm { font-family: var(--mono); font-size: 12px; color: var(--text-muted); }

/* ============ VALUE CARDS (B-A-D) ============ */
.bad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bad-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rl); padding: 28px; transition: border-color .2s; }
.bad-card:hover { border-color: var(--border-accent); }
.bad-letter { font-family: var(--mono); font-size: 44px; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 14px; }
.bad-word { font-family: var(--mono); font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.bad-desc { font-size: 13.5px; color: var(--text-secondary); line-height: 1.75; margin: 0; }
@media (max-width: 768px) { .bad-grid { grid-template-columns: 1fr; } }

/* ============ CONTACT (ct-link) ============ */
.ct-links { display: flex; flex-direction: column; gap: 12px; }
.ct-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text-secondary); font-size: 13px;
  transition: .2s;
}
.ct-link:hover { border-color: var(--border-accent); color: var(--text-primary); }
.ct-ico {
  width: 32px; height: 32px; flex-shrink: 0;
  background: var(--accent-dim); border: 1px solid var(--border-accent);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 15px;
}
.ct-cap { font-family: var(--mono); font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }

/* ============ PANDUAN / FAQ ============ */
.guide-nav { position: sticky; top: 90px; }
.guide-nav a {
  display: block; padding: 8px 12px; border-left: 1px solid var(--border);
  font-family: var(--mono); font-size: 12px; color: var(--text-secondary);
}
.guide-nav a:hover { color: var(--accent); border-left-color: var(--accent); }
.guide-block { margin-bottom: 56px; scroll-margin-top: 90px; }
.guide-block h2 { font-size: 18px; margin-bottom: 18px; }
.guide-block h2 .n { color: var(--accent); margin-right: 8px; }
.guide-steps { counter-reset: gs; list-style: none; padding: 0; margin: 0; }
.guide-steps > li {
  counter-increment: gs;
  position: relative;
  padding: 0 0 18px 44px;
  color: var(--text-secondary); font-size: 14.5px; line-height: 1.75;
}
.guide-steps > li::before {
  content: counter(gs, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  width: 30px; height: 26px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-dim); border: 1px solid var(--border-accent);
}
.guide-steps strong { color: var(--text-primary); }
.guide-steps code, .kbd {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  background: var(--accent-dim); padding: 1px 6px; border-radius: 4px;
}
.status-table td { padding: 10px 16px; }
.accordion { --bs-accordion-bg: var(--surface); --bs-accordion-border-color: var(--border); --bs-accordion-color: var(--text-secondary); --bs-accordion-btn-color: var(--text-primary); --bs-accordion-active-bg: var(--surface-2); --bs-accordion-active-color: var(--accent); --bs-accordion-btn-focus-box-shadow: none; --bs-accordion-border-radius: var(--rl); --bs-accordion-inner-border-radius: var(--rl); }
.accordion-button { font-family: var(--mono); font-size: 13px; }
.accordion-button::after { filter: invert(.7); }
.accordion-button:not(.collapsed)::after { filter: none; }
.accordion-body { font-size: 14px; line-height: 1.75; }

/* ============ MODAL ============ */
.modal { z-index: 1060; }
.modal-backdrop { z-index: 1055; }
.modal-content input, .modal-content select, .modal-content textarea, .modal-content button { position: relative; z-index: 1; pointer-events: auto; }
.modal-content {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--rl) !important;
  color: var(--text-primary);
}
.modal-header, .modal-footer { border-color: var(--border) !important; padding: 18px 24px; }
.modal-body { padding: 22px 24px; }
.modal-title { font-family: var(--mono); font-size: 16px; font-weight: 700; }
.modal-backdrop.show { opacity: .75; }

/* ============ AUTH ============ */
.role-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.role-opt {
  display: flex; flex-direction: column; gap: 4px; margin: 0; cursor: pointer;
  padding: 12px; border: 1px solid var(--border); border-radius: var(--r);
  background: var(--bg); text-transform: none; letter-spacing: 0; transition: .2s;
}
.role-opt i { color: var(--text-muted); font-size: 18px; }
.role-opt strong { font-family: var(--mono); font-size: 12px; color: var(--text-primary); }
.role-opt span { font-family: var(--sans); font-size: 11.5px; color: var(--text-muted); line-height: 1.4; }
.role-opt:hover { border-color: var(--border-accent); }
.btn-check:checked + .role-opt { border-color: var(--accent); background: var(--accent-dim); }
.btn-check:checked + .role-opt i, .btn-check:checked + .role-opt strong { color: var(--accent); }
.btn-check:focus-visible + .role-opt { outline: 1px dashed var(--accent); outline-offset: 2px; }
@media (max-width: 480px) { .role-pick { grid-template-columns: 1fr; } .role-opt { flex-direction: row; align-items: center; gap: 10px; } .role-opt span { display: none; } }
.auth-head .logo-icon i { font-size: 20px; }
.bc-auth-box { max-width: 460px; margin: 40px auto 20px; }
.bc-auth-box.wide { max-width: 640px; }
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head .logo-icon { margin: 0 auto 16px; width: 48px; height: 48px; font-size: 16px; }
.auth-head h1 { font-size: 20px; margin-bottom: 6px; }
.auth-head p { color: var(--text-muted); font-size: 13px; margin: 0; }

/* ============ FOOTER (identik bad-coder.com + info kontak) ============ */
.bc-footer { border-top: 1px solid var(--border); margin-top: 80px; }
.bc-footer-top { padding: 40px 0 28px; }
.bc-footer h6 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; font-weight: 400; }
.bc-footer ul { list-style: none; padding: 0; margin: 0; }
.bc-footer li { margin-bottom: 8px; }
.bc-footer li a { color: var(--text-secondary); font-size: 13px; }
.bc-footer li a:hover { color: var(--accent); }
.bc-footer .tagline { color: var(--text-secondary); font-size: 13.5px; max-width: 320px; margin: 14px 0 0; }
.bc-footer .fi {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 22px 0 28px; border-top: 1px solid var(--border);
}
.bc-footer .fi p { font-family: var(--mono); font-size: 11px; color: var(--text-muted); letter-spacing: .04em; margin: 0; }
.bc-footer .fi p span { color: var(--accent); }
.bc-footer .fi p.sans { font-family: var(--sans); font-size: 12px; }

/* tombol WA melayang */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 1050;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: #080c10 !important;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  box-shadow: 0 10px 30px rgba(99,235,168,.3);
  transition: transform .2s;
}
.wa-float:hover { transform: translateY(-3px); }

/* ============ UTIL ============ */
.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-accent, .text-primary, .text-pass { color: var(--accent) !important; }
.text-gold { color: var(--accent-gold) !important; }
.text-blue { color: var(--accent-blue) !important; }
.text-danger, .text-fail { color: var(--red) !important; }
.border, .border-top, .border-bottom { border-color: var(--border) !important; }
hr { border-color: var(--border); opacity: 1; }
.small, small { font-size: 12.5px; }
.fs-mono-sm { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; }

/* animasi masuk halus */
.fade-up { animation: fsi .5s ease both; }
@keyframes fsi { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 48px 0 64px; }
  .hero h1 { font-size: 2.8rem; }
  .section { padding: 56px 0; }
  .page-head { margin: 24px 0 20px; }
  .card-body { padding: 18px; }
  .wa-float { width: 46px; height: 46px; font-size: 20px; right: 16px; bottom: 16px; }
}

/* ============ PRINT (nota & laporan) ============ */
@media print {
  body { background: #fff !important; color: #000 !important; }
  body::before, .grid-bg, .bc-header, .bc-footer, .wa-float, .no-print { display: none !important; }
  .card, .bc-stat { background: #fff !important; border-color: #ccc !important; color: #000 !important; }
  .table, .table * { color: #000 !important; }
  .status-pill { border-color: #999 !important; color: #000 !important; background: #fff !important; }
  a { color: #000 !important; }
}
