/* ============================================================
   KVOLT — FAQ & SUPPORT TICKET PAGE ENHANCEMENTS
   Premium Fintech UI | Dark Glassmorphism | Syne + DM Sans
   Drop this file into: assets/css/faq-support.css
   Enqueue after main.css & dashboard.css
   ============================================================ */

/* ─────────────────────────────────────────────────────────────
   SECTION 1: FAQ PAGE — HERO UPGRADE
   ───────────────────────────────────────────────────────────── */

/* Hero: taller, richer depth layer */
.nv-faq-hero {
  padding: 4rem 0 3rem;
  background:
    linear-gradient(165deg,
      rgba(4,7,15,0.0) 0%,
      rgba(8,13,26,1) 60%,
      rgba(12,19,34,1) 100%),
    var(--bg-deep);
  border-bottom: 1px solid rgba(245,158,11,0.08);
  isolation: isolate;
}

/* Larger, more dramatic orbs */
.nv-faq-orb--gold {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,0.22), transparent 65%);
  top: -200px; left: -140px;
  opacity: 0.55;
  animation: faq-orb-drift 14s ease-in-out infinite alternate;
}
.nv-faq-orb--blue {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(59,130,246,0.18), transparent 65%);
  top: -60px; right: -80px;
  opacity: 0.5;
  animation: faq-orb-drift 18s ease-in-out infinite alternate-reverse;
}
.nv-faq-orb--purple {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(139,92,246,0.14), transparent 65%);
  bottom: -60px; left: 38%;
  opacity: 0.45;
  animation: faq-orb-drift 22s ease-in-out infinite alternate;
}

@keyframes faq-orb-drift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(30px, -20px); }
}

/* Grid overlay — sharper, more visible */
.nv-faq-hero__grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 25%, rgba(0,0,0,0.7) 75%, transparent 100%);
}

/* Badge — premium pill with glow */
.nv-faq-hero__badge {
  padding: 0.4rem 1.125rem;
  background: linear-gradient(135deg, rgba(245,158,11,0.15) 0%, rgba(245,158,11,0.05) 100%);
  border: 1px solid rgba(245,158,11,0.4);
  box-shadow: 0 0 20px rgba(245,158,11,0.1), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  color: var(--accent);
  gap: 0.5rem;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(245,158,11,0.1), inset 0 1px 0 rgba(255,255,255,0.05); }
  50%       { box-shadow: 0 0 30px rgba(245,158,11,0.2), inset 0 1px 0 rgba(255,255,255,0.05); }
}

