/* WABA — WhatsApp specific UI: inbox, bubbles, previews, landing page */
.hg-brand-logo { height: 40px; max-width: 130px; object-fit: contain; border-radius: 10px; background: #fff; padding: 3px; }
.hg-brand-mark .bi-whatsapp { font-size: 1.25rem; }

/* ---------------------------------------------------------------- inbox */
.wa-inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr) 300px; grid-template-rows: minmax(0, 1fr); height: calc(100vh - 62px - 3.2rem); height: calc(100dvh - 62px - 3.2rem); min-height: 380px;
  background: #fff; border: 1px solid var(--hg-line); border-radius: var(--hg-radius-lg); box-shadow: var(--hg-shadow-sm); overflow: hidden; }
.hg-content:has(.wa-inbox) { padding-bottom: .6rem; max-width: none; }
.hg-main:has(.wa-inbox) .hg-footer { display: none; }
.wa-list, .wa-chat, .wa-side { min-height: 0; }  /* keep each column inside the inbox height (message box stays visible) */
.wa-list { border-right: 1px solid var(--hg-line); display: flex; flex-direction: column; min-width: 0; background: #fff; }
.wa-list-head { padding: .85rem; border-bottom: 1px solid var(--hg-line); display: flex; flex-direction: column; gap: .55rem; }
.wa-tabs { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; }
.wa-tabs::-webkit-scrollbar { display: none; }
.wa-tabs button { border: 0; background: #f1f4f9; color: var(--hg-ink-2); border-radius: 999px; padding: .28rem .7rem; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.wa-tabs button.active { background: var(--hg-grad); color: #fff; }
.wa-items { overflow-y: auto; flex: 1 1 0; min-height: 0; overscroll-behavior: contain; }
.wa-item { display: flex; gap: .7rem; padding: .75rem .9rem; border-bottom: 1px solid #f2f4f8; cursor: pointer; transition: background .15s; position: relative; }
.wa-item:hover { background: #f7faf9; }
.wa-item.active { background: #ecfbf4; }
.wa-item.active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--hg-grad); }
.wa-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; font-size: .9rem; }
.wa-item-main { min-width: 0; flex: 1; }
.wa-item-top { display: flex; justify-content: space-between; gap: .4rem; align-items: baseline; }
.wa-item-name { font-weight: 750; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-item-time { font-size: .7rem; color: var(--hg-muted); flex: none; }
.wa-item-prev { font-size: .8rem; color: var(--hg-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-unread { background: #10b981; color: #fff; border-radius: 999px; font-size: .68rem; font-weight: 800; padding: .05rem .42rem; min-width: 20px; text-align: center; }
.wa-chat { display: flex; flex-direction: column; min-width: 0; background: #efeae2; position: relative; }
.wa-chat::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23d8cfc3' stroke-width='1.2'%3E%3Ccircle cx='14' cy='14' r='5'/%3E%3Cpath d='M48 10l8 8m0-8l-8 8M10 52h12M16 46v12M50 50a8 8 0 1 0 16 0a8 8 0 1 0-16 0'/%3E%3C/g%3E%3C/svg%3E"); }
.wa-chat > * { position: relative; }
.wa-chat-head { display: flex; align-items: center; gap: .7rem; padding: .65rem .9rem; background: #fff; border-bottom: 1px solid var(--hg-line); min-height: 62px; }
.wa-chat-head .wa-avatar { width: 38px; height: 38px; }
.wa-window { font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .15rem .55rem; white-space: nowrap; display: inline-block; }
.wa-window.open { background: #dcfce7; color: #047857; } .wa-window.closed { background: #fee2e2; color: #b91c1c; }
.wa-thread { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 1rem 6%; display: flex; flex-direction: column; gap: .35rem; scroll-behavior: smooth; }
.wa-day { align-self: center; background: rgba(255,255,255,.9); color: #54656f; font-size: .72rem; font-weight: 700; padding: .25rem .7rem; border-radius: 8px; margin: .5rem 0; box-shadow: 0 1px 1px rgba(0,0,0,.05); }
.wa-bubble { max-width: min(78%, 560px); padding: .45rem .6rem .3rem; border-radius: 10px; font-size: .88rem; line-height: 1.38; box-shadow: 0 1px 1px rgba(11,20,26,.12);
  white-space: pre-wrap; word-break: break-word; position: relative; animation: hgPop .2s var(--hg-ease); }
.wa-bubble.in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.wa-bubble.out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 2px; }
.wa-bubble.bot { background: #e7f0ff; }
.wa-bubble.failed { background: #fde8e8; }
.wa-meta { display: flex; justify-content: flex-end; align-items: center; gap: .3rem; font-size: .68rem; color: #667781; margin-top: .1rem; white-space: nowrap; line-height: 1; }
.wa-tick { display: inline-flex; align-items: center; color: #8696a0; font-size: .82rem; line-height: 1; } .wa-tick svg { display: block; }
.wa-tick.read { color: #53bdeb; } .wa-tick.failed { color: #e11d48; }
.wa-text { white-space: pre-wrap; } .wa-muted { color: #667781; font-style: italic; }
.wa-bubble.has-media { padding: 3px 3px .3rem; } .wa-bubble.has-media .wa-text, .wa-bubble.has-media .wa-meta, .wa-bubble.has-media .wa-tpl-tag { margin-left: .4rem; margin-right: .4rem; }
.wa-bubble.media-only { padding: 3px; }
.wa-meta.over { position: absolute; right: 9px; bottom: 8px; margin: 0; padding: .2rem .4rem; border-radius: 10px; color: #fff; background: rgba(11,20,26,.45); }
.wa-meta.over .wa-tick { color: #fff; } .wa-meta.over .wa-tick.read { color: #8fdcff; }
.wa-audio { display: block; width: 260px; max-width: 100%; margin: .2rem 0; }
.wa-tpl-tag { display: inline-flex; gap: .25rem; align-items: center; font-size: .68rem; font-weight: 800; color: #0f766e; background: rgba(20,184,166,.12); border-radius: 6px; padding: .05rem .35rem; margin-bottom: .2rem; }
.wa-src { font-size: .64rem; font-weight: 700; color: #6366f1; }
.wa-media { display: block; width: 280px; max-width: 100%; max-height: 340px; object-fit: cover; border-radius: 8px; margin-bottom: .2rem; background: #dfe5e7; }
.wa-bubble.media-only .wa-media { margin-bottom: 0; }
.wa-file { display: flex; align-items: center; gap: .5rem; padding: .55rem .7rem; background: rgba(0,0,0,.05); border-radius: 8px; margin-bottom: .2rem; color: inherit; text-decoration: none; min-width: 220px; max-width: 300px; }
.wa-compose { background: #f0f2f5; padding: .6rem .7rem; display: flex; gap: .5rem; align-items: flex-end; border-top: 1px solid var(--hg-line); }
.wa-compose textarea { resize: none; border-radius: 22px; border: 0; padding: .6rem 1rem; max-height: 140px; min-height: 44px; background: #fff; }
.wa-compose textarea:focus { box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
.wa-icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; background: transparent; color: #54656f; flex: none; font-size: 1.2rem; transition: background .15s; }
.wa-icon-btn:hover { background: rgba(0,0,0,.06); }
.wa-send { background: var(--hg-grad); color: #fff; box-shadow: 0 6px 16px -6px rgba(13,148,104,.6); }
.wa-send:hover { background: var(--hg-grad); filter: brightness(1.05); }
.wa-closed-bar { background: #fff7ed; color: #9a3412; padding: .7rem 1rem; font-size: .84rem; display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; border-top: 1px solid #fed7aa; }
.wa-quick { position: absolute; bottom: 64px; left: 12px; right: 12px; background: #fff; border-radius: 12px; box-shadow: var(--hg-shadow-lg); max-height: 220px; overflow: auto; z-index: 5; }
.wa-quick button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: .55rem .8rem; font-size: .84rem; border-bottom: 1px solid #f1f3f7; }
.wa-quick button:hover, .wa-quick button.sel { background: #ecfbf4; }
.wa-side { border-left: 1px solid var(--hg-line); overflow-y: auto; overscroll-behavior: contain; background: #fff; }
.wa-side-sec { padding: 1rem; border-bottom: 1px solid #f1f3f7; }
.wa-side-sec h3 { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--hg-muted); margin-bottom: .6rem; }
.wa-empty-chat { flex: 1; display: grid; place-items: center; text-align: center; padding: 2rem; color: #54656f; }
/* No chat selected yet: hide the contact panel and give the space to the chat area */
.wa-inbox:not(.chat-open) { grid-template-columns: 340px minmax(0, 1fr); }
.wa-inbox:not(.chat-open) .wa-side { display: none !important; }
.wa-empty-chat i { font-size: 3rem; color: #25d366; }
@media (max-width: 1299.98px) { .wa-inbox { grid-template-columns: 300px minmax(0, 1fr); } .wa-side { display: none; } .wa-inbox.show-side .wa-side { display: block; position: absolute; right: 0; top: 0; bottom: 0; width: 300px; z-index: 6; box-shadow: var(--hg-shadow-lg); } .wa-inbox { position: relative; } }
@media (max-width: 767.98px) {
  .wa-inbox { grid-template-columns: 1fr; height: calc(100vh - 62px - 1.7rem); height: calc(100dvh - 62px - 1.7rem); border-radius: 14px; }
  .wa-chat { display: none; } .wa-inbox.chat-open .wa-list { display: none; } .wa-inbox.chat-open .wa-chat { display: flex; }
  .wa-thread { padding: .8rem 3%; } .wa-bubble { max-width: 88%; }
  .wa-inbox.show-side .wa-side { width: 100%; }
}

/* ---------------------------------------------------------------- template / phone preview */
.wa-phone { max-width: 340px; margin: 0 auto; border-radius: 34px; padding: 12px; background: #111b21; box-shadow: var(--hg-shadow-lg); }
.wa-phone-screen { border-radius: 24px; overflow: hidden; background: #efeae2; min-height: 380px; display: flex; flex-direction: column; }
.wa-phone-top { background: #075e54; color: #fff; padding: .7rem .9rem; display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .9rem; }
.wa-phone-top .wa-avatar { width: 32px; height: 32px; font-size: .8rem; background: #25d366; }
.wa-phone-body { padding: 1rem .8rem; flex: 1; }
.wa-tpl { background: #fff; border-radius: 0 10px 10px 10px; box-shadow: 0 1px 1px rgba(0,0,0,.1); overflow: hidden; max-width: 92%; font-size: .86rem; animation: hgPop .3s var(--hg-ease); }
.wa-tpl-media { background: #d6e0e6; height: 130px; display: grid; place-items: center; color: #5b6b75; font-size: 2rem; overflow: hidden; }
.wa-tpl-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wa-tpl-media .wa-tpl-file { font-size: .8rem; padding: 0 10px; text-align: center; word-break: break-all; }
.wa-tpl-h { font-weight: 800; padding: .55rem .7rem 0; }
.wa-tpl-b { padding: .45rem .7rem; white-space: pre-wrap; word-break: break-word; }
.wa-tpl-f { padding: 0 .7rem .45rem; font-size: .74rem; color: #667781; }
.wa-tpl-btn { border-top: 1px solid #eef0f2; text-align: center; color: #0a84ff; font-weight: 650; padding: .5rem; font-size: .84rem; }
.wa-var { background: rgba(16,185,129,.18); color: #047857; border-radius: 4px; padding: 0 .2rem; font-weight: 700; }

/* ---------------------------------------------------------------- funnel */
.wa-funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .7rem; }
.wa-funnel > div { background: #fff; border: 1px solid var(--hg-line); border-radius: 14px; padding: .9rem; position: relative; overflow: hidden; }
.wa-funnel b { font-size: 1.4rem; font-weight: 800; display: block; }
.wa-funnel small { color: var(--hg-muted); font-weight: 650; }
.wa-funnel .bar { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--hg-grad); transition: width 1.2s var(--hg-ease); }
@media (max-width: 767.98px) { .wa-funnel { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------- landing page */
.lp { background: #fff; color: var(--hg-ink); overflow-x: hidden; }
.lp-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(230,233,245,.7); }
.lp-nav .container { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.lp-nav a.lp-link { color: var(--hg-ink-2); font-weight: 650; font-size: .92rem; }
.lp-nav a.lp-link:hover { color: var(--hg-primary); }
.lp-hero { position: relative; padding: 5rem 0 4rem; overflow: hidden;
  background: radial-gradient(800px 500px at 85% 10%, rgba(99,102,241,.14), transparent 60%), radial-gradient(700px 500px at 0% 80%, rgba(16,185,129,.16), transparent 60%); }
.lp-hero h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.lp-hero p.lead { font-size: 1.15rem; color: var(--hg-muted); max-width: 52ch; }
.lp-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 999px; background: #ecfbf4; color: #047857; font-weight: 700; font-size: .82rem; border: 1px solid #c9f0e0; }
.lp-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; animation: hgPulse 1.6s infinite; }
.lp-stats { display: flex; flex-wrap: wrap; gap: 1.8rem; margin-top: 2rem; }
.lp-stats b { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.lp-stats span { color: var(--hg-muted); font-size: .85rem; }
.lp-mock { position: relative; }
.lp-mock .wa-phone { transform: rotate(3deg); animation: hgFloat 6s ease-in-out infinite; }
.lp-float { position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--hg-shadow-lg); padding: .7rem .9rem; font-size: .82rem; font-weight: 700; display: flex; gap: .55rem; align-items: center; animation: hgFloat 5s ease-in-out infinite; }
.lp-float i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 1rem; }
.lp-float.f1 { left: -10px; top: 18%; animation-delay: -1s; } .lp-float.f2 { right: -16px; top: 45%; animation-delay: -2.5s; } .lp-float.f3 { left: 6%; bottom: 4%; animation-delay: -4s; }
.lp-msg { opacity: 0; animation: lpMsg 10s infinite; }
.lp-msg:nth-child(2) { animation-delay: 1.4s; } .lp-msg:nth-child(3) { animation-delay: 2.8s; } .lp-msg:nth-child(4) { animation-delay: 4.2s; }
@keyframes lpMsg { 0% { opacity: 0; transform: translateY(10px); } 5%, 85% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
.lp-section { padding: 5rem 0; }
.lp-section.alt { background: linear-gradient(180deg, #f6fbf9, #f7f8ff); }
.lp-eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--hg-primary); }
.lp-h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; margin: .4rem 0 .8rem; }
.lp-feature { background: #fff; border: 1px solid var(--hg-line); border-radius: 20px; padding: 1.5rem; height: 100%; transition: transform .3s var(--hg-ease), box-shadow .3s; }
.lp-feature:hover { transform: translateY(-6px); box-shadow: var(--hg-shadow-lg); }
.lp-feature .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-size: 1.4rem; margin-bottom: 1rem; }
.lp-feature h3 { font-size: 1.08rem; font-weight: 800; }
.lp-feature p { color: var(--hg-muted); margin: 0; font-size: .92rem; }
.lp-step { text-align: center; padding: 1rem; }
.lp-step .num { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto .9rem; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; color: #fff; background: var(--hg-grad); box-shadow: var(--hg-shadow-lg); }
.lp-price { background: #fff; border: 1px solid var(--hg-line); border-radius: 22px; padding: 1.8rem; height: 100%; position: relative; transition: transform .3s var(--hg-ease); }
.lp-price:hover { transform: translateY(-6px); }
.lp-price.pop { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--hg-grad) border-box; box-shadow: var(--hg-shadow-lg); }
.lp-price .amt { font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; }
.lp-price ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; } .lp-price li { padding: .35rem 0; } .lp-price li i { color: #10b981; margin-right: .4rem; }
.lp-cta { border-radius: 28px; padding: 3rem; color: #fff; background: var(--hg-grad); background-size: 200% 200%; animation: hgGradient 12s ease infinite; position: relative; overflow: hidden; }
.lp-cta::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.12); right: -80px; top: -120px; }
.lp-cta .form-control, .lp-cta .form-select { background: rgba(255,255,255,.95); border: 0; }
.lp-faq .accordion-button { font-weight: 700; }
.lp-faq .accordion-button:not(.collapsed) { background: #ecfbf4; color: #065f46; box-shadow: none; }
.lp-faq .accordion-item { border-radius: 14px !important; overflow: hidden; border: 1px solid var(--hg-line); margin-bottom: .6rem; }
.lp-foot { background: #06231f; color: #a7c4bb; padding: 3rem 0 2rem; }
.lp-foot a { color: #d1fae5; }
.lp-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--hg-ease), transform .7s var(--hg-ease); }
.lp-reveal.in { opacity: 1; transform: none; }
@media (max-width: 991.98px) { .lp-hero { padding: 3rem 0 2.5rem; } .lp-mock { margin-top: 2.5rem; } .lp-float.f1 { left: 0; } .lp-float.f2 { right: 0; } .lp-section { padding: 3.5rem 0; } .lp-cta { padding: 2rem 1.4rem; } }
@media (prefers-reduced-motion: reduce) { .lp-reveal { opacity: 1; transform: none; } .lp-msg { opacity: 1; } }
.wa-pane { display: flex; flex-direction: column; flex: 1; min-height: 0; }
/* template messages in the chat: show what the customer saw */
.wa-tpl-head { font-weight: 700; margin: .1rem 0 .15rem; }
.wa-tpl-foot { font-size: .74rem; color: #667781; margin-top: .2rem; }
.wa-bubble.has-media .wa-tpl-head, .wa-bubble.has-media .wa-tpl-foot { margin-left: .4rem; margin-right: .4rem; }
.wa-tpl-btns { margin: .35rem -.55rem -.35rem; border-top: 1px solid rgba(0,0,0,.08); }
.wa-bubble.has-media .wa-tpl-btns { margin: .35rem -3px -.3rem; }
.wa-tpl-btn2 { text-align: center; color: #0284c7; font-weight: 600; font-size: .86rem; padding: .45rem .5rem; }
.wa-tpl-btn2 + .wa-tpl-btn2 { border-top: 1px solid rgba(0,0,0,.08); }
.wa-tpl-tag { display: flex; width: fit-content; }

/* bell + notifications */
.hg-bell-dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.hg-bell-menu { width: min(360px, calc(100vw - 24px)); border-radius: 16px; overflow: hidden; }
.hg-bell-list { max-height: 380px; overflow-y: auto; }
.hg-bell-item { display: flex; flex-direction: column; gap: 2px; padding: .7rem 1rem; border-bottom: 1px solid #f1f5f9; color: #0f172a; text-decoration: none; font-size: .85rem; }
.hg-bell-item:hover { background: #f8fafc; color: #0f172a; }
.hg-bell-item span { color: #475569; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hg-bell-item small { color: #94a3b8; font-size: .72rem; }
.hg-bell-item.unread { background: #f0fdf4; box-shadow: inset 3px 0 0 #10b981; }
@keyframes hg-ring { 0%,100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
.hg-bell-ring i { animation: hg-ring .9s ease 2; display: inline-block; }

/* inbox: private notes + AI */
.wa-note { align-self: center; max-width: 86%; background: #fef9c3; border: 1px solid #fde68a; color: #713f12; border-radius: 12px; padding: .5rem .75rem; font-size: .84rem; margin: .35rem auto; white-space: pre-wrap; word-break: break-word; }
.wa-note .wa-note-h { font-size: .72rem; font-weight: 700; color: #a16207; margin-bottom: 2px; display: flex; gap: .4rem; align-items: center; }
.wa-note .mention { background: #fde047; border-radius: 6px; padding: 0 3px; font-weight: 700; color: #713f12; }
.wa-mode-toggle { display: flex; flex-direction: column; gap: 2px; background: #fff; border-radius: 12px; padding: 2px; flex: none; align-self: center; box-shadow: 0 1px 2px rgba(15,23,42,.08); }
.wa-mode-toggle button { width: 36px; height: 20px; border: 0; border-radius: 9px; background: transparent; color: #94a3b8; font-size: .82rem; display: grid; place-items: center; padding: 0; transition: .15s; }
.wa-mode-toggle button:hover:not(:disabled) { color: #334155; }
.wa-mode-toggle button.on[data-mode="reply"] { background: #dcfce7; color: #15803d; }
.wa-mode-toggle button.on[data-mode="note"] { background: #fef3c7; color: #b45309; }
.wa-mode-toggle button:disabled { opacity: .35; cursor: not-allowed; }
.wa-compose.note-mode { background: #fffbeb; }
.wa-icon-btn.wa-ai { color: #7c3aed; }
.wa-icon-btn.wa-ai:hover { background: #ede9fe; }
.wa-compose-mode { display: inline-flex; background: #f1f5f9; border-radius: 999px; padding: 3px; gap: 2px; }
.wa-compose-mode button { white-space: nowrap; border: 0; background: transparent; border-radius: 999px; padding: .2rem .7rem; font-size: .78rem; font-weight: 700; color: #64748b; }
.wa-compose-mode button.on { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(15,23,42,.15); }
.wa-compose-mode button.on[data-mode="note"] { background: #fef9c3; color: #854d0e; }
.wa-composer.note-mode textarea { background: #fffbeb !important; }
.wa-mention-pop { position: absolute; bottom: 100%; left: 8px; z-index: 30; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 12px 30px -12px rgba(15,23,42,.35); min-width: 220px; max-height: 220px; overflow-y: auto; margin-bottom: 6px; }
.wa-mention-pop button { display: flex; width: 100%; gap: .5rem; align-items: center; border: 0; background: none; padding: .45rem .7rem; text-align: left; font-size: .85rem; }
.wa-mention-pop button.on, .wa-mention-pop button:hover { background: #f1f5f9; }
.wa-ai-box { border: 1px dashed #c4b5fd; background: linear-gradient(135deg, #faf5ff, #eef2ff); border-radius: 12px; padding: .55rem .7rem; margin: 0 .6rem .4rem; font-size: .84rem; }
.wa-ai-box .wa-ai-sug { display: block; width: 100%; text-align: left; border: 1px solid #e9d5ff; background: #fff; border-radius: 10px; padding: .45rem .6rem; margin-top: .35rem; white-space: pre-wrap; }
.wa-ai-box .wa-ai-sug:hover { border-color: #8b5cf6; }

/* "add a payment method in Meta" */
.meta-pay.unknown { border-color: #fde68a; background: linear-gradient(135deg, #fffbeb, #fff); }
.meta-pay.missing { border-color: #fecaca; background: linear-gradient(135deg, #fef2f2, #fff); }
.meta-pay-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 1.3rem; flex: none; background: linear-gradient(135deg, #f59e0b, #f97316); }
.meta-pay.missing .meta-pay-ic { background: linear-gradient(135deg, #ef4444, #dc2626); }
.pay-row { border-radius: 12px; padding: .6rem .75rem; font-size: .86rem; border: 1px solid; }
.pay-row.pay-ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.pay-row.pay-none, .pay-row.pay-missing { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.pay-row.pay-unknown { background: #fffbeb; border-color: #fde68a; color: #92400e; }

/* campaign a chat came from */
.wa-camp { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600;
  background: #ede9fe; color: #5b21b6; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.wa-camp:hover { background: #ddd6fe; color: #4c1d95; }
[data-bs-theme="dark"] .wa-camp { background: rgba(139, 92, 246, .22); color: #c4b5fd; }
.wa-camp.wa-ad { background: #e0f2fe; color: #075985; }
a.wa-camp.wa-ad:hover { background: #bae6fd; color: #0c4a6e; }
[data-bs-theme="dark"] .wa-camp.wa-ad { background: rgba(14, 165, 233, .2); color: #7dd3fc; }

/* UPI (no gateway): screenshot received → Mark paid */
.wa-upi-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .75rem; padding: .6rem .9rem; margin: 0 .75rem .5rem;
  border-radius: 14px; background: linear-gradient(135deg, #fffbeb, #ecfdf5); border: 1px solid #fcd34d; color: #78350f; font-size: .9rem; }
.wa-upi-bar.d-none { display: none; }
.wa-upi-bar > .min-w-0 { flex: 1 1 220px; }
.wa-upi-bar .small { color: #92400e; }
[data-bs-theme="dark"] .wa-upi-bar { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .4); color: #fde68a; }
[data-bs-theme="dark"] .wa-upi-bar .small { color: #fcd34d; }
.wa-bubble.wa-flash { box-shadow: 0 0 0 3px #f59e0b; transition: box-shadow .3s; }
@media (max-width: 575.98px) { .wa-upi-bar { flex-direction: column; align-items: stretch; } }

/* sidebar: logo only */
.hg-brand-solo { flex-direction: column; align-items: flex-start; gap: .35rem; }
.hg-brand-solo .hg-brand-logo { height: 52px; max-width: 210px; padding: 5px 8px; }
.hg-brand-role { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a5a9d6; padding-left: 2px; }

/* brand lockup (logo / name / both) in the site header, footer, login, sign-up and checkout */
.hg-brand-logo.hg-logo-solo { height: 44px; max-width: 190px; }
.hg-brand-pair { display: contents; }

/* ---------- public website footer ---------- */
.hgf { position: relative; overflow: hidden; color: #9fb7b0; font-size: .92rem; padding: 4rem 0 1.4rem;
  background: radial-gradient(700px 300px at 0% 0%, rgba(16,185,129,.18), transparent 60%), radial-gradient(700px 320px at 100% 100%, rgba(99,102,241,.18), transparent 60%), linear-gradient(180deg, #052a24, #071a2c); }
.hgf::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #10b981, #0ea5e9, #6366f1); }
.hgf::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent 70%); }
.hgf-glow { position: absolute; width: 320px; height: 320px; border-radius: 50%; filter: blur(70px); opacity: .25; pointer-events: none; }
.hgf-glow.g1 { background: #10b981; left: -120px; bottom: -160px; } .hgf-glow.g2 { background: #6366f1; right: -120px; top: -160px; }
.hgf a { color: #d5ece5; text-decoration: none; transition: color .2s; } .hgf a:hover { color: #fff; }
.hgf-top { display: grid; grid-template-columns: 1.15fr 1.6fr .95fr; gap: 2.5rem; align-items: start; }
.hgf-brand { display: inline-flex; align-items: center; gap: .55rem; color: #fff !important; font-weight: 800; font-size: 1.25rem; margin-bottom: .9rem; }
.hgf-brand .hg-brand-logo { background: #fff; border-radius: 12px; padding: 5px 8px; height: 46px; }
.hgf-about { line-height: 1.7; margin-bottom: 1.1rem; max-width: 360px; }
.hgf-contact { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .55rem; }
.hgf-contact a, .hgf-contact span { display: inline-flex; align-items: flex-start; gap: .6rem; }
.hgf-contact i { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #6ee7b7; font-size: .9rem; margin-top: -4px; }
.hgf-social { display: flex; gap: .5rem; flex-wrap: wrap; }
.hgf-social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.05rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); transition: .2s; }
.hgf-social a:hover { background: linear-gradient(135deg, #10b981, #6366f1); border-color: transparent; transform: translateY(-3px); }
.hgf-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1.6rem; }
.hgf-col h3 { color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 1rem; position: relative; padding-bottom: .55rem; }
.hgf-col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #10b981, #6366f1); }
.hgf-col a { display: flex; align-items: center; gap: .35rem; padding: .28rem 0; }
.hgf-col a::before { content: "›"; color: #34d399; opacity: 0; margin-left: -10px; transition: .2s; }
.hgf-col a:hover::before { opacity: 1; margin-left: 0; }
.hgf-cta { position: relative; padding: 1.4rem; border-radius: 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.hgf-cta b { display: block; color: #fff; font-size: 1.08rem; margin: .8rem 0 .3rem; } .hgf-cta p { font-size: .86rem; margin-bottom: 1rem; line-height: 1.6; }
.hgf-cta-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; color: #fff; background: linear-gradient(135deg, #25d366, #10b981); box-shadow: 0 12px 26px -12px #25d366; }
.hgf-btn { display: flex !important; justify-content: center; align-items: center; gap: .4rem; padding: .65rem 1rem; border-radius: 12px; font-weight: 700; color: #04231d !important;
  background: linear-gradient(135deg, #6ee7b7, #a5b4fc); transition: transform .2s, box-shadow .2s; }
.hgf-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -16px #6ee7b7; }
.hgf-btn.ghost { margin-top: .55rem; background: transparent; color: #e2f5ef !important; border: 1px solid rgba(255,255,255,.2); }
.hgf-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; margin: 2.6rem 0 1.4rem; padding: 1rem; border-radius: 16px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07); font-size: .84rem; font-weight: 600; color: #c8ddd6; }
.hgf-trust i { color: #6ee7b7; margin-right: .35rem; }
.hgf-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .84rem; }
.hgf-credit a { font-weight: 700; background: linear-gradient(90deg, #6ee7b7, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.hgf-credit i { color: #f43f5e; font-size: .75rem; margin-left: .2rem; animation: hgfBeat 1.6s ease-in-out infinite; display: inline-block; }
@keyframes hgfBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } }
@media (max-width: 1199.98px) { .hgf-top { grid-template-columns: 1fr 1.5fr; } .hgf-cta { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto auto; gap: .4rem 1rem; align-items: center; }
  .hgf-cta b { margin: 0; } .hgf-cta p { margin: 0; grid-column: 2; grid-row: 2; } .hgf-cta-ic { grid-row: span 2; } .hgf-cta b { grid-column: 2; }
  .hgf-btn { grid-row: span 2; } .hgf-btn.ghost { margin-top: 0; } }
@media (max-width: 767.98px) { .hgf { padding-top: 3rem; } .hgf-top { grid-template-columns: 1fr; gap: 2rem; } .hgf-links { grid-template-columns: repeat(2, 1fr); }
  .hgf-cta { display: block; } .hgf-cta b { margin: .8rem 0 .3rem; } .hgf-cta p { margin-bottom: 1rem; } .hgf-btn.ghost { margin-top: .55rem; }
  .hgf-bottom { flex-direction: column; text-align: center; } .hgf-trust { justify-content: flex-start; } }
@media (prefers-reduced-motion: reduce) { .hgf-credit i { animation: none; } }

.wa-side-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.wa-side-chips .wa-camp { margin: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
