/* ============================================================
   SharpCodeIT — THEME V2 "Studio" (loads after style.css)
   Design language: light dotted canvas, floating pill navbar,
   dashed rails & separators, pill buttons, rounded sheets,
   big tight typography. Red stays the brand accent.
   ============================================================ */

:root {
  --t2-canvas: #f1f1f3;
  --t2-ink: #0c0c0e;
  --t2-line: #e4e4e8;
  --t2-dash: #d6d6dc;
  --t2-card: #ffffff;
  --t2-radius: 22px;
  --t2-radius-lg: 30px;
  --t2-nav-h: 66px;
  --t2-shadow: 0 1px 2px rgba(12,12,14,0.04), 0 12px 32px rgba(12,12,14,0.06);
  --t2-shadow-lift: 0 2px 4px rgba(12,12,14,0.05), 0 22px 48px rgba(12,12,14,0.10);
}

/* ---------- Canvas: dotted paper + vertical dashed rails ---------- */
body {
  background-color: var(--t2-canvas);
  background-image: radial-gradient(circle, rgba(12,12,14,0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--t2-ink);
}

/* Decorative dashed rails at the page edges (desktop only) */
@media (min-width: 1200px) {
  body::before, body::after {
    content: '';
    position: fixed;
    top: 0; bottom: 0;
    width: 0;
    border-left: 1.5px dashed var(--t2-dash);
    z-index: 3;
    pointer-events: none;
  }
  body::before { left: max(18px, calc(50vw - 47vw)); }
  body::after  { right: max(18px, calc(50vw - 47vw)); }
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--t2-ink);
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }

::selection { background: var(--t2-ink); color: #fff; }

/* ============================================================
   NAVBAR — floating detached pill
   ============================================================ */
.navbar-main {
  top: 14px;
  left: 12px;
  right: 12px;
  margin-inline: auto;
  max-width: 1230px;
  width: auto;
  padding: 0.45rem 0.6rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--t2-line);
  border-radius: 999px;
  box-shadow: var(--t2-shadow);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.navbar-main.scrolled {
  padding: 0.35rem 0.6rem;
  top: 8px;
  background: rgba(255, 255, 255, 0.97);
  border-color: var(--t2-line);
  box-shadow: var(--t2-shadow-lift);
  border-bottom-color: var(--t2-line);
}
.navbar-main > .container { padding-inline: 0.9rem; }
.navbar-main .navbar-logo, .navbar-main.scrolled .navbar-logo { height: 34px; }

.navbar-main .nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #3f3f46;
  border-radius: 999px;
  padding: 0.45rem 1.05rem !important;
  transition: all 0.22s ease;
}
.navbar-main .nav-link::after { display: none; }
.navbar-main .nav-link:hover {
  color: var(--t2-ink);
  background: #f1f1f3;
}
.navbar-main .nav-link.active {
  color: #fff;
  background: var(--t2-ink);
}

/* Nav CTA — red pill with arrow feel */
.navbar-main .btn-red {
  border-radius: 999px;
  padding: 0.5rem 1.25rem !important;
  font-size: 0.85rem;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.28);
}

/* Mega menu below the pill */
.mega-menu {
  border-radius: 20px;
  border: 1px solid var(--t2-line);
  border-top: 1px solid var(--t2-line);
  box-shadow: var(--t2-shadow-lift);
  top: calc(100% + 10px);
  overflow: hidden;
}
.has-mega.mega-mini .mega-menu { border-radius: 18px; }
.mega-link { border-radius: 12px; }

/* ============================================================
   BUTTONS — pill everything
   ============================================================ */
.btn {
  border-radius: 999px !important;
  font-weight: 600;
  letter-spacing: 0;
}
.btn-red, .btn-red:visited {
  background: var(--red-600);
  border: none;
  box-shadow: 0 8px 22px rgba(220, 38, 38, 0.30);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.2s ease;
}
.btn-red:hover {
  background: var(--red-700);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.38);
}
.btn-red-outline {
  border-radius: 999px !important;
  border: 1.5px solid var(--t2-line);
  background: #fff;
  color: var(--t2-ink);
}
.btn-red-outline:hover {
  border-color: var(--t2-ink);
  background: var(--t2-ink);
  color: #fff;
}
.btn-fly, .btn-fly-outline { border-radius: 999px !important; }

