/* ============================================================
   统一身份认证中心 - 账号中心（剪映专业版风格 · 深色）
   ============================================================ */
:root {
  --bg: #141417;
  --panel: #1d1d22;
  --panel-2: #26262d;
  --panel-3: #2f2f37;
  --border: #2e2e36;
  --text: #e9e9ec;
  --text-2: #9b9ba6;
  --text-3: #6b6b76;
  --primary: #5b6cff;
  --primary-2: #8a5bff;
  --primary-grad: linear-gradient(135deg, #5b6cff, #8a5bff);
  --danger: #ff5b5b;
  --ok: #3ecf8e;
  --radius: 10px;
  --radius-sm: 7px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ---------- 通用元素 ---------- */
input, textarea {
  width: 100%;
  padding: 10px 13px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 108, 255, .18);
}
textarea { resize: vertical; min-height: 64px; font-family: inherit; }
input::placeholder, textarea::placeholder { color: var(--text-3); }

button { font-family: inherit; cursor: pointer; }

.brand-logo { width: 52px; height: 52px; flex: none; }
.brand-logo.sm { width: 26px; height: 26px; }

.i16 { width: 16px; height: 16px; }
.i18 { width: 18px; height: 18px; }
.i20 { width: 20px; height: 20px; }
.i40 { width: 40px; height: 40px; }

/* ---------- 登录 / 授权居中容器 ---------- */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(91,108,255,.14), transparent 60%),
    radial-gradient(900px 500px at 90% 100%, rgba(138,91,255,.12), transparent 60%),
    var(--bg);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 30px 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}

.brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.brand-row h1 { font-size: 18px; font-weight: 600; }
.brand-row p { font-size: 12.5px; color: var(--text-2); margin-top: 3px; }

.login-tabs {
  display: flex;
  background: var(--panel-2);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 20px;
}
.login-tabs .tab {
  flex: 1;
  padding: 8px 0;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 13.5px;
  border-radius: 5px;
  transition: all .2s;
}
.login-tabs .tab.active {
  background: var(--panel-3);
  color: var(--text);
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.login-form .field { margin-bottom: 15px; }
.field label {
  display: block;
  font-size: 12.5px;
  color: var(--text-2);
  margin-bottom: 6px;
}

.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; }

.btn-send {
  flex: none;
  padding: 0 13px;
  background: var(--panel-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 12.5px;
  white-space: nowrap;
  transition: all .2s;
}
.btn-send:hover:not(:disabled) { color: var(--primary); border-color: var(--primary); }
.btn-send:disabled { opacity: .5; cursor: not-allowed; }

.btn-icon {
  flex: none;
  width: 38px;
  background: transparent;
  border: none;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color .2s;
}
.btn-icon:hover { color: var(--text); }

.btn-primary {
  padding: 11px 24px;
  background: var(--primary-grad);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  transition: opacity .2s, transform .1s;
}
.btn-primary:hover { opacity: .92; }
.btn-primary:active { transform: scale(.985); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }

.btn-block { width: 100%; margin-top: 4px; }

.login-foot {
  margin-top: 20px;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-3);
}
.login-foot a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}
.login-foot a:hover { text-decoration: underline; }
.login-foot-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.reg-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.5;
  margin-top: 14px;
  cursor: pointer;
}
.reg-agree input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  flex: none;
  padding: 0;
  background: none;
  border: none;
  accent-color: var(--primary);
  box-shadow: none;
}
.reg-agree a { color: var(--primary); text-decoration: none; }