/* Title — larger gradient text */
.nv-faq-hero__title {
  font-size: clamp(2.75rem, 6vw, 4rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  text-shadow: 0 0 80px rgba(245,158,11,0.08);
}

.nv-faq-hero__title-accent {
  background: linear-gradient(135deg,
    #fbbf24 0%,
    #f59e0b 30%,
    #fb923c 60%,
    #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(245,158,11,0.25));
}

/* Sub text */
.nv-faq-hero__sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
}

/* Hero link — inline badge style */
.nv-faq-hero__link {
  color: var(--accent);
  font-weight: 700;
  border-bottom: 1px dashed rgba(245,158,11,0.5);
  padding-bottom: 1px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.nv-faq-hero__link:hover {
  color: #fde68a;
  border-color: var(--accent);
}

/* ── Search bar — elevated design ───────────────────────────── */
.nv-faq-search-wrap {
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.nv-faq-search {
  background: rgba(15,25,50,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.4),
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 -1px 0 rgba(0,0,0,0.2) inset;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: border-color var(--t-normal), box-shadow var(--t-normal);
}
.nv-faq-search:focus-within {
  border-color: rgba(245,158,11,0.5);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.4),
    0 0 0 3px rgba(245,158,11,0.08),
    0 1px 0 rgba(255,255,255,0.05) inset;
}

.nv-faq-search__input {
  padding: 1.125rem 3.5rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1rem;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}
.nv-faq-search__input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.nv-faq-search__icon {
  left: 1.375rem;
  color: var(--text-muted);
}
.nv-faq-search:focus-within .nv-faq-search__icon { color: var(--accent); }

.nv-faq-search__clear {
  right: 1.375rem;
  width: 26px; height: 26px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
}
.nv-faq-search__clear:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
  border-color: var(--accent);
}

/* ── Category Tabs — premium pill row ──────────────────────── */
.nv-faq-tabs {
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-bottom: 0.25rem;
}

.nv-faq-tab {
  padding: 0.5625rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  gap: 0.45rem;
  letter-spacing: 0.01em;
  transition: all var(--t-normal) var(--ease);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.nv-faq-tab:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(245,158,11,0.25);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.nv-faq-tab.active {
  background: linear-gradient(135deg, var(--accent) 0%, #f97316 100%);
  border-color: transparent;
  color: #000;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(245,158,11,0.4), 0 1px 0 rgba(255,255,255,0.2) inset;
  transform: translateY(-1px);
}

.nv-faq-tab__count {
  background: rgba(0,0,0,0.2);
  padding: 0.1rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  font-family: var(--font-mono);
}
.nv-faq-tab.active .nv-faq-tab__count {
  background: rgba(0,0,0,0.25);
}

/* ─────────────────────────────────────────────────────────────
   SECTION 2: FAQ BODY — SIDEBAR + ACCORDION
   ───────────────────────────────────────────────────────────── */

.nv-faq-body {
  padding: 2.5rem 0 3.5rem;
  background: linear-gradient(180deg,
    var(--bg-base) 0%,
    var(--bg-deep) 50%,
    var(--bg-void) 100%);
}

/* Layout — wider sidebar */
.nv-faq-body__inner {
  grid-template-columns: 280px 1fr;
  gap: 3rem;
}

/* ── Sidebar — glassmorphism card ─────────────────────────── */
.nv-faq-sidebar {
  position: sticky;
  top: 2rem;
}

.nv-faq-sidebar__inner {
  background: linear-gradient(165deg,
    rgba(15,25,50,0.85) 0%,
    rgba(8,13,26,0.9) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.05) inset;
}

.nv-faq-sidebar__label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 1.25rem 1.375rem 0.625rem;
}

.nv-faq-sidebar__link {
  padding: 0.7rem 1.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  gap: 0.75rem;
  transition: all var(--t-fast) var(--ease);
}

.nv-faq-sidebar__link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
  border-left-color: rgba(245,158,11,0.3);
  padding-left: 1.5rem;
}

.nv-faq-sidebar__link.active {
  color: var(--accent);
  background: linear-gradient(90deg, rgba(245,158,11,0.1) 0%, transparent 100%);
  border-left-color: var(--accent);
  font-weight: 700;
  padding-left: 1.5rem;
}

.nv-faq-sidebar__icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
  transition: transform var(--t-fast);
}
.nv-faq-sidebar__link:hover .nv-faq-sidebar__icon,
.nv-faq-sidebar__link.active .nv-faq-sidebar__icon {
  transform: scale(1.1);
}

.nv-faq-sidebar__count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-full);
}
.nv-faq-sidebar__link.active .nv-faq-sidebar__count {
  color: var(--accent);
  background: rgba(245,158,11,0.12);
  border-color: rgba(245,158,11,0.25);
}

/* ── Sidebar Help Card — premium upgrade ───────────────────── */
.nv-faq-help-card {
  margin: 1.125rem;
  padding: 1.375rem;
  background: linear-gradient(135deg,
    rgba(245,158,11,0.1) 0%,
    rgba(59,130,246,0.06) 50%,
    rgba(139,92,246,0.05) 100%);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.nv-faq-help-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,0.4), transparent);
}

.nv-faq-help-card__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(245,158,11,0.2) 0%, rgba(245,158,11,0.1) 100%);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(245,158,11,0.15);
}

.nv-faq-help-card h4 {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}
.nv-faq-help-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.nv-faq-wa-btn {
  background: linear-gradient(135deg, #25d366 0%, #1daa54 100%) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3) !important;
  transition: box-shadow var(--t-fast), transform var(--t-fast) !important;
}
.nv-faq-wa-btn:hover {
  background: linear-gradient(135deg, #2de073 0%, #25d366 100%) !important;
  box-shadow: 0 6px 24px rgba(37,211,102,0.5) !important;
  transform: translateY(-1px) !important;
}

/* ── Category heading — upgraded ──────────────────────────── */
.nv-faq-category { margin-bottom: 2rem; }

.nv-faq-cat-heading {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  margin-bottom: 1rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

.nv-faq-cat-heading::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, currentColor, transparent);
  border-radius: 2px;
}

.nv-faq-cat-heading__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  border: 1px solid;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  flex-shrink: 0;
  transition: transform var(--t-normal) var(--ease), box-shadow var(--t-normal);
}
.nv-faq-cat-heading:hover .nv-faq-cat-heading__icon {
  transform: scale(1.08) rotate(-2deg);
}

