/* 2026-03-31 — /help page styles — v0-inspired conversational support */

/* ═══════════════════════════════════════
   TRANSITION OVERLAY
═══════════════════════════════════════ */
#help-transition-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: #02050a;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
#help-transition-overlay.hidden { opacity: 0; pointer-events: none; }

@keyframes barAnim {
  0%   { width: 0%;    opacity: 1; }
  15%  { width: 35%; }
  50%  { width: 75%; }
  72%  { width: 95%; }
  80%  { width: 100%; opacity: 1; }
  88%  { width: 100%; opacity: 0; }
  100% { width: 0%;   opacity: 0; }
}
@keyframes swirlFwd {
  0%   { transform: scale(1)   rotate(0deg);   opacity: 1; filter: blur(0px); }
  5%   { transform: scale(1)   rotate(0deg);   opacity: 1; filter: blur(0px); }
  32%  { transform: scale(3.5) rotate(180deg); opacity: 0; filter: blur(6px); }
  33%  { transform: scale(0)   rotate(0deg);   opacity: 0; filter: blur(0px); }
  100% { transform: scale(0)   rotate(0deg);   opacity: 0; filter: blur(0px); }
}
@keyframes cLetter {
  0%   { opacity: 0; transform: translateY(12px); }
  8%   { opacity: 1; transform: translateY(0); }
  30%  { opacity: 1; transform: translateY(0); }
  42%  { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 0; transform: translateY(12px); }
}
.ht-bar {
  position: absolute; top: 0; left: 0; height: 2px;
  background: #38bdf8; box-shadow: 0 0 8px rgba(56,189,248,0.8);
  border-radius: 0 2px 2px 0;
  animation: barAnim 2.8s cubic-bezier(0.25,0.1,0.25,1) forwards;
}
.ht-icon {
  position: absolute; width: 52px; height: 52px; border-radius: 12px;
  animation: swirlFwd 2.8s ease-in-out forwards;
}
.ht-word { display: flex; align-items: baseline; --base: 0.88s; }
.ht-word span {
  display: inline-block; font-size: 2.4rem; font-weight: 800;
  color: #f8fafc; line-height: 1; opacity: 0; transform: translateY(12px);
  animation: cLetter 2.8s ease-in-out forwards;
}
.ht-word .l0  { animation-delay: calc(0.00s + var(--base)); }
.ht-word .l1  { animation-delay: calc(0.06s + var(--base)); }
.ht-word .l2  { animation-delay: calc(0.12s + var(--base)); }
.ht-word .l3  { animation-delay: calc(0.18s + var(--base)); }
.ht-word .l4  { animation-delay: calc(0.24s + var(--base)); }
.ht-word .l5  { animation-delay: calc(0.30s + var(--base)); }
.ht-word .l6  { animation-delay: calc(0.36s + var(--base)); }
.ht-word .l7  { animation-delay: calc(0.42s + var(--base)); }
.ht-word .l8  { animation-delay: calc(0.48s + var(--base)); }
.ht-word .l9  { animation-delay: calc(0.54s + var(--base)); }
.ht-word .l10 { animation-delay: calc(0.60s + var(--base)); }
.ht-word .space { display: inline-block; width: 0.35em; animation: none; opacity: 1; }

/* ═══════════════════════════════════════
   SPACE BACKGROUND
═══════════════════════════════════════ */
.help-space-bg {
  position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at center, #1a1a2e 0%, #16213e 25%, #0f0f23 50%, #0a0a0f 100%);
  overflow: hidden;
}
.help-star {
  position: absolute; border-radius: 50%; background: #fff;
  animation: starTwinkle var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s); opacity: 0.6;
}
@keyframes starTwinkle {
  0%, 100% { opacity: 0.2; }
  50%       { opacity: 0.9; }
}

