/* givestar onboarding — brand stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,600;1,800&display=swap');

:root {
  --gs-gold:    #FEB50D;
  --gs-orange:  #FE880D;
  --gs-black:   #000000;
  --gs-white:   #FFFFFF;
  --gs-putty:   #F7F5F1;
  --gs-dark:    #111111;
  --gs-border:  #e8e8e8;
  --gs-text:    #1a1a1a;
  --gs-text-2:  #666666;
  --gs-text-3:  #999999;
  --gs-success-bg:   #EAF3DE;
  --gs-success-text: #3B6D11;
  --gs-warning-bg:   #FEF3D0;
  --gs-warning-text: #854F0B;
  --gs-danger-bg:    #FDECEA;
  --gs-danger-text:  #B91C1C;
  --gs-info-bg:      #E6F1FB;
  --gs-info-text:    #185FA5;
  --radius:     12px;
  --radius-sm:  8px;
  --radius-pill:100px;
}

*  { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  background: var(--gs-putty);
  color: var(--gs-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ── */
.site-header {
  background: var(--gs-black);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { height: 28px; width: auto; object-fit: contain; }
.logo-fallback { display: flex; align-items: center; gap: 8px; }
.logo-text { color: var(--gs-white); font-size: 18px; font-weight: 800; font-style: italic; letter-spacing: -0.5px; }
.header-link { color: #888; font-size: 11px; text-decoration: none; font-weight: 400; }
.header-link:hover { color: var(--gs-gold); }

/* ── HERO ── */
.hero {
  background: var(--gs-black);
  padding: 64px 28px 60px;
  text-align: center;
}

.hero-inner { max-width: 560px; margin: 0 auto; }

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gs-gold);
  margin-bottom: 18px;
}

.hero-headline {
  font-size: 44px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  color: var(--gs-white);
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.hero-highlight { color: var(--gs-gold); }

.hero-sub {
  font-size: 14px;
  font-weight: 400;
  color: #aaa;
  line-height: 1.7;
  margin-bottom: 32px;
}

.start-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 38px;
  background: var(--gs-gold);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  font-family: inherit;
  color: var(--gs-black);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: background .12s, transform .1s;
}
.start-btn:hover { background: var(--gs-orange); }
.start-btn:active { transform: scale(0.98); }

.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #666;
  font-weight: 400;
}

.trust-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gs-gold);
  flex-shrink: 0;
}

/* ── CHAT SECTION ── */
.chat-section {
  display: none;
  justify-content: center;
  padding: 48px 16px 64px;
  flex: 1;
  background: var(--gs-putty);
  border-top: 4px solid var(--gs-gold);
}

.chat-section.visible { display: flex; }