/* ============================================================
   SECTIONS — white rounded sheets on gray canvas
   ============================================================ */
.hero-section {
  background-color: transparent;
  background-image: none;
  padding-top: 130px;
}
.page-hero {
  background: transparent;
  border-bottom: 0;
  padding: 135px 0 55px;
}

/* Any solid-white / gray section becomes a floating sheet */
.mesh-section,
section.section-padding[style*="background:#f7f9fd"],
section.section-padding[style*="background:#f8f9fb"],
section[style*="background:linear-gradient(180deg,#f7f9fd"] {
  background: #fff !important;
  border-top: 1.5px dashed var(--t2-dash);
  border-bottom: 1.5px dashed var(--t2-dash);
}

/* Section chrome */
.section-label {
  background: #fff;
  border: 1px solid var(--t2-line);
  color: var(--t2-ink);
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--t2-shadow);
}
.section-label i { color: var(--red-600); }
.fly-section-label {
  background: #fff;
  box-shadow: var(--t2-shadow);
}
.section-title { letter-spacing: -0.035em; }
.section-subtitle { color: #6b6b74; }

/* Dashed divider utility used around section titles */
.section-title::selection { background: var(--red-600); }

/* ============================================================
   CARDS — clean white, thin border, lift on hover
   ============================================================ */
.glass-card {
  background: var(--t2-card);
  border: 1px solid var(--t2-line);
  border-radius: var(--t2-radius);
  box-shadow: var(--t2-shadow);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.25s ease;
}
.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--t2-shadow-lift);
  border-color: #d4d4da;
}
.fly-feature-card, .fly-price-card, .fly-review-card, .fly-note, .fly-mod-chip,
.saas-card, .contact-info-card, .contact-map-card {
  border-radius: 18px;
  border-color: var(--t2-line);
  box-shadow: 0 1px 2px rgba(12,12,14,0.03);
}
.fly-price-card { border-radius: var(--t2-radius); }
.saas-card { border-radius: var(--t2-radius); }

