/* Feature page: WhatsApp (/features/whatsapp). Page-specific styles; shared theme lives in wa.css. */

.kf-wa-thread[hidden], .kf-wa-dthread[hidden], .kf-wa-conn-panel[hidden], .kf-wa-stepcard[hidden],
.kf-wa-sheet[hidden], .kf-wa-bot-quick[hidden], .kf-wa-desk-empty[hidden], .kf-wa-badge[hidden],
.kf-wa-camp-msg [hidden], [data-kf-wa-unread-count][hidden] { display: none !important; }

/* ---------- Hero: WhatsApp Business app ---------- */
.kf-wa-stage { position: relative; display: flex; justify-content: center; padding: 24px 0 64px; }
.kf-wa-screen { position: relative; background: #fff; }
.kf-wa-view { position: absolute; inset: 0; display: flex; flex-direction: column; min-width: 0; transition: transform .38s ease, visibility .38s; }
.kf-wa-listview { background: #fff; }
.kf-wa-threadview { visibility: hidden; transform: translateX(100%); background: var(--kh-wa-wall); }
.kf-wa-screen.is-open .kf-wa-listview { visibility: hidden; transform: translateX(-25%); }
.kf-wa-screen.is-open .kf-wa-threadview { visibility: visible; transform: none; }

.kf-wa-apphead { padding: 44px 16px 8px; }
.kf-wa-apptitle { display: flex; align-items: center; gap: 10px; }
.kf-wa-apptitle strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #008069; font-size: 19px; letter-spacing: -.01em; }
.kf-wa-apptitle span { display: flex; gap: 14px; color: #54656f; font-size: 20px; }
.kf-wa-appchips { display: flex; gap: 6px; margin-top: 12px; overflow: hidden; }
.kf-wa-appchips span { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; background: #f0f2f5; color: #54656f; font-size: 12.5px; font-weight: 600; }
.kf-wa-appchips span.is-on { background: #d9fdd3; color: #0b6a5b; }
.kf-wa-appchips b { font-size: 11px; color: #1fa855; }

.kf-wa-chats { flex: 1; min-height: 0; margin: 0; padding: 4px 0 70px; overflow-y: auto; list-style: none; scrollbar-width: none; }
.kf-wa-chats::-webkit-scrollbar { display: none; }
.kf-wa-chat, .kf-wa-conv { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; padding: 10px 14px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .2s; }
.kf-wa-chat:hover, .kf-wa-conv:hover { background: #f5f6f6; }
.kf-wa-chat:focus-visible, .kf-wa-conv:focus-visible { outline: 2px solid var(--kh-wa-teal); outline-offset: -2px; }
.kf-wa-chat.is-flash { background: #e3f7ea; }
.kf-wa-av { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.kf-wa-av.is-sm { width: 36px; height: 36px; font-size: 12.5px; }
.kf-wa-av.is-t1 { background: linear-gradient(135deg, #f472b6, #db2777); }
.kf-wa-av.is-t2 { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.kf-wa-av.is-t3 { background: linear-gradient(135deg, #fbbf24, #d97706); }
.kf-wa-av.is-t4 { background: linear-gradient(135deg, #34d399, #0f766e); }
.kf-wa-av.is-t5 { background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.kf-wa-chat-main { flex: 1; min-width: 0; }
.kf-wa-chat-top, .kf-wa-chat-sub { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kf-wa-chat-top strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #111b21; font-size: 14.5px; font-weight: 600; }
.kf-wa-chat-top time { flex: none; color: #667781; font-size: 11.5px; }
.kf-wa-chat.is-unread time, .kf-wa-conv.is-unread time { color: #1fa855; font-weight: 700; }
.kf-wa-chat-sub { margin-top: 2px; }
.kf-wa-chat-prev { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #667781; font-size: 13px; }
.kf-wa-chat-prev i { margin-right: 3px; font-size: 15px; vertical-align: -3px; color: var(--kh-tick); }
.kf-wa-chat.is-unread .kf-wa-chat-prev, .kf-wa-conv.is-unread .kf-wa-chat-prev { color: #111b21; font-weight: 500; }
.kf-wa-badge { flex: none; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--kh-wa); color: #fff; font-size: 11.5px; font-weight: 700; }
.kf-wa-fab-new { position: absolute; right: 14px; bottom: 18px; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: #1daa61; color: #fff; font-size: 22px; box-shadow: 0 8px 18px -6px rgba(7, 94, 84, .55); }

.kf-wa-back { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin-left: -6px; padding: 0; border: 0; border-radius: 50%; background: none; color: #fff; font-size: 20px; cursor: pointer; }
.kf-wa-back:hover { background: rgba(255, 255, 255, .14); }
.kf-wa-back:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.kf-wa-thread { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.kf-wa-thread [data-kf-wa-live].is-pending { display: none; }
.kf-wa-camp-tag { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; color: var(--kh-wa-teal); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.kf-wa-camp-tag i { font-size: 14px; }
.kh-msg-media.kf-wa-photos { background: linear-gradient(135deg, #f59e0b, #db2777); }

.kf-wa-float-qr { top: 9%; left: -4%; }
.kf-wa-float-camp { bottom: 15%; left: -8%; animation-delay: -3s; }
.kf-wa-float-bot { top: 44%; right: -7%; animation-delay: -1.5s; }

/* ---------- Live chats ---------- */
.kf-wa-desk { max-width: 1040px; margin: 0 auto; overflow: hidden; border: 1px solid var(--ks-line); border-radius: 24px; background: #fff; box-shadow: var(--ks-shadow-lg); }
.kf-wa-desk-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
.kf-wa-desk-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; border-right: 1px solid var(--ks-line); }
.kf-wa-desk-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; background: #f0f2f5; color: #667781; font-size: 13.5px; }
.kf-wa-desk-search i { flex: none; font-size: 17px; }
.kf-wa-desk-search span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-wa-desk-filter { display: flex; gap: 6px; }
.kf-wa-desk-filter button { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: #f0f2f5; color: #54656f; font: 600 13px/1 var(--ks-font); cursor: pointer; transition: background .2s, color .2s; }
.kf-wa-desk-filter button[aria-pressed="true"] { background: #d9fdd3; color: #075e54; }
.kf-wa-desk-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.kf-wa-conv { padding: 10px; border-radius: 12px; }
.kf-wa-conv[aria-pressed="true"] { background: #f0f2f5; }
.kf-wa-desk-empty { margin: 8px 0; color: var(--ks-muted); font-size: 13.5px; text-align: center; }

.kf-wa-desk-main { display: flex; flex-direction: column; min-width: 0; }
.kf-wa-desk-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--ks-line); background: #f7f8fa; }
.kf-wa-desk-head .kf-wa-av { width: 40px; height: 40px; font-size: 13px; }
.kf-wa-desk-who { flex: 1; min-width: 0; line-height: 1.3; }
.kf-wa-desk-who strong, .kf-wa-desk-who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-wa-desk-who strong { color: var(--ks-ink); font-size: 15px; }
.kf-wa-desk-who small { color: var(--ks-muted); font-size: 12.5px; }
.kf-wa-desk-tag { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: #dcf8e7; color: #0b6a5b; font-size: 12px; font-weight: 700; }
.kf-wa-desk-tag i { font-size: 15px; }
.kf-wa-desk-body { display: flex; flex-direction: column; height: 300px; padding: 16px; overflow-y: auto; scroll-behavior: smooth; scrollbar-width: thin; }
.kf-wa-dthread { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.kf-wa-desk-reply { padding: 12px 16px 16px; border-top: 1px solid var(--ks-line); }
.kf-wa-desk-label { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; color: var(--ks-muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.kf-wa-desk-label i { font-size: 16px; color: var(--ks-primary); }
.kf-wa-tpls { display: flex; flex-wrap: wrap; gap: 8px; }
.kf-wa-tpl { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 13px; border: 1.5px solid var(--ks-line); border-radius: 999px; background: #fff; color: var(--ks-ink); font: 600 13px/1.2 var(--ks-font); cursor: pointer; transition: border-color .2s, background .2s; }
.kf-wa-tpl i { font-size: 16px; color: var(--ks-primary); }
.kf-wa-tpl:hover { border-color: #9fdcc4; background: var(--ks-primary-50); }
.kf-wa-desk-input { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.kf-wa-desk-input span { flex: 1; min-width: 0; display: flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--ks-line); border-radius: 999px; color: var(--ks-muted); font-size: 13.5px; }
.kf-wa-desk-input b { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--kh-wa-teal); color: #fff; font-size: 17px; }

.kf-wa-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1040px; margin: 32px auto 0; padding: 0; list-style: none; }
.kf-wa-perks li { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 16px; border: 1px solid var(--ks-line); border-radius: 16px; background: #fff; }
.kf-wa-perks i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ks-primary-50); color: var(--ks-primary); font-size: 20px; }
.kf-wa-perks span { min-width: 0; color: var(--ks-muted); font-size: 13.5px; line-height: 1.45; }
.kf-wa-perks strong { display: block; margin-bottom: 2px; color: var(--ks-ink); font-size: 14.5px; }

/* ---------- Campaign builder ---------- */
.kf-wa-camp { align-items: start; }
.kf-wa-camp .kh-step + .kh-step { margin-top: 22px; }
.kf-wa-camp-controls, .kf-wa-camp-preview { min-width: 0; }
.kf-wa-camp-body { display: grid; gap: 14px; padding: 18px; }
.kf-wa-raw { padding: 12px 14px; border: 1px dashed #b7d9cc; border-radius: 14px; background: #fff; }
.kf-wa-raw-label { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ks-muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.kf-wa-raw-label > i { font-size: 16px; color: var(--ks-primary); }
.kf-wa-fmt { display: inline-flex; gap: 6px; margin-left: auto; }
.kf-wa-fmt i { font-size: 16px; color: var(--ks-muted); }
.kf-wa-raw-text { margin: 8px 0 0; color: var(--ks-ink); font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.kf-wa-var { padding: 0 3px; border-radius: 4px; background: #fef3c7; color: #92400e; }
.kf-wa-render { display: flex; flex-direction: column; justify-content: center; min-height: 210px; padding: 16px 14px; border-radius: 14px; }
.kf-wa-camp-msg { width: 88%; max-width: 88%; }
.kf-wa-camp-msg.kf-wa-pop { animation: kh-pop .35s cubic-bezier(.2, .9, .3, 1.2) both; }
.kf-wa-camp-msg code { padding: 0 3px; border-radius: 3px; background: rgba(11, 20, 26, .06); font: 12.5px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.kf-wa-camp-msg .kh-msg-doc { margin-bottom: 8px; }
.kf-wa-camp-foot { display: block; margin-top: 4px; color: #667781; font-size: 12px; }
.kf-wa-camp-meta { display: grid; gap: 0; margin: 0; }
.kf-wa-camp-meta div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px dashed var(--ks-line); }
.kf-wa-camp-meta dt { display: flex; align-items: center; gap: 6px; color: var(--ks-muted); font-size: 12.5px; font-weight: 600; }
.kf-wa-camp-meta dt i { font-size: 16px; color: var(--ks-primary); }
.kf-wa-camp-meta dd { margin: 0; color: var(--ks-ink); font-size: 13.5px; }

/* ---------- Connect (dark) ---------- */
.kf-wa-conn { max-width: 1040px; margin: 0 auto; }
.kf-wa-conn-seg { display: flex; width: fit-content; max-width: 100%; margin: 0 auto 32px; border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); box-shadow: none; }
.kf-wa-conn-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: rgba(255, 255, 255, .8); }
.kf-wa-conn-seg button i { font-size: 17px; }
.kf-wa-conn-seg button:hover { color: #fff; }
.kf-wa-conn-seg button[aria-pressed="true"] { background: var(--kh-wa); color: #0b141a; }
.kf-wa-conn-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: stretch; animation: kh-panel-in .45s ease both; }
.kf-wa-conn-panel.is-table { grid-template-columns: minmax(0, 1fr); }
.kf-wa-conn-facts, .kf-wa-stepper { min-width: 0; padding: 24px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; background: rgba(255, 255, 255, .05); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.kf-wa-conn-facts .kh-route-head strong { color: #fff; }
.kf-wa-conn-facts .kh-route-head small { color: rgba(255, 255, 255, .55); }
.kf-wa-conn-facts .kh-route-head > span:nth-child(2) { min-width: 0; }
.kf-wa-conn-facts dl { display: grid; gap: 10px; margin: 0; }
.kf-wa-conn-facts dl div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, .14); }
.kf-wa-conn-facts dt { color: rgba(255, 255, 255, .55); font-size: 13px; font-weight: 600; }
.kf-wa-conn-facts dd { margin: 0; color: #fff; font-size: 14.5px; }
.kf-wa-stepper { display: flex; flex-direction: column; gap: 16px; }
.kf-wa-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kf-wa-steps button { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; height: 42px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: none; color: rgba(255, 255, 255, .75); font: 600 13.5px/1.1 var(--ks-font); white-space: nowrap; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.kf-wa-steps button b { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .1); font-size: 12px; }
.kf-wa-steps button:hover { border-color: rgba(37, 211, 102, .5); color: #fff; }
.kf-wa-steps button[aria-pressed="true"] { border-color: var(--kh-wa); background: rgba(37, 211, 102, .14); color: #fff; }
.kf-wa-steps button[aria-pressed="true"] b { background: var(--kh-wa); color: #0b141a; }
.kf-wa-stepstage { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 270px; }
.kf-wa-stepcard { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-width: 0; padding: 22px; border-radius: 16px; background: #fff; color: var(--ks-text); text-align: center; animation: kh-panel-in .4s ease both; }
.kf-wa-stepcard strong { color: var(--ks-ink); font-size: 16px; }
.kf-wa-stepcard p { max-width: 340px; margin: 0; color: var(--ks-muted); font-size: 14px; }
.kf-wa-qr { position: relative; flex: none; width: 140px; height: 140px; padding: 10px; border: 1px solid var(--ks-line); border-radius: 12px; background: #fff; }
.kf-wa-qr svg { display: block; width: 100%; height: 100%; fill: #0b1f1a; }
.kf-wa-qr-scan { position: absolute; top: 10px; left: 8px; right: 8px; height: 3px; border-radius: 3px; background: var(--kh-wa); box-shadow: 0 0 12px var(--kh-wa); animation: kf-wa-scan 2.2s ease-in-out infinite alternate; }
@keyframes kf-wa-scan { to { transform: translateY(117px); } }
.kf-wa-qr-steps { display: grid; gap: 4px; margin: 0; padding-left: 20px; color: var(--ks-muted); font-size: 13.5px; text-align: left; }
.kf-wa-spin { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ks-primary-50); color: var(--kh-wa-teal); font-size: 30px; }
.kf-wa-spin i { animation: kf-wa-rotate 1s linear infinite; }
@keyframes kf-wa-rotate { to { transform: rotate(360deg); } }
.kf-wa-meter { display: block; width: 100%; max-width: 260px; height: 8px; overflow: hidden; border-radius: 999px; background: #e3efe9; }
.kf-wa-meter span { display: block; width: 62%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--kh-wa-teal), var(--kh-wa)); animation: kf-wa-fill 2.2s ease-in-out infinite; }
@keyframes kf-wa-fill { from { width: 8%; } to { width: 92%; } }
.kf-wa-device { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--ks-line); border-radius: 14px; text-align: left; }
.kf-wa-device-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #dcf8e7; color: var(--kh-wa-teal); font-size: 22px; }
.kf-wa-device > span:nth-child(2) { flex: 1; min-width: 0; line-height: 1.3; }
.kf-wa-device strong, .kf-wa-device small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-wa-device small { color: var(--ks-muted); font-size: 12.5px; }
.kf-wa-device em { flex: none; display: inline-flex; align-items: center; gap: 2px; padding: 4px 10px 4px 2px; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: 12.5px; font-style: normal; font-weight: 700; }
.kf-wa-device-meta, .kf-wa-form, .kf-wa-tpllist { display: grid; gap: 8px; width: 100%; margin: 0; padding: 0; list-style: none; text-align: left; }
.kf-wa-device-meta li { display: flex; align-items: center; gap: 8px; color: var(--ks-muted); font-size: 13.5px; }
.kf-wa-device-meta i { flex: none; font-size: 17px; color: var(--ks-primary); }
.kf-wa-form li { display: grid; gap: 2px; min-width: 0; padding: 9px 12px; border: 1px solid var(--ks-line); border-radius: 10px; }
.kf-wa-form span { color: var(--ks-muted); font-size: 12px; font-weight: 600; }
.kf-wa-form b { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; color: var(--ks-ink); font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.kf-wa-form b i { color: var(--kh-wa-teal); font-size: 16px; }
.kf-wa-tpllist li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border: 1px solid var(--ks-line); border-radius: 10px; }
.kf-wa-tpllist i { flex: none; font-size: 18px; color: var(--kh-wa-teal); }
.kf-wa-tpllist span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ks-ink); font: 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.kf-wa-tpllist em { flex: none; padding: 3px 9px; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: 12px; font-style: normal; font-weight: 700; }
.kf-wa-table { border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); }
.kf-wa-table .ks-table { min-width: 560px; }
.kf-wa-table th, .kf-wa-table td { border-bottom-color: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .82); }
.kf-wa-table thead th { background: rgba(255, 255, 255, .06); color: #fff; }
.kf-wa-table td:first-child { color: rgba(255, 255, 255, .55); font-weight: 600; }
.kf-wa-table .is-yes { color: #4ade80; }

/* ---------- Chatbot menus ---------- */
.kf-wa-bot-note { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; color: var(--ks-primary-700); font-size: 14px; font-weight: 600; }
.kf-wa-bot-perks { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.kf-wa-bot-perks li { display: flex; align-items: flex-start; gap: 12px; }
.kf-wa-bot-perks i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ks-primary-50); color: var(--ks-primary); font-size: 18px; }
.kf-wa-bot-perks span { min-width: 0; padding-top: 6px; font-size: 15px; line-height: 1.45; }
.kf-wa-bot-demo { width: 100%; max-width: 400px; margin: 0 auto; }
.kf-wa-bot-screen { position: relative; overflow: hidden; border: 1px solid var(--ks-line); border-radius: 24px; background: var(--kh-wa-wall); box-shadow: 0 30px 60px -28px rgba(7, 94, 84, .45); }
.kf-wa-bot-body { display: flex; flex-direction: column; gap: 6px; height: 430px; padding: 14px 12px; overflow-y: auto; scroll-behavior: smooth; scrollbar-width: none; }
.kf-wa-bot-body::-webkit-scrollbar { display: none; }
.kf-wa-bot-body > .kh-msg { flex: none; }
.kf-wa-numlist { margin: 6px 0 0; padding-left: 22px; font-size: 13px; line-height: 1.5; }
.kf-wa-notice { align-self: center; display: inline-flex; align-items: center; gap: 6px; max-width: 92%; margin: 4px 0; padding: 5px 12px; border-radius: 8px; background: #fff5c4; color: #54656f; font-size: 12px; line-height: 1.4; text-align: center; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.kf-wa-notice i { flex: none; font-size: 15px; color: var(--kh-wa-teal); }
.kf-wa-sheet { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; background: rgba(11, 20, 26, .4); animation: kf-wa-fade .2s ease both; }
.kf-wa-sheet-card { width: 100%; max-height: 84%; overflow-y: auto; padding: 4px 0 10px; border-radius: 18px 18px 0 0; background: #fff; animation: kf-wa-up .28s ease both; }
@keyframes kf-wa-fade { from { opacity: 0; } }
@keyframes kf-wa-up { from { transform: translateY(40px); } }
.kf-wa-sheet-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #e9edef; }
.kf-wa-sheet-head strong { color: #111b21; font-size: 15px; }
.kf-wa-sheet-head button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; color: #54656f; font-size: 20px; cursor: pointer; }
.kf-wa-sheet-head button:hover { background: #f0f2f5; }
.kf-wa-sheet ul { margin: 0; padding: 0; list-style: none; }
.kf-wa-sheet li button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 16px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.kf-wa-sheet li button:hover { background: #f5f6f6; }
.kf-wa-sheet li button:disabled { cursor: default; opacity: .6; }
.kf-wa-sheet li span { flex: 1; min-width: 0; line-height: 1.35; }
.kf-wa-sheet li strong { display: block; color: #111b21; font-size: 14px; font-weight: 600; }
.kf-wa-sheet li small { display: block; color: #667781; font-size: 12.5px; }
.kf-wa-sheet li i { flex: none; font-size: 20px; color: #8696a0; }
.kf-wa-bot-quick { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; }
.kf-wa-bot-quick span { color: var(--ks-muted); font-size: 13.5px; }
.kf-wa-bot-quick button { min-width: 44px; height: 40px; padding: 0 12px; border: 1.5px solid var(--ks-line); border-radius: 999px; background: #fff; color: var(--ks-ink); font: 700 14px/1 var(--ks-font); cursor: pointer; transition: border-color .2s, background .2s; }
.kf-wa-bot-quick button:hover:not(:disabled) { border-color: var(--kh-wa-teal); background: var(--ks-primary-50); }
.kf-wa-bot-quick button:disabled { cursor: default; opacity: .5; }

/* ---------- Toolkit (teal) ---------- */
.kf-wa-tool-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); }
.kf-wa-statuses span, .kf-wa-rotate span, .kf-wa-logic span, .kf-wa-ai span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 12px; font-weight: 600; }
.kf-wa-statuses span.is-read { background: rgba(83, 189, 235, .32); }
.kf-wa-statuses span.is-fail { background: rgba(248, 113, 113, .28); }
.kf-wa-rotate span { border-radius: 10px; animation: kf-wa-turn 4.5s infinite; }
.kf-wa-rotate span:nth-child(2) { animation-delay: 1.5s; }
.kf-wa-rotate span:nth-child(3) { animation-delay: 3s; }
@keyframes kf-wa-turn { 0%, 30%, 100% { background: rgba(255, 255, 255, .12); color: #fff; } 8%, 24% { background: var(--kh-wa); color: #073b33; } }
.kf-wa-pace { flex-wrap: nowrap; }
.kf-wa-pace span { flex: none; color: #fff; font-size: 12px; font-weight: 600; }
.kf-wa-pace i { flex: 1; min-width: 0; height: 6px; border-radius: 999px; background: linear-gradient(90deg, rgba(255, 255, 255, .2), var(--kh-wa), rgba(255, 255, 255, .2)); }
.kf-wa-fmtrow i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 17px; }
.kf-wa-logic span { border-radius: 8px; }
.kf-wa-logic b { color: #b9f6d0; font-size: 12px; font-weight: 600; }
.kf-wa-ai > i { font-size: 18px; color: #b9f6d0; }

/* ---------- FAQ ---------- */
.kf-wa-faq { margin-top: 80px; }
.kf-wa-faq-title { margin-bottom: 20px; font-size: 1.4rem; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .kf-wa-float-qr { left: -2%; }
    .kf-wa-float-camp { left: -2%; }
    .kf-wa-float-bot { right: -2%; }
}
@media (max-width: 960px) {
    .kf-wa-stage { max-width: 560px; width: 100%; margin: 0 auto; }
    .kf-wa-float-qr, .kf-wa-float-camp { left: 0; }
    .kf-wa-float-bot { right: 0; }
    .kf-wa-desk-grid { grid-template-columns: minmax(0, 1fr); }
    .kf-wa-desk-side { border-right: 0; border-bottom: 1px solid var(--ks-line); }
    .kf-wa-desk-list { display: flex; gap: 6px; margin: 0 -14px; padding: 0 14px 4px; overflow-x: auto; scrollbar-width: none; }
    .kf-wa-desk-list::-webkit-scrollbar { display: none; }
    .kf-wa-desk-list li { flex: none; width: 230px; }
    .kf-wa-conv { border: 1px solid var(--ks-line); }
    .kf-wa-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kf-wa-conn-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .kf-wa-stage { padding: 12px 0 60px; }
    .kf-wa-phone { max-width: 100%; }
    .kf-wa-float-qr, .kf-wa-float-bot { display: none; }
    .kf-wa-float-camp { top: auto; bottom: 70px; left: -4px; }
    .kf-wa-apphead { padding: 40px 14px 6px; }
    .kf-wa-apptitle strong { font-size: 17.5px; }
    .kf-wa-camp-seg button { height: auto; min-height: 40px; padding: 6px 8px; line-height: 1.15; white-space: normal; }
    .kf-wa-chat { gap: 10px; padding: 9px 12px; }
    .kf-wa-av { width: 42px; height: 42px; font-size: 13px; }
    .kf-wa-desk { border-radius: 20px; }
    .kf-wa-desk-search { display: none; }
    .kf-wa-desk-list li { width: 200px; }
    .kf-wa-desk-head { padding: 10px 12px; }
    .kf-wa-desk-tag { display: none; }
    .kf-wa-desk-body { height: 280px; padding: 12px; }
    .kf-wa-desk-reply { padding: 12px; }
    .kf-wa-tpls { flex-wrap: nowrap; margin: 0 -12px; padding: 0 12px 4px; overflow-x: auto; scrollbar-width: none; }
    .kf-wa-tpls::-webkit-scrollbar { display: none; }
    .kf-wa-tpl { flex: none; }
    .kf-wa-perks { grid-template-columns: minmax(0, 1fr); }
    .kf-wa-camp-body { padding: 14px; }
    .kf-wa-camp-msg { width: 94%; max-width: 94%; }
    .kf-wa-camp-meta div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .kf-wa-conn-seg { width: 100%; }
    .kf-wa-conn-seg button { flex: 1; min-width: 0; height: auto; min-height: 40px; padding: 6px; font-size: 13px; line-height: 1.15; white-space: normal; }
    .kf-wa-conn-seg button i { display: none; }
    .kf-wa-conn-facts, .kf-wa-stepper { padding: 18px; }
    .kf-wa-conn-facts dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .kf-wa-steps button { flex-direction: column; gap: 4px; height: auto; padding: 8px 4px; font-size: 12.5px; }
    .kf-wa-stepcard { padding: 18px 14px; }
    .kf-wa-bot-seg button { padding: 0 8px; }
    .kf-wa-bot-body { height: 400px; }
    .kf-wa-faq { margin-top: 56px; }
}
