/* Pusat Bantuan KASKOW (/bantuan/): page content styles.
 * Chrome (header/footer/loader, buttons, chips) is reused from info.css.
 * Theme tokens (--bg, --brand, --text, …) also come from info.css. */

.sb-wrap {
  flex: 1 0 auto;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 26px var(--gutter) 64px;
}
.sb-page-ticket .sb-wrap, .sb-page-my .sb-wrap { max-width: 820px; }

/* ---------- Hero ---------- */
.sb-hero { text-align: center; padding: 30px 0 14px; position: relative; }
.sb-hero::before {
  content: ""; position: absolute; inset: -40px -20px auto; height: 300px;
  background: var(--hero-glow); z-index: -1; pointer-events: none;
}
.sb-hero .eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand-text); margin: 0 0 10px;
}
.sb-hero h1 { font-size: clamp(1.9rem, 4.6vw, 2.7rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; }
.sb-lead { color: var(--text-2); font-size: 16px; max-width: 580px; margin: 0 auto 22px; }
.sb-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- Sections ---------- */
.sb-sec { margin-top: 36px; }
.sb-sec-head { margin-bottom: 14px; }
.sb-sec-head h2 { font-size: 1.25rem; font-weight: 800; margin: 0 0 4px; }
.sb-sec-head p { margin: 0; font-size: 14px; }

/* ---------- Category cards ---------- */
.sb-cc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sb-cc {
  display: flex; align-items: flex-start; gap: 13px; padding: 15px 16px;
  border-radius: 14px; border: 1px solid var(--border); background: var(--card-solid);
  text-decoration: none; color: inherit; position: relative;
  transition: border-color .15s var(--ease), background .15s var(--ease), transform .15s var(--ease);
}
.sb-cc:hover { border-color: var(--brand-line); background: var(--surface-2); }
.sb-cc-ic {
  flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-text);
}
.sb-cc-ic .ico { width: 21px; height: 21px; }
.sb-cc-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sb-cc-t b { font-size: 15px; font-weight: 700; }
.sb-cc-t small { font-size: 13px; color: var(--muted); line-height: 1.45; }
.sb-cc-go { margin-left: auto; align-self: center; width: 18px; height: 18px; color: var(--faint); flex: none; }
.sb-cc:hover .sb-cc-go { color: var(--brand-text); }

/* radio variant (form) */
.sb-cc-radio { cursor: pointer; }
.sb-cc-radio input { position: absolute; opacity: 0; pointer-events: none; }
.sb-cc-check {
  position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--line-3); display: grid; place-items: center; opacity: 0; transition: .15s var(--ease);
}
.sb-cc-check .ico { width: 12px; height: 12px; color: var(--brand-ink); }
.sb-cc-radio:has(input:checked) { border-color: var(--brand); background: var(--brand-softer); }
.sb-cc-radio:has(input:checked) .sb-cc-check { opacity: 1; background: var(--brand); border-color: var(--brand); }
.sb-cc-radio:has(input:focus-visible) { box-shadow: var(--ring); }