/* Forms */
.form-control, .form-select {
  border-radius: 14px;
  border: 1.5px solid var(--t2-line);
  padding: 0.65rem 1rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus, .form-select:focus {
  border-color: var(--t2-ink);
  box-shadow: 0 0 0 4px rgba(12, 12, 14, 0.07);
}
.accordion-item { border-radius: 16px !important; border-color: var(--t2-line) !important; }
.accordion-button { border-radius: 16px !important; font-weight: 600; }

/* ============================================================
   FOOTER — floating black slab with big radius
   ============================================================ */
.footer-section {
  background: var(--t2-ink);
  margin: 3.5rem 14px 14px;
  border-radius: var(--t2-radius-lg);
  overflow: hidden;
  position: relative;
}
.footer-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.footer-section > .container { position: relative; z-index: 1; }
.footer-heading { color: #fff; letter-spacing: 0.02em; }
.footer-links a { transition: all 0.2s ease; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.social-link {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.25s ease;
}
.social-link:hover { background: var(--red-600); border-color: var(--red-600); transform: translateY(-3px); }

/* ============================================================
   MICRO-INTERACTIONS & POLISH
   ============================================================ */
.btn-back-top {
  border-radius: 999px;
  background: var(--t2-ink);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--t2-shadow-lift);
}
.btn-back-top:hover { background: var(--red-600); }

img { border-radius: 2px; }
.navbar-logo, .footer-logo { border-radius: 0; }

/* Flash alerts as floating pills */
.flash-alert {
  position: fixed;
  top: 92px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  border-radius: 999px;
  border: 1px solid var(--t2-line);
  box-shadow: var(--t2-shadow-lift);
  padding: 0.7rem 1.4rem;
  max-width: min(92vw, 640px);
}

/* Scrollbar */
::-webkit-scrollbar-thumb { background: #c9c9cf; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--t2-ink); }
::-webkit-scrollbar-track { background: var(--t2-canvas); }

/* Tables (public pages) */
.table { border-radius: 16px; overflow: hidden; }

/* Badge pills everywhere */
.badge { border-radius: 999px; font-weight: 700; }

/* ============================================================
   FLYTRO PAGES — harmonize with the new canvas
   ============================================================ */
.fly-hero { border-radius: 0 0 var(--t2-radius-lg) var(--t2-radius-lg); margin: 0 14px; }
.fly-hero + section { margin-top: 0; }
.fly-bd-section { border-radius: var(--t2-radius-lg); margin: 0 14px; }
.fly-trial-section { border-radius: var(--t2-radius-lg); margin: 0 14px; }
section.fly-hero[style*="padding:4.5rem"] { border-radius: var(--t2-radius-lg); margin: 2rem 14px 0; }
.fly-shot { border-radius: 20px; }
.fly-lang-switch { top: 96px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .navbar-main {
    top: 10px;
    left: 10px;
    right: 10px;
    border-radius: 24px;
    padding: 0.5rem 0.4rem;
  }
  .navbar-main .navbar-collapse {
    background: #fff;
    border-radius: 18px;
    margin-top: 0.6rem;
    padding: 0.75rem;
    border: 1px solid var(--t2-line);
    box-shadow: var(--t2-shadow-lift);
  }
  .navbar-main .nav-link { padding: 0.6rem 1rem !important; }
  .footer-section { margin: 2.5rem 8px 8px; border-radius: 22px; }
  .fly-hero, .fly-bd-section, .fly-trial-section { margin: 0 8px; }
  .fly-lang-switch { top: 84px; }
}
@media (max-width: 575.98px) {
  body { background-size: 18px 18px; }
  .footer-section { margin: 2rem 6px 6px; border-radius: 18px; }
  h1 { letter-spacing: -0.03em; }
}

/* ============================================================
   SHARPCODE AI WIDGET — Theme V2
   ============================================================ */
/* Hide any legacy bot leftovers */
.sc-bot, .sc-chat { display: none !important; }

.aiw {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 1900;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.aiw.ready { opacity: 1; transform: translateY(0); }

/* Teaser bubble */
.aiw-teaser {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #fff;
  border: 1px solid var(--t2-line);
  border-radius: 999px;
  padding: 0.55rem 0.75rem 0.55rem 1rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--t2-ink);
  box-shadow: var(--t2-shadow-lift);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 290px;
}
.aiw-teaser.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.aiw-teaser-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
  animation: aiwPing 2s ease-out infinite;
}
@keyframes aiwPing { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }
.aiw-teaser-x {
  border: none; background: #f1f1f3; color: #71717a;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 0.95rem; line-height: 1; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.aiw-teaser-x:hover { background: var(--t2-ink); color: #fff; }

/* Launcher pill */
.aiw-launcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: none;
  background: var(--t2-ink);
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 1.25rem 0.55rem 0.55rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(12,12,14,0.35);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.aiw-launcher:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 38px rgba(12,12,14,0.4); }
.aiw-launcher:active { transform: scale(0.97); }
.aiw-launcher-ring {
  content: ''; position: absolute; inset: -3px;
  border-radius: 999px;
  border: 1.5px dashed rgba(220,38,38,0.55);
  animation: aiwSpin 14s linear infinite;
  pointer-events: none;
}
@keyframes aiwSpin { to { transform: rotate(360deg); } }
.aiw-launcher-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(220,38,38,0.45);
  animation: aiwGlow 3s ease-in-out infinite;
}
@keyframes aiwGlow {
  0%, 100% { box-shadow: 0 4px 14px rgba(220,38,38,0.45); }
  50% { box-shadow: 0 4px 22px rgba(220,38,38,0.75); }
}
.aiw-launcher-icon i { animation: aiwTwinkle 3s ease-in-out infinite; }
@keyframes aiwTwinkle { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.18) rotate(12deg); } }
.aiw-launcher-status {
  position: absolute; top: 2px; right: 4px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #22c55e; border: 2px solid var(--t2-ink);
}
.aiw.open .aiw-launcher-ring { animation-duration: 5s; }

