@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #060d1a;
  --card: rgba(13, 22, 42, 0.95);
  --line: rgba(148, 163, 184, 0.11);
  --line-hover: rgba(124, 58, 237, 0.45);
  --text: #e8f0fb;
  --muted: #8ba5c8;
  --muted-2: #5d7a9b;
  --primary: #5b21b6;
  --primary-2: #7c3aed;
  --primary-glow: rgba(124, 58, 237, 0.32);
  --accent: #06b6d4;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.22);
  --radius: 20px;
  --radius-sm: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, Arial, sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(124, 58, 237, 0.20) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(6, 182, 212, 0.09) 0%, transparent 45%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(91, 33, 182, 0.10) 0%, transparent 55%),
    linear-gradient(180deg, #060d1a 0%, #07101f 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }

/* ── Typography ── */
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; line-height: 1.12; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; font-weight: 700; }

.gradient-text {
  background: linear-gradient(135deg, #c4b5fd 0%, #818cf8 50%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ── */
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }

/* ── Divider ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.12), transparent);
}

/* ── Navigation ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(6, 13, 26, 0.82);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: 1.08rem;
  flex-shrink: 0;
  color: var(--text);
}
.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 11px;
  background: white;
  padding: 4px;
}
.footer-brand-col .brand img {
  width: 56px;
  height: 56px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.94rem;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-links > a {
  padding: 7px 13px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
  font-weight: 500;
}
.nav-links > a:hover { color: white; background: rgba(255, 255, 255, 0.06); }
.nav-links > a.active { color: white; background: rgba(255, 255, 255, 0.05); }

.dropdown { position: relative; }
.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 500;
  background: transparent;
  border: none;
  padding: 7px 13px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.dropdown-trigger .chevron {
  font-size: 0.72rem;
  opacity: 0.6;
  transition: transform 0.22s ease;
  line-height: 1;
}
.dropdown:hover .dropdown-trigger { color: white; background: rgba(255, 255, 255, 0.06); }
.dropdown:hover .chevron { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 290px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(7, 14, 28, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(124, 58, 237, 0.08);
  display: none;
  gap: 3px;
  backdrop-filter: blur(24px);
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: grid; }
.dropdown-menu a {
  padding: 10px 14px;
  border-radius: 11px;
  color: var(--text);
  font-size: 0.91rem;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}
.dropdown-menu a:hover { background: rgba(124, 58, 237, 0.16); color: white; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.94rem;
  font-family: inherit;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  box-shadow: 0 6px 20px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--primary-glow);
  filter: brightness(1.1);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(148, 163, 184, 0.18);
  color: var(--text);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(148, 163, 184, 0.32);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(124, 58, 237, 0.35);
  color: #c4b5fd;
  padding: 10px 18px;
  font-size: 0.88rem;
}
.btn-ghost:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.6);
}

/* ── Eyebrow / Badge ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.22);
  color: #c4b5fd;
  letter-spacing: 0.03em;
  margin-bottom: 22px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a78bfa;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Hero ── */
.hero { padding: 100px 0 56px; }
.hero h1 { margin-bottom: 20px; }
.hero p {
  color: var(--muted);
  line-height: 1.82;
  max-width: 740px;
  font-size: 1.06rem;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}

/* ── Section header ── */
.section-header { margin-bottom: 44px; }
.section-header h2 { margin-bottom: 10px; }
.section-header p { color: var(--muted); font-size: 1.02rem; max-width: 580px; line-height: 1.7; }

/* ── Cards ── */
.card, .cta-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px;
}
.card {
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--accent));
  opacity: 0;
  transition: opacity 0.28s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(124, 58, 237, 0.12);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
  color: #a78bfa;
}
.card-icon svg { width: 22px; height: 22px; }

.card .tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
  color: #c4b5fd;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.card h3, .cta-box h3 { margin-bottom: 10px; }