/* ---------- Wide link rows ---------- */
.sb-help2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sb-wide {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--card-solid); text-decoration: none; color: inherit;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.sb-wide:hover { border-color: var(--brand-line); background: var(--surface-2); }
.sb-wide-ic { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }
.sb-wide-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sb-wide-t b { font-size: 14.5px; }
.sb-wide-t small { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.sb-wide-go { margin-left: auto; flex: none; width: 18px; height: 18px; color: var(--faint); }
.sb-wide:hover .sb-wide-go { color: var(--brand-text); }

/* ---------- Cards / forms ---------- */
.sb-card {
  border: 1px solid var(--border); background: var(--card-solid); border-radius: 18px;
  padding: 24px; box-shadow: var(--shadow);
}
.sb-narrow { max-width: 520px; margin: 0 auto; }
.sb-center { text-align: center; }
.sb-card-head { margin-bottom: 18px; }
.sb-card-head h1 { font-size: 1.55rem; font-weight: 800; margin: 0 0 6px; }
.sb-card-head p { margin: 0; font-size: 14px; }
.sb-page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.sb-field { margin-bottom: 16px; display: flex; flex-direction: column; }
.sb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sb-row .sb-field { margin-bottom: 16px; }
.sb-label { font-size: 13.5px; font-weight: 700; margin-bottom: 7px; color: var(--text); }
.sb-input {
  width: 100%; height: 44px; padding: 0 13px; border-radius: 11px; font: inherit; font-size: 14.5px;
  background: var(--input-bg); border: 1px solid var(--line-2); color: var(--text);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
select.sb-input { cursor: pointer; }
.sb-textarea { height: auto; min-height: 120px; padding: 11px 13px; line-height: 1.55; resize: vertical; }
.sb-input:focus { outline: 0; border-color: var(--brand); box-shadow: var(--ring); }
.sb-input::placeholder { color: var(--faint); }
.sb-hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.sb-hint.sb-mt { margin-top: 14px; }
.sb-hint a { color: var(--brand-text); text-decoration: none; }
.sb-err { font-size: 12.5px; color: var(--warn); margin: 6px 0 0; }
.sb-form-err {
  font-size: 13.5px; color: var(--warn); margin: 0 0 14px; padding: 10px 13px;
  border-radius: 10px; background: var(--warn-bg); border: 1px solid var(--warn-line);
}

.sb-contact { border: 1px solid var(--line-2); border-radius: 14px; padding: 16px 16px 2px; margin: 4px 0 18px; }
.sb-contact legend { font-size: 13.5px; font-weight: 800; padding: 0 6px; }
.sb-contact .sb-hint { margin: -2px 0 14px; }

.sb-auth-note {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 4px 0 18px;
  border-radius: 14px; background: var(--brand-softer); border: 1px solid var(--brand-line);
}
.sb-auth-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); }
.sb-auth-note b { font-weight: 700; }

/* honeypot: hidden from humans, present for bots */
.sb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.sb-form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.sb-privacy { font-size: 12px; max-width: 360px; line-height: 1.45; }

/* ---------- Success ---------- */
.sb-success { max-width: 520px; margin: 0 auto; text-align: center; }
.sb-success-ic {
  width: 62px; height: 62px; border-radius: 50%; margin: 2px auto 14px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-text);
}
.sb-success-ic .ico { width: 30px; height: 30px; }
.sb-success h1 { font-size: 1.5rem; font-weight: 800; margin: 0 0 8px; }
.sb-code-box {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px auto;
  padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line-3); width: fit-content;
}
.sb-code-box code { font-size: 1.3rem; font-weight: 800; letter-spacing: .12em; color: var(--brand-text); font-family: ui-monospace, "SF Mono", Consolas, monospace; }

/* ---------- 404 ---------- */
.sb-404 { display: block; font-size: 3rem; font-weight: 800; color: var(--faint); margin-bottom: 4px; }

/* ---------- Loading ---------- */
.sb-loading { text-align: center; padding: 48px 0; }
.sb-spin {
  width: 34px; height: 34px; margin: 0 auto 14px; border-radius: 50%;
  border: 3px solid var(--line-2); border-top-color: var(--brand); animation: sb-rot .8s linear infinite;
}
@keyframes sb-rot { to { transform: rotate(360deg); } }

/* ---------- Status badge ---------- */
.sb-badge {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; border: 1px solid var(--line-2); color: var(--text-2); background: var(--surface-3);
}
.sb-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sb-badge.t-open { color: var(--note); background: var(--note-bg); border-color: var(--note-line); }
.sb-badge.t-progress { color: var(--imp); background: var(--imp-bg); border-color: var(--imp-line); }
.sb-badge.t-resolved { color: var(--brand-text); background: var(--brand-soft); border-color: var(--brand-line); }
.sb-badge.t-cancelled { color: var(--muted); background: var(--surface-3); border-color: var(--line-2); }

