/* =========================================================
   Aegis Support — design tokens
   Swap --brand-name-friendly spots + colors to rebrand later
   ========================================================= */
:root {
  --blue: #0500ff;
  --blue-deep: #2f1fe0;
  --teal: #00e5b0;
  --ink: #12121f;
  --slate: #5b5b6e;
  --paper: #ffffff;
  --mist: #f6f6fb;
  --line: #e6e6f0;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-xs: 0 1px 2px rgba(18,18,31,0.04);
  --shadow-sm: 0 1px 3px rgba(18,18,31,0.05), 0 4px 10px rgba(18,18,31,0.05);
  --shadow-md: 0 2px 4px rgba(18,18,31,0.06), 0 10px 20px rgba(18,18,31,0.09);
  --shadow-lg: 0 4px 8px rgba(18,18,31,0.08), 0 20px 40px rgba(18,18,31,0.12);
  --shadow-xl: 0 8px 16px rgba(18,18,31,0.10), 0 36px 72px rgba(18,18,31,0.16);
  --shadow-card: var(--shadow-md);
  --shadow-pop: 0 12px 32px rgba(5,0,255,0.18);
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display {
  font-family: 'Switzer', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}
p { line-height: 1.6; color: var(--slate); margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

svg { display: block; }
.logo svg,
.icon-wrap svg,
.hero-art svg,
.footer-brand svg,
.footer-watermark,
.widget-launcher svg,
.success-box svg,
.captcha-icon svg,
.search-input-icon svg,
.icon-size-wrap svg,
.logo-preview-box svg,
.btn svg {
  width: 100%;
  height: 100%;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-outline {
  background: var(--paper);
  border-color: var(--blue);
  color: var(--blue);
}
.btn-outline:hover { background: var(--mist); }
.btn-white {
  background: var(--paper);
  color: var(--blue);
}
.btn-white:hover { box-shadow: 0 6px 18px rgba(255,255,255,0.35); }
.btn-primary {
  background: var(--blue);
  color: var(--paper);
}
.btn-primary:hover { background: var(--blue-deep); }
.btn-block { width: 100%; justify-content: center; }

/* ---------------- Header ---------------- */
.site-header { padding: 22px 0; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Switzer', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo svg { width: 30px; height: 30px; }

/* ---------------- Search section ---------------- */
.search-section { padding: 24px 0 36px; text-align: center; }
.search-heading { font-size: 34px; margin-bottom: 22px; }
.search-bar-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}
.search-input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--slate);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 15px 20px 15px 52px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  background: var(--mist);
  box-shadow: var(--shadow-xs);
  transition: border-color .15s ease, background .15s ease, box-shadow .2s ease;
}
.search-input:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}
.search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 40;
  display: none;
  max-height: 340px;
  overflow-y: auto;
}
.search-dropdown.open { display: block; }
.search-dropdown-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--slate);
}
.search-dropdown-label svg { width: 14px; height: 14px; }
.search-result-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink);
  background: none;
  border: none;
  font-family: inherit;
}
.search-result-item:hover { background: var(--mist); color: var(--blue); }
.search-empty { padding: 14px 12px; font-size: 14px; color: var(--slate); }

