/* BigPool UI refresh — Help & support (help center, ticket form, your tickets). */

.sp-page { max-width: 1080px; margin: 0 auto; gap: 22px; }
.sp-label { display: block; color: var(--muted); font: 800 11px var(--font-heading); letter-spacing: 1.6px; text-transform: uppercase; }
.sp-eyebrow { color: var(--gold); font: 800 11px var(--font-heading); letter-spacing: 1.8px; text-transform: uppercase; }

/* ---------- Hero with search ---------- */
.sp-hero {
  position: relative; overflow: hidden; display: grid; justify-items: center; text-align: center;
  padding: 44px 28px 36px; border-radius: 22px; border: 1px solid rgba(255,255,255,0.07);
  background: radial-gradient(70% 90% at 50% 0%, rgba(104,211,145,0.12), transparent 65%), radial-gradient(60% 80% at 100% 100%, rgba(217,180,93,0.07), transparent 60%), linear-gradient(180deg, #111712, #0b0f0c);
  box-shadow: 0 30px 70px -40px rgba(0,0,0,0.9);
}
.sp-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(217,180,93,0.7) 30%, rgba(104,211,145,0.6) 70%, transparent); }
.sp-hero h1 { margin: 10px 0 8px; font: 900 clamp(32px, 4.4vw, 50px)/1.02 BigPoolDisplay, var(--font-heading); letter-spacing: -0.01em; text-wrap: balance; }
.sp-hero > p { max-width: 46ch; margin: 0; text-wrap: balance; color: var(--text-soft); font-size: 15px; line-height: 1.55; }
.sp-search {
  width: min(560px, 100%); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  margin-top: 24px; padding: 5px 5px 5px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12); background: rgba(5,8,6,0.75);
  transition: border-color .18s, box-shadow .18s;
}
.sp-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(104,211,145,0.22); }
.sp-search svg { width: 18px; height: 18px; color: var(--muted); }
.sp-search input { min-width: 0; height: 40px; border: 0; outline: 0; background: transparent; color: var(--text); font: 500 15px var(--font-body); }
.sp-search input::placeholder { color: #6d7a72; }
.sp-search input::-webkit-search-cancel-button { filter: grayscale(1) brightness(1.6); }
.sp-search button { height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #86e6a9, var(--green)); color: #07120b; font: 800 14px var(--font-heading); cursor: pointer; }
.sp-search button:focus-visible { outline: 0; box-shadow: 0 0 0 3px #0b0f0c, 0 0 0 5px rgba(104,211,145,0.7); }
.sp-clear { margin-top: 12px; color: var(--text-soft); font: 700 13px var(--font-heading); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.25); text-underline-offset: 4px; }
.sp-clear:hover { color: var(--text); text-decoration-color: var(--green); }

/* ---------- Topic cards ---------- */
.sp-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sp-topic {
  display: grid; align-content: start; gap: 12px; padding: 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)); color: var(--text);
  transition: border-color .18s, background .18s, transform .18s;
}
.sp-topic:hover { border-color: rgba(104,211,145,0.4); transform: translateY(-1px); }
.sp-topic:focus-visible { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(104,211,145,0.22); }
.sp-topic.is-active { border-color: rgba(104,211,145,0.4); background: linear-gradient(180deg, rgba(104,211,145,0.12), rgba(104,211,145,0.03)); }
.sp-topic-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--green-bright); background: rgba(104,211,145,0.12); border: 1px solid rgba(104,211,145,0.25); }
.sp-topic-icon svg { width: 19px; height: 19px; }
.sp-topic:nth-child(2) .sp-topic-icon { color: var(--gold); background: rgba(217,180,93,0.12); border-color: rgba(217,180,93,0.28); }
.sp-topic-copy { display: grid; gap: 3px; min-width: 0; }
.sp-topic-copy strong { font: 800 15px var(--font-heading); }
.sp-topic-copy span { color: var(--muted); font-size: 13px; line-height: 1.4; }