.nv-faq-cat-heading__title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.2rem;
}
.nv-faq-cat-heading__sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

/* ── FAQ Accordion Items — premium glassmorphism ───────────── */
.nv-faq-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nv-faq-item {
  background: linear-gradient(135deg,
    rgba(15,25,50,0.75) 0%,
    rgba(8,13,26,0.85) 100%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.04) inset;
  transition:
    border-color var(--t-normal) var(--ease),
    box-shadow var(--t-normal) var(--ease),
    transform var(--t-normal) var(--ease);
}

.nv-faq-item:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.05) inset;
}

.nv-faq-item.open {
  border-color: rgba(245,158,11,0.35);
  box-shadow:
    0 0 0 1px rgba(245,158,11,0.1),
    0 8px 32px rgba(0,0,0,0.45),
    0 0 40px rgba(245,158,11,0.06),
    0 1px 0 rgba(255,255,255,0.06) inset;
  transform: translateY(-1px);
}

/* Question button */
.nv-faq-question {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1.25rem 1.375rem;
  gap: 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
  transition: background var(--t-fast);
}

.nv-faq-question:hover {
  background: rgba(255,255,255,0.03);
}
.nv-faq-item.open .nv-faq-question {
  background: linear-gradient(90deg, rgba(245,158,11,0.05) 0%, transparent 70%);
}

.nv-faq-question__num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  min-width: 26px;
  text-align: right;
  opacity: 0.7;
  transition: opacity var(--t-fast);
}
.nv-faq-item.open .nv-faq-question__num { opacity: 1; }

.nv-faq-question__text {
  flex: 1;
  line-height: 1.5;
  transition: color var(--t-fast);
}

/* Icon toggle button */
.nv-faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  flex-shrink: 0;
  transition:
    background var(--t-normal),
    color var(--t-normal),
    border-color var(--t-normal),
    transform var(--t-normal) var(--ease);
}
.nv-faq-item.open .nv-faq-icon {
  background: rgba(245,158,11,0.15);
  border-color: rgba(245,158,11,0.35);
  color: var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(245,158,11,0.2);
}

/* Answer panel */
.nv-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 420ms cubic-bezier(0,0,0.2,1);
}
.nv-faq-item.open .nv-faq-answer { max-height: 1000px; }

.nv-faq-answer__inner {
  display: flex;
  gap: 1.125rem;
  padding: 0 1.375rem 1.375rem;
  padding-top: 0.25rem;
}

.nv-faq-answer__line {
  width: 3px;
  border-radius: 3px;
  flex-shrink: 0;
  align-self: stretch;
  min-height: 28px;
  opacity: 0.6;
  background: currentColor;
}

.nv-faq-answer__inner p {
  flex: 1;
  font-size: 0.925rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
}
.nv-faq-answer__inner p strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Search highlight */
.nv-faq-item mark {
  background: rgba(245,158,11,0.18);
  color: #fde68a;
  border-radius: 3px;
  padding: 0 3px;
  font-weight: 700;
}

/* ── No results state ──────────────────────────────────────── */
.nv-faq-empty {
  padding: 5rem 2rem;
}
.nv-faq-empty__icon {
  width: 96px; height: 96px;
  background: linear-gradient(135deg, rgba(15,25,50,0.8), rgba(8,13,26,0.9));
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--text-muted);
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.nv-faq-empty h3 { font-size: 1.25rem; color: var(--text-secondary); }
.nv-faq-empty p  { font-size: 0.9rem; color: var(--text-muted); max-width: 300px; }

/* ─────────────────────────────────────────────────────────────
   SECTION 3: FAQ CTA BANNER — BOTTOM SECTION
   ───────────────────────────────────────────────────────────── */

.nv-faq-cta-section {
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  background:
    radial-gradient(ellipse 70% 120% at 50% 120%, rgba(245,158,11,0.07) 0%, transparent 65%),
    var(--bg-void);
}

