/* Aether — 以太 · 毛玻璃极简控制台 */

:root {
  --primary: #7c5cfc;
  --primary-light: #a78bfa;
  --accent: #3b82f6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --bg-base: #f5f6fb;
  --bg-glass: rgba(255, 255, 255, 0.62);
  --bg-glass-hover: rgba(255, 255, 255, 0.78);
  --bg-glass-solid: rgba(255, 255, 255, 0.85);

  --border-glass: rgba(255, 255, 255, 0.55);
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-focus: var(--primary);

  --text: #1e1e2e;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --glass-blur: 20px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.7);

  --container-width: 1080px;
  --rail-width: 64px;
  --rail-expanded: 180px;
  --font-heading: 'Plus Jakarta Sans', 'Noto Sans SC', system-ui, sans-serif;
  --font-body: 'Noto Sans SC', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --mobile-tab-height: 64px;

  --mesh-1: rgba(124, 92, 252, 0.12);
  --mesh-2: rgba(59, 130, 246, 0.10);
  --mesh-3: rgba(251, 146, 60, 0.07);
  --mesh-4: rgba(244, 114, 182, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(124, 92, 252, 0.25) transparent;
  scrollbar-width: thin;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(124, 92, 252, 0.22);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 92, 252, 0.4);
}
::-webkit-scrollbar-corner { background: transparent; }

/* ===== Body & Shell ===== */

.aether-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-base);
  display: flex;
  flex-direction: row;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Mesh 渐变背景 ===== */

.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.mesh-blob--1 {
  width: 600px; height: 600px;
  background: var(--mesh-1);
  top: -10%; left: -5%;
}
.mesh-blob--2 {
  width: 500px; height: 500px;
  background: var(--mesh-2);
  top: 20%; right: -8%;
}
.mesh-blob--3 {
  width: 400px; height: 400px;
  background: var(--mesh-3);
  bottom: 10%; left: 20%;
}
.mesh-blob--4 {
  width: 350px; height: 350px;
  background: var(--mesh-4);
  bottom: -5%; right: 15%;
}

/* ===== Glass 通用面板 ===== */

.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glass);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.glass-panel:hover {
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.7);
}

/* ===== 左侧图标条导航 ===== */

.icon-rail {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--rail-width);
  height: 100vh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  background: var(--bg-glass-solid);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--border-glass);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.04);
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.icon-rail:hover {
  width: var(--rail-expanded);
}

.icon-rail__top {
  margin-bottom: 32px;
  flex-shrink: 0;
}

.icon-rail__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.icon-rail__logo svg {
  width: 20px;
  height: 20px;
}
.icon-rail__logo:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(124, 92, 252, 0.3);
  color: #fff;
}

.icon-rail__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 0 12px;
  position: relative;
}


.icon-rail__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
  overflow: hidden;
}

.icon-rail__item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.icon-rail__label {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s 0.06s, transform 0.2s 0.06s;
  font-family: var(--font-heading);
}

.icon-rail:hover .icon-rail__label {
  opacity: 1;
  transform: translateX(0);
}

.icon-rail__item:hover {
  color: var(--text);
  background: rgba(124, 92, 252, 0.06);
}

.icon-rail__item.active {
  color: var(--primary);
  background: rgba(124, 92, 252, 0.10);
  font-weight: 600;
}

.icon-rail__indicator {
  position: absolute;
  left: -12px;
  width: 3px;
  height: 28px;
  border-radius: 0 3px 3px 0;
  background: var(--primary);
  transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* ===== 移动端底部标签栏 ===== */

.mobile-tab-bar {
  display: none;
}

/* ===== App 主体 ===== */

.app-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: var(--rail-width);
  min-height: 100vh;
}

.pages-stack {
  flex: 1 0 auto;
  position: relative;
}

.page {
  will-change: opacity, transform;
}

.page[style*='display: none'] {
  display: none !important;
}

/* ===== Hero 首屏 ===== */

.hero {
  position: relative;
  padding: 56px 0 32px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: opacity 0.8s ease;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-glass {
  padding: 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 16px;
  line-height: 1.2;
}

.hero-motd-wrap {
  margin-bottom: 20px;
  min-height: 2em;
}

.hero-motd {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  background: rgba(124, 92, 252, 0.06);
  border: 1px solid rgba(124, 92, 252, 0.12);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.hero-address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(124, 92, 252, 0.05);
  border: 1px solid rgba(124, 92, 252, 0.15);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  box-shadow: inset 0 1px 2px rgba(124, 92, 252, 0.04);
}

.address-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 100%;
  margin-bottom: -2px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.address-value {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--primary);
  word-break: break-all;
  font-weight: 500;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-glass);
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background 0.3s, box-shadow 0.3s;
}

/* ===== SVG 环形进度 ===== */

.hero-ring-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-container {
  position: relative;
  width: 220px;
  height: 220px;
}

.ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: rgba(124, 92, 252, 0.08);
  stroke-width: 8;
}