.sb-chip {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 8px;
  font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line);
}

/* ---------- Ticket thread ---------- */
.sb-ticket-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.sb-ticket-head h1 { font-size: 1.4rem; font-weight: 800; margin: 0; flex: 1 1 260px; min-width: 0; }
.sb-ticket-sub { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.sb-thread { display: flex; flex-direction: column; gap: 14px; }
.sb-msg { display: flex; flex-direction: column; max-width: 86%; }
.sb-msg.staff { align-self: flex-end; align-items: flex-end; }
.sb-msg.reporter { align-self: flex-start; }
.sb-msg-who { font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 4px 5px; display: flex; gap: 7px; align-items: center; }
.sb-msg.staff .sb-msg-who { color: var(--brand-text); }
.sb-bubble {
  padding: 12px 15px; border-radius: 15px; font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word;
  border: 1px solid var(--border); background: var(--surface-2);
}
.sb-msg.staff .sb-bubble { background: var(--brand-softer); border-color: var(--brand-line); border-bottom-right-radius: 5px; }
.sb-msg.reporter .sb-bubble { border-bottom-left-radius: 5px; }
.sb-msg-time { font-size: 11px; color: var(--faint); margin: 5px 4px 0; }

.sb-reply { margin-top: 22px; border-top: 1px solid var(--line-2); padding-top: 18px; }
.sb-reply .sb-label { margin-bottom: 8px; }
.sb-closed-note {
  margin-top: 22px; padding: 14px 16px; border-radius: 12px; display: flex; gap: 11px; align-items: flex-start;
  background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13.5px; color: var(--text-2);
}
.sb-closed-note .ico { flex: none; color: var(--muted); margin-top: 1px; }

.sb-emailgate { max-width: 460px; margin: 8px auto; }

/* ---------- My reports list ---------- */
.sb-my-list { display: flex; flex-direction: column; gap: 10px; }
.sb-my-row {
  display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--card-solid); text-decoration: none; color: inherit;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.sb-my-row:hover { border-color: var(--brand-line); background: var(--surface-2); }
.sb-my-main { min-width: 0; flex: 1; }
.sb-my-main b { display: block; font-size: 14.5px; font-weight: 700; margin-bottom: 5px; }
.sb-my-meta { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; font-size: 12px; color: var(--muted); }
.sb-my-code { font-family: ui-monospace, Consolas, monospace; letter-spacing: .06em; }
.sb-my-row .sb-badge { flex: none; }

.sb-empty { text-align: center; padding: 44px 16px; color: var(--muted); }
.sb-empty .ico { width: 42px; height: 42px; color: var(--faint); margin-bottom: 12px; }
.sb-empty b { display: block; font-size: 15px; color: var(--text); margin-bottom: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  .sb-cc-grid, .sb-help2, .sb-row { grid-template-columns: 1fr; }
  .sb-card { padding: 18px; border-radius: 16px; }
  .sb-msg { max-width: 94%; }
  .sb-hide-sm { display: none !important; }
}
@media (max-width: 420px) {
  .sb-wrap { padding: 18px 16px 48px; }
  .sb-hero-actions .btn { width: 100%; }
}

/* Mobile header: the Info Center hides its nav behind a sidebar drawer that
 * the Help Center doesn't have, so keep the links on a scrollable second row. */
@media (max-width: 960px) {
  .support .ih-in { height: auto; flex-wrap: wrap; padding-top: 9px; padding-bottom: 9px; row-gap: 7px; }
  .support .ih-brand { margin-right: auto; }
  .support .ih-nav {
    display: flex; order: 3; width: 100%; overflow-x: auto; gap: 4px;
    padding-bottom: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .support .ih-nav::-webkit-scrollbar { display: none; }
  .support .ih-link { white-space: nowrap; height: 34px; }
}