.nv-faq-cta-card {
  background: linear-gradient(135deg,
    rgba(20,35,75,0.85) 0%,
    rgba(12,19,34,0.92) 50%,
    rgba(8,13,26,0.95) 100%);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius-xl);
  padding: 2.5rem 3rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 0 0 1px rgba(245,158,11,0.06),
    0 24px 64px rgba(0,0,0,0.6),
    0 0 80px rgba(245,158,11,0.05),
    0 1px 0 rgba(255,255,255,0.05) inset;
  position: relative;
  overflow: hidden;
}

.nv-faq-cta-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(245,158,11,0.5) 30%,
    rgba(245,158,11,0.5) 70%,
    transparent 100%);
}

.nv-faq-cta-card::after {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.nv-faq-cta-card__icon {
  width: 72px; height: 72px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(245,158,11,0.18) 0%, rgba(245,158,11,0.08) 100%);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--accent);
  box-shadow: 0 8px 24px rgba(245,158,11,0.15);
  flex-shrink: 0;
}

.nv-faq-cta-card__title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.nv-faq-cta-card__sub {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.nv-faq-cta-card__actions {
  gap: 0.875rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .nv-faq-cta-card { padding: 2rem 1.75rem; }
  .nv-faq-body__inner { grid-template-columns: 1fr; }
  .nv-faq-sidebar { display: none; }
}

@media (max-width: 480px) {
  .nv-faq-hero { padding: 3rem 0 2rem; }
  .nv-faq-body { padding: 2rem 0 2.5rem; }
}


/* ═══════════════════════════════════════════════════════════════
   SECTION 4: SUPPORT TICKET PAGE — FULL REDESIGN
   ═══════════════════════════════════════════════════════════════ */

/* ── Support Hero Bar — elevated ──────────────────────────── */
.nv-sp-hero {
  background: linear-gradient(135deg,
    rgba(20,35,75,0.85) 0%,
    rgba(12,19,34,0.92) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 2rem 2.25rem;
  margin-bottom: 1.75rem;
  box-shadow:
    0 16px 48px rgba(0,0,0,0.5),
    0 1px 0 rgba(255,255,255,0.05) inset;
  overflow: hidden;
  position: relative;
}

.nv-sp-hero__bg {
  background:
    radial-gradient(ellipse 70% 100% at 0% 50%, rgba(245,158,11,0.1) 0%, transparent 55%),
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(59,130,246,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 30% 60% at 80% 100%, rgba(139,92,246,0.06) 0%, transparent 70%);
}

.nv-sp-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(245,158,11,0.4) 40%,
    rgba(59,130,246,0.3) 70%,
    transparent 100%);
}

.nv-sp-hero__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(245,158,11,0.2) 0%, rgba(245,158,11,0.08) 100%);
  border: 1px solid rgba(245,158,11,0.35);
  color: var(--accent);
  box-shadow: 0 8px 24px rgba(245,158,11,0.15);
  flex-shrink: 0;
}

.nv-sp-hero__title {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.3rem;
}

.nv-sp-hero__sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}
.nv-sp-hero__sub strong {
  color: var(--accent);
  font-weight: 700;
}

/* Stat chips */
.nv-sp-hs {
  padding: 0.75rem 1.125rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  min-width: 72px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.04) inset;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.nv-sp-hs:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.4); }

.nv-sp-hs--warn {
  border-color: rgba(245,158,11,0.25);
  background: linear-gradient(135deg, rgba(245,158,11,0.08) 0%, rgba(245,158,11,0.03) 100%);
}
.nv-sp-hs--success {
  border-color: rgba(16,185,129,0.25);
  background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, rgba(16,185,129,0.03) 100%);
}
.nv-sp-hs--blue {
  border-color: rgba(59,130,246,0.25);
  background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(59,130,246,0.03) 100%);
}

.nv-sp-hs__val {
  font-size: 1.25rem;
  font-weight: 900;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}
