/**
 * Appily Fortysix — Help Nexus (creative layout)
 * Centered radar hero · orbital shortcuts · tabbed FAQ hub · contact mosaic
 */

@keyframes hc-ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.04); opacity: 0.55; }
}
@keyframes hc-ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes hc-badge-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(174, 213, 129, 0.6); }
  50% { opacity: 0.85; box-shadow: 0 0 0 6px rgba(174, 213, 129, 0); }
}
@keyframes hc-faq-open {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@keyframes hc-orbit-glow {
  0%, 100% { box-shadow: 0 0 0 0 var(--orbit-glow, rgba(85, 139, 47, 0.25)); }
  50% { box-shadow: 0 0 0 10px transparent; }
}

.page-help-nexus {
  --hc-ink: var(--fg-ink);
  --hc-muted: var(--fg-muted);
  --hc-border: var(--fg-border);
  --hc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hc-display: 'Syne', var(--font-display), Georgia, serif;
  --hc-coral: #FF7043;
  --hc-teal: #26A69A;
  --hc-lime: #AED581;
  --hc-glass: rgba(255, 255, 255, 0.08);
  background: #f4f7f5;
}

.page-help-nexus .page-main {
  padding-top: 0;
}

.hc-nexus {
  padding-bottom: 0;
}

/* ── Hero: centered radar ── */
.hc-nexus-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  color: #fff;
  text-align: center;
}

.hc-nexus-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0d1a12 0%, #1b3d24 40%, #2e5236 100%);
  pointer-events: none;
}

.hc-nexus-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 112, 67, 0.18), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(38, 166, 154, 0.15), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(174, 213, 129, 0.08), transparent 55%);
}

.hc-nexus-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  transform: translate(-50%, -50%);
  animation: hc-ring-pulse 8s ease-in-out infinite;
}
.hc-nexus-ring--1 {
  width: min(520px, 90vw);
  height: min(520px, 90vw);
}
.hc-nexus-ring--2 {
  width: min(380px, 70vw);
  height: min(380px, 70vw);
  animation-delay: -2s;
  border-style: solid;
  border-color: rgba(253, 216, 53, 0.15);
  animation: hc-ring-spin 40s linear infinite;
}
.hc-nexus-ring--3 {
  width: min(240px, 50vw);
  height: min(240px, 50vw);
  animation-delay: -4s;
  border-color: rgba(174, 213, 129, 0.2);
}

.hc-nexus-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-inline: auto;
}

.hc-nexus-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--hc-glass);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hc-nexus-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hc-lime);
  animation: hc-badge-pulse 2.5s ease-in-out infinite;
}

.hc-nexus-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hc-nexus-hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--hc-display);
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hc-nexus-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--hc-lime), var(--fg-yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hc-nexus-lede {
  margin: 0 auto 1.75rem;
  max-width: 52ch;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
}

.hc-nexus-search-wrap {
  margin-bottom: 1.5rem;
}

.hc-nexus-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  background: rgba(255, 255, 255, 0.97);
  border: 2px solid transparent;
  border-radius: 999px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  color: var(--hc-ink);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--hc-ease);
}
.hc-nexus-search:focus-within {
  border-color: var(--fg-green);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22), 0 0 0 4px rgba(85, 139, 47, 0.15);
  transform: translateY(-2px);
}
.hc-nexus-search-icon {
  flex-shrink: 0;
  color: var(--fg-orange);
}
.hc-nexus-search input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  color: var(--hc-ink);
  outline: none;
  min-width: 0;
}
.hc-nexus-search-clear {
  border: 0;
  background: var(--hc-border);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--hc-muted);
  transition: background 0.2s, color 0.2s;
}
.hc-nexus-search-clear:hover {
  background: var(--fg-orange);
  color: #fff;
}
.hc-nexus-search-hint {
  margin: 0.65rem 0 0;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.5);
}

