/* =========================================================
   CaiCai 的搞机日志 — 主题样式（高级版）
   ========================================================= */

/* 设计变量 */
:root {
  --bg: #eef4f1;
  --surface: #ffffff;
  --surface-2: #f5faf7;
  --text: #0e1f18;
  --text-muted: #5a7268;
  --primary: #10b981;
  --primary-2: #06b6d4;
  --primary-dark: #059669;
  --border: rgba(14, 31, 24, 0.08);
  --border-strong: rgba(14, 31, 24, 0.16);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(14, 31, 24, 0.05);
  --shadow: 0 8px 30px rgba(14, 31, 24, 0.08);
  --shadow-lg: 0 24px 60px rgba(14, 31, 24, 0.14);
  --ring: rgba(16, 185, 129, 0.16);
  --glow: rgba(16, 185, 129, 0.32);
  --nav-bg: rgba(255, 255, 255, 0.72);
  --max-width: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #0a1210;
  --surface: #111d18;
  --surface-2: #17251f;
  --text: #e7f1ed;
  --text-muted: #93aba1;
  --primary: #34d399;
  --primary-2: #22d3ee;
  --primary-dark: #10b981;
  --border: rgba(231, 241, 237, 0.09);
  --border-strong: rgba(231, 241, 237, 0.18);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --ring: rgba(52, 211, 153, 0.18);
  --glow: rgba(52, 211, 153, 0.38);
  --nav-bg: rgba(16, 27, 23, 0.72);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

::selection { background: var(--glow); color: var(--text); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

section[id] { scroll-margin-top: 90px; }

/* 滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  z-index: 1000;
  border-radius: 0 999px 999px 0;
  box-shadow: 0 0 12px var(--glow);
}

/* 雪花背景 */
#snow-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}

/* 导航栏 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
  flex-shrink: 0;
}

.logo-avatar img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: cover; }

.logo span { color: var(--primary); }

.nav-links { display: flex; list-style: none; gap: 34px; }

.nav-links a {
  position: relative;
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  border-radius: 999px;
  transition: right 0.3s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }

.nav-links a:hover,
.nav-links a.active { color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  box-shadow: 0 6px 16px var(--ring);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

/* 首屏 */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
  text-align: center;
  background:
    radial-gradient(1100px 560px at 50% -10%, rgba(16, 185, 129, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(16, 185, 129, 0.06), var(--bg));
}

.aurora { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: float 18s ease-in-out infinite;
}

.blob-1 { width: 380px; height: 380px; background: var(--glow); top: -120px; left: 6%; }
.blob-2 { width: 300px; height: 300px; background: rgba(6, 182, 212, 0.35); top: 30px; right: 4%; animation-delay: -6s; }
.blob-3 { width: 260px; height: 260px; background: rgba(16, 185, 129, 0.3); bottom: -110px; left: 44%; animation-delay: -12s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(32px, -30px) scale(1.08); }
  66% { transform: translate(-22px, 20px) scale(0.94); }
}

.hero-inner { position: relative; z-index: 1; }

.hero-avatar {
  position: relative;
  width: 124px;
  height: 124px;
  margin: 0 auto 28px;
}

.hero-avatar::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(var(--primary), var(--primary-2), var(--primary), var(--primary-2), var(--primary));
  animation: spin 6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero-avatar img {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--surface);
  box-shadow: 0 16px 40px var(--glow);
}

.hero-status {
  position: absolute;
  right: 7px;
  bottom: 9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #22c55e;
  border: 3px solid var(--surface);
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.14;
  letter-spacing: -1.5px;
  max-width: 760px;
  margin: 0 auto 20px;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 10px 26px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px var(--glow);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* 区块通用 */
.section { padding: 76px 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.section-head h2 { font-size: 32px; letter-spacing: -0.8px; font-weight: 800; }

.section-head p { color: var(--text-muted); font-size: 14px; }

/* 筛选 */
.filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

#search-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#search-input::placeholder { color: var(--text-muted); }

#search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}

.category-filter { display: flex; gap: 10px; flex-wrap: wrap; }

.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px var(--glow);
}

/* 文章卡片 */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.post-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s;
}

.post-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  opacity: 0;
  transition: opacity 0.3s;
}

.post-card:hover::before { opacity: 1; }

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.post-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.post-card h3 {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.post-excerpt {
  color: var(--text-muted);
  font-size: 15px;
  flex: 1;
  margin-bottom: 18px;
}

.post-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ring);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
}

.post-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 48px 0;
  font-size: 16px;
}

/* 关于 */
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.about-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 6px var(--ring), 0 16px 40px var(--glow);
}

