:root{
  --wxcc-bg: #0b1020;
  --wxcc-card: rgba(255,255,255,.08);
  --wxcc-card2: rgba(255,255,255,.12);
  --wxcc-text: rgba(255,255,255,.92);
  --wxcc-muted: rgba(255,255,255,.68);
  --wxcc-accent: #7c5cff;
  --wxcc-accent2: #22c55e;
  --wxcc-danger: #ef4444;
  --wxcc-shadow: 0 20px 60px rgba(0,0,0,.45);
  --wxcc-radius: 18px;
  --wxcc-font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

body{
  margin:0;
  font-family: var(--wxcc-font);
  background: radial-gradient(1200px 800px at 20% 10%, rgba(124,92,255,.25), transparent 60%),
              radial-gradient(900px 700px at 80% 20%, rgba(34,197,94,.18), transparent 55%),
              #050713;
  color: var(--wxcc-text);
}

.page{
  max-width: 900px;
  margin: 48px auto;
  padding: 0 20px;
}

/* Floating button */
.wxcc-fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124,92,255,1), rgba(34,197,94,1));
  border: 0;
  box-shadow: var(--wxcc-shadow);
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  color: #fff;
  transition: transform .15s ease, filter .15s ease;
  z-index: 9999;
}
.wxcc-fab:hover{ transform: translateY(-1px); filter: brightness(1.05); }
.wxcc-fab:active{ transform: translateY(0px) scale(.98); }

.wxcc-fab svg{ width: 26px; height: 26px; }

/* Panel */
.wxcc-panel{
  position: fixed;
  right: 18px;
  bottom: 88px;
  width: min(380px, calc(100vw - 36px));
  height: 560px;
  max-height: calc(100vh - 120px);
  border-radius: var(--wxcc-radius);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--wxcc-shadow);
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 9999;
}

.wxcc-panel.open{ display:flex; }

.wxcc-header{
  padding: 14px 14px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.wxcc-title{
  display:flex;
  flex-direction: column;
  line-height: 1.1;
}
.wxcc-title strong{ font-size: 14px; letter-spacing: .2px; }
.wxcc-title span{ font-size: 12px; color: var(--wxcc-muted); margin-top: 4px; }

.wxcc-header-actions{
  display:flex;
  gap: 8px;
}
.wxcc-iconbtn{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--wxcc-text);
  cursor:pointer;
}
.wxcc-iconbtn:hover{ background: rgba(255,255,255,.14); }

.wxcc-body{
  padding: 14px;
  overflow: auto;
  flex: 1;
}

.wxcc-msg{
  display:flex;
  margin: 10px 0;
}
.wxcc-msg.you{ justify-content:flex-end; }
.wxcc-bubble{
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.35;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
}
.wxcc-msg.you .wxcc-bubble{
  background: linear-gradient(135deg, rgba(124,92,255,.85), rgba(34,197,94,.55));
  border-color: rgba(255,255,255,.16);
}
.wxcc-meta{
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255,255,255,.55);
}

.wxcc-status{
  display:inline-flex;
  gap: 8px;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 12px;
  color: var(--wxcc-muted);
}
.wxcc-dot{
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255,255,255,.35);
}
.wxcc-dot.ok{ background: var(--wxcc-accent2); }
.wxcc-dot.bad{ background: var(--wxcc-danger); }

.wxcc-footer{
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
  display:flex;
  gap: 10px;
  align-items:center;
  background: rgba(0,0,0,.12);
}

.wxcc-input{
  flex:1;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: var(--wxcc-text);
  outline: none;
  font-size: 13px;
}
.wxcc-input::placeholder{ color: rgba(255,255,255,.55); }

.wxcc-send{
  border:0;
  border-radius: 14px;
  padding: 10px 12px;
  cursor:pointer;
  color:#fff;
  background: linear-gradient(135deg, rgba(124,92,255,1), rgba(34,197,94,1));
}
.wxcc-send:disabled{
  opacity: .55;
  cursor: not-allowed;
}

.wxcc-toast{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.75);
}