/* Support center & ticket. Token, tombol, card, badge, input ada di ../assets/site.css */
.akun { padding: 32px 0 0; }
.support { display: grid; gap: 20px; }
.support--narrow { width: min(760px, 100% - 32px); }
.support h1 { font-size: clamp(24px, 4vw, 32px); }
.support .msg__body .btn, .bot-actions form { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.support code { padding: 1px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); font: 600 .92em var(--mono); color: var(--gold-hi); overflow-wrap: anywhere; }

.sp-back { display: inline-flex; align-items: center; gap: 4px; justify-self: start; margin: -8px 0 -4px -6px; padding: 6px; color: var(--muted); font-size: 14px; font-weight: 600; }
.sp-back:hover { color: var(--text); }
.sp-back .ico { width: 16px; height: 16px; }

/* ---------- hero & search */
.sp-hero { display: grid; justify-items: center; gap: 4px; padding: 24px 0 8px; text-align: center; }
.sp-hero h1 { font-size: clamp(28px, 5vw, 40px); margin-bottom: 14px; }
.sp-search { position: relative; width: min(560px, 100%); }
.sp-search .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.sp-search .input { height: 52px; padding-left: 46px; border-radius: 12px; background: var(--surface); }

/* ---------- action cards */
.sp-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sp-action { display: flex; align-items: center; gap: 14px; padding: 16px; color: var(--text); transition: border-color .15s; }
.sp-action:hover { color: var(--text); border-color: var(--gold-lo); }
.sp-action > .ico:last-child { margin-left: auto; color: var(--muted); }
.sp-action__ico, .sp-list__ico { --c: var(--gold); display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 11px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.sp-action__ico .ico { width: 22px; height: 22px; }
.sp-action__ico--support { --c: var(--teal); }
.sp-action__ico--report { --c: var(--danger); }
.sp-action__body { display: grid; gap: 2px; min-width: 0; }
.sp-action__body b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.sp-action__body small { color: var(--muted); font-size: 13px; line-height: 1.4; }

/* ---------- topic chips */
.sp-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.sp-cats::-webkit-scrollbar { display: none; }
.sp-cats a { display: inline-flex; flex: none; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--muted); font-size: 13.5px; font-weight: 700; }
.sp-cats a:hover { color: var(--text); border-color: var(--line-2); }
.sp-cats .ico { width: 16px; height: 16px; color: var(--gold); }

/* ---------- FAQ */
.sp-faq { display: grid; gap: 22px; }
.sp-group { scroll-margin-top: calc(var(--nav-h) + 16px); }
.sp-group h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 17px; }
.sp-group h2 .ico { color: var(--gold); }
.qa { border-top: 1px solid var(--line); }
.qa:first-child { border-top: 0; }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; padding: 12px 18px; cursor: pointer; font-weight: 700; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ico { width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.qa[open] summary .ico { transform: rotate(90deg); color: var(--gold); }
.qa summary:hover { color: var(--gold-hi); }
.qa__a { padding: 0 18px 16px; color: var(--muted); font-size: 14.5px; }
.qa__a p + p, .qa__a p + div, .qa__a div + p, .qa__a ul + p, .qa__a ol + p { margin-top: 10px; }
.qa__a ul, .qa__a ol { margin: 8px 0 0; padding-left: 20px; }
.qa__a li + li { margin-top: 4px; }
.qa__a b { color: var(--text); }
.qa__a a { color: var(--teal); font-weight: 600; }
.tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 10px; }
.tiers span { display: grid; padding: 8px 10px; border-radius: 8px; border-left: 3px solid var(--c); background: var(--bg-2); font-size: 12.5px; }
.tiers b { color: var(--c); font-size: 13.5px; }
.sp-empty { padding: 20px; text-align: center; color: var(--muted); }

.sp-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 24px; }
.sp-cta h2 { font-size: 20px; }
.sp-cta p { max-width: 460px; margin-top: 4px; color: var(--muted); }
.sp-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- form */
.sp-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.sp-switch__opt { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 700; }
.sp-switch__opt:hover { color: var(--text); }
.sp-switch__opt.is-active { background: var(--gold); color: #1a1408; }
.sp-form { display: grid; gap: 18px; padding: 24px; }
.sp-form__head p { margin-top: 4px; color: var(--muted); }
.sp-form .alert { margin: 0; }
.sp-who { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); }
.sp-who img { border-radius: 8px; image-rendering: pixelated; }
.sp-who div { display: grid; line-height: 1.3; }
.sp-who small { color: var(--muted); font-size: 12px; }
.sp-count { display: flex; justify-content: space-between; gap: 12px; }
.sp-count [data-counter] { flex: none; font-variant-numeric: tabular-nums; }
.sp-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(109, 211, 199, .06); border: 1px solid rgba(109, 211, 199, .25); color: var(--muted); font-size: 13.5px; }
.sp-note .ico { color: var(--teal); margin-top: 2px; }
.sp-note b { color: var(--text); }