.card p, .card li, .cta-box p { color: var(--muted); line-height: 1.75; }
.card ul { padding-left: 20px; margin: 14px 0 0; list-style: disc; }
.card li { margin-bottom: 7px; font-size: 0.96rem; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: #a78bfa;
  font-weight: 600;
  font-size: 0.92rem;
  transition: gap 0.2s, color 0.2s;
}
.card-link::after { content: "→"; }
.card:hover .card-link { gap: 10px; color: #c4b5fd; }

/* ── CTA box ── */
.cta-box {
  background: linear-gradient(135deg, rgba(91, 33, 182, 0.18) 0%, rgba(13, 22, 42, 0.96) 60%);
  border-color: rgba(124, 58, 237, 0.24);
  padding: 44px 40px;
}
.cta-box h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); margin-bottom: 12px; font-weight: 800; }
.cta-box p { font-size: 1.02rem; margin-bottom: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ── Grids ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

/* ── Contact ── */
.contact-wrap { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 24px; padding-bottom: 48px; }
.points { display: grid; gap: 11px; margin-top: 20px; }
.point {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: border-color 0.2s;
}
.point:hover { border-color: rgba(124, 58, 237, 0.3); }
.point strong { display: block; margin-bottom: 4px; color: white; font-size: 0.93rem; }
.point span { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }

/* ── Form ── */
form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
label { font-size: 0.84rem; font-weight: 600; color: var(--muted-2); letter-spacing: 0.02em; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
input, textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-sizing: border-box;
  font-family: 'Inter', inherit;
  font-size: 0.96rem;
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  color: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.11);
  background: rgba(255, 255, 255, 0.06);
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
textarea { min-height: 160px; resize: vertical; }
button[type="submit"] {
  width: 100%;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  font-weight: 700;
  font-family: 'Inter', inherit;
  font-size: 0.97rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 6px 20px var(--primary-glow);
}
button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--primary-glow);
  filter: brightness(1.08);
}
#status {
  font-size: 0.9rem;
  color: #c7d8f3;
  margin-top: 2px;
  min-height: 20px;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: white; }
.breadcrumb-sep { opacity: 0.35; font-size: 0.78rem; }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* ── Service hero icon ── */
.hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(124, 58, 237, 0.14);
  border: 1px solid rgba(124, 58, 237, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #a78bfa;
}
.hero-icon svg { width: 30px; height: 30px; }

/* ── Footer ── */
footer {
  padding: 60px 0 32px;
  border-top: 1px solid rgba(148, 163, 184, 0.07);
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-col .brand { margin-bottom: 14px; font-size: 1rem; }
.footer-brand-col p {
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--muted);
  max-width: 270px;
}
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 0.91rem;
  color: var(--muted);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.07);
  font-size: 0.88rem;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted-2);
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { animation: fadeUp 0.55s ease both; }
.delay-1   { animation-delay: 0.08s; }
.delay-2   { animation-delay: 0.16s; }
.delay-3   { animation-delay: 0.24s; }
.delay-4   { animation-delay: 0.32s; }
.delay-5   { animation-delay: 0.40s; }
.delay-6   { animation-delay: 0.48s; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .grid-3, .grid-2, .contact-wrap, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 32px; }
}
@media (max-width: 820px) {
  .nav { flex-direction: column; padding: 14px 0; min-height: auto; }
  .nav-links { gap: 2px; }
  .dropdown-menu { position: static; min-width: 100%; margin-top: 6px; box-shadow: none; }
  .row-2 { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 36px; }
  .section { padding: 52px 0; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .cta-box { padding: 28px 24px; }
  .cta-actions { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ══════════════════════════════════════════
   Chat Widget
   ══════════════════════════════════════════ */
#apitech-chat-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: 'Inter', -apple-system, Arial, sans-serif;
}

#apitech-chat-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  color: white;
  position: relative;
}
#apitech-chat-btn:hover {
  transform: scale(1.09);
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.55);
}
#apitech-chat-btn .nch-ico-open  { display: flex; width: 24px; height: 24px; }
#apitech-chat-btn .nch-ico-close { display: none;  width: 20px; height: 20px; }
#apitech-chat-btn.open .nch-ico-open  { display: none; }
#apitech-chat-btn.open .nch-ico-close { display: flex; }