.about-avatar img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: cover; }

.about-text h2 { font-size: 26px; margin-bottom: 14px; }

.about-location {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.about-text p { color: var(--text-muted); margin-bottom: 12px; }

.about-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.about-tags span {
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.about-contact {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.about-contact a { color: var(--primary); font-weight: 600; }

.about-contact a:hover { text-decoration: underline; }

.about-contact a.copied { color: #16a34a; }

/* 联系 */
.contact {
  text-align: center;
}

.contact h2 { font-size: 32px; margin-bottom: 10px; letter-spacing: -0.8px; font-weight: 800; }

.contact > p { color: var(--text-muted); margin-bottom: 30px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 8px;
  text-align: left;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--surface-2);
  margin-bottom: 14px;
  overflow: hidden;
  padding: 7px;
}

.contact-card__icon img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.contact-card h3 { font-size: 18px; margin-bottom: 4px; }

.contact-card__value {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 18px;
  word-break: break-all;
}

.contact-card__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.contact-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 6px 16px var(--glow);
}

.contact-btn-primary:hover { transform: translateY(-2px); }

.contact-btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.contact-btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.contact-btn.copied { color: #16a34a; border-color: #16a34a; }

.contact-wechat {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--ring);
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}

.contact-form button { align-self: flex-start; }

.form-status {
  font-size: 14px;
  color: #16a34a;
  min-height: 20px;
}

/* 页脚 */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.social-links { display: flex; gap: 20px; }

.social-links a:hover { color: var(--primary); }

/* 弹窗 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.open { display: flex; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 8, 0.6);
  backdrop-filter: blur(6px);
}

.modal-content {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.3s var(--ease);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--surface-2);
  cursor: pointer;
  font-size: 16px;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover { background: var(--border); color: var(--text); }

.modal-article h2 {
  font-size: 28px;
  line-height: 1.35;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.modal-article .modal-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 22px;
}

.modal-article .modal-body {
  font-size: 16px;
  color: var(--text);
  opacity: 0.92;
}

.modal-article .modal-body p { margin-bottom: 16px; }

.modal-article .modal-body h3 {
  margin: 24px 0 10px;
  font-size: 20px;
}

.modal-article .modal-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* 滚动显现 */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible { opacity: 1; transform: none; }

/* 响应式 */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
    display: none;
  }

  .nav-links.open { display: flex; }

  .about-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px;
  }

  .about-tags,
  .about-contact { justify-content: center; }

  .modal-content { padding: 28px 22px; }
}

/* ===== 公告弹窗 · 液态玻璃 ===== */
:root {
  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.32));
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-highlight: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] {
  --glass-bg: linear-gradient(135deg, rgba(44, 68, 58, 0.75), rgba(17, 28, 23, 0.55));
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-highlight: rgba(255, 255, 255, 0.14);
}

.glass-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.glass-modal.open { display: flex; }

.glass-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 13, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.glass-card {
  position: relative;
  width: min(480px, 100%);
  border-radius: 30px;
  padding: 38px 34px 30px;
  overflow: hidden;
  color: var(--text);
  background: var(--glass-bg);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 80px rgba(8, 16, 13, 0.4),
    inset 0 1px 0 var(--glass-highlight);
  animation: glassIn 0.45s var(--ease);
}

@keyframes glassIn {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 内部流光光斑 */
.glass-card__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(240px 180px at 12% 0%, var(--glow), transparent 70%),
    radial-gradient(240px 180px at 95% 100%, rgba(6, 182, 212, 0.22), transparent 70%);
  opacity: 0.55;
}

/* 流动高光（液态玻璃的「水光」） */
.glass-card::after {
  content: "";
  position: absolute;
  top: -70%;
  left: -90%;
  width: 55%;
  height: 240%;
  background: linear-gradient(100deg, transparent 20%, var(--glass-highlight) 50%, transparent 80%);
  transform: rotate(18deg);
  animation: sheen 5.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sheen {
  0% { left: -90%; }
  55%, 100% { left: 130%; }
}

.glass-card__content { position: relative; z-index: 2; }

.glass-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--primary-dark);
  background: var(--ring);
  border: 1px solid var(--glass-border);
  margin-bottom: 16px;
}

.glass-card h2 {
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.5px;
  font-weight: 800;
  margin-bottom: 6px;
}

.glass-card__date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.glass-card__body {
  font-size: 15px;
  color: var(--text);
  opacity: 0.92;
  white-space: pre-wrap;
  line-height: 1.75;
  max-height: 40vh;
  overflow-y: auto;
}

.glass-card__actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.glass-card__x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.18);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.glass-card__x:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg);
}
