:root {
  --ghk-cyan: #22d3ee;
  --ghk-blue: #0ea5e9;
  --ghk-mint: #34d399;
  --ghk-ink: #06101e;
  --ghk-panel: #09172a;
  --ghk-line: rgba(125, 211, 252, .16);
  --ghk-text: #eaf7ff;
  --ghk-muted: #8da8bf;
}

.ghk-support-entry {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(34, 211, 238, .22);
  border-radius: 18px;
  text-align: left;
  background: linear-gradient(135deg, rgba(8, 32, 54, .92), rgba(4, 16, 31, .86));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 16px 42px rgba(0,0,0,.16);
  overflow: hidden;
}

.ghk-support-entry::after {
  position: absolute;
  top: -80px;
  right: 12%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(34,211,238,.08);
  filter: blur(34px);
  content: "";
  pointer-events: none;
}

.ghk-entry-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(34,211,238,.34);
  border-radius: 16px;
  color: #8cecff;
  background: linear-gradient(145deg, rgba(10,62,88,.9), rgba(7,26,47,.95));
  box-shadow: 0 0 24px rgba(14,165,233,.16);
}

.ghk-headset-logo {
  position: relative;
  display: block;
  width: 27px;
  height: 24px;
  margin-top: 3px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 15px 15px 5px 5px;
  filter: drop-shadow(0 0 7px rgba(98,232,255,.38));
}

.ghk-headset-logo::before {
  position: absolute;
  top: 9px;
  left: -5px;
  width: 6px;
  height: 11px;
  border-radius: 4px;
  background: currentColor;
  box-shadow: 24px 0 0 currentColor;
  content: "";
}

.ghk-headset-logo::after {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 11px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-radius: 0 0 8px;
  content: "";
}

.ghk-headset-logo i {
  position: absolute;
  right: 4px;
  bottom: -4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.ghk-entry-copy strong,
.ghk-entry-copy span { display: block; }
.ghk-entry-copy strong { color: var(--ghk-text); font-size: 15px; letter-spacing: .02em; }
.ghk-entry-copy span { margin-top: 5px; color: var(--ghk-muted); font-size: 12px; }

.ghk-entry-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  min-width: 178px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  color: #031321;
  background: linear-gradient(135deg, #38bdf8, #22d3ee);
  box-shadow: 0 12px 30px rgba(14,165,233,.22), inset 0 1px 0 rgba(255,255,255,.42);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}

.ghk-entry-button:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(14,165,233,.32); }

.ghk-badge {
  display: none;
  min-width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #071426;
  border-radius: 99px;
  color: #fff;
  background: #ff445f;
  box-shadow: 0 4px 12px rgba(255,68,95,.4);
  font-size: 10px;
  line-height: 1;
}
.ghk-badge[data-show="true"] { display: inline-flex; }

.ghk-root { position: fixed; inset: 0; z-index: 9998; pointer-events: none; }
.ghk-root * { box-sizing: border-box; }