.agent-container {
  width: 100%;
  max-width: 640px;
  background: var(--gs-white);
  border-radius: var(--radius);
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── AGENT HEADER ── */
.agent-header {
  background: var(--gs-dark);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.agent-online {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}

.agent-header-text h2 { color: var(--gs-white); font-size: 13px; font-weight: 600; margin: 0; }
.agent-header-text p  { color: #888; font-size: 10px; margin: 3px 0 0; font-weight: 400; }

/* ── PROGRESS ── */
.progress-bar  { height: 3px; background: #2a2a2a; }
.progress-fill { height: 3px; background: var(--gs-gold); transition: width .5s ease; }
.progress-label {
  padding: 6px 18px;
  font-size: 11px;
  color: var(--gs-text-2);
  display: flex;
  justify-content: space-between;
  background: var(--gs-putty);
  border-bottom: 1px solid var(--gs-border);
  font-weight: 400;
}

/* ── CHAT ── */
.chat-area {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 320px;
  max-height: 420px;
  overflow-y: auto;
  background: var(--gs-white);
  scroll-behavior: smooth;
}

.msg { max-width: 84%; display: flex; flex-direction: column; }
.msg.bot { align-self: flex-start; }
.msg.usr { align-self: flex-end; }

.bubble { padding: 11px 15px; font-size: 13px; line-height: 1.6; font-weight: 400; }

.bot .bubble {
  background: var(--gs-putty);
  border: 1px solid var(--gs-border);
  border-radius: 14px 14px 14px 3px;
  color: var(--gs-text);
}

.usr .bubble {
  background: var(--gs-gold);
  border-radius: 14px 14px 3px 14px;
  color: var(--gs-black);
  font-weight: 600;
}

/* Special bubbles */
.search-bubble, .strise-bubble, .help-bubble, .warn-bubble, .success-bubble {
  max-width: 84%;
  align-self: flex-start;
  padding: 10px 14px;
  border-radius: 14px 14px 14px 3px;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 400;
}

.search-bubble  { background: var(--gs-info-bg);    border: 1px solid #B8D4F2; color: var(--gs-info-text); }
.strise-bubble  { background: var(--gs-putty);       border: 1px solid var(--gs-border); color: var(--gs-text-2); }
.help-bubble    { background: var(--gs-warning-bg);  border: 1px solid #EFC97B; color: var(--gs-warning-text); }
.warn-bubble    { background: var(--gs-danger-bg);   border: 1px solid #F5C6C2; color: var(--gs-danger-text); }
.success-bubble { background: var(--gs-success-bg);  border: 1px solid #9FCB78; color: var(--gs-success-text); }

.bubble-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 5px;
  opacity: .7;
}

/* Typing */
.typing {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 15px;
  background: var(--gs-putty);
  border: 1px solid var(--gs-border);
  border-radius: 14px 14px 14px 3px;
}

.typing-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gs-text-3);
  animation: typingBop 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }

/* Search spinner */
#search-spinner { animation: none; }

.spinner-dots {
  display: inline-flex;
  gap: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

.spinner-dots span {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gs-info-text);
  animation: spinnerBop 1.2s infinite;
  opacity: 0.3;
}
.spinner-dots span:nth-child(2) { animation-delay: .2s; }
.spinner-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes spinnerBop {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* Loading dots for search */
.loading-dots span {
  animation: loadingFade 1.4s infinite;
  opacity: 0;
  font-weight: 700;
}
.loading-dots span:nth-child(2) { animation-delay: .2s; }
.loading-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes loadingFade {
  0%, 60%, 100% { opacity: 0; }
  30% { opacity: 1; }
}

/* Search pulse — whole bubble pulses gently while waiting */
.search-bubble {
  animation: searchPulse 2s ease-in-out infinite;
}

@keyframes searchPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes typingBop {
  0%,60%,100% { transform: translateY(0); }
  30%          { transform: translateY(-6px); }
}

/* ── QUICK REPLIES ── */
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 18px;
  background: var(--gs-putty);
  border-top: 1px solid var(--gs-border);
  min-height: 48px;
  align-items: flex-start;
}

.qr-hint { font-size: 11px; color: var(--gs-text-3); width: 100%; padding-bottom: 4px; font-weight: 400; }

.qr-btn {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--gs-gold);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--gs-warning-text);
  font-family: inherit;
  transition: all .12s;
  text-align: left;
  line-height: 1.4;
}

.qr-btn:hover  { background: var(--gs-gold); color: var(--gs-black); }
.qr-btn:focus  { outline: 2px solid var(--gs-gold); outline-offset: 2px; }
.qr-btn:active { transform: scale(0.97); }

.qr-btn.wide {
  width: 100%;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
}

.qr-btn.neutral {
  border-color: var(--gs-border);
  color: var(--gs-text-2);
}
.qr-btn.neutral:hover {
  background: var(--gs-putty);
  color: var(--gs-text);
  border-color: #999;
}

.qr-meta {
  font-size: 11px;
  color: var(--gs-text-2);
  margin-top: 3px;
  display: block;
  font-weight: 400;
}

.reg-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0,0,0,0.06);
  color: var(--gs-text-2);
  margin-left: 6px;
  vertical-align: middle;
}

/* ── INPUT ROW ── */
.input-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--gs-border);
  background: var(--gs-white);
  align-items: center;
}

.help-trigger {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gs-border);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--gs-text-2);
  font-family: inherit;
  white-space: nowrap;
  transition: all .12s;
}
.help-trigger:hover { border-color: var(--gs-gold); color: var(--gs-warning-text); }

