/* Gateways feature page (site/features/gateways.blade.php). Prefix: kf-gw- */

.kf-gw-stage, .kf-gw-api, .kf-gw-dns, .kf-gw-api-steps, .kf-gw-endpoints { --kf-gw-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ---------- Hero connections panel ---------- */
.kf-gw-stage { position: relative; padding: 28px 0 56px; }
.kf-gw-panel { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; overflow: hidden; border: 1px solid var(--ks-line); border-radius: 22px; background: #fff; box-shadow: 0 40px 80px -30px rgba(7, 94, 84, .45), 0 18px 36px rgba(11, 31, 26, .1); }
.kf-gw-conns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; padding: 16px 16px 10px; list-style: none; background: var(--ks-soft); }
.kf-gw-conn { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--ks-line); border-radius: 16px; background: #fff; transition: border-color .25s, box-shadow .25s; }
.kf-gw-conn.is-on { border-color: #bfe9d2; }
.kf-gw-conn.is-connecting { border-color: #fcd34d; box-shadow: 0 0 0 4px rgba(245, 158, 11, .12); }
.kf-gw-conn.is-just { animation: kf-gw-pop .6s ease; }
@keyframes kf-gw-pop { 40% { box-shadow: 0 0 0 6px rgba(37, 211, 102, .22); } }
.kf-gw-conn-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; font-size: 21px; transition: filter .3s, opacity .3s; }
.kf-gw-conn-icon.is-wa { background: linear-gradient(135deg, var(--kh-wa), var(--kh-wa-teal)); }
.kf-gw-conn-icon.is-meta { background: #0866ff; }
.kf-gw-conn-icon.is-android { background: #16a34a; }
.kf-gw-conn-icon.is-api { background: #0f766e; }
.kf-gw-conn-icon.is-mail { background: #ea580c; }
.kf-gw-conn:not(.is-on):not(.is-connecting) .kf-gw-conn-icon { filter: grayscale(1); opacity: .45; }
.kf-gw-conn-main { min-width: 0; line-height: 1.3; }
.kf-gw-conn-main strong { display: block; overflow: hidden; color: var(--ks-ink); font-size: 14.5px; white-space: nowrap; text-overflow: ellipsis; }
.kf-gw-conn-main small { display: block; overflow: hidden; color: var(--ks-muted); font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; transition: color .2s; }
.kf-gw-conn.is-on small { color: #15803d; }
.kf-gw-conn.is-connecting small { color: #b45309; }
.kf-gw-conn-bar { display: block; height: 3px; margin-top: 6px; overflow: hidden; border-radius: 999px; background: #eef2f0; opacity: 0; transition: opacity .2s; }
.kf-gw-conn-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f59e0b, var(--kh-wa)); }
.kf-gw-conn.is-connecting .kf-gw-conn-bar { opacity: 1; }
.kf-gw-conn.is-connecting .kf-gw-conn-bar span { animation: kf-gw-load var(--kf-gw-dur, 1.7s) linear forwards; }
@keyframes kf-gw-load { to { width: 100%; } }
.kf-gw-switch { position: relative; flex: none; width: 46px; height: 26px; padding: 0; border: 0; border-radius: 999px; background: #d0d5dd; cursor: pointer; transition: background .25s; }
.kf-gw-switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(11, 31, 26, .25); transition: transform .25s cubic-bezier(.3, .9, .3, 1.2); }
.kf-gw-switch::after { content: ""; position: absolute; inset: -9px -4px; }
.kf-gw-switch[aria-pressed="true"] { background: var(--kh-wa-teal); }
.kf-gw-switch[aria-pressed="true"]::before { transform: translateX(20px); }
.kf-gw-conn.is-connecting .kf-gw-switch { background: #f59e0b; }
.kf-gw-panel-foot { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 4px 16px 14px; background: var(--ks-soft); color: var(--ks-muted); font-size: 12.5px; font-weight: 600; text-align: center; }
.kf-gw-panel-foot i { font-size: 16px; color: var(--kh-wa-teal); }

.kf-gw-float-qr { top: -34px; left: -6%; }
.kf-gw-float-dkim { right: -5%; bottom: 10px; animation-delay: -3s; }

/* ---------- Shared split ---------- */
.kf-gw-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.kf-gw-split.is-reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.kf-gw-split.is-reverse > .kf-gw-copy { order: 2; }
.kf-gw-copy { min-width: 0; }
.kf-gw-copy > p { color: var(--ks-muted); font-size: 1.05rem; }
.kh-dark .kf-gw-copy > p { color: rgba(255, 255, 255, .72); }
.kf-gw-copy .ks-checklist { margin-top: 20px; }

/* ---------- Provider picker ---------- */
.kf-gw-picker { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: start; }
.kf-gw-picker-side { min-width: 0; }
.kf-gw-picker-seg button { display: inline-flex; align-items: center; gap: 6px; }
.kf-gw-picker-seg button i { font-size: 17px; }
.kf-gw-picker-label { margin-top: 24px; }
.kf-gw-chips[hidden], .kf-gw-more[hidden], .kf-gw-form[hidden] { display: none; }
.kf-gw-chips .kh-chip { white-space: nowrap; }
.kf-gw-more { margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--ks-line); }
.kf-gw-more p { margin: 0 0 10px; color: var(--ks-muted); font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.kf-gw-forms { min-width: 0; }
.kf-gw-form { overflow: hidden; border: 1px solid var(--ks-line); border-radius: 20px; background: #fff; box-shadow: var(--ks-shadow-lg); }
.kf-gw-form:not([hidden]) { animation: kh-panel-in .4s ease both; }
.kf-gw-form .kh-builder-bar em { min-width: 0; max-width: 50%; overflow: hidden; text-overflow: ellipsis; background: var(--ks-primary-50); color: var(--ks-primary-700); }
.kf-gw-form-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px; }
.kf-gw-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.kf-gw-fields > div { min-width: 0; }
.kf-gw-fields dt { overflow: hidden; color: var(--ks-muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.kf-gw-fields dd { margin: 5px 0 0; padding: 10px 12px; overflow: hidden; border: 1px solid var(--ks-line); border-radius: 10px; background: var(--ks-soft); color: var(--ks-ink); font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.kf-gw-pace { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px dashed #a7dcc8; border-radius: 12px; background: #f1faf5; color: var(--ks-muted); font-size: 13.5px; line-height: 1.45; }
.kf-gw-pace i { flex: none; margin-top: 1px; font-size: 19px; color: var(--ks-primary); }
.kf-gw-pace span { min-width: 0; }
.kf-gw-pace strong { display: block; color: var(--ks-ink); font-size: 14px; }
.kf-gw-form-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: var(--ks-muted); font-size: 13.5px; line-height: 1.5; }
.kf-gw-form-note i { flex: none; margin-top: 2px; font-size: 17px; color: var(--kh-wa-teal); }
.kf-gw-form-note span { min-width: 0; }

/* ---------- Routing simulator ---------- */
.kf-gw-route { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.kf-gw-route-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.kf-gw-route-seg { justify-self: start; max-width: 100%; }
.kf-gw-route-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; transition: opacity .2s; }
.kf-gw-route-pick > span { color: var(--ks-muted); font-size: 13.5px; font-weight: 600; }
.kf-gw-route-pick .kh-chip { min-height: 38px; padding: 4px 14px; font-size: 13.5px; }
.kf-gw-route-pick.is-dim { opacity: .6; }
.kf-gw-route-pick.is-dim .kh-chip[aria-pressed="true"] { box-shadow: none; }
.kf-gw-route-window { overflow: hidden; border: 1px solid var(--ks-line); border-radius: 20px; background: #fff; box-shadow: var(--ks-shadow-lg); }
.kf-gw-lanes { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding: 20px; }
.kf-gw-outbox { display: grid; justify-items: center; gap: 2px; min-width: 84px; padding: 14px 10px; border: 1px solid var(--ks-line); border-radius: 18px; background: var(--ks-soft); line-height: 1.2; }
.kf-gw-outbox i { font-size: 22px; color: var(--ks-primary); }
.kf-gw-outbox b { color: var(--ks-ink); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.kf-gw-outbox small { color: var(--ks-muted); font-size: 12px; }
.kf-gw-lane-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.kf-gw-lane { display: grid; grid-template-columns: minmax(0, 118px) minmax(0, 1fr) 34px; gap: 12px; align-items: center; }
.kf-gw-lane-name { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ks-ink); font-size: 14px; font-weight: 600; line-height: 1.2; }
.kf-gw-lane-name i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--ks-primary-50); color: var(--ks-primary); font-size: 17px; }
.kf-gw-lane-name > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.kf-gw-lane-name small { display: block; overflow: hidden; color: var(--ks-muted); font-size: 11.5px; font-weight: 500; text-overflow: ellipsis; }
.kf-gw-lane-track { position: relative; height: 30px; overflow: hidden; border: 1px dashed var(--ks-line); border-radius: 10px; background: var(--ks-soft); }
.kf-gw-lane-fill { position: absolute; top: 0; bottom: 0; left: 0; width: var(--w, 0%); background: linear-gradient(90deg, rgba(18, 140, 126, .14), rgba(37, 211, 102, .4)); transition: width .3s ease; }
.kf-gw-dot { position: absolute; top: 50%; left: 4px; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--kh-wa-teal); box-shadow: 0 0 0 3px rgba(37, 211, 102, .25); animation: kf-gw-fly .55s ease-in forwards; }
@keyframes kf-gw-fly { from { opacity: .3; } 70% { opacity: 1; } to { left: calc(100% - 14px); opacity: 0; } }
.kf-gw-lane b { color: var(--ks-ink); font-size: 1.1rem; text-align: right; font-variant-numeric: tabular-nums; }
.kf-gw-lane.is-hit b { color: var(--kh-wa-teal); animation: kf-gw-bump .3s ease; }
@keyframes kf-gw-bump { 50% { transform: scale(1.25); } }
.kf-gw-route-note { margin: 0; padding: 0 20px 18px; color: var(--ks-muted); font-size: 13.5px; text-align: center; }
.kf-gw-route-send { justify-self: start; }
.kf-gw-route-send:disabled { cursor: progress; filter: saturate(.7); transform: none; }

/* ---------- Domains (dark) ---------- */
.kf-gw-dark-list { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.kf-gw-dark-list li { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .8); font-size: 15px; line-height: 1.45; }
.kf-gw-dark-list i { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(37, 211, 102, .14); color: var(--kh-wa); font-size: 19px; }
.kf-gw-dns { min-width: 0; padding: 22px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 24px; background: rgba(255, 255, 255, .05); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.kf-gw-dns-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.kf-gw-dns-title { display: flex; align-items: center; gap: 12px; min-width: 0; line-height: 1.3; }
.kf-gw-dns-title > i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(37, 211, 102, .14); color: var(--kh-wa); font-size: 21px; }
.kf-gw-dns-title > span { min-width: 0; }
.kf-gw-dns-title strong { display: block; color: #fff; font-size: 15px; }
.kf-gw-dns-title small { display: block; color: rgba(255, 255, 255, .55); font-size: 12.5px; }
.kf-gw-dns-state { padding: 4px 12px; border-radius: 999px; background: rgba(251, 191, 36, .16); color: #fcd34d; font-size: 12px; font-weight: 700; white-space: nowrap; }
.kf-gw-dns-state.is-checking { background: rgba(96, 165, 250, .16); color: #93c5fd; }
.kf-gw-dns-state.is-done { background: rgba(37, 211, 102, .18); color: #4ade80; }
.kf-gw-dns-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 14px; }
.kf-gw-dns-seg { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); box-shadow: none; }
.kf-gw-dns-seg button { height: 36px; padding: 0 14px; color: rgba(255, 255, 255, .78); font-size: 13.5px; }
.kf-gw-dns-seg button:hover { color: #fff; }
.kf-gw-dns-seg button[aria-pressed="true"] { background: var(--kh-wa); color: #0b141a; box-shadow: none; }
.kf-gw-verify { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--kh-wa); color: #0b141a; font: 700 14px/1 var(--ks-font); cursor: pointer; transition: filter .2s, transform .2s; }
.kf-gw-verify:hover { filter: brightness(1.08); }
.kf-gw-verify:disabled { cursor: progress; opacity: .75; }
.kf-gw-verify i { font-size: 18px; }
.kf-gw-records { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.kf-gw-record { min-width: 0; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; background: rgba(255, 255, 255, .04); transition: border-color .3s, background .3s; }
.kf-gw-record.is-verified { border-color: rgba(37, 211, 102, .35); background: rgba(37, 211, 102, .06); }
.kf-gw-record-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.kf-gw-record-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #a7f3d0; font-size: 17px; }
.kf-gw-record-name { min-width: 0; line-height: 1.3; }
.kf-gw-record-name strong { display: block; color: #fff; font-size: 14px; }
.kf-gw-record-name small { display: block; overflow: hidden; color: rgba(255, 255, 255, .5); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.kf-gw-record-state { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .7); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.kf-gw-record.is-checking .kf-gw-record-state { background: rgba(96, 165, 250, .16); color: #93c5fd; }
.kf-gw-record.is-verified .kf-gw-record-state { background: rgba(37, 211, 102, .18); color: #4ade80; }
.kf-gw-record-body { margin-top: 10px; min-width: 0; }
.kf-gw-record-host { display: block; color: rgba(255, 255, 255, .82); font: 12.5px/1.4 var(--kf-gw-mono); overflow-wrap: anywhere; }
.kf-gw-record-value { display: block; margin-top: 6px; padding: 8px 10px; overflow-x: auto; border-radius: 10px; background: rgba(0, 0, 0, .3); color: #a7f3d0; font: 12.5px/1.5 var(--kf-gw-mono); white-space: nowrap; scrollbar-width: thin; }
.kf-gw-record-value[hidden] { display: none; }
.kf-gw-dns-note { margin: 12px 0 0; color: rgba(255, 255, 255, .5); font-size: 12.5px; }

/* ---------- Developer API ---------- */
.kf-gw-api-steps { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: kf-gw-step; }
.kf-gw-api-steps li { counter-increment: kf-gw-step; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 2px 12px; }
.kf-gw-api-steps li::before { content: counter(kf-gw-step); grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--kh-wa-dark), var(--kh-wa-teal)); color: #fff; font-size: 13px; font-weight: 800; }
.kf-gw-api-steps strong { color: var(--ks-ink); }
.kf-gw-api-steps span { color: var(--ks-muted); font-size: 14.5px; }
.kf-gw-api-steps code, .kf-gw-response-foot code { padding: 1px 6px; border-radius: 6px; background: var(--ks-primary-50); color: var(--ks-primary-700); font: 13px var(--kf-gw-mono); overflow-wrap: anywhere; }
.kf-gw-endpoints { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 22px 0 4px; padding: 0; list-style: none; }
.kf-gw-endpoints li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 12px; border: 1px solid var(--ks-line); border-radius: 12px; background: var(--ks-soft); }
.kf-gw-endpoints code { min-width: 0; overflow: hidden; color: var(--ks-ink); font: 13px var(--kf-gw-mono); white-space: nowrap; text-overflow: ellipsis; }
.kf-gw-endpoints b, .kf-gw-code-title b, .kf-gw-response-foot b { flex: none; padding: 3px 7px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.kf-gw-endpoints .is-post, .kf-gw-code .is-post, .kf-gw-response .is-post { background: #dcfce7; color: #15803d; }
.kf-gw-endpoints .is-get, .kf-gw-response .is-get { background: #dbeafe; color: #1d4ed8; }

.kf-gw-api { min-width: 0; }
.kf-gw-code { overflow: hidden; border-radius: 20px; background: #0b141a; box-shadow: 0 30px 70px -30px rgba(7, 94, 84, .6); }
.kf-gw-code-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.kf-gw-langs { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.kf-gw-langs::-webkit-scrollbar { display: none; }
.kf-gw-lang { flex: none; height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: rgba(255, 255, 255, .65); font: 600 13.5px/1 var(--ks-font); white-space: nowrap; cursor: pointer; transition: background .2s, color .2s; }
.kf-gw-lang:hover { color: #fff; }
.kf-gw-lang[aria-selected="true"] { background: rgba(37, 211, 102, .16); color: #4ade80; }
.kf-gw-copybtn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 9px; background: rgba(255, 255, 255, .06); color: #fff; font: 600 13px/1 var(--ks-font); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.kf-gw-copybtn:hover { background: rgba(255, 255, 255, .12); }
.kf-gw-copybtn i { font-size: 16px; }
.kf-gw-copybtn.is-copied { border-color: rgba(74, 222, 128, .5); color: #4ade80; }
.kf-gw-code-title { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; padding: 12px 16px 0; color: rgba(255, 255, 255, .75); font: 12.5px/1.4 var(--kf-gw-mono); }
.kf-gw-code-title span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.kf-gw-code-panel { min-width: 0; }
.kf-gw-code-panel:focus-visible { outline: 2px solid rgba(74, 222, 128, .6); outline-offset: -2px; }
.kf-gw-code pre, .kf-gw-response pre { margin: 0; padding: 14px 16px 18px; overflow-x: auto; font: 12.5px/1.65 var(--kf-gw-mono); white-space: pre; tab-size: 4; }
.kf-gw-code pre { color: #d1fae5; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.kf-gw-code code, .kf-gw-response pre code { font: inherit; color: inherit; background: none; padding: 0; }
.kf-gw-response { margin-top: 14px; overflow: hidden; border: 1px solid var(--ks-line); border-radius: 18px; background: #fff; box-shadow: var(--ks-shadow); }
.kf-gw-response-title { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--ks-line); color: var(--ks-ink); font-size: 13.5px; font-weight: 700; }
.kf-gw-status-code { padding: 2px 8px; border-radius: 6px; background: #dcfce7; color: #15803d; font: 700 12px var(--kf-gw-mono); }
.kf-gw-response pre { max-height: 300px; overflow-y: auto; background: #f6f8f7; color: #1f2d29; }
.kf-gw-response-foot { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 12px 16px; border-top: 1px solid var(--ks-line); color: var(--ks-muted); font-size: 13px; line-height: 1.6; }
.kf-gw-response-foot > i { flex: none; margin-top: 3px; font-size: 16px; color: var(--kh-wa-teal); }
.kf-gw-response-foot > span { min-width: 0; }

/* ---------- All connections ---------- */
.kf-gw-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.kf-gw-card { min-width: 0; }
.kf-gw-card-list { display: grid; gap: 14px; margin: 6px 0 20px; padding: 0; list-style: none; }
.kf-gw-card-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ks-muted); font-size: 14.5px; line-height: 1.5; }
.kf-gw-card-list 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-gw-card-list span { min-width: 0; }
.kf-gw-card-list strong { display: block; color: var(--ks-ink); }
.kf-gw-card .ks-pills { margin-top: auto; }

.kf-gw-faq { margin-top: 72px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .kf-gw-float-qr { left: -2%; }
    .kf-gw-float-dkim { right: -2%; }
    .kf-gw-endpoints { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
    .kf-gw-stage { max-width: 560px; margin: 0 auto; padding: 36px 0 60px; }
    .kf-gw-float-qr { top: 0; left: 0; }
    .kf-gw-float-dkim { right: 0; bottom: 8px; }
    .kf-gw-split, .kf-gw-split.is-reverse, .kf-gw-picker { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .kf-gw-split.is-reverse > .kf-gw-copy { order: 0; }
    .kf-gw-picker { gap: 28px; }
    .kf-gw-cards { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin: 0 auto; }
    .kf-gw-faq { margin-top: 56px; }
}
@media (max-width: 640px) {
    .kf-gw-stage { padding: 12px 0 52px; }
    .kf-gw-float-qr { display: none; }
    .kf-gw-float-dkim { right: 4px; bottom: 4px; }
    .kf-gw-panel { border-radius: 18px; }
    .kf-gw-conns { gap: 8px; padding: 12px 12px 8px; }
    .kf-gw-conn { gap: 10px; padding: 10px 12px; border-radius: 14px; }
    .kf-gw-conn-icon { width: 36px; height: 36px; border-radius: 10px; font-size: 19px; }
    .kf-gw-conn-main strong { font-size: 14px; }

    .kf-gw-picker-seg { width: 100%; }
    .kf-gw-picker-seg button i { display: none; }
    .kf-gw-chips { flex-wrap: nowrap; margin: 0 -18px; padding: 0 18px 6px; overflow-x: auto; scrollbar-width: none; }
    .kf-gw-chips::-webkit-scrollbar { display: none; }
    .kf-gw-chips .kh-chip { flex: none; }
    .kf-gw-form-body { gap: 14px; padding: 16px; }
    .kf-gw-fields { grid-template-columns: minmax(0, 1fr); gap: 12px; }

    .kf-gw-route-seg { width: 100%; }
    .kf-gw-route-seg button { height: 44px; padding: 0 6px; font-size: 12.5px; line-height: 1.15; white-space: normal; }
    .kf-gw-route-pick { flex-wrap: nowrap; margin: 0 -18px; padding: 0 18px 4px; overflow-x: auto; scrollbar-width: none; }
    .kf-gw-route-pick::-webkit-scrollbar { display: none; }
    .kf-gw-route-pick > * { flex: none; }
    .kf-gw-lanes { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; }
    .kf-gw-outbox { display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 10px 12px; border-radius: 14px; }
    .kf-gw-outbox b { font-size: 1.3rem; }
    .kf-gw-lane { grid-template-columns: minmax(0, 96px) minmax(0, 1fr) 28px; gap: 8px; }
    .kf-gw-lane-name { font-size: 13px; }
    .kf-gw-lane-name i { width: 26px; height: 26px; font-size: 15px; }
    .kf-gw-route-send { justify-self: stretch; }

    .kf-gw-dns { padding: 16px; border-radius: 20px; }
    .kf-gw-dns-seg, .kf-gw-verify { width: 100%; }
    .kf-gw-record { padding: 12px; }

    .kf-gw-code { border-radius: 16px; }
    .kf-gw-lang { padding: 0 10px; }
    .kf-gw-copybtn { padding: 0 10px; }
    .kf-gw-copybtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .kf-gw-code pre, .kf-gw-response pre { padding: 12px 14px 16px; font-size: 12px; }
}