/* ---------------- Decorative floating 3D orbs ---------------- */
.deco-orbs {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.deco-orb { position: absolute; border-radius: 50%; }
.deco-orbs-blue .deco-orb-a {
  width: 150px; height: 150px; top: -40px; right: 70px;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.85), rgba(0,229,176,0.35) 45%, rgba(0,229,176,0) 75%);
  animation: orbFloatA 10s ease-in-out infinite;
}
.deco-orbs-blue .deco-orb-b {
  width: 90px; height: 90px; bottom: 0px; right: 220px;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.8), rgba(255,255,255,0.1) 60%, transparent 80%);
  animation: orbFloatB 8s ease-in-out infinite;
}
.deco-orbs-blue .deco-orb-c {
  width: 55px; height: 55px; top: 72%; left: 3%;
  background: radial-gradient(circle at 30% 30%, rgba(0,229,176,0.85), rgba(0,229,176,0.05) 70%);
  animation: orbFloatC 12s ease-in-out infinite;
}
.deco-orbs-light .deco-orb-a {
  width: 180px; height: 180px; top: -50px; right: -30px;
  background: radial-gradient(circle at 32% 28%, rgba(74,124,255,0.20), rgba(74,124,255,0.05) 50%, transparent 75%);
  animation: orbFloatA 13s ease-in-out infinite;
}
.deco-orbs-light .deco-orb-b {
  width: 120px; height: 120px; bottom: 8%; left: -20px;
  background: radial-gradient(circle at 35% 30%, rgba(0,199,154,0.18), rgba(0,199,154,0.04) 55%, transparent 80%);
  animation: orbFloatB 10s ease-in-out infinite;
}
.deco-orbs-light .deco-orb-c {
  width: 70px; height: 70px; top: 40%; right: 12%;
  background: radial-gradient(circle at 30% 30%, rgba(74,124,255,0.16), rgba(74,124,255,0.03) 70%);
  animation: orbFloatC 9s ease-in-out infinite;
}
@keyframes orbFloatA { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-10px, 18px); } }
@keyframes orbFloatB { 0%,100% { transform: translate(0,0); } 50% { transform: translate(8px, -14px); } }
@keyframes orbFloatC { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-6px, 12px) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .deco-orb { animation: none !important; } }

/* ---------------- Scroll-reveal ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------------- Hero ---------------- */
.hero { padding: 8px 0 48px; perspective: 1400px; }
.hero-panel {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .15s ease;
  will-change: transform;
}
.hero-text { position: relative; z-index: 1; }
.hero-eyebrow { color: rgba(255,255,255,0.85); font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.hero-text h2 { color: var(--paper); font-size: 40px; margin-bottom: 24px; }
.hero-art { width: 220px; height: 220px; flex-shrink: 0; position: relative; z-index: 1; }

.hero-art::before {
  content: '';
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--teal), var(--blue), var(--blue-deep), var(--teal));
  filter: blur(28px);
  opacity: 0.38;
  z-index: -1;
  animation: rotate3dSlow 16s linear infinite;
}
@keyframes rotate3dSlow {
  0%   { transform: rotate3d(0.3, 1, 0.15, 0deg); }
  100% { transform: rotate3d(0.3, 1, 0.15, 360deg); }
}
@media (prefers-reduced-motion: reduce) { .hero-art::before { animation: none; } }

.orbit-ring { transform-origin: 110px 110px; animation: spin 14s linear infinite; }
.orbit-ring.reverse { animation-direction: reverse; animation-duration: 20s; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .orbit-ring { animation: none; } }

/* ---------------- Section headings ---------------- */
.section-heading { font-size: 28px; margin-bottom: 24px; }
section { padding: 40px 0; }