/* Chat panel */
.aiw-panel {
  position: fixed;
  bottom: 88px;
  left: 22px;
  z-index: 1901;
  width: min(388px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--t2-line);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(12,12,14,0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(26px) scale(0.94);
  transform-origin: bottom left;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.42s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.aiw-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.aiw-head {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--t2-ink);
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 16px 16px;
  padding: 0.9rem 1rem;
  color: #fff;
}
.aiw-head-left { display: flex; align-items: center; gap: 0.7rem; }
.aiw-head-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.12);
}
.aiw-head-name { font-weight: 800; font-size: 0.98rem; letter-spacing: -0.01em; }
.aiw-head-sub { font-size: 0.72rem; color: rgba(255,255,255,0.65); display: flex; align-items: center; gap: 0.35rem; }
.aiw-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: aiwPing 2s ease-out infinite; }
.aiw-close {
  border: none; background: rgba(255,255,255,0.1); color: #fff;
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.aiw-close:hover { background: var(--red-600); transform: rotate(0deg) scale(1.08); }

.aiw-body {
  height: 340px;
  overflow-y: auto;
  padding: 1rem;
  background: #f7f7f9;
  background-image: radial-gradient(circle, rgba(12,12,14,0.045) 1px, transparent 1px);
  background-size: 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  scroll-behavior: smooth;
}
.aiw-body::-webkit-scrollbar { width: 5px; }
.aiw-body::-webkit-scrollbar-thumb { background: #d4d4d8; border-radius: 99px; }

.aiw-msg {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  animation: aiwMsgIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  max-width: 92%;
}
@keyframes aiwMsgIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.aiw-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.aiw-msg-avatar {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  color: #fff; font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
}
.aiw-bubble {
  padding: 0.65rem 0.95rem;
  font-size: 0.87rem;
  line-height: 1.55;
  border-radius: 18px;
  word-break: break-word;
}
.aiw-msg.bot .aiw-bubble {
  background: #fff;
  border: 1px solid var(--t2-line);
  border-bottom-left-radius: 6px;
  color: #27272a;
  box-shadow: 0 1px 3px rgba(12,12,14,0.05);
}
.aiw-msg.user .aiw-bubble {
  background: var(--t2-ink);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.aiw-bubble a { color: var(--red-600); font-weight: 600; text-decoration: none; }
.aiw-bubble a:hover { text-decoration: underline; }
.aiw-msg.user .aiw-bubble a { color: #fca5a5; }

/* Typing dots */
.aiw-typing { display: flex; gap: 4px; align-items: center; padding: 0.85rem 1rem; }
.aiw-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #a1a1aa;
  animation: aiwBounce 1.2s ease-in-out infinite;
}
.aiw-typing span:nth-child(2) { animation-delay: 0.15s; }
.aiw-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes aiwBounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }

/* Quick chips */
.aiw-chips {
  display: none;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.6rem;
  background: #f7f7f9;
}
.aiw-chips.show { display: flex; }
.aiw-chip {
  border: 1px solid var(--t2-line);
  background: #fff;
  color: var(--t2-ink);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  animation: aiwMsgIn 0.35s ease both;
  transition: all 0.2s ease;
}
.aiw-chip:hover {
  background: var(--t2-ink); color: #fff;
  border-color: var(--t2-ink);
  transform: translateY(-2px);
}

/* Input row */
.aiw-inputrow {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem 0.8rem;
  border-top: 1px solid var(--t2-line);
  background: #fff;
}
.aiw-input {
  flex: 1;
  border: 1.5px solid var(--t2-line);
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fafafa;
}
.aiw-input:focus { border-color: var(--t2-ink); box-shadow: 0 0 0 4px rgba(12,12,14,0.06); background: #fff; }
.aiw-send {
  width: 42px; height: 42px; flex-shrink: 0;
  border: none; border-radius: 50%;
  background: var(--red-600);
  color: #fff; font-size: 1.05rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(220,38,38,0.35);
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.aiw-send:hover { transform: translateY(-2px) scale(1.06); background: var(--red-700); }
.aiw-send:active { transform: scale(0.94); }

.aiw-powered {
  text-align: center;
  font-size: 0.66rem;
  color: #a1a1aa;
  padding: 0 0 0.55rem;
  background: #fff;
}
.aiw-powered strong { color: var(--red-600); }

/* ---------- Scode AI "S" logo bubble (ripple + glow + flash) ---------- */
.aiw-s {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,0.38), rgba(255,255,255,0) 26%),
    linear-gradient(145deg, #ff4343 0%, #f50000 45%, #870000 100%);
  border: 1.5px solid rgba(255,255,255,0.42);
  box-shadow:
    inset 0 0 8px rgba(255,255,255,0.16),
    inset 0 -7px 10px rgba(85,0,0,0.35),
    0 0 16px rgba(255,20,20,0.55);
  animation: aiwSFloat 2.8s ease-in-out infinite, aiwSGlow 2.8s ease-in-out infinite;
}
.aiw-s svg {
  width: 54%;
  height: auto;
  display: block;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.16)) drop-shadow(0 0 4px rgba(255,255,255,0.3));
  animation: aiwSFlash 2.8s ease-in-out infinite;
}
.aiw-s .aiw-ripple {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,60,60,0.55);
  box-shadow: 0 0 12px rgba(255,40,40,0.5), inset 0 0 8px rgba(255,255,255,0.08);
  opacity: 0;
  transform: scale(0.6);
  animation: aiwRipple 2.8s ease-out infinite;
  pointer-events: none;
}
.aiw-s .aiw-ripple.d2 { animation-delay: 0.9s; }
@keyframes aiwRipple {
  0% { opacity: 0; transform: scale(0.55); }
  12% { opacity: 0.85; }
  80% { opacity: 0.15; }
  100% { opacity: 0; transform: scale(2.05); }
}
@keyframes aiwSFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -2px; } }
@keyframes aiwSGlow {
  0%, 100% { box-shadow: inset 0 0 8px rgba(255,255,255,0.16), inset 0 -7px 10px rgba(85,0,0,0.35), 0 0 14px rgba(255,20,20,0.45); }
  50% { box-shadow: inset 0 0 8px rgba(255,255,255,0.16), inset 0 -7px 10px rgba(85,0,0,0.35), 0 0 24px rgba(255,20,20,0.75); }
}
@keyframes aiwSFlash {
  0%, 100% { filter: drop-shadow(0 1px 0 rgba(0,0,0,0.16)) drop-shadow(0 0 3px rgba(255,255,255,0.25)); }
  15%, 22% { filter: drop-shadow(0 1px 0 rgba(0,0,0,0.16)) drop-shadow(0 0 8px rgba(255,255,255,0.85)); }
}
/* Size variants */
.aiw-head-avatar.aiw-s { width: 40px; height: 40px; font-size: 0; }
.aiw-msg-avatar.aiw-s { width: 26px; height: 26px; border-width: 1px; animation: none; }
.aiw-msg-avatar.aiw-s svg { animation: none; }
.aiw-msg-avatar.aiw-s .aiw-ripple { display: none; }
.aiw-launcher .aiw-s { margin-left: -2px; }

@media (max-width: 575.98px) {
  .aiw { bottom: 14px; left: 14px; }
  .aiw-panel { left: 10px; right: 10px; width: auto; bottom: 80px; border-radius: 20px; }
  .aiw-body { height: min(50vh, 360px); }
  .aiw-s { width: 34px; height: 34px; }
  .aiw-head-avatar.aiw-s { width: 38px; height: 38px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}