.hc-nexus-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hc-nexus-stats li {
  padding: 0.6rem 1.1rem;
  border-radius: 14px;
  background: var(--hc-glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}
.hc-nexus-stats strong {
  display: block;
  font-family: var(--hc-display);
  font-size: 1.25rem;
  line-height: 1.1;
}
.hc-nexus-stats span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ── Orbital quick links ── */
.hc-nexus-orbit {
  position: relative;
  z-index: 2;
  margin-top: -0.5rem;
  padding-bottom: 2rem;
}

.hc-nexus-orbit-track {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.5rem 0 0.75rem;
  -webkit-overflow-scrolling: touch;
}
.hc-nexus-orbit-track::-webkit-scrollbar {
  display: none;
}

.hc-nexus-orbit-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 108px;
  padding: 1rem 0.65rem 0.85rem;
  background: #fff;
  border: 1px solid rgba(38, 50, 56, 0.08);
  border-radius: 20px;
  text-decoration: none !important;
  color: var(--hc-ink);
  box-shadow: 0 12px 32px rgba(38, 50, 56, 0.08);
  transition: transform 0.35s var(--hc-ease), box-shadow 0.35s;
  --orbit-glow: rgba(85, 139, 47, 0.2);
}
.hc-nexus-orbit-item--citrus { --orbit-accent: var(--fg-orange); --orbit-glow: rgba(255, 111, 0, 0.25); }
.hc-nexus-orbit-item--berry { --orbit-accent: #E91E63; --orbit-glow: rgba(233, 30, 99, 0.2); }
.hc-nexus-orbit-item--stone { --orbit-accent: #AB47BC; --orbit-glow: rgba(171, 71, 188, 0.2); }
.hc-nexus-orbit-item--tropical { --orbit-accent: var(--hc-teal); --orbit-glow: rgba(38, 166, 154, 0.2); }
.hc-nexus-orbit-item--gold { --orbit-accent: var(--fg-yellow-dark); --orbit-glow: rgba(249, 168, 37, 0.25); }
.hc-nexus-orbit-item--forest { --orbit-accent: var(--fg-green); --orbit-glow: rgba(85, 139, 47, 0.25); }

.hc-nexus-orbit-item:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 20px 44px rgba(38, 50, 56, 0.14);
  animation: hc-orbit-glow 1.5s ease-in-out infinite;
}

.hc-nexus-orbit-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.45rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(232, 245, 233, 0.8));
  border: 2px solid var(--orbit-accent, var(--fg-green));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.hc-nexus-orbit-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
}
.hc-nexus-orbit-sub {
  font-size: 0.65rem;
  color: var(--hc-muted);
  text-align: center;
}

/* ── FAQ hub: tabs + single panel ── */
.hc-nexus-hub {
  padding-bottom: 2.5rem;
}

.hc-nexus-empty {
  text-align: center;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  background: #fff;
  border: 2px dashed var(--hc-border);
  border-radius: 16px;
  color: var(--hc-muted);
}

.hc-nexus-hub-shell {
  background: #fff;
  border-radius: 28px;
  border: 1px solid rgba(38, 50, 56, 0.06);
  box-shadow: 0 24px 60px rgba(38, 50, 56, 0.08);
  overflow: hidden;
}