/* ---------------- Trending topics / Support topics ---------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  perspective: 1000px;
}
.topic-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  cursor: default;
  box-shadow: var(--shadow-xs);
  transition: box-shadow .22s ease, border-color .22s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.topic-card:hover {
  box-shadow: var(--shadow-xl);
  border-color: rgba(5,0,255,0.2);
}
.topic-card .icon-wrap {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.topic-card:hover .icon-wrap { transform: translateY(-2px) scale(1.06) translateZ(20px); }
.topic-card p { color: var(--ink); font-weight: 600; font-size: 15px; }

/* ---------------- Contact cards ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  perspective: 1000px;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow .22s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.contact-card:hover { box-shadow: var(--shadow-xl); }
.contact-card .icon-wrap {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.contact-card h3 { font-size: 17px; margin-bottom: 4px; }
.contact-card p { font-size: 14px; margin-bottom: 18px; flex-grow: 1; }

/* ---------------- FAQ accordion ---------------- */
.faq { max-width: 760px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.accordion-item { border-bottom: 1px solid var(--line); border-radius: var(--radius-sm); transition: background-color .4s ease; }
.accordion-item.search-highlight { background-color: rgba(5,0,255,0.07); }
.accordion-trigger {
  width: 100%; background: none; border: none; padding: 20px 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left; font-family: 'Switzer', sans-serif; font-weight: 600; font-size: 16px; color: var(--ink);
}
.accordion-link-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; text-align: left; font-family: 'Switzer', sans-serif; font-weight: 600; font-size: 16px;
  color: var(--ink); transition: color .15s ease;
}
.accordion-link-trigger:hover { color: var(--blue); }
.accordion-link-trigger .chevron { color: var(--slate); transition: color .15s ease; }
.accordion-link-trigger:hover .chevron { color: var(--blue); }
.chevron { width: 20px; height: 20px; flex-shrink: 0; transition: transform .2s ease; color: var(--blue); }
.chevron svg { width: 100%; height: 100%; }
.accordion-item.open .chevron { transform: rotate(180deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.accordion-panel-inner { padding: 0 4px 20px; }
.accordion-item.open .accordion-panel { max-height: 240px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--mist); margin-top: 40px; padding: 56px 0 28px; position: relative; overflow: hidden; }
.footer-watermark {
  position: absolute;
  left: -40px;
  bottom: -60px;
  width: 260px;
  height: 260px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
  animation: rotate3dSlow 40s linear infinite;
  transform-style: preserve-3d;
}
@media (prefers-reduced-motion: reduce) { .footer-watermark { animation: none; } }
.footer-top {
  position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 40px;
  flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid var(--line);
}
.footer-brand-col { max-width: 340px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: 'Switzer', sans-serif; font-weight: 600; font-size: 22px; margin-bottom: 14px; }
.footer-brand svg { width: 34px; height: 34px; }
.footer-tagline { font-size: 15px; line-height: 1.6; margin-bottom: 18px; }
.footer-cols { display: flex; gap: 88px; flex-wrap: wrap; }
.footer-col h4 { font-family: 'Switzer', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--slate); font-size: 14px; margin-bottom: 11px; }
.footer-col a:hover { color: var(--blue); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.footer-social svg { width: 16px; height: 16px; color: var(--paper); }
.footer-bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 20px; }
.footer-copy { font-size: 13px; color: var(--slate); }

/* ---------------- Support widget ---------------- */
.widget-launcher {
  position: fixed; bottom: 26px; right: 26px; width: 58px; height: 58px; border-radius: 50%;
  background: var(--blue); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-pop); border: none; z-index: 60;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, background .2s ease;
  animation: launcherBreathe 4s ease-in-out infinite;
}
.widget-launcher:hover {
  transform: perspective(300px) rotateY(-14deg) rotateX(8deg) scale(1.08);
  background: var(--blue-deep);
  box-shadow: 0 16px 40px rgba(5,0,255,0.28);
  animation-play-state: paused;
}
.widget-launcher:active { transform: scale(0.94); }
.widget-launcher svg { width: 26px; height: 26px; color: var(--paper); transition: transform .2s ease; }
.widget-launcher:hover svg { transform: scale(1.1); }
@keyframes launcherBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@media (prefers-reduced-motion: reduce) { .widget-launcher { animation: none; } }
.widget-launcher .pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--blue); animation: pulse-ring 2.2s ease-out 2; }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

.widget-panel {
  position: fixed; bottom: 96px; right: 26px; width: 340px; max-width: calc(100vw - 40px);
  max-height: min(600px, calc(100vh - 140px)); background: var(--paper); border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl); border: 1px solid var(--line); z-index: 60;
  opacity: 0; transform: translateY(12px) scale(0.98); pointer-events: none;
  transition: opacity .22s ease, transform .32s cubic-bezier(.34,1.56,.64,1), top .25s ease, left .25s ease, right .25s ease, bottom .25s ease, width .25s ease, height .25s ease, max-height .25s ease, border-radius .25s ease, max-width .25s ease;
  overflow: hidden; display: flex; flex-direction: column;
}
.widget-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.widget-panel.expanded { top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; max-width: none; max-height: none; border-radius: 0; }
.widget-panel.expanded .widget-body { max-width: 480px; width: 100%; margin: 0 auto; padding-top: 48px; overflow-y: auto; }
.widget-header { background: var(--blue); color: var(--paper); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-family: 'Switzer', sans-serif; flex-shrink: 0; }
.widget-header-actions { display: flex; align-items: center; gap: 12px; }
.widget-header-actions svg { width: 16px; height: 16px; display: block; }
.widget-header button { background: none; border: none; color: var(--paper); font-size: 20px; line-height: 1; opacity: .85; display: flex; align-items: center; justify-content: center; }
.widget-header button:hover { opacity: 1; }
.widget-body { position: relative; padding: 20px; flex-grow: 1; min-height: 0; background: var(--mist); display: flex; flex-direction: column; }