.chat-input {
  flex: 1;
  padding: 9px 16px;
  border: 1px solid var(--gs-border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-family: inherit;
  font-weight: 400;
  background: var(--gs-putty);
  color: var(--gs-text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.chat-input:focus {
  border-color: var(--gs-gold);
  box-shadow: 0 0 0 3px rgba(254,181,13,0.15);
}
.chat-input::placeholder { color: var(--gs-text-3); }
.chat-input:disabled { opacity: .4; cursor: not-allowed; }

.send-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gs-gold);
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--gs-black);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s;
}
.send-btn:hover { background: var(--gs-orange); }
.send-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── NEXT STEPS ── */
.next-steps { display: none; flex-direction: column; }
.next-steps.visible { display: flex; }

.ns-hero {
  background: var(--gs-black);
  padding: 36px 24px;
  text-align: center;
}

.ns-hero h2 {
  color: var(--gs-gold);
  font-size: 28px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin: 14px 0 6px;
  line-height: 1.1;
}

.ns-hero p { color: #888; font-size: 13px; font-weight: 400; }

.ns-body { padding: 20px; }

.ns-card {
  background: var(--gs-putty);
  border: 1px solid var(--gs-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.ns-card-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--gs-text-3);
  margin-bottom: 5px;
}

.ns-card-name { font-size: 15px; font-weight: 600; color: var(--gs-text); }
.ns-card-meta { font-size: 12px; color: var(--gs-text-2); margin-top: 3px; font-weight: 400; }

.ns-steps { margin-bottom: 18px; }

.ns-step {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gs-border);
}
.ns-step:last-child { border-bottom: none; }

.ns-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gs-gold);
  color: var(--gs-black);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.ns-step-body h4 { font-size: 13px; font-weight: 600; margin: 0 0 3px; }
.ns-step-body p  { font-size: 12px; color: var(--gs-text-2); line-height: 1.5; margin: 0; font-weight: 400; }
.ns-when { font-size: 11px; color: var(--gs-warning-text); font-weight: 600; margin-top: 4px; display: block; }

.ns-contact { text-align: center; font-size: 12px; color: var(--gs-text-2); padding: 4px 0 8px; font-weight: 400; }
.ns-contact strong { color: var(--gs-text); font-weight: 600; }