.ghk-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 11px;
  padding: 8px 16px 8px 9px;
  border: 1px solid rgba(34,211,238,.3);
  border-radius: 18px;
  color: var(--ghk-text);
  background: linear-gradient(145deg, rgba(9,31,52,.97), rgba(5,16,30,.98));
  box-shadow: 0 20px 55px rgba(0,0,0,.38), 0 0 0 1px rgba(255,255,255,.02) inset;
  cursor: pointer;
  pointer-events: auto;
  transition: transform .2s ease, border-color .2s ease;
}
.ghk-launcher:hover { transform: translateY(-3px); border-color: rgba(34,211,238,.58); }
.ghk-launcher-icon {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #042035;
  background: linear-gradient(135deg, #38bdf8, #22d3ee);
  box-shadow: 0 8px 22px rgba(34,211,238,.22);
  color: #042035;
}
.ghk-launcher-icon .ghk-headset-logo { width: 24px; height: 21px; filter: none; }
.ghk-launcher-icon .ghk-headset-logo::before { top: 8px; box-shadow: 21px 0 0 currentColor; }
.ghk-launcher-copy { text-align: left; }
.ghk-launcher-copy strong,
.ghk-launcher-copy small { display: block; }
.ghk-launcher-copy strong { color: #f1fbff; font-size: 13px; }
.ghk-launcher-copy small { margin-top: 3px; color: #7f9bb3; font-size: 10px; }
.ghk-launcher .ghk-badge { position: absolute; top: -7px; right: -7px; }

.ghk-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(0,7,17,.56);
  backdrop-filter: blur(5px);
  transition: opacity .24s ease;
}

.ghk-gate {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(430px, calc(100vw - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(34,211,238,.26);
  border-radius: 24px;
  opacity: 0;
  pointer-events: none;
  color: var(--ghk-text);
  background: linear-gradient(155deg, rgba(10,28,49,.98), rgba(5,16,29,.99));
  box-shadow: 0 30px 100px rgba(0,0,0,.64), 0 0 0 1px rgba(255,255,255,.025) inset;
  transform: translate(-50%,-47%) scale(.96);
  transition: opacity .24s ease, transform .24s ease;
}

.ghk-gate::before {
  display: block;
  height: 4px;
  background: linear-gradient(90deg,#38bdf8,#22d3ee 45%,#34d399);
  box-shadow: 0 0 22px rgba(34,211,238,.48);
  content: "";
}

.ghk-gate-close {
  position: absolute;
  top: 17px;
  right: 17px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(125,211,252,.12);
  border-radius: 11px;
  color: #7290a7;
  background: rgba(3,12,24,.45);
  cursor: pointer;
  font: inherit;
  font-size: 17px;
}

.ghk-gate-body { padding: 34px 30px 28px; text-align: center; }
.ghk-gate-emblem {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 0 auto 14px;
  place-items: center;
  border: 1px solid rgba(34,211,238,.38);
  border-radius: 21px;
  color: #8bedff;
  background: linear-gradient(145deg,rgba(11,64,90,.9),rgba(7,27,48,.98));
  box-shadow: 0 0 0 7px rgba(34,211,238,.035), 0 14px 34px rgba(0,0,0,.26), 0 0 30px rgba(34,211,238,.12);
}
.ghk-gate-emblem .ghk-headset-logo { width: 31px; height: 27px; }
.ghk-gate-emblem .ghk-headset-logo::before { top: 11px; box-shadow: 28px 0 0 currentColor; }
.ghk-gate-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(52,211,153,.16);
  border-radius: 99px;
  color: #83daba;
  background: rgba(16,74,61,.2);
  font-size: 9px;
  letter-spacing: .08em;
}
.ghk-gate-status i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 9px #34d399; }
.ghk-gate h2 { margin: 0; color: #f1fbff; font-size: 23px; letter-spacing: .01em; }
.ghk-gate-intro { margin: 12px auto 0; color: #8ba5b9; font-size: 12px; line-height: 1.85; }
.ghk-gate-services { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 20px 0 14px; }
.ghk-gate-services span {
  padding: 10px 6px;
  border: 1px solid rgba(125,211,252,.12);
  border-radius: 11px;
  color: #a8c9da;
  background: rgba(8,29,47,.62);
  font-size: 10px;
}
.ghk-gate-alert {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin: 0 0 18px;
  padding: 13px 14px;
  border: 1px solid rgba(251,191,36,.2);
  border-radius: 12px;
  color: #c5b482;
  text-align: left;
  background: rgba(93,60,7,.14);
  font-size: 10px;
  line-height: 1.65;
}
.ghk-gate-alert b { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 8px; color: #f5c95f; background: rgba(251,191,36,.1); font-size: 12px; }
.ghk-gate-confirm {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  color: #042033;
  background: linear-gradient(135deg,#38bdf8,#22d3ee);
  box-shadow: 0 14px 30px rgba(14,165,233,.22), inset 0 1px 0 rgba(255,255,255,.38);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}
.ghk-gate-foot { margin: 10px 0 0; color: #4e6b81; font-size: 8px; }

.ghk-panel {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: min(420px, calc(100vw - 36px));
  height: min(700px, calc(100dvh - 44px));
  grid-template-rows: auto minmax(0,1fr) auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(125,211,252,.2);
  border-radius: 24px;
  opacity: 0;
  pointer-events: none;
  color: var(--ghk-text);
  background: linear-gradient(180deg, #0a1a2e, #071321 72%);
  box-shadow: 0 28px 90px rgba(0,0,0,.58), 0 0 0 1px rgba(255,255,255,.025) inset;
  transform: translateY(18px) scale(.97);
  transform-origin: right bottom;
  transition: opacity .24s ease, transform .24s ease;
}

.ghk-root[data-open="true"], .ghk-root[data-gate="true"] { pointer-events: auto; }
.ghk-root[data-open="true"] .ghk-backdrop, .ghk-root[data-gate="true"] .ghk-backdrop { opacity: 1; }
.ghk-root[data-open="true"] .ghk-panel { opacity: 1; transform: none; }
.ghk-root[data-open="true"] .ghk-panel { pointer-events: auto; }
.ghk-root[data-gate="true"] .ghk-gate { opacity: 1; pointer-events: auto; transform: translate(-50%,-50%) scale(1); }
.ghk-root[data-open="true"] .ghk-launcher, .ghk-root[data-gate="true"] .ghk-launcher { opacity: 0; pointer-events: none; transform: translateY(12px); }

.ghk-header {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 17px 18px;
  border-bottom: 1px solid rgba(125,211,252,.1);
  background: radial-gradient(circle at 10% 0, rgba(14,165,233,.18), transparent 44%), rgba(7,21,39,.96);
}
.ghk-logo {
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(251,191,36,.34);
  border-radius: 14px;
  background: #06152a;
  box-shadow: 0 0 24px rgba(34,211,238,.14);
}
.ghk-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ghk-title strong { display: block; color: #f3fbff; font-size: 15px; letter-spacing: .03em; }
.ghk-status { display: flex; align-items: center; gap: 6px; margin-top: 5px; color: #88a8be; font-size: 10px; }
.ghk-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ghk-mint); box-shadow: 0 0 10px var(--ghk-mint); }
.ghk-header-actions { display: flex; gap: 7px; }
.ghk-icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(125,211,252,.13);
  border-radius: 11px;
  color: #a9c4d7;
  background: rgba(4,14,27,.64);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
}
.ghk-icon-button:hover { color: #fff; border-color: rgba(34,211,238,.4); }

.ghk-thread {
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
  scrollbar-color: rgba(70,123,157,.45) transparent;
}
.ghk-session-note { margin: 0 0 18px; color: #56728a; text-align: center; font-size: 9px; letter-spacing: .08em; }
.ghk-message { display: flex; gap: 10px; margin: 0 0 16px; align-items: flex-start; }
.ghk-message[data-role="user"] { justify-content: flex-end; }
.ghk-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(34,211,238,.2);
  border-radius: 9px;
  color: #7eeaff;
  background: rgba(9,43,66,.8);
  font-size: 11px;
  font-weight: 800;
}
.ghk-message[data-role="agent"] .ghk-avatar { margin-top: 17px; overflow: hidden; border-color: rgba(251,191,36,.3); background: #06152a; }
.ghk-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ghk-bubble-wrap { max-width: 78%; }
.ghk-agent-name { margin: 0 0 5px 3px; color: #6f91aa; font-size: 9px; }
.ghk-bubble {
  padding: 11px 13px;
  border: 1px solid rgba(125,211,252,.12);
  border-radius: 6px 16px 16px 16px;
  color: #cfe4f1;
  background: rgba(14,35,57,.86);
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}
.ghk-message[data-role="user"] .ghk-bubble {
  border-color: rgba(34,211,238,.28);
  border-radius: 16px 6px 16px 16px;
  color: #061624;
  background: linear-gradient(135deg, #3bc1f3, #36dfdf);
  box-shadow: 0 8px 22px rgba(14,165,233,.13);
}
.ghk-time { margin-top: 4px; color: #49667f; font-size: 8px; }
.ghk-message[data-role="user"] .ghk-time { text-align: right; }

.ghk-quick-title { margin: 20px 0 9px; color: #647f96; font-size: 9px; letter-spacing: .08em; }
.ghk-quick-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ghk-quick {
  padding: 8px 11px;
  border: 1px solid rgba(34,211,238,.16);
  border-radius: 11px;
  color: #9bdcf0;
  background: rgba(8,31,50,.62);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
}
.ghk-quick:hover { border-color: rgba(34,211,238,.48); background: rgba(10,50,72,.72); }

.ghk-typing { display: none; align-items: center; gap: 4px; padding: 10px 13px; }
.ghk-typing[data-show="true"] { display: flex; }
.ghk-typing i { width: 5px; height: 5px; border-radius: 50%; background: #6ea2bc; animation: ghkTyping 1s infinite ease-in-out; }
.ghk-typing i:nth-child(2) { animation-delay: .15s; }
.ghk-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ghkTyping { 0%,60%,100% { opacity:.35; transform:translateY(0); } 30% { opacity:1; transform:translateY(-3px); } }

.ghk-compose-wrap { padding: 12px 14px 14px; border-top: 1px solid rgba(125,211,252,.1); background: rgba(5,16,29,.96); }
.ghk-compose {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
  gap: 9px;
  padding: 8px 8px 8px 13px;
  border: 1px solid rgba(125,211,252,.16);
  border-radius: 15px;
  background: rgba(8,25,43,.88);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ghk-compose:focus-within { border-color: rgba(34,211,238,.48); box-shadow: 0 0 0 3px rgba(34,211,238,.06); }
.ghk-input { width: 100%; min-height: 36px; max-height: 96px; resize: none; border: 0; outline: 0; color: #e8f7ff; background: transparent; font: inherit; font-size: 12px; line-height: 1.55; }
.ghk-input::placeholder { color: #537087; }
.ghk-send {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: #052033;
  background: linear-gradient(135deg, #38bdf8, #22d3ee);
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
}
.ghk-send:disabled { opacity: .4; cursor: default; }
.ghk-security { display: flex; justify-content: center; gap: 7px; margin-top: 9px; color: #4f6c83; font-size: 8px; letter-spacing: .04em; }

@media (max-width: 640px) {
  .ghk-support-entry { grid-template-columns: auto minmax(0,1fr); padding: 15px; }
  .ghk-entry-button { grid-column: 1 / -1; width: 100%; min-width: 0; }
  .ghk-entry-copy strong { font-size: 14px; }
  .ghk-launcher { right: 14px; bottom: 14px; min-height: 54px; padding: 7px; border-radius: 17px; }
  .ghk-launcher-copy { display: none; }
  .ghk-launcher-icon { width: 42px; height: 42px; }
  .ghk-panel {
    top: var(--ghk-vv-top, 0px);
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: var(--ghk-vv-height, 100svh);
    max-height: none;
    border: 0;
    border-radius: 0;
    transform: translateY(24px);
  }
  .ghk-root[data-open="true"] .ghk-backdrop { display: none; }
  .ghk-gate { width: calc(100vw - 28px); border-radius: 22px; }
  .ghk-gate-body { padding: 31px 20px 23px; }
  .ghk-gate h2 { font-size: 21px; }
  .ghk-gate-intro { max-width: 300px; font-size: 11px; }
  .ghk-gate-services { gap: 6px; }
  .ghk-gate-services span { padding: 9px 3px; font-size: 9px; }
  .ghk-header { padding: max(14px, env(safe-area-inset-top)) 15px 14px; }
  .ghk-logo { width: 44px; height: 44px; border-radius: 13px; }
  .ghk-thread { overscroll-behavior: contain; padding: 16px 14px; }
  .ghk-compose-wrap { padding: 10px 12px max(12px, env(safe-area-inset-bottom)); }
  .ghk-bubble-wrap { max-width: 82%; }
  .ghk-input { font-size: 16px; }
  .ghk-quick-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .ghk-quick { width: 100%; min-width: 0; padding: 9px 7px; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .ghk-root *, .ghk-entry-button { animation: none !important; transition: none !important; }
}