.widget-greeting {
  position: relative; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  margin: -20px -20px 20px; padding: 28px 20px 22px; overflow: hidden; border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.widget-greeting-text { position: relative; z-index: 1; color: var(--paper); font-family: 'Switzer', sans-serif; font-weight: 600; font-size: 19px; line-height: 1.35; margin: 0; }
.widget-greeting .wave { display: inline-block; animation: waveHand 2.2s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes waveHand {
  0%, 100% { transform: rotate(0deg); } 10% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } 60%, 100% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) { .widget-greeting .wave { animation: none; } }
.widget-step { position: relative; z-index: 1; }
.widget-panel.expanded .widget-body > .widget-step:not(.hidden):not(#stepChat) {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-height: calc(100% - 20px); max-width: 420px; margin: 0 auto; text-align: center;
}
.widget-panel.expanded .widget-body > .widget-step:not(.hidden):not(#stepChat) form,
.widget-panel.expanded .widget-body > .widget-step:not(.hidden):not(#stepChat) .field { width: 100%; text-align: left; }
.widget-body p { font-size: 14px; margin-bottom: 14px; }
.widget-step.hidden { display: none; }

/* ---------------- Chat thread ---------------- */
#stepChat:not(.hidden) { display: flex; flex-direction: column; flex-grow: 1; min-height: 0; }
.chat-thread {
  flex-grow: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px;
  margin: -20px -20px 12px; padding: 20px 20px 4px;
  perspective: 600px;
}
.chat-bubble {
  max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.5;
  animation: bubbleIn .34s cubic-bezier(.22,1,.36,1) both;
  transform-style: preserve-3d;
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px) scale(0.97) rotateX(-18deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotateX(0); }
}
@media (prefers-reduced-motion: reduce) { .chat-bubble { animation: none; } }
.chat-bubble-user { align-self: flex-end; background: var(--blue); color: var(--paper); border-bottom-right-radius: 4px; }
.chat-bubble-admin { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.chat-bubble-time { font-size: 10px; opacity: .6; margin-top: 4px; }
.chat-reply-form { display: flex; gap: 8px; align-items: flex-end; flex-shrink: 0; }
.chat-reply-form textarea { flex-grow: 1; resize: none; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; font-family: inherit; font-size: 13.5px; max-height: 80px; }
.chat-reply-form textarea:focus { outline: none; border-color: var(--blue); }
.chat-reply-form button { width: 38px; height: 38px; flex-shrink: 0; background: var(--blue); border: none; border-radius: 50%; color: var(--paper); display: flex; align-items: center; justify-content: center; }
.chat-reply-form button:hover { background: var(--blue-deep); }
.chat-reply-form button svg { width: 16px; height: 16px; }
#chatAttachBtn { background: var(--mist); color: var(--slate); border: 1.5px solid var(--line); }
#chatAttachBtn:hover { background: var(--line); color: var(--ink); }

.chat-image-preview { display: flex; align-items: center; gap: 10px; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; margin-bottom: 10px; }
.chat-image-preview.hidden { display: none; }
.chat-image-preview img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.chat-image-preview button { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; border: none; background: var(--paper); color: var(--slate); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-image-preview button:hover { color: #d33; }
.chat-image-preview button svg { width: 12px; height: 12px; }

.chat-bubble-image { display: block; max-width: 100%; border-radius: 10px; margin-bottom: 6px; cursor: pointer; }
.chat-bubble-image:only-child { margin-bottom: 0; }

.notif-badge { position: absolute; top: -2px; right: -2px; width: 15px; height: 15px; background: #ff3b3b; border: 2px solid var(--paper); border-radius: 50%; z-index: 2; }
.notif-badge.hidden { display: none; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; font-size: 14px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.form-note { font-size: 12px; color: var(--slate); margin-top: 10px; }
.success-box { text-align: center; padding: 12px 0; }
.success-box svg { width: 42px; height: 42px; color: var(--teal); margin: 0 auto 12px; }

/* ---------------- Custom captcha modal ---------------- */
.captcha-overlay {
  position: fixed; inset: 0; background: rgba(15,15,25,0.55);
  display: flex; align-items: center; justify-content: center; z-index: 100;
  opacity: 0; pointer-events: none; transition: opacity .18s ease; padding: 20px;
  perspective: 1000px;
}
.captcha-overlay.open { opacity: 1; pointer-events: auto; }
.captcha-modal {
  background: var(--paper); border-radius: var(--radius-lg); padding: 32px; width: 380px; max-width: 100%;
  text-align: center; position: relative; box-shadow: 0 30px 70px rgba(0,0,0,0.3);
  transform: translateY(14px) scale(0.94) rotateX(-10deg);
  transition: transform .22s cubic-bezier(.22,1,.36,1);
  transform-style: preserve-3d;
}
.captcha-overlay.open .captcha-modal { transform: translateY(0) scale(1) rotateX(0); }
.captcha-close { position: absolute; top: 14px; right: 14px; background: none; border: none; color: var(--slate); font-size: 22px; line-height: 1; }
.captcha-close:hover { color: var(--ink); }
.captcha-icon { margin-bottom: 10px; }
.captcha-icon svg { width: 40px; height: 40px; margin: 0 auto; }
.captcha-modal h3 { font-size: 22px; margin-bottom: 8px; }
.captcha-subtitle { font-size: 14px; margin-bottom: 20px; }
.captcha-subtitle strong { color: var(--blue); }
.captcha-count { display: block; color: var(--slate); font-size: 13px; margin-top: 2px; }
.captcha-grid { position: relative; width: 100%; aspect-ratio: 1; margin-bottom: 14px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--mist); }
.captcha-grid img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.captcha-cells-overlay { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }
.captcha-cell { border: 2px solid transparent; background: transparent; cursor: pointer; transition: border-color .12s ease, background .12s ease; }
.captcha-cell:hover { background: rgba(5,0,255,0.06); }
.captcha-cell.selected { border-color: var(--blue); background: rgba(5,0,255,0.12); }
.captcha-error { min-height: 18px; font-size: 13px; color: #d33; margin-bottom: 10px; }
.captcha-actions { display: flex; gap: 12px; }
.captcha-actions .btn { flex: 1; justify-content: center; }

/* ---------------- Responsive ---------------- */
@media (max-width: 760px) {
  .hero-panel { flex-direction: column; text-align: center; padding: 36px 28px; }
  .hero-text h2 { font-size: 30px; }
  .hero-art { width: 150px; height: 150px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-cols { gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding-bottom: 70px; }
  .widget-panel { right: 16px; left: 16px; width: auto; }
  .widget-launcher { right: 16px; }
  .chat-reply-form { gap: 6px; }
  .chat-reply-form textarea { font-size: 16px; padding: 8px 10px; }
  #chatAttachBtn, .chat-reply-form button[type="submit"] { width: 40px; height: 40px; }
  .chat-image-preview img { width: 38px; height: 38px; }
}
@media (max-width: 460px) {
  .card-grid { grid-template-columns: 1fr; }
  .footer-cols { flex-direction: column; gap: 24px; }
}
  /* ---------------- Hero load-in stagger ---------------- */
.hero-eyebrow, .hero-text h2, .hero-text .btn-white {
  opacity: 0;
  animation: heroFadeUp .6s cubic-bezier(.22,1,.36,1) forwards;
}
.hero-eyebrow { animation-delay: .05s; }
.hero-text h2 { animation-delay: .15s; }
.hero-text .btn-white { animation-delay: .25s; }
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero-text h2, .hero-text .btn-white { animation: none; opacity: 1; }
}

/* ---------------- Chat skeleton shimmer (while loading) ---------------- */
.chat-skeleton { display: flex; flex-direction: column; gap: 10px; }
.chat-skeleton-bubble {
  height: 34px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--mist) 25%, var(--line) 50%, var(--mist) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
}
.chat-skeleton-bubble.admin { width: 65%; align-self: flex-start; }
.chat-skeleton-bubble.user { width: 50%; align-self: flex-end; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-skeleton-bubble { animation: none; }
}