.nv-sp-hs__lbl {
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ── Main layout — wider right panel ───────────────────────── */
.nv-sp-layout {
  grid-template-columns: 380px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* ── Compose / New Ticket Card — redesigned ─────────────────── */
.nv-sp-compose {
  background: linear-gradient(135deg,
    rgba(15,25,50,0.8) 0%,
    rgba(8,13,26,0.9) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.05) inset;
  transition: border-color var(--t-normal), box-shadow var(--t-normal);
}

.nv-sp-compose.open {
  border-color: rgba(245,158,11,0.3);
  box-shadow:
    0 0 0 1px rgba(245,158,11,0.08),
    0 16px 48px rgba(0,0,0,0.5),
    0 0 40px rgba(245,158,11,0.07),
    0 1px 0 rgba(255,255,255,0.05) inset;
}

.nv-sp-compose__trigger {
  padding: 1.375rem 1.625rem;
  transition: background var(--t-fast);
  position: relative;
}
.nv-sp-compose__trigger:hover {
  background: rgba(255,255,255,0.025);
}

.nv-sp-compose__plus {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(245,158,11,0.12);
  transition: all var(--t-normal);
}
.nv-sp-compose.open .nv-sp-compose__plus {
  background: linear-gradient(135deg, var(--accent) 0%, #f97316 100%);
  color: #000;
  box-shadow: 0 4px 16px rgba(245,158,11,0.4);
  transform: rotate(45deg);
}

.nv-sp-compose__label {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.nv-sp-compose__hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.nv-sp-compose__chevron {
  color: var(--text-muted);
  transition: transform var(--t-normal) var(--ease), color var(--t-fast);
  flex-shrink: 0;
}
.nv-sp-compose__trigger:hover .nv-sp-compose__chevron { color: var(--accent); }
.nv-sp-compose.open .nv-sp-compose__chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

/* Compose form panel */
.nv-sp-compose__form {
  max-height: 0;
  overflow: hidden;
  transition: max-height 440ms cubic-bezier(0,0,0.2,1);
}
.nv-sp-compose.open .nv-sp-compose__form { max-height: 1000px; }

.nv-sp-compose__form form {
  padding: 0 1.625rem 1.625rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.375rem;
}

/* Form controls — enhanced */
.nv-sp-compose__form .form-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.5rem;
  display: block;
}

.nv-sp-compose__form .form-control {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  width: 100%;
  outline: none;
}

.nv-sp-compose__form .form-control:focus {
  border-color: rgba(245,158,11,0.45);
  background: rgba(245,158,11,0.03);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.08);
}

.nv-sp-compose__form .form-control::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.nv-sp-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem !important;
  cursor: pointer;
}

.nv-sp-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.7;
}

.nv-sp-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

/* ── Ticket List Card — redesigned ─────────────────────────── */
.nv-sp-ticket-list-card {
  background: linear-gradient(135deg,
    rgba(15,25,50,0.8) 0%,
    rgba(8,13,26,0.9) 100%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.04) inset;
}

.nv-sp-list-header {
  padding: 1.375rem 1.625rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.015);
}

.nv-sp-list-title {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  gap: 0.625rem;
}

/* Filter pills */
.nv-sp-filter-pill {
  padding: 0.3rem 0.875rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  color: var(--text-muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--t-fast);
}
.nv-sp-filter-pill:hover {
  color: var(--text-primary);
  border-color: rgba(245,158,11,0.25);
  background: rgba(245,158,11,0.05);
}
.nv-sp-filter-pill.active {
  background: rgba(245,158,11,0.12);
  border-color: rgba(245,158,11,0.3);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(245,158,11,0.1);
}

/* Ticket rows */
.nv-sp-ticket-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.625rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
  position: relative;
}
.nv-sp-ticket-row:last-child { border-bottom: none; }
.nv-sp-ticket-row:hover {
  background: rgba(255,255,255,0.025);
}
.nv-sp-ticket-row.active {
  background: linear-gradient(90deg, rgba(245,158,11,0.07) 0%, rgba(245,158,11,0.02) 100%);
  border-left: 3px solid var(--accent);
  padding-left: 1.375rem;
}

.nv-sp-ticket-row__indicator {
  width: 4px;
  align-self: stretch;
  border-radius: 4px;
  flex-shrink: 0;
  min-height: 40px;
  box-shadow: 0 0 8px currentColor;
  opacity: 0.8;
}

.nv-sp-ticket-row__id {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.nv-sp-ticket-row__subject {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nv-sp-pill {
  font-size: 0.67rem;
  font-weight: 800;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nv-sp-ticket-row__date {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-left: auto;
  flex-shrink: 0;
}

.nv-sp-ticket-row__arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--t-fast), color var(--t-fast);
}
.nv-sp-ticket-row:hover .nv-sp-ticket-row__arrow,
.nv-sp-ticket-row.active .nv-sp-ticket-row__arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* Empty state */
.nv-sp-empty {
  padding: 3.5rem 2rem;
}
.nv-sp-empty__icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(15,25,50,0.8), rgba(8,13,26,0.9));
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.nv-sp-empty h4 { font-size: 1.0625rem; font-weight: 700; color: var(--text-secondary); }
.nv-sp-empty p  { font-size: 0.875rem; color: var(--text-muted); max-width: 280px; line-height: 1.65; }

