/* ============ 深色科技感主题 ============ */
:root {
  --bg: #0b0f17;
  --bg-soft: #111827;
  --bg-card: #151c2c;
  --bg-card-hover: #1a2336;
  --border: #223048;
  --text: #e6edf7;
  --text-dim: #8b98ad;
  --text-faint: #5c6878;
  --accent: #4f8cff;
  --accent-2: #22d3ee;
  --accent-3: #a78bfa;
  --green: #34d399;
  --red: #f87171;
  --amber: #fbbf24;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* 背景光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(800px 500px at 15% -10%, rgba(79, 140, 255, 0.12), transparent 60%),
    radial-gradient(700px 500px at 85% 110%, rgba(34, 211, 238, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

img { max-width: 100%; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ============ 导航栏 ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(11, 15, 23, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.logo:hover { color: var(--text); }
.logo .mark {
  width: 27px; height: 34px;
  display: block;
  flex: 0 0 auto;
}
.logo .mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  display: block;
  padding: 8px 16px;
  color: var(--text-dim);
  border-radius: 8px;
  font-size: 15px;
  transition: all .18s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-card); }
.nav-links a.active { color: var(--accent-2); background: var(--bg-card); }

.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; }

/* ============ Hero ============ */
.hero {
  padding: 90px 0 70px;
  text-align: center;
}
.hero .avatar {
  width: 104px; height: 133px;
  margin: 0 auto 20px;
  display: block;
  background: none;
  border: none;
}
.hero .avatar img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(120deg, #fff, #9db8f5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .subtitle {
  margin-top: 12px;
  font-size: 18px;
  color: var(--accent-2);
  letter-spacing: 1px;
}
.hero .bio {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--text-dim);
  font-size: 15px;
}
.hero .cta { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), #3b6fe0); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,140,255,.35); color: #fff; }
.btn-ghost { border-color: var(--border); color: var(--text-dim); background: transparent; }
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }
.btn-danger { background: #3a1d1d; color: var(--red); border-color: #5b2b2b; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ============ 区块 ============ */
.section { padding: 70px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.section-title { font-size: 28px; font-weight: 800; letter-spacing: -0.3px; }
.section-title .accent-dot { color: var(--accent-2); }
.section-more { font-size: 14px; color: var(--text-dim); }
.section-more:hover { color: var(--accent-2); }

/* ============ 卡片 ============ */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all .2s;
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: #2e4264;
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card .icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  font-size: 26px;
  border-radius: 12px;
  background: #1b2740;
  margin-bottom: 16px;
}
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--accent-2); }
.card p { color: var(--text-dim); font-size: 14px; }

/* 标签 */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(79, 140, 255, 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(79, 140, 255, 0.25);
}
.tag.green { background: rgba(52, 211, 153, 0.12); color: var(--green); border-color: rgba(52,211,153,.25); }
.tag.purple { background: rgba(167, 139, 250, 0.12); color: var(--accent-3); border-color: rgba(167,139,250,.25); }

/* 状态徽章 */
.status { font-size: 12px; padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.status.online { background: rgba(52,211,153,.12); color: var(--green); }
.status.offline { background: rgba(248,113,113,.12); color: var(--red); }
.status.developing { background: rgba(251,191,36,.12); color: var(--amber); }

/* ============ 文章 ============ */
.post-card { display: block; color: var(--text); }
.post-card .meta { display: flex; gap: 14px; color: var(--text-faint); font-size: 13px; margin-top: 12px; }
.post-card .meta .cat { color: var(--accent-2); }

/* ============ 评价 ============ */
.review-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.review-item:last-child { border-bottom: none; }
.review-head { display: flex; align-items: center; justify-content: space-between; }
.review-head .name { font-weight: 600; font-size: 15px; }
.review-head .time { font-size: 12px; color: var(--text-faint); }
.stars { color: var(--amber); letter-spacing: 2px; font-size: 14px; }
.review-content { color: var(--text-dim); font-size: 14px; margin-top: 8px; }

/* ============ 表单 ============ */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.input, .textarea, .select {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  transition: border-color .18s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,140,255,.15);
}
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; }