/* ---------- Sections ---------- */
.sp-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sp-section-head h2 { margin: 4px 0 0; font: 800 20px var(--font-heading); letter-spacing: -0.01em; }
.sp-count { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(104,211,145,0.14); color: var(--green-bright); font: 800 12px var(--font-heading); white-space: nowrap; }
.sp-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr); gap: 20px; align-items: start; }

/* ---------- FAQ accordions ---------- */
.sp-faq-group + .sp-faq-group { margin-top: 18px; }
.sp-faq-group > .sp-label { margin: 0 0 8px 4px; }
.sp-faq-list { display: grid; gap: 8px; }
.sp-faq { border-radius: 14px; border: 1px solid rgba(255,255,255,0.06); background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.012)); transition: border-color .18s, background .18s; }
.sp-faq[open] { border-color: rgba(104,211,145,0.22); background: linear-gradient(180deg, rgba(104,211,145,0.06), rgba(255,255,255,0.012)); }
.sp-faq summary, .sp-ticket summary { list-style: none; cursor: pointer; }
.sp-faq summary::-webkit-details-marker, .sp-ticket summary::-webkit-details-marker { display: none; }
.sp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 12px 16px; font: 800 14px/1.35 var(--font-heading); color: var(--text); }
.sp-faq summary:hover { color: var(--green-bright); }
.sp-faq summary:focus-visible, .sp-ticket summary:focus-visible { outline: 0; border-radius: 14px; box-shadow: 0 0 0 3px rgba(104,211,145,0.35); }
.sp-faq p { margin: 0; padding: 0 16px 15px; color: var(--text-soft); font-size: 14px; line-height: 1.6; }
.sp-caret { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
details[open] > summary .sp-caret { transform: rotate(180deg); stroke: var(--green-bright); }
.sp-noresults, .sp-empty { display: grid; gap: 4px; padding: 20px; border-radius: 14px; border: 1px dashed rgba(255,255,255,0.12); text-align: center; }
.sp-noresults strong, .sp-empty strong { font: 800 15px var(--font-heading); }
.sp-noresults span, .sp-empty span { color: var(--muted); font-size: 13px; }

/* ---------- Contact card ---------- */
.sp-contact {
  position: sticky; top: 92px; overflow: hidden; display: grid; gap: 18px; padding: 22px; border-radius: 20px;
  border: 1px solid rgba(104,211,145,0.22);
  background: radial-gradient(120% 70% at 100% 0%, rgba(104,211,145,0.12), transparent 55%), linear-gradient(160deg, #121813, #0b0f0c);
  box-shadow: 0 24px 60px -36px rgba(0,0,0,0.9);
}
.sp-contact::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(104,211,145,0.7), transparent); }
.sp-contact-head h2 { margin: 8px 0 4px; font: 900 24px/1.1 BigPoolDisplay, var(--font-heading); }
.sp-contact-head p { margin: 0; color: var(--text-soft); font-size: 14px; }
.sp-contact .form { gap: 14px; }
.sp-contact .form-row { gap: 12px; }
.sp-contact .field { gap: 7px; }
.sp-contact .field label { color: var(--text-soft); font: 800 11px var(--font-heading); letter-spacing: 1.2px; text-transform: uppercase; }
.sp-contact .input, .sp-contact .select, .sp-contact .textarea { min-height: 48px; border-radius: 12px; border-color: rgba(255,255,255,0.12); background: rgba(5,8,6,0.7); }
.sp-contact .textarea { min-height: 120px; }
.sp-contact .input:focus, .sp-contact .select:focus, .sp-contact .textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(104,211,145,0.22); background: #070a08; }
.sp-contact [data-form-error]:empty { display: none; }
.sp-contact .form-error { border-radius: 12px; font-size: 13px; }
.sp-submit { min-height: 50px; border-radius: 14px; font-size: 15px; background: linear-gradient(180deg, #86e6a9, var(--green)); box-shadow: 0 12px 30px -14px rgba(104,211,145,0.8), inset 0 1px 0 rgba(255,255,255,0.4); }
.sp-submit:hover { background: linear-gradient(180deg, #96ebb5, var(--green-bright)); }
.sp-submit:focus-visible { outline: 0; box-shadow: 0 0 0 3px #0b0f0c, 0 0 0 5px rgba(104,211,145,0.7); }
.sp-contact-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.07); color: var(--muted); font-size: 13px; }
.sp-contact-foot a { color: var(--green); font-family: var(--font-heading); font-weight: 800; }

/* ---------- Your tickets ---------- */
.sp-ticket-list { display: grid; gap: 8px; }
.sp-ticket { border-radius: 16px; border: 1px solid rgba(255,255,255,0.06); background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.012)); transition: border-color .18s; }
.sp-ticket:hover, .sp-ticket[open] { border-color: rgba(255,255,255,0.12); }
.sp-ticket summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 13px 14px 13px 16px; }
.sp-ticket-main { display: grid; gap: 3px; min-width: 0; }
.sp-ticket-main strong { font: 800 14px var(--font-heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-ticket-main span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-ticket-main b { color: #f5a49d; font-weight: 700; }
.sp-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font: 800 11px var(--font-heading); letter-spacing: 0.4px; white-space: nowrap; border: 1px solid transparent; }
.sp-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sp-chip-open { color: var(--green-bright); background: rgba(104,211,145,0.12); border-color: rgba(104,211,145,0.28); }
.sp-chip-await { color: var(--gold); background: rgba(217,180,93,0.12); border-color: rgba(217,180,93,0.3); }
.sp-chip-done { color: #a8cff0; background: rgba(118,175,224,0.1); border-color: rgba(118,175,224,0.26); }
.sp-chip-closed { color: var(--muted); background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
.sp-ticket-body { display: grid; gap: 8px; padding: 2px 16px 16px; }
.sp-ticket-msg { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.sp-ticket-update { margin-top: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(104,211,145,0.2); background: rgba(104,211,145,0.06); }
.sp-ticket-update span { color: var(--green-bright); font: 800 11px var(--font-heading); letter-spacing: 1.2px; text-transform: uppercase; }
.sp-ticket-update p { margin: 6px 0 0; color: var(--text-soft); font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.sp-ticket-wait { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .sp-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-layout { grid-template-columns: 1fr; }
  .sp-contact { position: static; }
}
@media (max-width: 720px) {
  .sp-page { gap: 16px; }
  .sp-hero { padding: 28px 16px 22px; border-radius: 18px; }
  .sp-hero h1 { font-size: 32px; }
  .sp-hero > p { font-size: 14px; }
  .sp-search { margin-top: 18px; padding-left: 14px; }
  .sp-search input { font-size: 16px; }
  .sp-search button { padding: 0 14px; }
  .sp-topics { gap: 8px; }
  .sp-topic { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px; border-radius: 14px; }
  .sp-topic-icon { width: 34px; height: 34px; border-radius: 11px; }
  .sp-topic-copy strong { font-size: 13px; line-height: 1.2; }
  .sp-topic-copy span { display: none; }
  .sp-faq summary { padding: 12px 14px; }
  .sp-faq p { padding: 0 14px 14px; }
  .sp-contact { padding: 18px 16px; border-radius: 18px; }
  .sp-contact .form-row { grid-template-columns: 1fr; }
  .sp-contact .input, .sp-contact .select, .sp-contact .textarea { font-size: 16px; }
  .sp-ticket summary { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 12px 12px 14px; }
  .sp-ticket summary .sp-caret { display: none; }
  .sp-ticket-body { padding: 0 14px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .sp-page *, .sp-page *::before { transition: none !important; }
  .sp-topic:hover { transform: none; }
}