/* ---------- 扫码登录 ---------- */
.qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0;
}
.qr-box {
  width: 200px; height: 200px;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.qr-box canvas, .qr-box img { max-width: 100%; max-height: 100%; }
.qr-empty { color: #999; font-size: 12.5px; text-align: center; }
.qr-status {
  font-size: 12.5px;
  color: var(--text-2);
  margin: 14px 0 6px;
  min-height: 18px;
}
.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 12.5px;
  cursor: pointer;
  padding: 4px;
}
.btn-link:hover { text-decoration: underline; }
.form-hint-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.form-hint-row .btn-link { padding: 4px 0; }
.qr-tip {
  font-size: 11.5px;
  color: var(--text-3);
  text-align: center;
  margin-top: 12px;
  line-height: 1.6;
}

/* ---------- 授权确认 ---------- */
.authz-card { text-align: center; }
.authz-icon {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.authz-title { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.authz-desc { color: var(--text-2); font-size: 14px; }
.authz-desc strong { color: var(--text); font-weight: 600; }

.authz-user {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 20px 0;
  text-align: left;
}
.authz-user img {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--panel-3);
}
.authz-user .az-name { font-size: 14px; font-weight: 500; }
.authz-user .az-sub { font-size: 12px; color: var(--text-3); }

.authz-tip {
  text-align: left;
  background: rgba(91,108,255,.07);
  border: 1px solid rgba(91,108,255,.25);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--text-2);
  margin-bottom: 22px;
}
.authz-tip p { margin-bottom: 6px; color: var(--text); }
.authz-tip ul { padding-left: 18px; }
.authz-tip li { margin: 3px 0; }

.authz-btns { display: flex; gap: 12px; }
.authz-btns .btn-primary { flex: 1.4; }
.authz-btns .btn-ghost {
  flex: 1;
  padding: 11px 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 14px;
  transition: all .2s;
}
.authz-btns .btn-ghost:hover { color: var(--text); border-color: var(--text-3); }

.authz-result { text-align: center; padding: 12px 0; }
.authz-result .ok-mark {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(62,207,142,.12);
  color: var(--ok);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 账号管理布局 ---------- */
.account-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 236px;
  flex: none;
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.sidebar-brand .brand-logo { width: 40px; height: 40px; flex: none; }

.sidebar-nav { flex: 1; padding: 12px 10px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  cursor: pointer;
  font-size: 13.5px;
  margin-bottom: 3px;
  transition: all .18s;
}
.nav-item:hover { background: var(--panel-2); color: var(--text); }
.nav-item.active {
  background: var(--primary-grad);
  color: #fff;
  box-shadow: 0 4px 14px rgba(91,108,255,.35);
}
.nav-item.danger:hover { background: rgba(255,91,91,.1); color: var(--danger); }
.nav-item.danger.active { background: linear-gradient(135deg, #ff5b5b, #ff8a5b); box-shadow: 0 4px 14px rgba(255,91,91,.3); }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}
.side-avatar {
  position: relative;
  width: 34px; height: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: var(--panel-3);
  display: flex; align-items: center; justify-content: center;
}
.side-avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.side-avatar .avatar-default {
  width: 20px; height: 20px;
  color: var(--text-3);
}
.side-avatar img.no-avatar { display: none; }
.side-meta { flex: 1; min-width: 0; }
.btn-logout {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-3);
  font-size: 12px;
  transition: all .2s;
}
.btn-logout:hover {
  color: var(--danger);
  border-color: rgba(255,91,91,.5);
  background: rgba(255,91,91,.08);
}
.btn-logout svg { display: block; }
.side-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-sub {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main {
  flex: 1;
  padding: 32px 40px;
  max-width: 860px;
}

.section { animation: fadeUp .25s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.sec-head { margin-bottom: 18px; }
.sec-head h2 { font-size: 20px; font-weight: 600; }
.sec-head p { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
}
.card.narrow { max-width: 460px; }

.card-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* 个人资料 */
.profile-row { display: flex; gap: 26px; }
.avatar-box { position: relative; flex: none; }
.big-avatar {
  width: 96px; height: 96px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.big-avatar img { width: 100%; height: 100%; object-fit: cover; }
.big-avatar .avatar-default {
  width: 48px; height: 48px;
  color: var(--text-3);
}
.big-avatar img.no-avatar { display: none; }
.avatar-edit {
  position: absolute;
  right: -6px; bottom: -6px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary-grad);
  border: none;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,.4);
  transition: transform .15s;
}
.avatar-edit:hover { transform: scale(1.08); }

.profile-fields { flex: 1; min-width: 0; }
.profile-fields .field { margin-bottom: 14px; }

.profile-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 6px;
}
.fact {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
}
.fact span { display: block; font-size: 11px; color: var(--text-3); margin-bottom: 3px; }
.fact b { font-size: 13px; font-weight: 500; word-break: break-all; }

/* 绑定 */
.bind-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
}
.bind-row:last-child { border-bottom: none; }
.bind-icon {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
}
.bind-info { flex: 1; }
.bind-title { font-size: 14px; font-weight: 500; }
.bind-desc { font-size: 12.5px; color: var(--text-2); margin-top: 3px; }
.badge {
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-2);
}
.badge-ok { color: var(--ok); border-color: rgba(62,207,142,.4); background: rgba(62,207,142,.08); }
.bind-ops { display: flex; gap: 8px; }
/* 新设备登录验证开关 */
.bind-switch {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-2); cursor: pointer;
  flex: none; user-select: none;
}
.bind-switch input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}
.bind-ops .btn-link {
  font-size: 12.5px;
  padding: 6px 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  transition: all .2s;
}
.bind-ops .btn-link:hover { color: var(--primary); border-color: var(--primary); }