/* 评分选择器 */
.rating-input { display: flex; gap: 6px; font-size: 28px; cursor: pointer; }
.rating-input span { color: #33405a; transition: color .15s; }
.rating-input span.on { color: var(--amber); }
.rating-input input { display: none; }

/* 提示信息 */
.flash { padding: 12px 16px; border-radius: 9px; margin-bottom: 18px; font-size: 14px; }
.flash.success { background: rgba(52,211,153,.12); color: var(--green); border: 1px solid rgba(52,211,153,.3); }
.flash.error { background: rgba(248,113,113,.12); color: var(--red); border: 1px solid rgba(248,113,113,.3); }

/* ============ 文章详情 ============ */
.article { max-width: 760px; margin: 0 auto; }
.article-header { margin-bottom: 30px; }
.article-header h1 { font-size: 32px; font-weight: 800; line-height: 1.35; }
.article-header .meta { color: var(--text-faint); font-size: 14px; margin-top: 14px; display: flex; gap: 16px; flex-wrap: wrap; }
.article-body { font-size: 16px; color: #c7d2e4; }
.article-body h2 { font-size: 22px; margin: 32px 0 14px; color: var(--text); }
.article-body h3 { font-size: 18px; margin: 26px 0 12px; color: var(--text); }
.article-body p { margin: 14px 0; }
.article-body ul, .article-body ol { margin: 14px 0; padding-left: 24px; }
.article-body li { margin: 6px 0; }
.article-body strong { color: var(--accent-2); }
.article-body code { font-family: var(--mono); background: var(--bg-soft); padding: 2px 6px; border-radius: 5px; font-size: 14px; color: var(--accent-3); }
.article-body pre { background: #0d1320; border: 1px solid var(--border); border-radius: 10px; padding: 18px; overflow-x: auto; margin: 18px 0; }
.article-body pre code { background: none; padding: 0; color: #a9c1e8; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  background: rgba(79,140,255,.06);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin: 18px 0;
  color: var(--text-dim);
}

/* ============ 页脚 ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}
.footer .links { display: flex; gap: 20px; justify-content: center; margin-bottom: 14px; }

/* ============ 后台布局 ============ */
.admin-wrap { display: flex; min-height: calc(100vh - 64px); }
.admin-sidebar {
  width: 220px;
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  background: var(--bg-soft);
  flex-shrink: 0;
}
.admin-sidebar a {
  display: block;
  padding: 10px 14px;
  color: var(--text-dim);
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 4px;
}
.admin-sidebar a:hover { background: var(--bg-card); color: var(--text); }
.admin-sidebar a.active { background: var(--bg-card); color: var(--accent-2); }
.admin-main { flex: 1; padding: 30px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.admin-table th { color: var(--text-faint); font-weight: 600; font-size: 13px; }
.admin-table tr:hover td { background: var(--bg-card); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.stat-card .num { font-size: 30px; font-weight: 800; color: var(--accent-2); }
.stat-card .lbl { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

/* 图表 */
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding: 10px 0; }
.bar-chart .bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bar-chart .bar { width: 100%; background: linear-gradient(180deg, var(--accent), #2f5cc0); border-radius: 6px 6px 0 0; min-height: 4px; }
.bar-chart .bar-lbl { font-size: 11px; color: var(--text-faint); }

/* 分页 */
.pagination { display: flex; gap: 8px; margin-top: 20px; }
.pagination a, .pagination span {
  padding: 7px 13px; border-radius: 8px; font-size: 14px;
  border: 1px solid var(--border); color: var(--text-dim);
}
.pagination a:hover { color: var(--text); border-color: var(--accent); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 空状态 */
.empty { text-align: center; padding: 60px 20px; color: var(--text-faint); }
.empty .big { font-size: 48px; margin-bottom: 14px; }

/* ============ 培训课程 ============ */
.course-card { overflow: hidden; }
.course-cover {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0d1522;
}
.course-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.course-card:hover .course-cover img { transform: scale(1.04); }
.course-badge {
  position: absolute;
  right: 10px; bottom: 10px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* 幻灯片查看器 */
.course-viewer-wrap { min-height: 70vh; }
.viewer { user-select: none; }
.viewer-stage {
  position: relative;
  background: #0d1522;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.viewer-stage img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.viewer-loading {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--text-faint);
  font-size: 14px;
  background: rgba(13,21,34,.6);
  pointer-events: none;
}
.viewer-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  border: none; border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s, background .2s;
  backdrop-filter: blur(4px);
}
.viewer-stage:hover .viewer-nav { opacity: 1; }
.viewer-nav:hover { background: rgba(79,140,255,.7); }
.viewer-nav.prev { left: 12px; }
.viewer-nav.next { right: 12px; }
.viewer-fs {
  position: absolute; right: 12px; top: 12px;
  width: 38px; height: 38px;
  border: none; border-radius: 9px;
  background: rgba(0,0,0,.45);
  color: #fff; font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s, background .2s;
}
.viewer-stage:hover .viewer-fs { opacity: 1; }
.viewer-fs:hover { background: rgba(79,140,255,.7); }

.viewer-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  flex-wrap: wrap;
}
.vbtn {
  padding: 7px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.vbtn:hover { color: var(--text); border-color: var(--accent); }
.viewer-progress { flex: 1; min-width: 120px; }
.viewer-progress input[type=range] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}
.viewer-page { font-size: 13px; color: var(--text-dim); white-space: nowrap; }
.viewer-page b { color: var(--accent-2); font-size: 15px; }

.viewer-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-height: 320px;
  overflow-y: auto;
}
.thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  background: #0d1522;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb span {
  position: absolute; left: 6px; bottom: 6px;
  background: rgba(0,0,0,.6);
  color: #fff; font-size: 11px;
  padding: 1px 7px; border-radius: 10px;
}
.thumb:hover { border-color: var(--accent); }
.thumb.active { border-color: var(--accent-2); }

/* 全屏模式 */
.viewer:fullscreen { background: var(--bg); padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.viewer:fullscreen .viewer-stage { border: none; }

/* ============ 响应式 ============ */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px;
  }
  .nav-links.open { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-wrap { flex-direction: column; }
  .admin-sidebar { width: 100%; display: flex; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--border); }
  .admin-sidebar a { flex: 1; text-align: center; }
}

/* 文章内 Markdown 表格 */
.article-body table.md-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  overflow: hidden;
  border-radius: 8px;
}
.article-body .md-table th,
.article-body .md-table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
  line-height: 1.6;
}
.article-body .md-table th {
  background: rgba(79, 140, 255, 0.12);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.article-body .md-table td { color: var(--text-dim); }
.article-body .md-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.03); }
.article-body .md-table tbody tr:hover { background: rgba(79, 140, 255, 0.06); }

/* ============ 打分 / 评价弹层 ============ */
body.modal-open { overflow: hidden; }
.modal-mask {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(3, 6, 12, 0.72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-mask[hidden] { display: none; }
.modal-box {
  position: relative;
  width: 100%; max-width: 460px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}
.modal-box h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.modal-box .modal-sub { color: var(--text-faint); font-size: 13px; margin-bottom: 18px; }
.modal-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; cursor: pointer;
  font-size: 24px; line-height: 1; color: var(--text-faint);
  padding: 2px 8px; border-radius: 7px;
}
.modal-close:hover { color: var(--text); background: var(--bg-card-hover); }
.modal-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.modal-msg { display: none; font-size: 14px; border-radius: 9px; padding: 10px 14px; margin-bottom: 16px; }
.modal-msg.ok { display: block; background: rgba(52,211,153,.12); color: var(--green); border: 1px solid rgba(52,211,153,.3); }
.modal-msg.bad { display: block; background: rgba(248,113,113,.12); color: var(--red); border: 1px solid rgba(248,113,113,.3); }
@media (max-width: 520px) {
  .modal-box { padding: 20px; }
}

/* ============ 合作咨询弹层 ============ */
.modal-box .select {
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%239aa7bd' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.modal-box .select option { background: var(--bg-card); color: var(--text); }

/* ============ 后台：访问统计 ============ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 980px) { .two-col { grid-template-columns: 1fr; } }

.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-title { font-size: 14px; font-weight: 600; color: var(--text); }
.card-note { font-size: 12px; color: var(--text-faint); margin-top: 10px; }

/* 表格固定布局：UA / Referer 这类超长字段不再把整表撑宽（td 上的 max-width 在 auto 布局下是无效的） */
.visits-table, .rank-table { table-layout: fixed; }
.visits-table th, .visits-table td,
.rank-table th, .rank-table td {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rank-table th, .rank-table td { padding: 9px 12px; }
.visits-table code, .rank-table code {
  font-family: var(--mono); font-size: 13px; color: var(--accent-2);
}

/* 占比条形图 */
.bar-track { height: 8px; border-radius: 4px; background: var(--bg-soft); overflow: hidden; }
.mini-bar { height: 100%; min-width: 2px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), #2f5cc0); }

/* 分页省略号 */
.pagination .gap { padding: 7px 4px; border: none; color: var(--text-faint); background: none; }

/* ============ 合作意向滑入卡片（阈值触发，不锁滚动、不遮罩） ============ */
.popup-card {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 328px;
  max-width: calc(100vw - 32px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity .32s ease, transform .32s ease, visibility .32s;
}
.popup-card.show { opacity: 1; visibility: visible; transform: none; }
.popup-close {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none; cursor: pointer;
  color: var(--text-faint); font-size: 20px; line-height: 1;
  padding: 4px 6px; border-radius: 8px;
}
.popup-close:hover { color: var(--text); background: var(--bg-soft); }
.popup-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; padding-right: 20px; }
.popup-text { font-size: 13px; line-height: 1.6; color: var(--text-dim); margin-bottom: 12px; }
.popup-input { width: 100%; margin-bottom: 8px; padding: 9px 12px; font-size: 13px; }
.popup-card .select {
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%239aa7bd' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}
.popup-card .select option { background: var(--bg-card); color: var(--text); }
.popup-actions { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.popup-msg { display: none; font-size: 12.5px; margin: 2px 0 8px; padding: 7px 10px; border-radius: 8px; }
.popup-msg.ok { display: block; background: rgba(52,211,153,.12); color: var(--green); border: 1px solid rgba(52,211,153,.3); }
.popup-msg.bad { display: block; background: rgba(248,113,113,.12); color: var(--red); border: 1px solid rgba(248,113,113,.3); }
@media (max-width: 520px) {
  .popup-card { right: 12px; left: 12px; bottom: 12px; width: auto; }
}