.nch-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid #060d1a;
}
.nch-badge.visible { display: flex; }

#apitech-chat-popup {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 340px;
  height: 490px;
  background: rgba(7, 13, 26, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  backdrop-filter: blur(24px);
}
#apitech-chat-popup.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Header */
.nch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 13px;
  background: rgba(124, 58, 237, 0.11);
  border-bottom: 1px solid rgba(148, 163, 184, 0.09);
  flex-shrink: 0;
}
.nch-hinfo { display: flex; align-items: center; gap: 10px; }
.nch-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}
.nch-title { font-weight: 700; font-size: 0.93rem; color: #e8f0fb; line-height: 1.2; }
.nch-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  color: #8ba5c8;
  margin-top: 2px;
}
.nch-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
  animation: nchPulseGreen 2.5s ease infinite;
}
@keyframes nchPulseGreen {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.nch-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #8ba5c8;
  padding: 5px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}
.nch-close-btn svg { width: 16px; height: 16px; }
.nch-close-btn:hover { color: #e8f0fb; background: rgba(255, 255, 255, 0.08); }

/* Messages */
.nch-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
}
.nch-messages::-webkit-scrollbar { width: 4px; }
.nch-messages::-webkit-scrollbar-track { background: transparent; }
.nch-messages::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.15);
  border-radius: 2px;
}

.nch-msg {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 84%;
  animation: nchFadeIn 0.18s ease both;
}
@keyframes nchFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nch-agent { align-self: flex-start; }
.nch-user  { align-self: flex-end; align-items: flex-end; }

.nch-bubble {
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 0.87rem;
  line-height: 1.52;
  word-break: break-word;
}
.nch-agent .nch-bubble {
  background: rgba(255, 255, 255, 0.07);
  color: #e8f0fb;
  border-bottom-left-radius: 4px;
}
.nch-user .nch-bubble {
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
  color: white;
  border-bottom-right-radius: 4px;
}
.nch-time {
  font-size: 0.7rem;
  color: #4d6a87;
  padding: 0 4px;
}

/* Typing indicator */
.nch-typing .nch-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
}
.nch-typing .nch-bubble span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8ba5c8;
  display: block;
  animation: nchBounce 1.3s ease infinite;
}
.nch-typing .nch-bubble span:nth-child(2) { animation-delay: 0.18s; }
.nch-typing .nch-bubble span:nth-child(3) { animation-delay: 0.36s; }
@keyframes nchBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* Input area */
.nch-input-wrap {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.09);
  flex-shrink: 0;
}
#nch-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.87rem;
  color: #e8f0fb;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
}
#nch-input:focus {
  border-color: rgba(124, 58, 237, 0.48);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}
#nch-input::placeholder { color: #4d6a87; }

#nch-send {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
  color: white;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}
#nch-send svg { width: 17px; height: 17px; }
#nch-send:hover { transform: scale(1.08); box-shadow: 0 6px 18px rgba(124, 58, 237, 0.45); }
#nch-send:disabled { opacity: 0.45; transform: none; cursor: default; }

@media (max-width: 400px) {
  #apitech-chat-popup {
    width: calc(100vw - 16px);
    right: calc(-24px + 8px);
    bottom: 72px;
  }
}

/* ── WhatsApp Float Button ── */
#wa-float {
  position: fixed;
  bottom: 92px;
  right: 24px;
  z-index: 9998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
#wa-float:hover {
  transform: scale(1.09);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.6);
}
#wa-float::before {
  content: '';
  display: block;
  width: 28px;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") no-repeat center/contain;
}
@media (max-width: 600px) {
  #wa-float { bottom: 86px; right: 16px; width: 50px; height: 50px; }
  #wa-float::before { width: 24px; height: 24px; }
}