/* 设备列表 */
.device-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 6px;
  border-bottom: 1px solid var(--border);
}
.device-item:last-child { border-bottom: none; }
.dev-item-icon {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
}
.dev-info { flex: 1; min-width: 0; }
.dev-name { font-size: 14px; font-weight: 500; }
.dev-meta {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dev-time { font-size: 12px; color: var(--text-3); }
.btn-remove {
  flex: none;
  padding: 6px 12px;
  font-size: 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-3);
  transition: all .2s;
}
.btn-remove:hover { color: var(--danger); border-color: var(--danger); }

.empty { text-align: center; color: var(--text-3); padding: 28px 0; font-size: 13px; }

/* 注销 */
.terms-box {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 18px;
  max-height: 200px;
  overflow-y: auto;
}
.terms-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.terms-body { font-size: 12.5px; color: var(--text-2); line-height: 1.7; white-space: pre-wrap; }

.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  margin-top: 4px;
  cursor: pointer;
}
.agree-row input { width: 15px; height: 15px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.agree-row b { color: var(--text); }

.btn-danger {
  padding: 11px 24px;
  background: linear-gradient(135deg, #ff5b5b, #ff8a5b);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: opacity .2s;
}
.btn-danger:hover { opacity: .9; }
.btn-danger:disabled { opacity: .5; cursor: not-allowed; }

.delete-status {
  display: flex;
  align-items: center;
  gap: 14px;
}
.delete-status .ds-icon {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.ds-warn { background: rgba(255,138,91,.12); color: #ff8a5b; }
.ds-ok { background: rgba(62,207,142,.12); color: var(--ok); }
.ds-title { font-size: 14.5px; font-weight: 600; }
.ds-desc { font-size: 12.5px; color: var(--text-2); margin-top: 3px; }

/* ---------- 弹层 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(10,10,13,.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%;
  max-width: 400px;
  background: #222227;   /* 弹层固定深色，避免文字与内容重叠 */
  border: 1px solid #33333c;
  border-radius: 12px;
  padding: 24px;
  animation: pop .2s ease;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-head h3 { font-size: 16px; font-weight: 600; }
.modal .field { margin-bottom: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.modal .btn-cancel {
  padding: 9px 18px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 13.5px;
}
.modal .btn-cancel:hover { color: var(--text); }

/* ---------- 统一身份协议更新弹窗 ---------- */
.agr-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.agr-head svg { width: 30px; height: 30px; color: var(--primary); flex: none; }
.agr-head h3 { margin: 0; font-size: 17px; font-weight: 600; }
.agr-desc { font-size: 13px; line-height: 1.7; color: var(--text-2); margin: 0; }
.agr-desc b { color: var(--primary); }
.agr-link { margin: 10px 0 0; font-size: 13px; }
.agr-link a { color: var(--primary); text-decoration: none; border-bottom: 1px dashed var(--primary); padding-bottom: 1px; }
.agr-link a:hover { opacity: .85; }
.agr-btns { margin-top: 22px; }

/* ---------- Toast ---------- */
#toast-root {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.toast {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: #222227;
  border: 1px solid #33333c;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  animation: toastIn .22s ease;
}
.toast.success { border-color: rgba(62,207,142,.5); color: var(--ok); }
.toast.error { border-color: rgba(255,91,91,.5); color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .account-shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; }
  .sidebar-nav { display: flex; overflow-x: auto; padding: 8px; }
  .nav-item { flex: none; }
  .main { padding: 16px; }
  .card { padding: 18px; }
  .sec-head h2 { font-size: 18px; }
  .profile-row { flex-direction: column; align-items: center; }
  .profile-fields { width: 100%; }
  .profile-facts { grid-template-columns: 1fr; }
  .card-actions { flex-direction: column-reverse; }
  .card-actions .btn-primary { width: 100%; }

  /* 登录页 */
  .auth-shell { padding: 16px; }
  .login-card { padding: 26px 20px 18px; }
  .brand-row { gap: 10px; margin-bottom: 20px; }
  .brand-row h1 { font-size: 16px; }
  .brand-row p { font-size: 11.5px; }

  /* 弹层 */
  .modal { padding: 20px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn-primary,
  .modal-actions .btn-cancel { width: 100%; }

  /* 绑定/开关行：图标+信息+操作纵向排列 */
  .bind-row { flex-wrap: wrap; gap: 10px; padding: 14px 2px; }
  .bind-info { flex-basis: calc(100% - 54px); }
  .bind-ops { width: 100%; }
  .bind-ops .btn-link { flex: 1; text-align: center; }
  .bind-switch { width: 100%; justify-content: space-between; }
}

@media (max-width: 420px) {
  .brand-logo { width: 44px; height: 44px; }
  .sidebar-brand .brand-logo { width: 34px; height: 34px; }
}

/* ============================================================
   滑块验证码（发码前安全验证，剪映深色风格）
   ============================================================ */
.captcha-mask {
  position: fixed;
  inset: 0;
  background: rgba(10,10,13,.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  animation: fadeIn .18s ease;
}
.captcha-modal {
  width: 100%;
  max-width: 360px;
  background: #222227;
  border: 1px solid #33333c;
  border-radius: 12px;
  padding: 22px;
  animation: pop .2s ease;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.captcha-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.captcha-head h3 { font-size: 16px; font-weight: 600; }
.captcha-close {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-2);
  cursor: pointer;
}
.captcha-close:hover { background: var(--panel-2); color: var(--text); }
.captcha-close svg { display: block; fill: currentColor; }
.captcha-body { display: flex; flex-direction: column; align-items: center; }
.captcha-thumb svg { display: block; fill: currentColor; }
.captcha-img {
  position: relative;
  width: 280px; height: 155px;
  border-radius: 8px;
  overflow: hidden;
  user-select: none;
}
.captcha-img img { display: block; }
#captcha-bg { width: 280px; height: 155px; }
.captcha-slide-img {
  position: absolute;
  left: 0;
  width: 44px;
  height: 155px;
  pointer-events: none;
}
.captcha-track {
  position: relative;
  width: 280px;
  height: 40px;
  margin-top: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.captcha-track-bg {
  position: absolute;
  top: 0; left: 0;
  width: 0;
  height: 100%;
  background: rgba(62,207,142,.16);
  transition: width .1s linear;
}
.captcha-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-3);
  pointer-events: none;
}
.captcha-thumb {
  position: absolute;
  top: 0; left: 0;
  width: 44px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-grad);
  border: none;
  border-radius: 7px;
  color: #fff;
  cursor: grab;
  touch-action: none;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.captcha-thumb:active { cursor: grabbing; }
.captcha-thumb.success { background: linear-gradient(135deg, #3ecf8e, #2bb37a); }