/* ── WhatsApp card ─────────────────────────────────────────── */
.nv-sp-wa {
  background: linear-gradient(135deg,
    rgba(37,211,102,0.1) 0%,
    rgba(29,170,84,0.06) 100%);
  border: 1px solid rgba(37,211,102,0.2);
  border-radius: var(--radius-xl);
  padding: 1.375rem 1.625rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 24px rgba(37,211,102,0.06);
}

.nv-sp-wa__avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #1daa54 100%);
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  flex-shrink: 0;
}

.nv-sp-wa__text strong { color: var(--text-primary); font-weight: 800; font-size: 0.9375rem; }
.nv-sp-wa__text span   { color: var(--text-muted); font-size: 0.8125rem; }

.nv-sp-wa__btn {
  background: linear-gradient(135deg, #25d366 0%, #1daa54 100%) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 800 !important;
  font-size: 0.9rem !important;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35) !important;
  transition: all var(--t-fast) !important;
}
.nv-sp-wa__btn:hover {
  box-shadow: 0 6px 24px rgba(37,211,102,0.5) !important;
  transform: translateY(-1px) !important;
}

/* ── Thread Viewer Card — premium redesign ────────────────── */
.nv-sp-right { position: sticky; top: 1.5rem; }

.nv-sp-thread {
  background: linear-gradient(165deg,
    rgba(15,25,50,0.8) 0%,
    rgba(8,13,26,0.92) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 540px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.5),
    0 1px 0 rgba(255,255,255,0.05) inset;
}

/* Thread empty state */
.nv-sp-thread__empty {
  padding: 5rem 2.5rem;
  gap: 1rem;
}
.nv-sp-thread__empty-icon {
  width: 96px; height: 96px;
  background: linear-gradient(135deg, rgba(15,25,50,0.9), rgba(8,13,26,0.95));
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--text-muted);
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 30px rgba(245,158,11,0.04);
  opacity: 0.65;
  transition: opacity var(--t-normal);
}
.nv-sp-thread__empty:hover .nv-sp-thread__empty-icon { opacity: 0.85; }
.nv-sp-thread__empty h4 {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}
.nv-sp-thread__empty p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.7;
}

.nv-sp-thread__empty-tips {
  margin-top: 1rem;
  gap: 0.625rem;
}
.nv-sp-thread__tip {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  gap: 0.625rem;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.nv-sp-thread__tip:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(245,158,11,0.15);
}
.nv-sp-thread__tip svg { color: var(--accent); flex-shrink: 0; }

/* Thread header */
.nv-sp-thread__header {
  padding: 1.375rem 1.625rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(90deg, rgba(245,158,11,0.04) 0%, transparent 100%);
  position: relative;
}
.nv-sp-thread__header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(245,158,11,0.25), transparent 60%);
}