/* ── FOOTER ── */
.site-footer {
  background: var(--gs-black);
  padding: 16px 28px;
  text-align: center;
  font-size: 11px;
  color: #555;
  font-weight: 400;
  margin-top: auto;
}
.site-footer a { color: #777; text-decoration: none; }
.site-footer a:hover { color: var(--gs-gold); }

/* ── ADMIN ── */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px; width: 100%; }
.admin-header-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.admin-header-bar h2 { font-size: 20px; font-weight: 700; }
.admin-header-bar p  { font-size: 13px; color: var(--gs-text-2); margin-top: 3px; font-weight: 400; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat-card { background: var(--gs-white); border: 1px solid var(--gs-border); border-radius: var(--radius-sm); padding: 14px 16px; text-align: center; }
.stat-number { font-size: 26px; font-weight: 700; color: var(--gs-text); }
.stat-number.gold  { color: var(--gs-warning-text); }
.stat-number.green { color: var(--gs-success-text); }
.stat-number.red   { color: var(--gs-danger-text); }
.stat-label { font-size: 11px; color: var(--gs-text-2); margin-top: 3px; font-weight: 400; }

.filter-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.filter-label { font-size: 11px; font-weight: 600; color: var(--gs-text-3); }
.filter-btn { padding: 5px 12px; border-radius: var(--radius-pill); border: 1px solid var(--gs-border); font-size: 11px; font-weight: 600; cursor: pointer; background: transparent; color: var(--gs-text-2); font-family: inherit; transition: all .12s; }
.filter-btn.active { background: var(--gs-gold); border-color: var(--gs-gold); color: var(--gs-black); }
.filter-btn:hover:not(.active) { border-color: #999; color: var(--gs-text); }

.table-wrap { background: var(--gs-white); border: 1px solid var(--gs-border); border-radius: var(--radius-sm); overflow: hidden; }
.table-scroll { overflow-x: auto; }

.reg-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.reg-table th { text-align: left; padding: 9px 12px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--gs-text-3); border-bottom: 1px solid var(--gs-border); background: var(--gs-putty); white-space: nowrap; }
.reg-table td { padding: 10px 12px; border-bottom: 1px solid var(--gs-border); color: var(--gs-text); vertical-align: middle; }
.reg-table tr:last-child td { border-bottom: none; }
.reg-table tr:hover td { background: var(--gs-putty); }
.reg-table tr.flag-row     td { background: #FFFBF0; }
.reg-table tr.reverify-row td { background: #FFF8F0; }

.org-name { font-weight: 600; font-size: 12px; }
.org-num  { font-size: 10px; color: var(--gs-text-3); margin-top: 1px; }
.multi-badge { font-size: 9px; padding: 1px 5px; border-radius: 4px; background: var(--gs-warning-bg); color: var(--gs-warning-text); border: 1px solid #EFC97B; margin-left: 4px; vertical-align: middle; }

.status-pill { padding: 3px 9px; border-radius: var(--radius-pill); font-size: 10px; font-weight: 600; display: inline-block; white-space: nowrap; }
.sp-new      { background: var(--gs-info-bg);    color: var(--gs-info-text); }
.sp-ok       { background: var(--gs-success-bg); color: var(--gs-success-text); }
.sp-prog     { background: var(--gs-warning-bg); color: var(--gs-warning-text); }
.sp-flag     { background: var(--gs-danger-bg);  color: var(--gs-danger-text); }
.sp-reverify { background: #FFF0E0; color: #9A4B00; }
.sp-exists   { background: var(--gs-success-bg); color: var(--gs-success-text); }
.sp-assisted { background: var(--gs-danger-bg);  color: var(--gs-danger-text); }

.flag-note { font-size: 10px; color: var(--gs-warning-text); margin-top: 3px; white-space: normal; font-weight: 400; }

.view-btn { padding: 4px 10px; border-radius: 6px; border: 1px solid var(--gs-border); font-size: 10px; font-weight: 600; cursor: pointer; background: transparent; color: var(--gs-text-2); font-family: inherit; transition: all .12s; }
.view-btn:hover { background: var(--gs-gold); border-color: var(--gs-gold); color: var(--gs-black); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .hero { padding: 44px 20px 40px; }
  .hero-headline { font-size: 34px; }
  .chat-section { padding: 16px 0 0; }
  .agent-container { border-radius: 0; box-shadow: none; }
  .chat-area { min-height: 280px; max-height: 360px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-row { gap: 12px; }
  .site-header { padding: 12px 16px; }
}

/* ── NEXT STEPS FULL SCREEN ── */
.next-steps-screen {
  display: none;
  flex-direction: column;
  min-height: 100vh;
  background: var(--gs-putty);
}

.next-steps-screen.visible {
  display: flex;
}

.ns-screen-hero {
  background: var(--gs-black);
  padding: 48px 28px 44px;
  text-align: center;
}

.ns-screen-hero h2 {
  color: var(--gs-gold);
  font-size: 36px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1.05;
  margin: 16px 0 8px;
}

.ns-screen-hero p {
  color: #aaa;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

.ns-screen-body {
  flex: 1;
  padding: 32px 16px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ns-screen-inner {
  width: 100%;
  max-width: 560px;
}

.ns-screen-card {
  background: var(--gs-white);
  border: 1px solid var(--gs-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.ns-screen-card-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--gs-text-3);
  margin-bottom: 6px;
}

.ns-screen-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--gs-text);
}

.ns-screen-card-meta {
  font-size: 12px;
  color: var(--gs-text-2);
  margin-top: 3px;
  font-weight: 400;
}

.ns-screen-steps {
  background: var(--gs-white);
  border: 1px solid var(--gs-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.ns-screen-step {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gs-border);
  align-items: flex-start;
}

.ns-screen-step:last-child { border-bottom: none; }

.ns-screen-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gs-gold);
  color: var(--gs-black);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.ns-screen-step-body h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gs-text);
  margin: 0 0 4px;
}

.ns-screen-step-body p {
  font-size: 12px;
  color: var(--gs-text-2);
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
}

.ns-screen-when {
  font-size: 11px;
  color: var(--gs-warning-text);
  font-weight: 600;
  margin-top: 4px;
  display: block;
}

.ns-screen-contact {
  text-align: center;
  font-size: 12px;
  color: var(--gs-text-2);
  padding: 8px 0;
  font-weight: 400;
}

.ns-screen-contact strong {
  color: var(--gs-text);
  font-weight: 600;
}