.hc-nexus-tabs-wrap {
  padding: 1rem 1rem 0;
  background: linear-gradient(180deg, #f8fbf8, #fff);
  border-bottom: 1px solid var(--hc-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.hc-nexus-tabs-wrap::-webkit-scrollbar {
  display: none;
}

.hc-nexus-tabs {
  position: relative;
  display: flex;
  gap: 0.35rem;
  min-width: max-content;
}

.hc-nexus-tabs-glider {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--fg-green), var(--fg-green-dark));
  box-shadow: 0 6px 20px rgba(51, 105, 30, 0.3);
  transition: transform 0.4s var(--hc-ease), width 0.4s var(--hc-ease);
  z-index: 0;
}

.hc-nexus-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.15rem;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hc-muted);
  white-space: nowrap;
  transition: color 0.25s;
}
.hc-nexus-tab.is-active {
  color: #fff;
}
.hc-nexus-tab-icon {
  font-size: 1rem;
  line-height: 1;
}
.hc-nexus-tab-text {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hc-nexus-panels {
  position: relative;
  min-height: 320px;
}

.hc-nexus-panel {
  display: none;
  animation: hc-faq-open 0.45s var(--hc-ease);
}
.hc-nexus-panel.is-active {
  display: block;
}

.hc-nexus-panel-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--hc-border);
}
.hc-nexus-panel.hue-citrus .hc-nexus-panel-head { background: linear-gradient(135deg, rgba(255, 111, 0, 0.06), transparent 60%); }
.hc-nexus-panel.hue-berry .hc-nexus-panel-head { background: linear-gradient(135deg, rgba(233, 30, 99, 0.05), transparent 60%); }
.hc-nexus-panel.hue-stone .hc-nexus-panel-head { background: linear-gradient(135deg, rgba(171, 71, 188, 0.05), transparent 60%); }
.hc-nexus-panel.hue-tropical .hc-nexus-panel-head { background: linear-gradient(135deg, rgba(38, 166, 154, 0.06), transparent 60%); }

.hc-nexus-panel-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 0.85rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--hc-border);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hc-muted);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.hc-nexus-panel-icon {
  font-size: 1.5rem;
}
.hc-nexus-panel-intro h2 {
  margin: 0 0 0.4rem;
  font-family: var(--hc-display);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  color: var(--hc-ink);
}
.hc-nexus-panel-intro p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--hc-muted);
  line-height: 1.55;
  max-width: 56ch;
}

.hc-nexus-faq-list {
  display: grid;
  gap: 0;
}

.hc-nexus-faq {
  border-bottom: 1px solid var(--hc-border);
  transition: background 0.2s;
}
.hc-nexus-faq:last-child {
  border-bottom: 0;
}
.hc-nexus-faq[open] {
  background: linear-gradient(90deg, rgba(174, 213, 129, 0.08), transparent 70%);
}
.hc-nexus-faq[hidden] {
  display: none;
}

.hc-nexus-faq summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.75rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}
.hc-nexus-faq summary::-webkit-details-marker {
  display: none;
}
.hc-nexus-faq-num {
  font-family: var(--hc-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--fg-green);
  min-width: 2.75rem;
}
.hc-nexus-faq-q {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.45;
}
.hc-nexus-faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--hc-border);
  flex-shrink: 0;
  position: relative;
  transition: background 0.25s, transform 0.35s var(--hc-ease);
}
.hc-nexus-faq-toggle::before,
.hc-nexus-faq-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--hc-ink);
  border-radius: 1px;
  transition: background 0.25s, transform 0.35s var(--hc-ease);
}
.hc-nexus-faq-toggle::before {
  width: 12px;
  height: 2px;
  transform: translate(-50%, -50%);
}
.hc-nexus-faq-toggle::after {
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
}
.hc-nexus-faq[open] .hc-nexus-faq-toggle {
  background: var(--fg-green);
  transform: rotate(90deg);
}
.hc-nexus-faq[open] .hc-nexus-faq-toggle::before,
.hc-nexus-faq[open] .hc-nexus-faq-toggle::after {
  background: #fff;
}
.hc-nexus-faq[open] .hc-nexus-faq-toggle::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.hc-nexus-faq-a {
  padding: 0 1.75rem 1.25rem 5.5rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--hc-muted);
  animation: hc-faq-open 0.35s ease;
}
.hc-nexus-faq-a a {
  color: var(--fg-green);
  font-weight: 600;
}

/* Search results mode */
.hc-nexus-hub.is-searching .hc-nexus-hub-shell {
  display: none;
}

.hc-nexus-results {
  background: #fff;
  border-radius: 28px;
  border: 1px solid rgba(38, 50, 56, 0.06);
  box-shadow: 0 24px 60px rgba(38, 50, 56, 0.08);
  padding: 1.5rem 1.75rem 1.75rem;
}
.hc-nexus-results-head {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hc-border);
}
.hc-nexus-results-head h2 {
  margin: 0 0 0.25rem;
  font-family: var(--hc-display);
  font-size: 1.35rem;
  font-weight: 700;
}
.hc-nexus-results-head p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--hc-muted);
}

