/* ==========================================================================
   Abutic — Help center / FAQ (help.php). Builds on nx (abutic-nfc-v2.css).
   ========================================================================== */
.hc-grad { background: var(--nx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hc-rise { animation: hc-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards; animation-delay: var(--d, 0ms); }
@keyframes hc-rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- hero ---------- */
.hc-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--nx-nav-h, 64px) + 56px) 0 56px; margin-top: calc(var(--nx-nav-h, 64px) * -1); text-align: center; }
.hc-hero__inner { max-width: 820px; }
.hc-hero .nx-kicker { justify-content: center; }
.hc-hero h1 { margin: 10px 0 0; font-family: var(--nx-display); font-size: clamp(44px, 6.4vw, 78px); font-weight: 800; line-height: 1; letter-spacing: -0.045em; color: var(--nx-ink); }
.hc-lead { margin: 16px auto 0; max-width: 520px; font-size: clamp(16px, 1.6vw, 18.5px); color: var(--nx-muted); }
.hc-search { position: relative; display: block; max-width: 640px; margin: 30px auto 0; }
.hc-search > i { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 17px; pointer-events: none; }
.hc .hc-search input { width: 100%; height: 66px; padding: 0 64px 0 56px; border: 0; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--nx-line), 0 30px 60px -30px rgba(15, 23, 42, 0.45); font: 600 17px Inter, sans-serif; color: var(--nx-ink); transition: box-shadow 0.2s; margin: 0; }
.hc .hc-search input:focus { outline: 0; box-shadow: 0 0 0 2px #2563eb, 0 30px 60px -28px rgba(37, 99, 235, 0.45); }
.hc-search input::placeholder { color: #94a3b8; font-weight: 500; }
.hc-search kbd { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: 8px; background: #f1f5f9; box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.12); font: 700 13px ui-monospace, Menlo, monospace; color: #64748b; pointer-events: none; }
.hc-search input:focus ~ kbd { display: none; }
.hc-popular { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; }
.hc-popular > span { font-size: 13px; font-weight: 700; color: #94a3b8; }
.hc-popular a { padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); box-shadow: inset 0 0 0 1px var(--nx-line); color: #334155; font-size: 13px; font-weight: 650; text-decoration: none; transition: color 0.15s, box-shadow 0.15s; }
.hc-popular a:hover { color: #2563eb; box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.4); }

/* ---------- topics ---------- */
.hc-topics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 44px; }
.hc-topic { display: flex; flex-direction: column; gap: 3px; padding: 18px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--nx-line), 0 16px 34px -28px rgba(15, 23, 42, 0.45); text-decoration: none; transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s; }
.hc-topic:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.22), 0 22px 40px -24px rgba(37, 99, 235, 0.5); }
.hc-topic__ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 14px; background: var(--nx-grad); color: #fff; font-size: 17px; }
.hc-topic__ic--nfc { background: linear-gradient(135deg, #0f172a, #475569); }
.hc-topic__ic--orders { background: linear-gradient(135deg, #059669, #10b981); }
.hc-topic__ic--qr { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.hc-topic__ic--account { background: linear-gradient(135deg, #ea580c, #f59e0b); }
.hc-topic b { font: 800 16px var(--nx-display); color: var(--nx-ink); }
.hc-topic small { font-size: 13px; line-height: 1.45; color: var(--nx-muted); flex: 1; }
.hc-topic em { margin-top: 10px; font-style: normal; font-size: 12.5px; font-weight: 750; color: #2563eb; }
.hc-topic em i { font-size: 10px; margin-left: 3px; transition: transform 0.2s; }
.hc-topic:hover em i { transform: translateX(3px); }

/* ---------- body ---------- */
.hc-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; align-items: start; padding-bottom: 40px; }
.hc-nav { position: sticky; top: calc(var(--nx-nav-h, 64px) + 18px); display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--nx-line); }
.hc-nav > p { margin: 6px 10px 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #94a3b8; }
.hc-nav a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; color: #334155; font-size: 14px; font-weight: 650; text-decoration: none; transition: background 0.15s, color 0.15s; }
.hc-nav a i { width: 16px; text-align: center; color: #94a3b8; font-size: 13px; }
.hc-nav a span { flex: 1; }
.hc-nav a em { font-style: normal; font-size: 12px; font-weight: 700; color: #94a3b8; }
.hc-nav a:hover { background: #f8fafc; }
.hc-nav a.is-on { background: rgba(37, 99, 235, 0.08); color: #1d4ed8; }
.hc-nav a.is-on i, .hc-nav a.is-on em { color: #2563eb; }
.hc-nav .hc-nav__contact { margin-top: 6px; border-top: 1px solid var(--nx-line); border-radius: 0 0 12px 12px; padding-top: 14px; color: #2563eb; }
.hc-nav .hc-nav__contact i { color: #2563eb; }

.hc-cat { scroll-margin-top: calc(var(--nx-nav-h, 64px) + 20px); }
.hc-cat + .hc-cat { margin-top: 34px; }
.hc-cat[hidden] { display: none; }
.hc-cat h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 800 24px var(--nx-display); letter-spacing: -0.02em; color: var(--nx-ink); }
.hc-cat__ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--nx-grad); color: #fff; font-size: 15px; }

.hc-q { margin-bottom: 8px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--nx-line); scroll-margin-top: calc(var(--nx-nav-h, 64px) + 90px); transition: box-shadow 0.2s; }
.hc-q[hidden] { display: none; }
.hc-q[open] { box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25), 0 20px 40px -30px rgba(37, 99, 235, 0.55); }
.hc-q.is-flash { animation: hc-flash 1.6s ease; }
@keyframes hc-flash { 0%, 100% { box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25); } 25% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3); } }
.hc-q summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; }
.hc-q summary::-webkit-details-marker { display: none; }
.hc-q__text { font: 750 16px/1.4 var(--nx-display); color: var(--nx-ink); }
.hc-q__text mark { padding: 0 2px; border-radius: 4px; background: rgba(250, 204, 21, 0.4); color: inherit; }
.hc-q__chev { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; background: #f1f5f9; transition: background 0.2s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.hc-q__chev::before { content: ""; position: absolute; left: 50%; top: 46%; width: 7px; height: 7px; border-right: 2px solid #475569; border-bottom: 2px solid #475569; transform: translate(-50%, -50%) rotate(45deg); }
.hc-q[open] .hc-q__chev { background: #eff6ff; transform: rotate(180deg); }
.hc-q[open] .hc-q__chev::before { border-color: #2563eb; }
.hc-q summary:hover .hc-q__text { color: #1d4ed8; }
.hc-a { padding: 0 20px 18px; font-size: 15px; line-height: 1.7; color: #475569; animation: hc-rise 0.35s ease; }
.hc-a p { margin: 0 0 10px; }
.hc-a ol, .hc-a ul { margin: 0 0 10px; padding-left: 22px; }
.hc-a li { margin: 4px 0; padding-left: 2px; }
.hc-a ol li::marker { font-weight: 800; color: #2563eb; }
.hc-a b { color: #0f172a; }
.hc-a a { color: #2563eb; font-weight: 650; text-decoration: none; border-bottom: 1px solid rgba(37, 99, 235, 0.3); }
.hc-a a:hover { border-bottom-color: #2563eb; }
.hc-a__foot { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--nx-line); }
.hc-a__foot button, .hc .hc-a__foot a { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: #64748b; font: 650 13px Inter, sans-serif; cursor: pointer; text-decoration: none; border-bottom: 0; }
.hc-a__foot button:hover, .hc .hc-a__foot a:hover { color: #2563eb; }
.hc-a__foot i { font-size: 12px; }

.hc-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 20px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--nx-line); }
.hc-empty[hidden] { display: none; }
.hc-empty > span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: rgba(37, 99, 235, 0.08); color: #2563eb; font-size: 22px; }
.hc-empty h3 { margin: 14px 0 0; font: 800 19px var(--nx-display); color: var(--nx-ink); }
.hc-empty p { margin: 6px 0 18px; max-width: 40ch; font-size: 14.5px; color: var(--nx-muted); }

/* ---------- still need help ---------- */
.hc-more { padding-top: 24px; }
.hc-cta { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; align-items: center; padding: clamp(26px, 4.5vw, 52px); border-radius: 32px; background: radial-gradient(70% 90% at 100% 0%, rgba(14, 165, 233, 0.2), transparent 60%), linear-gradient(160deg, #eef5ff, #ffffff 70%); box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12); }
.hc-cta h2 { margin: 6px 0 0; font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.hc-cta__copy > p:last-child { margin: 12px 0 0; max-width: 40ch; font-size: 16.5px; line-height: 1.6; color: var(--nx-muted); }
.hc-cta__actions { display: grid; gap: 10px; }
.hc-way { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--nx-line); text-decoration: none; transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s; }
.hc-way:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25), 0 18px 34px -22px rgba(37, 99, 235, 0.5); }
.hc-way > span { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--nx-grad); color: #fff; font-size: 15px; }
.hc-way b { display: block; font: 800 15px var(--nx-display); color: var(--nx-ink); }
.hc-way small { font-size: 13px; color: var(--nx-muted); }

/* search mode: hide topic cards so results sit right under the search */
.hc.is-searching .hc-topics { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .hc-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .hc-body { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hc-nav { position: sticky; top: var(--nx-nav-h, 64px); z-index: 5; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 6px; border-radius: 16px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .hc-nav::-webkit-scrollbar { display: none; }
  .hc-nav > p { display: none; }
  .hc-nav a { flex: none; padding: 8px 12px; }
  .hc-nav a em { display: none; }
  .hc-nav .hc-nav__contact { margin-top: 0; border-top: 0; padding-top: 8px; border-radius: 12px; }
  .hc-cta { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .hc-hero { padding-top: calc(var(--nx-nav-h, 64px) + 32px); padding-bottom: 40px; }
  .hc-hero h1 { font-size: 46px; }
  .hc .hc-search input { height: 58px; border-radius: 18px; padding-right: 18px; }
  .hc-search kbd { display: none; }
  .hc-popular a:nth-of-type(n+4) { display: none; }
  .hc-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 28px; }
  .hc-topic { padding: 14px; }
  .hc-topic small { display: none; }
  .hc-cat h2 { font-size: 21px; }
  .hc-q summary { padding: 16px; }
  .hc-a { padding: 0 16px 16px; }
}
@media (max-width: 760px) {
  .hc :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { font-size: 16px !important; }
}
@media (prefers-reduced-motion: reduce) { .hc-rise, .hc-a, .hc-q.is-flash { animation: none !important; } }

.hc, .pf { overflow-x: clip; }