.nv-sp-thread__header-title {
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.nv-sp-thread__header-id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* Message area */
.nv-sp-thread__messages {
  padding: 1.5rem 1.625rem;
  gap: 1.25rem;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.nv-sp-thread__messages::-webkit-scrollbar { width: 4px; }
.nv-sp-thread__messages::-webkit-scrollbar-track { background: transparent; }
.nv-sp-thread__messages::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}

/* Message bubbles — refined */
.nv-sp-msg__av {
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.nv-sp-msg--user  .nv-sp-msg__av {
  background: linear-gradient(135deg, var(--accent) 0%, #f97316 100%);
  color: #000;
  box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}
.nv-sp-msg--admin .nv-sp-msg__av {
  background: linear-gradient(135deg, var(--accent-4) 0%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(139,92,246,0.3);
}

.nv-sp-msg__bubble {
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.7;
  word-break: break-word;
}
.nv-sp-msg--user .nv-sp-msg__bubble {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--text-secondary);
  border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.nv-sp-msg--admin .nv-sp-msg__bubble {
  background: linear-gradient(135deg, rgba(245,158,11,0.1) 0%, rgba(245,158,11,0.06) 100%);
  border: 1px solid rgba(245,158,11,0.2);
  color: var(--text-primary);
  border-radius: var(--radius-md) var(--radius-md) 4px var(--radius-md);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2), 0 0 16px rgba(245,158,11,0.05);
}

.nv-sp-msg__name {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nv-sp-msg__time {
  font-size: 0.67rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 0.35rem;
  padding: 0 0.25rem;
}

/* Reply input area */
.nv-sp-thread__reply {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.015);
  padding: 1.125rem 1.625rem;
}

.nv-sp-thread__reply-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #f97316 100%);
  color: #000;
  font-size: 0.68rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 4px;
  box-shadow: 0 4px 12px rgba(245,158,11,0.3);
  letter-spacing: -0.03em;
}

.nv-sp-thread__reply-textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  resize: none;
  min-height: 72px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.6;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  padding: 0.75rem 1rem;
  margin-bottom: 0.625rem;
  width: 100%;
  outline: none;
}
.nv-sp-thread__reply-textarea::placeholder {
  color: var(--text-muted);
  font-style: italic;
}
.nv-sp-thread__reply-textarea:focus {
  border-color: rgba(245,158,11,0.4);
  background: rgba(245,158,11,0.02);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.07);
}

.nv-sp-thread__reply-actions {
  display: flex;
  gap: 0.625rem;
  justify-content: flex-end;
  align-items: center;
}

/* ── Responsive — support ─────────────────────────────────── */
@media (max-width: 1024px) {
  .nv-sp-layout { grid-template-columns: 1fr; }
  .nv-sp-right  { position: static; }
}
@media (max-width: 768px) {
  .nv-sp-hero { padding: 1.5rem; border-radius: var(--radius-lg); }
  .nv-sp-hero__title { font-size: 1.125rem; }
  .nv-sp-hero__stats { gap: 0.375rem; }
  .nv-sp-hs { padding: 0.6rem 0.75rem; min-width: 60px; }
  .nv-sp-thread { min-height: 420px; }
  .nv-sp-compose__trigger { padding: 1.125rem 1.375rem; }
  .nv-sp-compose__form form { padding: 0 1.375rem 1.375rem; padding-top: 1.125rem; }
  .nv-sp-ticket-list-card,
  .nv-sp-compose,
  .nv-sp-wa,
  .nv-sp-thread { border-radius: var(--radius-lg); }
}
@media (max-width: 480px) {
  .nv-sp-hero__content { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .nv-sp-compose__trigger,
  .nv-sp-ticket-row { padding-left: 1.125rem; padding-right: 1.125rem; }
  .nv-sp-thread__messages { padding: 1.125rem; max-height: 320px; }
  .nv-sp-thread__reply { padding: 0.875rem 1.125rem; }
}

/* ─────────────────────────────────────────────────────────────
   SECTION 5: GLOBAL ENHANCEMENTS (shared across both pages)
   ───────────────────────────────────────────────────────────── */

/* Enhanced btn--primary on these pages */
.nv-faq-hero .btn--primary,
.nv-faq-cta-card .btn--primary,
.nv-faq-help-card .btn--primary,
.nv-sp-compose .btn--primary,
.nv-sp-thread__reply-actions .btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, #f97316 100%);
  box-shadow: 0 4px 16px rgba(245,158,11,0.35);
  border: none;
  font-weight: 800;
}
.nv-faq-hero .btn--primary:hover,
.nv-faq-cta-card .btn--primary:hover,
.nv-faq-help-card .btn--primary:hover,
.nv-sp-compose .btn--primary:hover,
.nv-sp-thread__reply-actions .btn--primary:hover {
  box-shadow: 0 6px 28px rgba(245,158,11,0.55);
  transform: translateY(-2px);
}

/* Subtle nv-spin keyframe for loading spinners */
@keyframes nv-spin {
  to { transform: rotate(360deg); }
}

/* ── Override main.css FAQ spacing (loaded before this file) ── */
.nv-faq-body        { padding: 2.5rem 0 3.5rem !important; }
.nv-faq-category    { margin-bottom: 2rem !important; }
.nv-faq-cat-heading { margin-bottom: 1rem !important; padding-bottom: 0.875rem !important; }

/* ── FAQ filter visibility classes (required by JS) ────────── */
.nv-faq-category.hidden { display: none !important; }
.nv-faq-item.nv-search-hidden { display: none !important; }