.hc-nexus-results-grid {
  display: grid;
  gap: 0.85rem;
}

.hc-nexus-result-card {
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--hc-border);
  background: linear-gradient(135deg, #fafcfa, #fff);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.hc-nexus-result-card:hover {
  border-color: var(--fg-green);
  box-shadow: 0 8px 24px rgba(85, 139, 47, 0.1);
}
.hc-nexus-result-topic {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-green);
  margin-bottom: 0.35rem;
}
.hc-nexus-result-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hc-ink);
}
.hc-nexus-result-card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--hc-muted);
}
.hc-nexus-result-body {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--hc-muted);
}
.hc-nexus-result-body p {
  margin: 0;
}
.hc-nexus-result-card a,
.hc-nexus-result-body a {
  color: var(--fg-green);
  font-weight: 600;
}

/* ── Contact mosaic ── */
.hc-nexus-mosaic {
  background: linear-gradient(165deg, #0f1f14, #1b3d24 50%, #263238);
  color: #fff;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4rem);
}

.hc-nexus-mosaic-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.hc-nexus-mosaic-main {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}
.hc-nexus-mosaic-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hc-lime);
  margin-bottom: 0.5rem;
}
.hc-nexus-mosaic-main h3 {
  margin: 0 0 0.65rem;
  font-family: var(--hc-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}
.hc-nexus-mosaic-hours {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.5;
}
.hc-nexus-mosaic-phone,
.hc-nexus-mosaic-email {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92) !important;
  text-decoration: none !important;
  margin-bottom: 0.35rem;
}
.hc-nexus-mosaic-phone {
  font-weight: 700;
  font-size: 1.05rem;
}
.hc-nexus-mosaic-cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(90deg, var(--fg-yellow), var(--fg-yellow-dark));
  color: var(--hc-ink) !important;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(253, 216, 53, 0.35);
  transition: transform 0.25s var(--hc-ease), box-shadow 0.25s;
}
.hc-nexus-mosaic-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(253, 216, 53, 0.45);
}

.hc-nexus-mosaic-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hc-nexus-mosaic-card {
  flex: 1;
  padding: 1.25rem 1.35rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--hc-ink);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.hc-nexus-mosaic-card--pay {
  background: linear-gradient(145deg, #fffde7, #fff);
}
.hc-nexus-mosaic-card .hc-nexus-mosaic-tag {
  color: var(--fg-orange);
}
.hc-nexus-mosaic-card h4 {
  margin: 0 0 0.55rem;
  font-family: var(--hc-display);
  font-size: 1.05rem;
  font-weight: 700;
}
.hc-nexus-mosaic-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--hc-muted);
  line-height: 1.55;
}
.hc-nexus-mosaic-card ul li {
  margin-bottom: 0.3rem;
}

.hc-nexus-mosaic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
}
.hc-nexus-mosaic-links a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg-green);
  text-decoration: none !important;
}
.hc-nexus-mosaic-links a:hover {
  color: var(--fg-orange);
}

/* ── Responsive ── */
@media (max-width: 820px) {
  .hc-nexus-panel-head {
    grid-template-columns: 1fr;
  }
  .hc-nexus-panel-badge {
    flex-direction: row;
    width: fit-content;
  }
  .hc-nexus-faq-a {
    padding-left: 1.75rem;
  }
  .hc-nexus-mosaic-grid {
    grid-template-columns: 1fr;
  }
  .hc-nexus-orbit-item {
    width: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hc-nexus-ring,
  .hc-nexus-badge-dot,
  .hc-nexus-orbit-item:hover,
  .hc-nexus-faq-a,
  .hc-nexus-panel {
    animation: none !important;
  }
  .hc-nexus-tabs-glider {
    transition: none;
  }
}