/* ---------- ticket list */
.sp-title { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.sp-list { margin: 0; padding: 0; list-style: none; overflow: hidden; }
.sp-list li + li { border-top: 1px solid var(--line); }
.sp-list__item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--text); }
.sp-list__item:hover { color: var(--text); background: var(--bg-2); }
.sp-list__item.is-unread .sp-list__main b::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--ok); vertical-align: middle; }
.sp-list__ico { width: 40px; height: 40px; }
.sp-list__main { display: grid; gap: 2px; flex: 1; min-width: 0; }
.sp-list__main b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sp-list__main small { color: var(--muted); font-size: 12.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sp-blank { display: grid; justify-items: center; gap: 8px; padding: 40px 20px; text-align: center; }
.sp-blank > .ico { width: 36px; height: 36px; color: var(--gold-lo); }
.sp-blank h2 { font-size: 18px; }
.sp-blank p { max-width: 380px; color: var(--muted); }
.sp-blank__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

/* ---------- ticket thread */
.sp-ticket { display: grid; gap: 10px; padding: 20px 22px; }
.sp-ticket__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sp-ticket__code { font: 700 13px var(--mono); color: var(--muted); }
.sp-ticket h1 { font-size: clamp(20px, 3.4vw, 26px); overflow-wrap: anywhere; }
.sp-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px 16px; margin: 4px 0 0; }
.sp-meta div { display: grid; min-width: 0; }
.sp-meta dt { color: var(--muted); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.sp-meta dd { margin: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.sp-meta__wide { grid-column: 1 / -1; }
.sp-meta a { color: var(--teal); }

.thread { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.msg { display: flex; align-items: flex-end; gap: 10px; }
.msg--me { justify-content: flex-end; }
.msg__avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); }
.msg__bubble { max-width: min(560px, 86%); padding: 12px 14px 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.msg--staff .msg__bubble { border-bottom-left-radius: 4px; }
.msg--me .msg__bubble { border-bottom-right-radius: 4px; background: rgba(217, 180, 90, .1); border-color: rgba(217, 180, 90, .3); }
.msg__who { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.msg--staff .msg__who { color: var(--teal); }
.msg__who .badge { padding: 0 6px; font-size: 10px; }
.msg__body { font-size: 15px; overflow-wrap: anywhere; }
.msg__body a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.msg--bot .msg__bubble { border-bottom-left-radius: 4px; border-color: rgba(109, 211, 199, .3); background: rgba(109, 211, 199, .06); }
.msg--bot .msg__who { color: var(--teal); }
.msg__avatar--bot { background: rgba(109, 211, 199, .12); border-color: rgba(109, 211, 199, .4); }
.msg__avatar--bot img { image-rendering: pixelated; }
.msg__body code { padding: 1px 5px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); font: 600 .9em var(--mono); color: var(--gold-hi); }
.badge--ai { color: var(--teal); background: rgba(109, 211, 199, .1); border-color: rgba(109, 211, 199, .35); }
.bot-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bot-actions .btn { width: 100%; }
.msg__meta { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; color: var(--muted); font-size: 11.5px; }
.msg__meta span { display: inline-flex; align-items: center; gap: 3px; }
.msg__meta .ico { width: 13px; height: 13px; color: var(--ok); }
.msg--system { justify-content: center; }
.msg--system span { padding: 4px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; text-align: center; }

.composer { display: grid; gap: 10px; padding: 16px; }
.composer__label { font-size: 13px; font-weight: 700; color: var(--muted); }
.composer textarea { min-height: 110px; }
.composer__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.composer__foot .field__hint { margin: 0; font-variant-numeric: tabular-nums; }
.composer--wait { display: flex; align-items: flex-start; gap: 12px; }
.composer--wait .dot { margin-top: 7px; }
.composer--wait > .ico { color: var(--muted); margin-top: 2px; }
.composer--wait p { margin-top: 2px; color: var(--muted); font-size: 14px; }
.composer--wait a { color: var(--teal); font-weight: 700; }
.sp-close { justify-self: center; }
.sp-update { justify-self: center; }

/* ---------- phone */
@media (max-width: 760px) {
    .akun { padding-top: 20px; }
    .support { gap: 16px; }
    .sp-hero { padding-top: 8px; }
    .sp-actions { grid-template-columns: 1fr; gap: 10px; }
    .sp-form { padding: 18px 16px; }
    .sp-ticket { padding: 16px; }
    .msg__bubble { max-width: 88%; }
    .msg__avatar { display: none; }
    .composer__foot .btn { flex: 1; }
    .sp-cta { padding: 20px; }
    .sp-cta__actions, .sp-cta__actions .btn { width: 100%; }
}