.ring-fill {
  fill: none;
  stroke: url(#ring-gradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 534;
  stroke-dashoffset: 534;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.ring-number {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.ring-divider {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 2px 0;
}

.ring-max {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 500;
  color: var(--text-muted);
}

.ring-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.06em;
}

/* ===== Stat 卡片行 ===== */

.section--stats {
  padding: 24px 0 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
}

.stat-card__icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: var(--radius-xs);
  background: rgba(124, 92, 252, 0.08);
  color: var(--primary);
  flex-shrink: 0;
}

.stat-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stat-card__label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.stat-card__value {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

/* ===== Section 通用 ===== */

.section {
  padding: 32px 0;
}

.section--page {
  padding-top: 48px;
  min-height: 50vh;
}

.page-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--text);
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

/* ===== Data blocks (玩家 / 图表) ===== */

.data-block {
  margin-bottom: 32px;
}

.data-block__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
}

.player-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}
.player-tag:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.chart-wrap {
  padding: 20px;
}

/* ===== Category bar ===== */

.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.cat-btn {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.cat-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(124, 92, 252, 0.06);
}
.cat-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(124, 92, 252, 0.25);
}

/* ===== Gallery ===== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}
.gallery-item:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-lg);
}
.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.gallery-item-title {
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== News feed ===== */

.news-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 20px 22px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(124, 92, 252, 0.2);
}

.news-card .news-title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.news-card .news-summary {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.news-card .news-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-cover img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.pin-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
  font-size: 0.72rem;
  font-weight: 600;
  margin-right: 6px;
}

.post-cat-tag {
  color: var(--primary);
  font-weight: 600;
}

.empty-text {
  color: var(--text-muted);
  text-align: center;
  padding: 48px 24px;
}

.load-more-wrap {
  text-align: center;
  margin-top: 24px;
}

/* ===== Buttons ===== */

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-glass:hover {
  background: var(--bg-glass-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-glass--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-glass--primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  box-shadow: 0 4px 16px rgba(124, 92, 252, 0.3);
}

.btn-icon {
  width: 16px;
  height: 16px;
}

/* ===== Community ===== */

.community-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.community-tab {
  flex: 1;
  max-width: 180px;
  padding: 11px 16px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.community-tab:hover {
  border-color: rgba(124, 92, 252, 0.2);
  color: var(--text);
}
.community-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(124, 92, 252, 0.2);
}

/* ===== Forms ===== */

.glass-form {
  background: var(--bg-glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.glass-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

#whitelist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#whitelist-form .form-row {
  margin-bottom: 0;
}

.glass-form input,
.glass-form select,
.glass-form textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.glass-form input:focus,
.glass-form select:focus,
.glass-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.12);
}
.glass-form textarea {
  resize: vertical;
  min-height: 100px;
}
.glass-form input::placeholder,
.glass-form textarea::placeholder {
  color: var(--text-muted);
}
.glass-form select {
  cursor: pointer;
}

.wl-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.wl-check-row input {
  flex: 1;
  min-width: 160px;
}

/* ===== Comment wall ===== */

.comment-wall {
  min-height: 120px;
}

.comment-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: box-shadow 0.2s;
}
.comment-card:hover {
  box-shadow: var(--shadow-sm);
}

.comment-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.comment-card__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.comment-card__time {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.comment-card__text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
}

.comment-card__reply {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  background: rgba(124, 92, 252, 0.05);
  border-left: 3px solid var(--primary);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ===== Whitelist results ===== */

.check-result {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  background: var(--bg-glass);
}
.status-pending {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.06);
}
.status-approved {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.06);
}
.status-rejected {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.06);
}
.status-notfound {
  border-color: var(--border-subtle);
}

/* ===== Footer ===== */

.page-footer {
  flex-shrink: 0;
  padding: 20px 0 16px;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.footer-brand {
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.footer-social:empty,
.footer-links:empty { display: none; }

.footer-social a,
.footer-links a {
  color: var(--text-secondary);
  font-size: 0.78rem;
  transition: color 0.2s;
}
.footer-social a:hover,
.footer-links a:hover { color: var(--primary); }

.footer-col-title {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: right;
}
.footer-col-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 12px;
}
.footer-col-link { color: var(--text-secondary); font-size: 0.78rem; }

/* ===== Modal / Drawer ===== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: stretch;
  justify-content: flex-end;
}

.modal.drawer { pointer-events: none; }
.modal.drawer.modal--visible { pointer-events: auto; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.modal--visible .modal-overlay { opacity: 1; }

.drawer-panel {
  position: relative;
  width: min(520px, 100vw);
  max-width: 100%;
  height: 100%;
  background: var(--bg-glass-solid);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid var(--border-glass);
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.08);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.modal--visible .drawer-panel { transform: translateX(0); }
.modal--closing .drawer-panel { transform: translateX(100%); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.modal-close svg { width: 18px; height: 18px; }
.modal-close:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

.modal-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 56px 28px 32px;
}
.modal-scroll::-webkit-scrollbar { width: 4px; }
.modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(124, 92, 252, 0.2);
  border-radius: 2px;
}

.modal-scroll h2 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}

.post-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.post-body {
  color: var(--text-secondary);
  line-height: 1.8;
}
.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

/* ===== Fade up ===== */

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