/* ═══════════════════════════════════════
   PAGE LAYOUT
═══════════════════════════════════════ */
.help-page-wrap {
  display: flex; flex-direction: column; height: 100vh;
  opacity: 0; transition: opacity 0.4s ease;
}
.help-page-wrap.visible { opacity: 1; }

.help-scroll-area {
  flex: 1; overflow-y: auto;
  padding-top: 80px;
  padding-bottom: 120px;
  scroll-behavior: smooth;
}
.help-scroll-area::-webkit-scrollbar { width: 5px; }
.help-scroll-area::-webkit-scrollbar-track { background: transparent; }
.help-scroll-area::-webkit-scrollbar-thumb { background: #27272a; border-radius: 3px; }

.help-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem 2rem 2rem;
}

/* ═══════════════════════════════════════
   STATUS PILL
═══════════════════════════════════════ */
.help-status {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.9rem; color: #10b981;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 10px rgba(16,185,129,0.2);
}
.help-status-dot {
  width: 10px; height: 10px;
  background: #10b981; border-radius: 50%;
  box-shadow: 0 0 6px rgba(16,185,129,0.8);
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(1.4); opacity: 0.7; }
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.help-hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800; color: #fafafa;
  line-height: 1.1; margin-bottom: 0.3rem;
}
.help-hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: #a1a1aa; margin-bottom: 2rem;
  font-weight: 400;
}

/* ═══════════════════════════════════════
   TOP CARDS
═══════════════════════════════════════ */
.help-top-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-bottom: 2.5rem;
}
@media (max-width: 580px) { .help-top-cards { grid-template-columns: 1fr; } }

.help-top-card {
  display: block;
  background: rgba(24,24,27,0.8);
  border: 1px solid #27272a;
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  text-decoration: none; color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  position: relative; overflow: hidden;
}
.help-top-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(56,189,248,0.05), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.help-top-card:hover::before { opacity: 1; }
.help-top-card:hover {
  border-color: #3f3f46;
  box-shadow: 0 0 24px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}
.help-top-card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 0.6rem;
}
.help-top-card-title {
  font-weight: 700; color: #fafafa; font-size: 1.05rem;
}
.help-top-card-arrow {
  color: #71717a; font-size: 1rem;
  transition: transform 0.2s, color 0.2s;
  margin-left: 0.3rem;
}
.help-top-card:hover .help-top-card-arrow { transform: translate(2px,-2px); color: #fafafa; }
.help-top-card-icons { font-size: 1.3rem; color: #52525b; }
.help-top-card-desc {
  color: #71717a; font-size: 0.95rem; line-height: 1.5;
}

/* ═══════════════════════════════════════
   PRO TIP
═══════════════════════════════════════ */
/* 2026-03-31 — inline tip above AI greeting to let users open the sidebar directly */
.help-pro-tip {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem;
  background: rgba(56,189,248,0.06);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 10px;
  padding: 0.75rem 1.1rem;
  font-size: 0.9rem; color: #94a3b8;
  margin-bottom: 1.8rem;
}
.help-pro-tip-label {
  font-weight: 700; color: #38bdf8; flex-shrink: 0;
}
.help-pro-tip-btn {
  background: none; border: 1px solid rgba(56,189,248,0.35);
  border-radius: 6px; padding: 0.25rem 0.7rem;
  color: #38bdf8; font-size: 0.85rem; cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  margin-left: auto; flex-shrink: 0;
}
.help-pro-tip-btn:hover {
  background: rgba(56,189,248,0.12); border-color: rgba(56,189,248,0.6);
}

/* ═══════════════════════════════════════
   CONVERSATION FLOW
═══════════════════════════════════════ */
.help-convo {
  display: flex; flex-direction: column; gap: 0;
}

/* 2026-03-31 — smoother step reveal with transform */
.help-step {
  overflow: hidden;
  opacity: 1;
  max-height: 800px;
  transform: translateY(0);
  transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1),
              max-height 0.6s cubic-bezier(0.16,1,0.3,1),
              margin 0.5s cubic-bezier(0.16,1,0.3,1),
              transform 0.5s cubic-bezier(0.16,1,0.3,1);
  margin-bottom: 1.8rem;
}
.help-step-hidden {
  opacity: 0; max-height: 0; margin-bottom: 0;
  transform: translateY(12px);
  pointer-events: none;
}

/* AI identity row */
.help-ai-row {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1rem;
  position: relative;
}
/* 2026-03-31 — circular glow via radial-gradient pseudo (box-shadow renders boxy on Windows) */
.help-ai-row::before {
  content: '';
  position: absolute;
  width: 56px; height: 56px;
  left: -8px; top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.35) 0%, transparent 70%);
  pointer-events: none;
  animation: aiIconGlow 3s ease-in-out infinite;
  z-index: 0;
}
@keyframes aiIconGlow {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}
.help-ai-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  position: relative; z-index: 1;
}
.help-ai-label {
  font-weight: 700; font-size: 1rem; color: #fafafa;
}

