/* CryptoCoinProp Support pages - Support hub, new ticket and ticket detail.
 *
 * Built in the language of the redesigned app pages (Rewards, Billing): layout
 * and colours live inline in the templates. This sheet carries what inline
 * styles cannot: keyframes, hover states (which must beat the inline base
 * style, hence !important), form states, the ticket thread and the phone layout.
 * Motion runs even when the OS asks for reduced motion, like every other page.
 */
body { background: var(--nv-f6f6fa); -webkit-font-smoothing: antialiased; }

.nsp { line-height: normal; }
.nsp * { box-sizing: border-box; }
.nsp a { color: #DD3D4F; text-decoration: none; }
.nsp a:hover { color: var(--nv-b4202f); }
.nsp [hidden] { display: none !important; }

@keyframes novaRise { from { opacity: 0; transform: translateY(18px) } to { opacity: 1; transform: translateY(0) } }

/* -- hover / focus ---------------------------------------------------------------- */
.nsp .nsp-h-dark:hover { background: #DD3D4F !important; transform: translateY(-2px) !important; color: #fff !important; }
.nsp .nsp-h-dark:disabled { opacity: .6; cursor: default !important; transform: none !important; }
.nsp .nsp-h-ghost:hover { border-color: var(--nv-f3c4ca) !important; background: var(--nv-fff5f6) !important; color: var(--nv-b4202f) !important; }
.nsp .nsp-h-white:hover { transform: translateY(-2px) !important; color: var(--nv-b4202f) !important; }
.nsp .nsp-h-card:hover { transform: translateY(-4px) !important; box-shadow: 0 26px 44px -28px rgba(24,20,80,.36) !important; border-color: var(--nv-f3c4ca) !important; }
.nsp .nsp-h-row:hover { background: var(--nv-fbfafd) !important; }
.nsp a.nsp-h-darklink:hover { background: #DD3D4F !important; color: #fff !important; }
.nsp .nsp-link-btn:hover { color: var(--nv-b4202f) !important; }
.nsp .nsp-back:hover { color: #DD3D4F !important; }
.nsp button:focus-visible, .nsp a:focus-visible { outline: 2px solid #DD3D4F; outline-offset: 2px; }
.nsp #nsp-live button:focus-visible, .nsp #nsp-live a:focus-visible { outline-color: #fff; }

/* -- form fields -------------------------------------------------------------------- */
.nsp .nsp-f {
  display: block; width: 100%; min-height: 50px; padding: 0 15px; border-radius: 12px; border: 1px solid var(--nv-e6e6ef);
  background: var(--nv-fff-bg); color: var(--nv-0e0f1f-text); font-family: inherit; font-size: 15px; font-weight: 600;
  transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none; box-shadow: none;
}
.nsp textarea.nsp-f { padding: 13px 15px; min-height: 180px; resize: vertical; line-height: 1.55; font-weight: 500; }
.nsp select.nsp-f { padding-right: 40px; cursor: pointer; }
.nsp .nsp-f::placeholder { color: var(--nv-9a9cb4); font-weight: 500; opacity: 1; }
.nsp .nsp-f:focus { border-color: #DD3D4F !important; box-shadow: 0 0 0 4px rgba(221,61,79,.14) !important; outline: none; }
.nsp .nsp-f.nsp-invalid { border-color: #DD3D4F; }
.nsp .nsp-err { margin: 7px 0 0; font-size: 13px; font-weight: 600; color: var(--nv-b4202f); }
.nsp .nsp-count.nsp-count-warn { color: var(--nv-b4202f) !important; font-weight: 700; }

/* category choice cards */
.nsp .nsp-cat { position: relative; display: block; cursor: pointer; min-width: 0; }
.nsp .nsp-cat input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.nsp .nsp-cat-box { display: flex; gap: 12px; align-items: center; min-height: 64px; height: 100%; padding: 11px 13px; border-radius: 14px; border: 1.5px solid var(--nv-e6e6ef); background: var(--nv-fff-bg); transition: border-color .2s, background-color .2s, transform .25s cubic-bezier(.2,.7,.2,1); }
.nsp .nsp-cat:hover .nsp-cat-box { border-color: var(--nv-f3c4ca); transform: translateY(-2px); }
.nsp .nsp-cat input:checked + .nsp-cat-box { border-color: #DD3D4F; background: var(--nv-fff5f6); }
.nsp .nsp-cat input:focus-visible + .nsp-cat-box { outline: 2px solid #DD3D4F; outline-offset: 2px; }
.nsp .nsp-cat-mark { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--nv-f0f0f7); color: var(--nv-3a3b4f); display: grid; place-items: center; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 600; transition: background-color .2s, color .2s; }
.nsp .nsp-cat input:checked + .nsp-cat-box .nsp-cat-mark { background: #DD3D4F; color: #fff; }

/* -- ticket thread ------------------------------------------------------------------ */
.nsp .nsp-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: min(680px, 88%); min-width: 0; }
.nsp .nsp-msg-mine { align-self: flex-end; align-items: flex-end; }
.nsp .nsp-msg-new { animation: novaRise .5s cubic-bezier(.2,.7,.2,1) both; }
.nsp .nsp-msg-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 0 4px 6px; font-size: 12.5px; color: var(--nv-3a3b4f); }
.nsp .nsp-msg-author { font-weight: 800; color: var(--nv-0e0f1f-text); }
.nsp .nsp-bubble { max-width: 100%; padding: 13px 16px; border-radius: 18px; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; word-break: break-word; }
.nsp .nsp-msg-mine .nsp-bubble { background: var(--nv-0e0f1f-bg); color: #fff; border-bottom-right-radius: 6px; }
.nsp .nsp-msg-staff .nsp-bubble { background: var(--nv-fff-bg); color: var(--nv-0e0f1f-text); border: 1px solid var(--nv-e6e6ef); border-bottom-left-radius: 6px; }
.nsp .nsp-msg-mine .nsp-bubble a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.nsp .nsp-msg-staff .nsp-bubble a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 480px) {
  .nsp .nsp-main { padding: 24px 16px 56px !important; }
}

/* -- phones (below 768px only) ----------------------------------------------------- */
@media (max-width: 767.98px) {
  /* room below the last control so the floating chat button never covers it */
  .nsp .nsp-main { padding-bottom: 104px !important; }
  .nsp .nsp-hero-actions > * { flex: 1 1 100%; }
  .nsp .nsp-back { min-height: 44px !important; }
  .nsp .nsp-btn { height: 44px !important; }
  .nsp .nsp-form-card { grid-column: auto !important; }
  .nsp .nsp-form-actions > * { flex: 1 1 100%; }
  .nsp .nsp-submit { width: 100%; }
  .nsp .nsp-f { font-size: 16px; }
  .nsp .nsp-ticket-actions { flex: 1 1 100%; }
  .nsp .nsp-ticket-actions form { flex: 1 1 0; }
  .nsp .nsp-ticket-actions button { width: 100%; }

  /* ticket list -> compact cards */
  .nsp .nsp-ticket { grid-template-columns: 40px minmax(0,1fr) auto !important; gap: 8px 12px !important; padding: 14px 16px !important; }
  .nsp .nsp-ticket-main > span { white-space: normal !important; }
  .nsp .nsp-ticket-main > span > span:first-child { white-space: normal !important; }
  .nsp .nsp-ticket-status { grid-column: 2 / 4; grid-row: 2; }
  .nsp .nsp-ticket-date { display: none !important; }
  .nsp .nsp-ticket-arrow { grid-column: 3; grid-row: 1; align-self: center; }
  .nsp .nsp-msg { max-width: 94%; }
}
@media (min-width: 768px) {
  .nsp .nsp-ticket-date-inline { display: none; }
}
@media (max-width: 760px) {
  .nsp .nsp-form-card { grid-column: auto !important; }
}

/* -- attachments ------------------------------------------------------------------- */
.nsp .nsp-files { font-family: inherit; font-size: 14px; color: var(--nv-1c1d2e-text); }
.nsp .nsp-files::file-selector-button { min-height: 40px; margin-right: 12px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--nv-e6e6ef); background: var(--nv-fff-bg); color: var(--nv-0e0f1f-text); font: inherit; font-weight: 700; cursor: pointer; }
.nsp .nsp-files:focus-visible { outline: 2px solid #DD3D4F; outline-offset: 2px; }
.nsp .nsp-files-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; max-width: 100%; }
.nsp .nsp-msg-mine .nsp-files-row { justify-content: flex-end; }
.nsp .nsp-file { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; overflow: hidden; border-radius: 12px; border: 1px solid var(--nv-e6e6ef); background: var(--nv-fff-bg); color: var(--nv-0e0f1f-text) !important; }
.nsp .nsp-file:hover { border-color: var(--nv-f3c4ca); }
.nsp .nsp-file-img img { display: block; width: auto; height: auto; max-width: min(260px, 70vw); max-height: 200px; object-fit: cover; }
.nsp .nsp-file-doc { min-height: 44px; padding: 6px 12px; font-size: 13.5px; }
.nsp .nsp-file-mark { flex: none; padding: 3px 6px; border-radius: 6px; background: var(--nv-fce9eb); color: #DD3D4F; font-size: 10.5px; font-weight: 800; }
.nsp .nsp-file-name { min-width: 0; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.nsp .nsp-file-size { flex: none; font-size: 12px; color: var(--nv-3a3b4f); }
@media (max-width: 767.98px) { .nsp .nsp-files::file-selector-button { min-height: 44px; } }
