/* ============== Support modal & ticket list styles ============== */

.support-cta-btn,
.support-ghost-btn,
.support-tile {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: inherit; font-weight: 600; cursor: pointer;
  border-radius: 12px; transition: transform .12s, box-shadow .12s, background .12s, border-color .12s;
  font-size: 14px; padding: 11px 16px;
}
.support-cta-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff; border: none; box-shadow: 0 8px 18px rgba(29,78,216,.25);
}
.support-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(29,78,216,.32); }
.support-cta-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.support-ghost-btn {
  background: #fff; color: #1e293b; border: 1px solid #e2e8f0;
}
.support-ghost-btn:hover { border-color: #cbd5e1; }
.support-tile {
  width: 100%; padding: 14px 16px; background: #fff; color: #0f172a;
  border: 1px solid #e2e8f0; border-radius: 14px; justify-content: flex-start;
  box-shadow: 0 4px 12px rgba(15,23,42,.04);
}
.support-tile:hover { border-color: #2563eb; box-shadow: 0 8px 18px rgba(37,99,235,.12); }
.support-ic {
  width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center;
}
.support-ic svg { width: 100%; height: 100%; }

/* Modal */
.support-overlay {
  position: fixed; inset: 0; background: rgba(8,12,22,.62);
  z-index: 2147483000; /* sit above tabbars, lost-mode banner, FAB, Klaro */
  display: flex; align-items: center; justify-content: center;
  padding: 16px; backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  animation: support-fade .18s ease-out;
  overscroll-behavior: contain;
}
@keyframes support-fade { from { opacity: 0; } to { opacity: 1; } }
.support-sheet {
  position: relative; background: #fff; width: 100%; max-width: 560px;
  border-radius: 24px; padding: 28px 24px 22px;
  max-height: min(92dvh, 880px); overflow-y: auto;
  box-shadow: 0 30px 90px rgba(8,12,22,.45), 0 2px 0 rgba(255,255,255,.6) inset;
  border: 1px solid rgba(15,23,42,.06);
  animation: support-pop .22s cubic-bezier(.22,1,.36,1);
  scrollbar-gutter: stable;
}
@media (max-width: 640px) {
  .support-overlay { padding: 0; align-items: flex-end; }
  .support-sheet {
    max-width: 100%; border-radius: 22px 22px 0 0;
    max-height: 94dvh; padding-bottom: calc(22px + env(safe-area-inset-bottom));
    animation: support-slide .26s cubic-bezier(.22,1,.36,1);
  }
  @keyframes support-slide { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
}
@keyframes support-pop { from { transform: translateY(20px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.support-close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  border-radius: 999px; border: 1px solid #e2e8f0; background: #fff; color: #64748b;
  font-size: 22px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.support-close:hover { color: #0f172a; border-color: #cbd5e1; }

.support-head { margin-bottom: 18px; }
.support-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #2563eb;
  background: #eff6ff; padding: 4px 10px; border-radius: 999px;
}
.support-head h2 { margin: 10px 0 6px; font-size: 20px; font-weight: 700; color: #0f172a; line-height: 1.25; }
.support-head p { margin: 0; color: #64748b; font-size: 13.5px; }

.support-section { margin-top: 16px; }
.support-label {
  display: block; font-size: 12px; font-weight: 600; color: #334155;
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px;
}

.support-cats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.support-cat {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
  font-size: 13px; color: #1e293b; cursor: pointer; text-align: left;
  font-weight: 500;
}
.support-cat:hover { border-color: #cbd5e1; background: #fff; }
.support-cat.is-on {
  background: #eff6ff; border-color: #2563eb; color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.support-cat-ic { font-size: 16px; }

.support-input, .support-textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #e2e8f0; border-radius: 11px;
  font-family: inherit; font-size: 14px; color: #0f172a; background: #fff;
  resize: vertical; box-sizing: border-box;
}
.support-input:focus, .support-textarea:focus {
  outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.support-count {
  text-align: right; font-size: 11px; color: #94a3b8; margin-top: 4px;
}
.support-err {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  background: #fef2f2; color: #b91c1c; font-size: 13px; border: 1px solid #fecaca;
}
.support-privacy {
  margin: 14px 0 0; font-size: 11.5px; color: #94a3b8; line-height: 1.5;
}
.support-actions {
  display: flex; gap: 10px; margin-top: 16px; justify-content: flex-end;
}

/* Success */
.support-success { text-align: center; padding: 22px 6px 8px; }
.support-success-ic {
  width: 64px; height: 64px; border-radius: 999px; background: #ecfdf5;
  color: #059669; font-size: 32px; line-height: 64px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.support-success h3 { margin: 0 0 8px; font-size: 18px; }
.support-success p { margin: 0 0 18px; color: #64748b; font-size: 13.5px; }

/* My tickets page */
.support-page-head { margin-bottom: 18px; }
.support-page-head h1 { margin: 0 0 4px; font-size: 22px; font-weight: 700; }
.support-page-head p { margin: 0; color: #64748b; font-size: 14px; }
.support-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.support-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 14px 16px; box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.support-card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.support-card-h b { font-size: 14px; color: #0f172a; }
.support-card-meta { display: flex; gap: 8px; font-size: 11.5px; color: #64748b; flex-wrap: wrap; }
.support-status {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600;
}
.support-status.open { background: #fef3c7; color: #b45309; }
.support-status.in_progress { background: #dbeafe; color: #1d4ed8; }
.support-status.resolved { background: #dcfce7; color: #047857; }
.support-status.closed { background: #f1f5f9; color: #64748b; }
.support-card-body { font-size: 13px; color: #334155; margin: 6px 0 0; white-space: pre-wrap; }
.support-reply-box {
  margin-top: 12px; padding: 12px 14px; background: #eff6ff;
  border-left: 3px solid #2563eb; border-radius: 8px;
  font-size: 13px; color: #0f172a; white-space: pre-wrap;
}
.support-reply-head { font-size: 11px; font-weight: 700; color: #1d4ed8; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.support-empty {
  background: #fff; border: 1px dashed #cbd5e1; border-radius: 14px;
  padding: 30px 18px; text-align: center; color: #64748b;
}

@media (max-width: 480px) {
  .support-cats { grid-template-columns: 1fr; }
  .support-sheet { padding: 24px 18px 18px; border-radius: 18px; }
}