/* AI text — NOT in a bubble, just plain text on the page */
.help-ai-text {
  font-size: 1.05rem; line-height: 1.65;
  color: #d4d4d8;
  margin-bottom: 1.2rem;
}

/* 2026-03-31 — delayed pop-in for initial AI greeting.
   Sequence: page visible → 2s delay → AI row slides in → text follows → buttons appear */
.help-ai-row-delayed {
  opacity: 0;
  transform: translateY(10px);
  animation: helpTextPopIn 0.5s cubic-bezier(0.16,1,0.3,1) 2s forwards;
}
.help-ai-text-delayed {
  opacity: 0;
  transform: translateY(10px);
  animation: helpTextPopIn 0.6s cubic-bezier(0.16,1,0.3,1) 2.3s forwards;
}
.help-product-row-delayed {
  opacity: 0;
  transform: translateY(12px);
  animation: helpTextPopIn 0.5s cubic-bezier(0.16,1,0.3,1) 2.8s forwards;
}
@keyframes helpTextPopIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── PRODUCT BUTTONS ─── */
.help-product-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.help-product-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: #18181b;
  border: 1.5px solid #27272a;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font-size: 1rem; color: #a1a1aa;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.1s;
  user-select: none; font-weight: 500;
}
.help-product-btn:hover {
  border-color: #3f3f46; color: #e4e4e7;
}
.help-product-btn:active { transform: scale(0.97); }
.help-product-btn.selected {
  border-color: #10b981; color: #fafafa;
  background: rgba(16,185,129,0.06);
  box-shadow: 0 0 12px rgba(16,185,129,0.15);
}
.help-product-check {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #52525b;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.help-product-btn.selected .help-product-check {
  border-color: #10b981; background: #10b981;
}
/* green checkmark inside selected circle */
.help-product-btn.selected .help-product-check::after {
  content: '';
  width: 6px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* Shake animation when user tries to send without selecting */
@keyframes helpShake {
  0%, 100% { transform: translateX(0); }
  15%      { transform: translateX(-8px); }
  30%      { transform: translateX(8px); }
  45%      { transform: translateX(-6px); }
  60%      { transform: translateX(6px); }
  75%      { transform: translateX(-3px); }
  90%      { transform: translateX(3px); }
}
.help-shake {
  animation: helpShake 0.5s ease-in-out;
}
.help-shake .help-product-btn {
  border-color: #f87171 !important;
  box-shadow: 0 0 12px rgba(248,113,113,0.25) !important;
  transition: border-color 0.1s, box-shadow 0.1s;
}

/* ─── ACCOUNT CARD ─── */
.help-account-card {
  display: flex; align-items: center; justify-content: space-between;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.help-account-card:hover {
  border-color: #3f3f46;
}
.help-account-card.confirmed {
  border-color: #10b981;
  box-shadow: 0 0 10px rgba(16,185,129,0.1);
}
.help-account-left {
  display: flex; align-items: center; gap: 0.65rem;
}
.help-account-dot {
  width: 24px; height: 24px;
  background: linear-gradient(135deg, #8b5cf6, #38bdf8);
  border-radius: 50%; flex-shrink: 0;
}
.help-account-name {
  font-size: 1rem; color: #fafafa; font-weight: 500;
}
.help-account-badge {
  font-size: 0.82rem; color: #71717a;
  background: #27272a; border-radius: 6px;
  padding: 0.25rem 0.6rem; font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.help-account-card.confirmed .help-account-badge {
  background: rgba(16,185,129,0.12); color: #10b981;
}
/* 2026-03-31 — checkmark for confirmed account/guest cards */
.help-account-card.confirmed .help-account-dot {
  position: relative;
}
.help-account-card.confirmed .help-account-dot::after {
  content: '';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  /* CSS checkmark */
  width: 7px; height: 11px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  top: 4px; left: 8px;
}

.help-login-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  background: transparent;
  border: 1.5px solid #27272a;
  border-radius: 12px;
  padding: 0.85rem;
  color: #fafafa; font-size: 1rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  margin-bottom: 0.6rem;
}
.help-login-btn:hover { background: #18181b; border-color: #3f3f46; }

.help-guest-btn {
  display: block; width: 100%; text-align: center;
  background: none; border: none;
  color: #71717a; font-size: 0.9rem;
  cursor: pointer; padding: 0.4rem;
  text-decoration: underline; transition: color 0.15s;
}
.help-guest-btn:hover { color: #a1a1aa; }

/* ─── CHAT MESSAGES (dynamic, inline on page) ─── */
#helpChatMessages {
  display: flex; flex-direction: column; gap: 1.5rem;
}

/* 2026-03-31 — smooth entrance for all chat messages */
.help-msg-user, .help-msg-ai {
  animation: helpMsgSlideIn 0.4s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes helpMsgSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.help-msg-user {
  display: flex; justify-content: flex-end; margin-bottom: 0.2rem;
}
.help-msg-user-bubble {
  background: #27272a;
  color: #fafafa;
  padding: 0.7rem 1.1rem;
  border-radius: 16px 16px 4px 16px;
  font-size: 1rem; line-height: 1.5;
  max-width: 75%;
}
.help-msg-ai {
  margin-bottom: 0.2rem;
}
.help-msg-ai-text {
  font-size: 1.05rem; line-height: 1.65;
  color: #d4d4d8;
}

/* 2026-03-31 — thinking indicator with label */
.help-thinking-wrap {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.5rem 0;
  animation: helpMsgSlideIn 0.3s cubic-bezier(0.16,1,0.3,1) both;
}
.help-thinking-label {
  font-size: 0.88rem; color: #71717a; font-weight: 500;
  animation: helpThinkPulse 2s ease-in-out infinite;
}
@keyframes helpThinkPulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

/* Typing dots */
.help-typing { display: flex; gap: 5px; align-items: center; }
.help-typing span {
  width: 7px; height: 7px; background: #52525b;
  border-radius: 50%; animation: typingDot 1.4s ease-in-out infinite;
}
.help-typing span:nth-child(2) { animation-delay: 0.2s; }
.help-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%,80%,100% { transform: scale(0.6); opacity: 0.3; }
  40%          { transform: scale(1.15); opacity: 1; }
}

/* Old floating button — kept in DOM but never shown (replaced by morph button) */
.help-create-case-btn { display: none !important; }

/* 2026-03-31 — morph button: pending (sky-blue glow) → resolved (solid white) */
.help-morph-btn-wrap {
  display: flex; justify-content: center;
  margin: 1.2rem 0 0.4rem;
}
.help-morph-btn {
  border-radius: 12px;
  padding: 0.75rem 1.6rem;
  font-size: 0.92rem; font-weight: 700;
  letter-spacing: -0.01em;
  cursor: default;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

/* ── Pending state ── */
.help-morph-btn.pending {
  background: transparent;
  border: 1px solid rgba(56,189,248,0.4);
  color: #38bdf8;
  box-shadow: 0 0 20px rgba(56,189,248,0.15);
  animation: morphPulse 1.5s ease-in-out infinite;
}
@keyframes morphPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(56,189,248,0.15); }
  50%       { box-shadow: 0 0 30px rgba(56,189,248,0.3); }
}

/* Spinner inside pending button */
.help-morph-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid #38bdf8;
  border-top-color: transparent;
  border-radius: 50%;
  animation: morphSpin 0.8s linear infinite;
}
@keyframes morphSpin { to { transform: rotate(360deg); } }

/* ── Resolved state ── */
.help-morph-btn.resolved {
  background: #fafafa;
  border: 1px solid transparent;
  color: #09090b;
  box-shadow: 0 0 20px rgba(250,250,250,0.08);
  cursor: pointer;
  animation: none;
}
.help-morph-btn.resolved:hover {
  background: #e4e4e7;
  box-shadow: 0 4px 20px rgba(250,250,250,0.12);
}
.help-morph-btn.resolved:active { transform: scale(0.97); }

/* ═══════════════════════════════════════
   FLOATING CHATBOX — rounded, centered, not full-width
═══════════════════════════════════════ */
.help-chatbox-wrap {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: center;
  padding: 0 1.5rem 1.5rem;
  pointer-events: none;
  z-index: 100;
}
.help-chatbox {
  width: 100%; max-width: 820px;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 16px;
  padding: 0.5rem;
  pointer-events: auto;
  box-shadow: 0 -4px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.help-chatbox:focus-within {
  border-color: rgba(56,189,248,0.5);
  box-shadow: 0 -4px 40px rgba(0,0,0,0.5), 0 0 20px rgba(56,189,248,0.15), 0 0 60px rgba(56,189,248,0.06);
}

/* Tags inside chatbox */
.help-chatbox-tags {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  padding: 0.3rem 0.6rem 0;
  min-height: 0;
}
.help-chatbox-tags:empty { display: none; }
.help-chatbox-tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: #27272a; border-radius: 6px;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem; color: #a1a1aa; font-weight: 500;
}
.help-chatbox-tag-icon {
  width: 16px; height: 16px; border-radius: 50%; object-fit: cover;
}
.help-chatbox-tag-dot {
  width: 12px; height: 12px;
  background: linear-gradient(135deg, #8b5cf6, #38bdf8);
  border-radius: 50%; flex-shrink: 0;
}

.help-chatbox-input-row {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.3rem 0.4rem 0.3rem 0.8rem;
}
.help-chatbox-input {
  flex: 1; background: transparent; border: none;
  padding: 0.65rem 0; color: #fafafa;
  font-size: 1rem; font-family: inherit; outline: none;
}
.help-chatbox-input::placeholder { color: #52525b; }
.help-chatbox-input:disabled { opacity: 0.4; cursor: not-allowed; }

.help-chatbox-send {
  width: 38px; height: 38px;
  background: #fafafa; color: #09090b;
  border: none; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}
.help-chatbox-send:hover { background: #e4e4e7; }
.help-chatbox-send:active { transform: scale(0.92); }
.help-chatbox-send:disabled { background: #27272a; color: #52525b; cursor: not-allowed; }
.help-chatbox-send svg { width: 18px; height: 18px; }

/* ═══════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════ */
.help-sidebar-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000; opacity: 0; pointer-events: none;
  transition: opacity 0.3s; backdrop-filter: blur(2px);
}
.help-sidebar-overlay.open { opacity: 1; pointer-events: auto; }

.help-sidebar {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(520px, 100vw);
  background: #0d0d10; border-left: 1px solid #1f1f23;
  z-index: 1001;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.5);
}
.help-sidebar.open { transform: translateX(0); }

/* 2026-03-31 — sidebar redesign: dark glass feel, readable text, custom controls */
.help-sb-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 1.6rem; border-bottom: 1px solid #1f1f23; flex-shrink: 0;
  background: rgba(13,13,16,0.95);
}
.help-sb-title { font-weight: 700; font-size: 1rem; color: #e4e4e7; letter-spacing: 0.01em; }
.help-sb-close {
  width: 28px; height: 28px;
  background: #18181b; border: 1px solid #27272a;
  border-radius: 6px; color: #71717a;
  font-size: 0.85rem; cursor: pointer; padding: 0; line-height: 28px; text-align: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.help-sb-close:hover { background: #27272a; color: #e4e4e7; border-color: #3f3f46; }

.help-sb-body {
  flex: 1; overflow-y: auto; padding: 1.4rem 1.6rem;
}
/* 2026-03-31 — dark scrollbar so it doesn't flash white */
.help-sb-body::-webkit-scrollbar { width: 4px; }
.help-sb-body::-webkit-scrollbar-track { background: transparent; }
.help-sb-body::-webkit-scrollbar-thumb { background: #27272a; border-radius: 2px; }

.help-sb-sub {
  font-size: 0.88rem; color: #71717a; margin-bottom: 1.4rem; line-height: 1.6;
}

.help-sb-account {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #111113; border: 1px solid #27272a;
  border-radius: 10px; margin-bottom: 1.4rem;
}
.help-sb-account-dot {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #8b5cf6, #38bdf8);
  border-radius: 50%; flex-shrink: 0;
}
.help-sb-account-email { font-size: 0.95rem; color: #e4e4e7; font-weight: 600; }
.help-sb-account-tag { font-size: 0.78rem; color: #71717a; margin-top: 1px; }

.help-sb-guest-fields { margin-bottom: 1.4rem; }

.help-sb-field-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.75rem; margin-bottom: 0;
}
@media (max-width: 480px) { .help-sb-field-row { grid-template-columns: 1fr; } }

.help-sb-field { margin-bottom: 1rem; }
.help-sb-label {
  display: block; font-size: 0.73rem; color: #a1a1aa;
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 0.4rem;
}
.help-sb-input,
.help-sb-select,
.help-sb-textarea {
  width: 100%; background: #18181b;
  border: 1px solid #2e2e33; border-radius: 8px;
  padding: 0.65rem 0.9rem; color: #f4f4f5;
  font-size: 0.92rem; font-family: inherit; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.help-sb-input::placeholder,
.help-sb-textarea::placeholder { color: #52525b; }
.help-sb-input:focus,
.help-sb-select:focus,
.help-sb-textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56,189,248,0.08);
}
/* Custom select — sky blue chevron, no browser default */
.help-sb-select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2338bdf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.2rem;
  font-weight: 500;
}
/* Options — forced dark background for legibility on all platforms */
.help-sb-select option {
  background: #18181b; color: #f4f4f5;
  font-weight: 400; padding: 0.4rem;
}

/* 2026-03-31 — urgency select: colored border + text based on current value */
#sbUrgency[data-urgency="Low"] {
  border-color: rgba(34,197,94,0.5); color: #22c55e;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2322c55e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
#sbUrgency[data-urgency="Medium"] {
  border-color: rgba(234,179,8,0.5); color: #eab308;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23eab308' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
#sbUrgency[data-urgency="High"] {
  border-color: rgba(239,68,68,0.5); color: #ef4444;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.help-sb-textarea { height: 120px; resize: vertical; line-height: 1.5; }

.help-sb-ai-note {
  display: flex; align-items: flex-start; gap: 0.6rem;
  background: rgba(56,189,248,0.05);
  border: 1px solid rgba(56,189,248,0.15);
  border-radius: 8px;
  padding: 0.7rem 0.9rem; margin-bottom: 1.1rem;
  font-size: 0.85rem; color: #94a3b8; line-height: 1.55;
}
.help-sb-ai-note-icon { color: #38bdf8; font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

.help-sb-submit {
  width: 100%; background: #fafafa; color: #09090b;
  border: none; border-radius: 10px;
  padding: 0.85rem; font-weight: 800; font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  margin-bottom: 0.7rem;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  letter-spacing: -0.01em;
}
.help-sb-submit:hover { background: #e4e4e7; box-shadow: 0 4px 20px rgba(250,250,250,0.1); }
.help-sb-submit:active { transform: scale(0.98); }
.help-sb-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.help-sb-cancel {
  display: block; text-align: center;
  font-size: 0.88rem; color: #3f3f46;
  background: none; border: none; cursor: pointer;
  width: 100%; padding: 0.4rem; transition: color 0.15s;
}
.help-sb-cancel:hover { color: #71717a; }

.help-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(9,9,11,0.3);
  border-top-color: #09090b;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════
   SUCCESS
═══════════════════════════════════════ */
.help-success {
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 2.5rem 1.5rem; flex: 1;
}
.help-success.visible { display: flex; }
.help-success-svg-wrap { margin-bottom: 1.5rem; position: relative; }
.help-check-circle {
  fill: none; stroke: #10b981; stroke-width: 2.5;
  stroke-dasharray: 314; stroke-dashoffset: 314;
  animation: drawCircle 0.5s ease-out 0.1s forwards;
}
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
.help-check-path {
  fill: none; stroke: #10b981; stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 50; stroke-dashoffset: 50;
  animation: drawCheck 0.4s ease-out 0.55s forwards;
}
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.help-check-glow {
  position: absolute; inset: -8px; border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.2) 0%, transparent 70%);
  animation: glowFadeIn 0.5s ease-out 0.9s both;
}
@keyframes glowFadeIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
.help-success-title { font-size: 1.4rem; font-weight: 800; color: #fafafa; margin-bottom: 0.6rem; }
.help-success-msg { font-size: 0.95rem; color: #a1a1aa; line-height: 1.6; margin-bottom: 1.5rem; max-width: 340px; }
.help-success-msg strong { color: #fafafa; }
.help-countdown-bar-wrap { width: 80%; height: 3px; background: #27272a; border-radius: 2px; overflow: hidden; margin-bottom: 0.5rem; }
.help-countdown-bar { height: 100%; background: #10b981; border-radius: 2px; width: 100%; animation: drainBar 10s linear forwards; box-shadow: 0 0 6px rgba(16,185,129,0.6); }
@keyframes drainBar { from { width: 100%; } to { width: 0%; } }
.help-countdown-note { font-size: 0.78rem; color: #52525b; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
/* 2026-03-31 — laptop screens: tighten spacing so less scrolling is needed */
@media (max-height: 800px) {
  .help-scroll-area { padding-top: 64px; padding-bottom: 100px; }
  .help-container { padding: 1rem 2rem 1.5rem; }
  .help-hero-title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 0.15rem; }
  .help-hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); margin-bottom: 1.2rem; }
  .help-status { margin-bottom: 1rem; padding: 0.3rem 0.9rem; font-size: 0.85rem; }
  .help-top-cards { margin-bottom: 1.8rem; gap: 0.75rem; }
  .help-top-card { padding: 1rem 1.2rem; }
  .help-step { margin-bottom: 1.2rem; }
  .help-ai-text { font-size: 1rem; margin-bottom: 0.8rem; }
  .help-ai-row { margin-bottom: 0.6rem; }
}

@media (max-width: 600px) {
  .help-container { padding: 1rem 1rem 1.5rem; }
  .help-product-row { grid-template-columns: 1fr; }
  .help-chatbox-wrap { padding: 0 0.75rem 0.75rem; }
}
