﻿@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --bg: #f6f5f1;
  --bg-soft: #eef4f7;
  --surface: rgba(255, 255, 255, 0.78);
  --card: #fffefd;
  --text: #0f172a;
  --muted: #667085;
  --line: rgba(148, 163, 184, 0.18);
  --brand: #0f766e;
  --brand-2: #0284c7;
  --accent: #f97316;
  --danger: #dc2626;
  --radius: 18px;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  --font: 'DM Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
}

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

body {
  font-family: var(--font);
  background: radial-gradient(980px 560px at 8% -10%, rgba(15, 118, 110, 0.16), transparent),
    radial-gradient(860px 520px at 100% 0%, rgba(2, 132, 199, 0.14), transparent),
    linear-gradient(180deg, #f7f8f4 0%, #f7fafc 38%, #eef4f7 100%);
  background-size: 120% 120%, 120% 120%, 100% 100%;
  color: var(--text);
  min-height: 100vh;
  padding-bottom: calc(92px + env(safe-area-inset-bottom, 0));
  animation: pageDrift 18s ease-in-out infinite alternate;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(18px);
  opacity: 0.5;
}

body::before {
  top: 112px;
  right: -92px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.14), transparent 68%);
}

body::after {
  bottom: 120px;
  left: -120px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.13), transparent 70%);
}

#appShell {
  position: relative;
  isolation: isolate;
}

#appShell::before,
#appShell::after {
  content: '';
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

#appShell::before {
  top: 180px;
  left: min(6vw, 40px);
  width: 200px;
  height: 200px;
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.12), rgba(14, 165, 233, 0.04));
  transform: rotate(16deg);
  filter: blur(6px);
}

#appShell::after {
  right: min(4vw, 24px);
  bottom: 180px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.12), transparent 72%);
  filter: blur(10px);
}

body.modal-open {
  overflow: hidden;
}

/* 非微信：禁止滚动穿透到底下内容 */
html.wx-blocked,
body.wx-blocked {
  overflow: hidden;
  height: 100%;
  touch-action: none;
}

.app-shell-hidden {
  display: none !important;
}

/* 微信内默认不展示；勿用 [hidden]+display:flex，部分 WebView 会忽略 hidden 仍显示 flex */
.wx-gate {
  display: none;
  box-sizing: border-box;
}

.wx-gate.wx-gate--open {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0));
  background: linear-gradient(160deg, #1e1b4b 0%, #312e81 45%, #4c1d95 100%);
  color: #e0e7ff;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.wx-gate-card {
  max-width: 340px;
  padding: 28px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  text-align: center;
}

.wx-gate-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}

.wx-gate-desc {
  font-size: 14px;
  line-height: 1.65;
  opacity: 0.92;
}

.role-badge {
  margin-left: 6px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
}

.hidden {
  display: none !important;
}

@keyframes pageDrift {
  0% {
    background-position: 0% 0%, 100% 0%, 50% 0%;
  }
  100% {
    background-position: 8% 10%, 92% 4%, 50% 100%;
  }
}

@keyframes riseIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sheenSweep {
  0% {
    transform: translateX(-135%) skewX(-18deg);
    opacity: 0;
  }
  18% {
    opacity: 0.22;
  }
  40% {
    opacity: 0.1;
  }
  100% {
    transform: translateX(210%) skewX(-18deg);
    opacity: 0;
  }
}

@keyframes softGlow {
  0%,
  100% {
    box-shadow: 0 16px 28px rgba(249, 115, 22, 0.34);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 20px 34px rgba(249, 115, 22, 0.42);
    transform: translateY(-2px);
  }
}

@keyframes activePillGlow {
  0%,
  100% {
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
  }
  50% {
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.3);
  }
}

@keyframes slowZoom {
  0% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1.09);
  }
}

@keyframes revealUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes lineDraw {
  0% {
    stroke-dashoffset: 1200;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes pointPop {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes meterGrowX {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(var(--bar-scale, 1));
  }
}

@keyframes meterGrowY {
  0% {
    transform: scaleY(0);
  }
  100% {
    transform: scaleY(var(--column-scale, 1));
  }
}

@keyframes pulseRise {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(var(--pulse-scale, 1));
  }
}

@keyframes chipRise {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.92) rotate(-3deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.985);
  transition: none;
}

.reveal-on-scroll.is-visible {
  animation: revealUp 0.72s cubic-bezier(0.18, 0.8, 0.22, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  padding-top: calc(14px + env(safe-area-inset-top, 0));
  background: linear-gradient(135deg, rgba(9, 46, 68, 0.95), rgba(15, 118, 110, 0.94), rgba(2, 132, 199, 0.9));
  color: #fff;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 34px rgba(8, 47, 73, 0.18);
  overflow: hidden;
}

.header::after {
  content: '';
  position: absolute;
  inset: -20% auto -20% -25%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-18deg);
  animation: sheenSweep 7s ease-in-out infinite;
  pointer-events: none;
}

.header-page-pill {
  min-width: 64px;
  padding: 8px 15px;
  border-radius: 999px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.app-pages {
  min-height: calc(100vh - 88px);
}

.app-page {
  padding-bottom: 20px;
  animation: riseIn 0.45s ease both;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
}

.header-logo-text,
.header-logo-image {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.header-logo-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-logo-image {
  object-fit: cover;
  display: block;
}

.header-logo.is-image {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.header-titles h1 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header-tagline {
  font-size: 11px;
  opacity: 0.85;
  margin-top: 2px;
  font-weight: 500;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 140px;
}

.user-chip-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.user-chip-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.login-btn,
.logout-btn {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  transition: background 0.2s, transform 0.15s;
}

.login-btn:active,
.logout-btn:active {
  transform: scale(0.97);
}

.logout-btn {
  background: rgba(255, 255, 255, 0.14);
}

/* Categories */
.categories {
  position: sticky;
  top: calc(58px + env(safe-area-inset-top, 0));
  z-index: 90;
  margin: 14px 14px 0;
  padding: 10px 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(250, 252, 255, 0.74));
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(16px);
}

.categories::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  flex-shrink: 0;
  padding: 9px 15px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #475467;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.cat-btn:hover {
  color: var(--brand);
  border-color: rgba(79, 70, 229, 0.25);
}

.cat-btn.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.24);
  animation: activePillGlow 2.6s ease-in-out infinite;
}

.post-btn {
  margin-left: auto;
  background: linear-gradient(135deg, #fb923c, #f97316) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.post-btn:hover {
  color: #fff !important;
}

.search-bar-wrap {
  max-width: 720px;
  margin: 12px auto 0;
  padding: 0 14px;
}

.search-bar {
  display: flex;
  gap: 8px;
  padding: 11px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(14px);
}

.search-bar input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--brand);
}

.search-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 14px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(15, 118, 110, 0.18);
}

.page-overview-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  max-width: 720px;
  margin: 14px auto 0;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 30%),
    radial-gradient(circle at bottom left, rgba(249, 115, 22, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 252, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
  animation: riseIn 0.56s ease both;
}

.page-overview-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.34), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.18));
  pointer-events: none;
}

.page-overview-card > * {
  position: relative;
  z-index: 1;
}

.page-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.page-overview-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-2);
}

.page-overview-head h3 {
  margin: 6px 0 0;
  font-size: clamp(20px, 2.8vw, 24px);
  line-height: 1.35;
  color: var(--text);
}

.page-overview-badge {
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.page-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.page-overview-item {
  padding: 14px 15px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.88));
  border: 1px solid rgba(226, 232, 240, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.page-overview-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.page-overview-item strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.35;
  color: var(--text);
}

.page-overview-item small,
.feed-overview-note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.feed-overview-card {
  margin-top: 16px;
}

/* 首页轮播 */
.hero-root {
  max-width: 720px;
  margin: 10px auto 0;
  padding: 0 14px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: riseIn 0.65s ease both;
}

.hero-scroller {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #e2e8f0;
}

.hero-scroller::-webkit-scrollbar {
  display: none;
}

.hero-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 2.2 / 1;
  max-height: 200px;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  animation: slowZoom 9s ease-in-out infinite alternate;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.55));
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dot.active {
  background: #fff;
  transform: scale(1.15);
}

/* 管理员：发布弹窗内 */
.modal-content-wide {
  max-width: 520px;
}

.admin-post-tools {
  padding: 12px 0 16px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.admin-post-tools-hint {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.admin-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin: 10px 0 8px;
}

.admin-banner-list {
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.admin-banner-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(226, 232, 240, 0.82);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.admin-banner-row + .admin-banner-row {
  margin-top: 10px;
}

.admin-banner-thumb {
  width: 68px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.admin-banner-meta {
  flex: 1;
  min-width: 0;
  font-size: 13px;
}

.admin-banner-meta small {
  color: var(--muted);
}

.admin-banner-actions {
  flex-shrink: 0;
}

.admin-manage-card--branding {
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.14), transparent 28%),
    radial-gradient(circle at bottom left, rgba(2, 132, 199, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.94);
}

.admin-branding-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 15px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.92), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(226, 232, 240, 0.88);
}

.admin-branding-logo {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  flex-shrink: 0;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
}

.admin-branding-copy {
  min-width: 0;
}

.admin-branding-copy strong {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.admin-branding-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.admin-branding-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.admin-branding-actions .btn-admin-add,
.admin-branding-actions .admin-branding-reset {
  margin-top: 0;
}

.admin-branding-reset {
  width: auto;
  min-width: 120px;
}

.btn-banner-del {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  cursor: pointer;
}

.btn-admin-add {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.admin-mute-block {
  margin-top: 8px;
}

.btn-admin-search {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #cbd5f5;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.admin-mute-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.admin-user-results {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-user-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 30%),
    linear-gradient(145deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(226, 232, 240, 0.82);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.admin-user-main {
  flex: 1;
  min-width: 0;
}

.admin-user-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.admin-user-id {
  margin-left: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.admin-user-phone,
.admin-user-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #475569;
  word-break: break-all;
}

.admin-user-phone-empty {
  color: var(--muted);
}

.admin-user-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.admin-user-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  background: #e2e8f0;
}

.admin-user-tag.ok {
  color: #047857;
  background: #d1fae5;
}

.admin-user-tag.danger {
  color: #b91c1c;
  background: #fee2e2;
}

.admin-user-actions {
  width: 92px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-stats-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-stat-card {
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.admin-stat-label {
  font-size: 12px;
  color: var(--muted);
}

.admin-stat-value {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.admin-stat-sublist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.admin-stat-subrow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #475569;
}

.btn-mute,
.btn-unmute {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.btn-mute {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.btn-unmute {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.admin-muted,
.admin-loading {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 0;
}

.mute-badge {
  background: linear-gradient(135deg, #94a3b8, #64748b) !important;
}

.profile-page-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 14px 10px;
}

.profile-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 12px;
}

.profile-dashboard-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.94));
  border: 1px solid rgba(14, 165, 233, 0.14);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.profile-dashboard-entry h3 {
  margin: 0;
  font-size: 20px;
  color: var(--text);
}

.profile-dashboard-entry p {
  margin: 8px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.profile-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-entry-card {
  border: none;
  width: 100%;
  padding: 18px;
  border-radius: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  animation: riseIn 0.55s ease both;
}

.profile-entry-card:active {
  transform: scale(0.99);
}

.profile-entry-card::after,
.dashboard-card::after,
.admin-manage-card::after,
.post-item::after {
  content: '';
  position: absolute;
  inset: -30% auto -30% -18%;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}

.profile-entry-card:hover::after,
.dashboard-card:hover::after,
.admin-manage-card:hover::after,
.post-item:hover::after {
  animation: sheenSweep 1s ease;
}

.profile-entry-card--behavior {
  background:
    radial-gradient(circle at top right, rgba(79, 70, 229, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 242, 255, 0.95));
  border: 1px solid rgba(99, 102, 241, 0.14);
}

.profile-entry-card--dashboard {
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.95));
  border: 1px solid rgba(14, 165, 233, 0.14);
}

.profile-entry-card--admin-banner {
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.95));
  border: 1px solid rgba(249, 115, 22, 0.14);
}

.profile-entry-card--admin-users {
  background:
    radial-gradient(circle at top right, rgba(225, 29, 72, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 242, 0.95));
  border: 1px solid rgba(225, 29, 72, 0.14);
}

.profile-entry-card--admin-dashboard {
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 250, 0.95));
  border: 1px solid rgba(20, 184, 166, 0.14);
}

.profile-entry-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.22);
}

.profile-entry-card--admin-banner .profile-entry-icon {
  background: linear-gradient(135deg, #fb923c, #f97316);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.24);
}

.profile-entry-card--admin-users .profile-entry-icon {
  background: linear-gradient(135deg, #fb7185, #e11d48);
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.22);
}

.profile-entry-card--admin-dashboard .profile-entry-icon {
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.22);
}

.profile-entry-copy {
  flex: 1;
  min-width: 0;
}

.profile-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.profile-entry-head h3 {
  margin: 0;
  font-size: 20px;
  color: var(--text);
}

.profile-entry-arrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.profile-entry-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.profile-account-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(2, 132, 199, 0.18), transparent 28%),
    radial-gradient(circle at bottom left, rgba(15, 118, 110, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.09);
  animation: riseIn 0.5s ease both;
}

.profile-account-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.38), transparent 30%, transparent 68%, rgba(255, 255, 255, 0.26)),
    radial-gradient(circle at 18% 18%, rgba(249, 115, 22, 0.12), transparent 24%);
  pointer-events: none;
  opacity: 0.7;
}

.profile-account-card::after {
  content: '';
  position: absolute;
  right: -46px;
  top: -52px;
  width: 170px;
  height: 170px;
  border-radius: 44px;
  transform: rotate(18deg);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.18), rgba(2, 132, 199, 0.06));
  filter: blur(4px);
  pointer-events: none;
}

.profile-account-card > * {
  position: relative;
  z-index: 1;
}

.profile-account-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.profile-account-avatar-wrap {
  position: relative;
  width: 76px;
  flex-shrink: 0;
}

.profile-account-avatar {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.96);
  background: #e2e8f0;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.profile-avatar-upload-btn {
  position: absolute;
  right: -2px;
  bottom: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.24);
}

.profile-account-meta {
  flex: 1;
  min-width: 0;
}

.profile-account-meta h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  color: var(--text);
}

.profile-account-meta p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.profile-account-tip {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
}

.profile-account-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.profile-account-stat {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.profile-account-stat span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.profile-account-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  color: var(--text);
}

.profile-account-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.profile-avatar-panel {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.78)),
    radial-gradient(circle at top right, rgba(2, 132, 199, 0.08), transparent 34%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.profile-avatar-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.profile-avatar-panel-head span {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.profile-avatar-panel-head small {
  font-size: 12px;
  color: var(--muted);
}

.profile-avatar-preset-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.profile-avatar-preset {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(248, 250, 252, 0.9);
  border-radius: 16px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.profile-avatar-preset.active {
  border-color: rgba(15, 118, 110, 0.32);
  background: linear-gradient(145deg, rgba(15, 118, 110, 0.12), rgba(2, 132, 199, 0.08));
  color: var(--brand);
  box-shadow: 0 16px 28px rgba(15, 118, 110, 0.14);
}

.profile-avatar-preset:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 24px rgba(15, 23, 42, 0.08);
}

.profile-avatar-preset-dot {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.profile-primary-btn,
.profile-secondary-btn {
  flex: 1;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.profile-primary-btn {
  border: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}

.profile-secondary-btn {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
}

.profile-guest-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-page-wrap .insight-section {
  max-width: none;
  margin: 16px 0 0;
  padding: 0;
}

.profile-admin-section {
  margin-top: 16px;
}

.profile-admin-grid {
  display: grid;
  gap: 12px;
}

.profile-admin-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.profile-admin-card input,
.profile-admin-card textarea,
.profile-admin-card select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  margin-bottom: 12px;
  font-family: inherit;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.profile-admin-card input:focus,
.profile-admin-card textarea:focus,
.profile-admin-card select:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.insight-section,
.recommend-section {
  max-width: 720px;
  margin: 16px auto 0;
  padding: 0 14px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 12px;
}

.section-eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(79, 70, 229, 0.72);
}

.section-title {
  margin: 0;
  font-size: 22px;
  color: var(--text);
}

.section-desc {
  margin: 0;
  max-width: 320px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  text-align: right;
}

.insight-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(79, 70, 229, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.92));
  border: 1px solid rgba(99, 102, 241, 0.16);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}

.insight-empty,
.insight-loading {
  margin: 0;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.insight-hero {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.insight-title {
  margin: 0;
  font-size: 20px;
  color: var(--text);
}

.insight-copy {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.insight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.insight-tag,
.keyword-chip,
.recommend-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.insight-tag {
  background: rgba(79, 70, 229, 0.1);
  color: var(--brand);
}

.insight-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.insight-metric {
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.insight-metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.insight-metric strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  color: var(--text);
}

.insight-columns {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}

.insight-subcard {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.insight-subcard h4 {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--text);
}

.pref-row + .pref-row,
.behavior-row + .behavior-row {
  margin-top: 10px;
}

.pref-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
}

.pref-head strong {
  color: var(--text);
}

.pref-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.pref-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f46e5, #0ea5e9);
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-chip {
  background: rgba(14, 165, 233, 0.1);
  color: #0369a1;
}

.behavior-list {
  display: flex;
  flex-direction: column;
}

.behavior-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.9);
}

.behavior-row div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.behavior-row strong {
  font-size: 14px;
  color: var(--text);
}

.behavior-row span,
.behavior-row time {
  font-size: 12px;
  color: var(--muted);
}

.recommend-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.recommend-profile-hero {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.recommend-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.recommend-profile-metric {
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.recommend-profile-metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.recommend-profile-metric strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  color: var(--text);
}

.recommend-profile-keywords {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.recommend-profile-keywords h4 {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--text);
}

.recommend-card {
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(249, 250, 251, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recommend-card:active {
  transform: scale(0.99);
}

.recommend-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.recommend-pill {
  background: rgba(79, 70, 229, 0.1);
  color: var(--brand);
}

.recommend-reason {
  font-size: 12px;
  color: #0f766e;
  line-height: 1.5;
  text-align: right;
}

.recommend-title {
  margin: 12px 0 8px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
}

.recommend-excerpt {
  margin: 0;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.recommend-footer {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

/* Post list */
.post-list {
  padding: 14px;
  max-width: 720px;
  margin: 0 auto 8px;
}

.site-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 14px 12px;
  text-align: center;
}

.site-footer-icp {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}

.site-footer-icp:active {
  opacity: 0.75;
}

.post-item {
  background:
    radial-gradient(circle at top right, rgba(2, 132, 199, 0.06), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(251, 252, 253, 0.94));
  border-radius: 24px;
  padding: 18px 18px 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: riseIn 0.55s ease both;
}

.post-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.1);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.post-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.post-pin {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #422006;
}

.post-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
  border: 2px solid #eef2ff;
}

.post-info {
  flex: 1;
  min-width: 0;
}

.post-nickname {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.post-anon-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #4338ca;
  background: #e0e7ff;
}

.post-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.post-category {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--brand);
}

.post-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
  line-height: 1.45;
}

.post-signal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.post-media-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  color: #0369a1;
  font-size: 12px;
  font-weight: 800;
}

.post-media-badge--text {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
}

.post-media-tip {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

.post-content {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.post-content-muted {
  color: #94a3b8;
  font-size: 13px;
}

.post-preview-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.post-preview-grid.count-1 {
  grid-template-columns: minmax(0, 1fr);
}

.post-preview-grid.count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-preview-grid.count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-preview-item {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  border-radius: 18px;
  background: #e2e8f0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.68);
}

.post-preview-grid.count-1 .post-preview-item {
  min-height: 224px;
}

.post-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.32s ease;
}

.post-item:hover .post-preview-item img {
  transform: scale(1.05);
}

.post-preview-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.48);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.file-input {
  width: 100%;
  padding: 10px 0;
  font-size: 14px;
  margin-bottom: 8px;
}

.post-images-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  min-height: 0;
}

.post-option-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.post-option-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.draft-thumb-wrap {
  position: relative;
  width: 64px;
  height: 64px;
}

.draft-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.draft-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.post-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.post-image-grid img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.detail-text {
  font-size: 15px;
  line-height: 1.75;
  color: #334155;
  white-space: pre-wrap;
  margin-bottom: 8px;
}

.post-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #526071;
  font-weight: 600;
}

.stat-item {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: background 0.2s ease, transform 0.2s ease;
}

.stat-item:active {
  transform: scale(0.98);
}

.stat-item.likeable {
  cursor: pointer;
}

.stat-item.likeable.active {
  color: #dc2626;
}

.stat-ico {
  margin-right: 2px;
  opacity: 0.85;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 48px;
  color: var(--muted);
}

.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  animation: bounce 0.9s ease-in-out infinite both;
}

.loading-dot:nth-child(2) {
  animation-delay: 0.12s;
}

.loading-dot:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0.55);
    opacity: 0.45;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.empty {
  text-align: center;
  padding: 56px 20px;
  color: var(--muted);
  background: var(--card);
  border-radius: var(--radius);
  border: 1px dashed var(--line);
}

.load-more-wrap {
  max-width: 720px;
  margin: 0 auto 18px;
  padding: 0 14px;
}

.load-more-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  cursor: pointer;
}

@media (max-width: 640px) {
  .section-head,
  .profile-section-head,
  .insight-hero,
  .profile-account-top,
  .recommend-header,
  .profile-entry-card,
  .profile-entry-head,
  .profile-dashboard-entry,
  .dashboard-hero,
  .dashboard-card-head,
  .recommend-profile-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-desc {
    max-width: none;
    text-align: left;
  }

  .insight-tags {
    justify-content: flex-start;
  }

  .insight-metrics,
  .insight-columns,
  .recommend-list,
  .profile-entry-grid,
  .recommend-profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-account-stats {
    grid-template-columns: 1fr;
  }

  .profile-account-actions {
    flex-direction: column;
  }

  .behavior-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-toolbar {
    flex-direction: column;
  }

  .dashboard-back-btn,
  .dashboard-refresh-btn {
    width: 100%;
  }

  .dashboard-donut-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .dashboard-card-head p {
    max-width: none;
    text-align: left;
  }

  .detail-toolbar,
  .detail-footer-actions--inline,
  .comment-submit-row {
    flex-direction: column;
    align-items: stretch;
  }

  .comment-send {
    align-self: stretch;
  }

  .detail-page-shell {
    padding-top: 14px;
  }

  .image-viewer-modal {
    padding: 12px;
  }

  .image-viewer-shell {
    width: 100%;
    padding: 12px;
    border-radius: 24px;
  }

  .image-viewer-stage {
    height: 58vh;
  }

  .profile-avatar-preset-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.retry-btn {
  margin-top: 14px;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  padding: 0;
  backdrop-filter: blur(4px);
}

@media (min-width: 520px) {
  .modal {
    align-items: center;
    padding: 20px;
  }
}

.modal-content {
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 22px 20px 24px;
  width: 100%;
  max-width: 440px;
  max-height: min(92vh, 720px);
  overflow-y: auto;
  box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.2);
  animation: riseIn 0.32s ease both;
}

@media (min-width: 520px) {
  .modal-content {
    border-radius: 20px;
    box-shadow: var(--shadow);
  }
}

.modal-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  text-align: center;
  color: var(--text);
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  margin-top: 4px;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  margin-bottom: 12px;
  font-family: inherit;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.modal-content textarea {
  min-height: 120px;
  resize: vertical;
}

.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.modal-actions button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.modal-actions button:first-child {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}

.modal-actions button.cancel {
  background: #f1f5f9;
  color: var(--muted);
}

.modal-actions button:active {
  transform: scale(0.98);
}

.switch-mode {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.switch-mode a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

/* Detail */
.detail-content {
  max-width: 520px;
}

.detail-top {
  margin-bottom: 12px;
}

.detail-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #422006;
  margin-bottom: 8px;
}

.detail-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.detail-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--brand);
}

.detail-pill.muted {
  background: #f1f5f9;
  color: var(--muted);
}

.detail-body {
  font-size: 15px;
  line-height: 1.75;
  color: #334155;
  margin-bottom: 16px;
  white-space: pre-wrap;
}

.detail-loading {
  color: var(--muted);
  font-size: 14px;
}

.detail-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.detail-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eef2ff;
}

.detail-author span {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
}

.comments-block {
  margin-bottom: 16px;
}

.comments-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-right: 4px;
}

.comments-empty {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 0;
}

.comment-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.comment-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #f1f5f9;
}

.comment-body {
  flex: 1;
  min-width: 0;
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
}

.comment-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.comment-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.comment-time {
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}

.comment-text {
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
  word-break: break-word;
}

.comment-hint {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.comment-input-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-input-row textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 64px;
  background: #f8fafc;
}

.comment-input-row textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
}

.comment-send {
  align-self: flex-end;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.detail-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-danger {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(220, 38, 38, 0.35);
  background: #fef2f2;
  color: var(--danger);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.btn-like-detail {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #be123c;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.btn-like-detail.active {
  background: linear-gradient(135deg, #fb7185, #e11d48);
  color: #fff;
  border-color: transparent;
}

.close-detail {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.detail-page-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 14px 16px;
}

.detail-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.detail-hero-card,
.detail-comments-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 26%),
    radial-gradient(circle at bottom left, rgba(15, 118, 110, 0.1), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.detail-hero-card::before,
.detail-comments-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 8%, rgba(255, 255, 255, 0.26) 26%, transparent 44%);
  transform: translateX(-130%) skewX(-18deg);
  animation: sheenSweep 8.5s ease-in-out infinite;
  pointer-events: none;
}

.detail-comments-card::before {
  animation-delay: 0.8s;
}

.detail-hero-card::after,
.detail-comments-card::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: -64px;
  top: -84px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.16), transparent 68%);
  pointer-events: none;
}

.detail-hero-card > *,
.detail-comments-card > * {
  position: relative;
  z-index: 1;
}

.detail-comments-card {
  margin-top: 14px;
}

.detail-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-title {
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.35;
}

.detail-author--hero {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(241, 245, 249, 0.82)),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 32%);
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.detail-author-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-author-copy small {
  font-size: 12px;
  color: var(--muted);
}

.detail-footer-actions--inline {
  flex-direction: row;
  align-items: stretch;
  margin-top: 18px;
}

.detail-footer-actions--inline .btn-like-detail,
.detail-footer-actions--inline .btn-danger {
  width: auto;
  flex: 1;
}

.detail-comments-head {
  margin-bottom: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.76)),
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 34%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.comments-list--page {
  max-height: none;
  padding-right: 0;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(148, 163, 184, 0.24);
}

.comment-row {
  align-items: stretch;
}

.comment-body {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(226, 232, 240, 0.82);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.04);
}

.comment-text {
  white-space: pre-wrap;
}

.comment-anon-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #4338ca;
  background: #e0e7ff;
}

.comment-input-row {
  padding: 0;
  background: transparent;
  border: none;
}

.comment-compose-box {
  position: relative;
  overflow: hidden;
  padding: 12px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.comment-compose-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.3), transparent 30%, transparent 70%, rgba(2, 132, 199, 0.06));
  pointer-events: none;
}

.comment-compose-box.expanded {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.2);
  box-shadow: 0 22px 38px rgba(15, 23, 42, 0.1);
}

.comment-compose-box textarea {
  min-height: 46px;
  height: 46px;
  margin-bottom: 0;
  resize: none;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.comment-compose-box.expanded textarea {
  min-height: 84px;
}

.comment-compose-box textarea:focus {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.comment-compose-extras {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.comment-compose-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.post-option-label--comment {
  margin-bottom: 0;
}

.post-images-preview--comment {
  margin-bottom: 0;
}

.image-grid-item,
.post-preview-item {
  border: none;
  padding: 0;
  cursor: pointer;
  background: transparent;
}

.image-grid-item {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #e2e8f0;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.image-grid-item:active,
.post-preview-item:active {
  transform: scale(0.99);
}

.image-grid-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
}

.image-grid-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.comment-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.comment-image-grid .image-grid-item {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
}

.image-viewer-modal {
  background: rgba(2, 6, 23, 0.84);
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.image-viewer-shell {
  position: relative;
  overflow: hidden;
  width: min(94vw, 980px);
  max-height: 92vh;
  padding: 14px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(10, 24, 39, 0.92), rgba(12, 52, 70, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.image-viewer-shell::before {
  content: '';
  position: absolute;
  inset: -40% auto auto -18%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18), transparent 68%);
  pointer-events: none;
}

.image-viewer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.image-viewer-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  height: min(72vh, 760px);
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 34%),
    rgba(6, 23, 33, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  user-select: none;
}

.image-viewer-stage.is-zoomed {
  cursor: grab;
}

.image-viewer-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.2);
  transform-origin: center center;
  transition: transform 0.08s linear;
  will-change: transform;
  cursor: grab;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.image-viewer-close {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  flex-shrink: 0;
}

.image-viewer-caption {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.image-viewer-hint {
  margin: 0;
  text-align: center;
  color: rgba(226, 232, 240, 0.76);
  font-size: 12px;
  line-height: 1.6;
}

.recommend-card:hover,
.profile-account-card:hover,
.admin-manage-card:hover,
.dashboard-hero:hover,
.profile-entry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.12);
}

.recommend-card,
.profile-account-card,
.admin-manage-card,
.dashboard-hero,
.profile-entry-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

/* Toast */
.toast {
  position: fixed;
  bottom: calc(96px + env(safe-area-inset-bottom, 0));
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  z-index: 2000;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  animation: toastIn 2.2s ease forwards;
}

@keyframes toastIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
  12% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  88% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px);
  }
}

.dashboard-page-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 14px 16px;
}

.behavior-page-wrap .insight-section {
  max-width: none;
  margin: 16px 0 0;
  padding: 0;
}

.admin-page-wrap {
  max-width: 980px;
}

.admin-hero {
  margin-bottom: 16px;
}

.admin-hero--banner {
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.2), transparent 34%),
    radial-gradient(circle at bottom left, rgba(251, 146, 60, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.95));
}

.admin-hero--users {
  background:
    radial-gradient(circle at top right, rgba(225, 29, 72, 0.18), transparent 34%),
    radial-gradient(circle at bottom left, rgba(244, 63, 94, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 242, 0.95));
}

.admin-manage-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 14px;
}

.admin-manage-grid--users {
  grid-template-columns: 1.12fr 0.88fr;
}

.admin-manage-card {
  min-height: 100%;
  padding: 20px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(148, 163, 184, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.07);
}

.admin-page-head {
  margin-bottom: 14px;
}

.admin-page-head .section-title {
  font-size: 20px;
}

.admin-page-head .section-desc {
  max-width: 260px;
}

.dashboard-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-back-btn,
.dashboard-refresh-btn {
  border: none;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-back-btn {
  background: rgba(79, 70, 229, 0.12);
  color: var(--brand);
}

.dashboard-refresh-btn {
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
  color: #fff;
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.22);
}

.dashboard-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(79, 70, 229, 0.22), transparent 34%),
    radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.94));
  border: 1px solid rgba(99, 102, 241, 0.15);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.1);
  position: relative;
  overflow: hidden;
  animation: riseIn 0.6s ease both;
}

.dashboard-hero::after {
  content: '';
  position: absolute;
  inset: auto -10% -35% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24), transparent 68%);
  filter: blur(2px);
  animation: pageDrift 10s ease-in-out infinite alternate;
  pointer-events: none;
}

.dashboard-hero-copy {
  margin: 10px 0 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
}

.hero-meta-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.hero-meta-chip {
  padding: 14px 15px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.76));
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
}

.hero-meta-chip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.hero-meta-chip strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  color: var(--text);
}

.hero-meta-chip small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.dashboard-access-badge {
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  color: #0369a1;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.dashboard-summary-card,
.dashboard-admin-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.dashboard-summary-card::before,
.dashboard-admin-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.32), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.18));
  pointer-events: none;
}

.dashboard-summary-card > *,
.dashboard-admin-card > * {
  position: relative;
  z-index: 1;
}

.dashboard-summary-card--1 {
  background:
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.18), transparent 28%),
    rgba(255, 255, 255, 0.94);
}

.dashboard-summary-card--2 {
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.16), transparent 28%),
    rgba(255, 255, 255, 0.94);
}

.dashboard-summary-card--3 {
  background:
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.18), transparent 28%),
    rgba(255, 255, 255, 0.94);
}

.dashboard-summary-card--4 {
  background:
    radial-gradient(circle at top right, rgba(225, 29, 72, 0.14), transparent 28%),
    rgba(255, 255, 255, 0.94);
}

.dashboard-summary-card span,
.dashboard-admin-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-summary-card strong,
.dashboard-admin-card strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
  color: var(--text);
}

.dashboard-summary-card p,
.dashboard-admin-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.dashboard-admin-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.dashboard-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.dashboard-card {
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(148, 163, 184, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.07);
  position: relative;
  overflow: hidden;
  animation: riseIn 0.62s ease both;
}

.dashboard-card-wide {
  grid-column: span 2;
}

.dashboard-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.dashboard-card-head h3 {
  margin: 0;
  font-size: 20px;
  color: var(--text);
}

.dashboard-card-head p {
  margin: 0;
  max-width: 280px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: right;
}

.dashboard-card-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.dashboard-toggle-group {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.dashboard-toggle {
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-toggle.active {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.18), rgba(2, 132, 199, 0.16));
  color: var(--brand);
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.12);
}

.dashboard-toggle:hover {
  transform: translateY(-1px);
}

.dashboard-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.dashboard-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.dashboard-chart-legend-item i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dashboard-line-chart {
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.88), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.dashboard-line-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.dashboard-trend-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.dashboard-trend-stat {
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(226, 232, 240, 0.82);
}

.dashboard-trend-stat span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.dashboard-trend-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  color: var(--text);
}

.dashboard-trend-stat small {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 11px;
}

.dashboard-grid-line {
  stroke: rgba(148, 163, 184, 0.18);
  stroke-width: 1;
}

.dashboard-axis-text {
  fill: #64748b;
  font-size: 11px;
  font-family: var(--font);
}

.dashboard-line-point {
  stroke: #fff;
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center center;
}

.dashboard-line-area {
  opacity: 0.88;
}

.dashboard-line-path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}

.dashboard-card.is-ready .dashboard-line-path {
  animation: lineDraw 1.25s ease forwards;
}

.dashboard-card.is-ready .dashboard-line-point {
  animation: pointPop 0.44s ease forwards;
}

.dashboard-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-bar-row + .dashboard-bar-row {
  margin-top: 12px;
}

.dashboard-bar-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
}

.dashboard-bar-head div {
  min-width: 0;
}

.dashboard-bar-head small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #94a3b8;
}

.dashboard-bar-head strong {
  color: var(--text);
}

.dashboard-bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.dashboard-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--bar-color, linear-gradient(90deg, var(--brand), var(--brand-2)));
}

.dashboard-card.is-ready .dashboard-bar-track span {
  animation: meterGrowX 0.88s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--bar-delay, 0ms);
}

.dashboard-donut-wrap {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
}

.dashboard-donut-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-donut {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.14);
  animation: softGlow 4.6s ease-in-out infinite;
}

.dashboard-donut-hole {
  width: 106px;
  height: 106px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.dashboard-donut-hole strong {
  font-size: 24px;
}

.dashboard-donut-hole span {
  font-size: 12px;
  color: var(--muted);
}

.dashboard-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-donut-legend-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.dashboard-donut-legend-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-donut-legend-row i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dashboard-donut-legend-row strong {
  color: var(--text);
}

.dashboard-keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.dashboard-keyword-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(var(--keyword-angle, 135deg), rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.94));
  color: var(--text);
  font-weight: 700;
  line-height: 1.1;
  font-size: var(--keyword-size, 15px);
  border: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
  opacity: 0;
  animation: chipRise 0.55s ease forwards;
  animation-delay: var(--keyword-delay, 0ms);
}

.dashboard-keyword-chip small {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--brand);
  font-size: 11px;
}

.dashboard-rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-rank-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.dashboard-rank-main {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.dashboard-rank-main div {
  min-width: 0;
}

.dashboard-rank-main strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

.dashboard-rank-main p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.dashboard-rank-index {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.18), rgba(14, 165, 233, 0.16));
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.dashboard-rank-value {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.dashboard-rank-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 130px;
}

.dashboard-rank-meter {
  width: 130px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.dashboard-rank-meter span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--rank-color, linear-gradient(90deg, var(--brand), var(--brand-2)));
}

.dashboard-card.is-ready .dashboard-rank-meter span {
  animation: meterGrowX 0.8s ease forwards;
}

.dashboard-hour-chart {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dashboard-hour-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-hour-stat {
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.dashboard-hour-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-hour-stat strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 20px;
}

.dashboard-hour-columns {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  min-height: 180px;
  padding: 16px 12px 10px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(226, 232, 240, 0.82);
}

.dashboard-hour-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 150px;
}

.dashboard-hour-bar {
  width: 100%;
  min-height: 12px;
  border-radius: 999px;
  background: var(--column-color, linear-gradient(180deg, #38bdf8, #0f766e));
  transform-origin: center bottom;
  transform: scaleY(0);
  box-shadow: 0 12px 20px rgba(14, 165, 233, 0.18);
}

.dashboard-card.is-ready .dashboard-hour-bar {
  animation: meterGrowY 0.82s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--column-delay, 0ms);
}

.dashboard-hour-column small {
  font-size: 11px;
  color: #64748b;
}

.dashboard-heatmap-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dashboard-heatmap-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-heatmap-stat {
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.88));
  border: 1px solid rgba(226, 232, 240, 0.82);
}

.dashboard-heatmap-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-heatmap-stat strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 20px;
}

.dashboard-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-heatmap-cell {
  padding: 12px 10px;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.82);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.9)),
    radial-gradient(circle at top right, rgba(15, 118, 110, calc(var(--heat-ratio, 0.08) * 0.32)), transparent 56%);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.07);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: chipRise 0.55s ease forwards;
  animation-delay: var(--heat-delay, 0ms);
}

.dashboard-heatmap-cell::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.35), rgba(15, 118, 110, calc(var(--heat-ratio, 0.08) + 0.16)));
}

.dashboard-heatmap-cell span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.dashboard-heatmap-cell strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  color: var(--text);
}

.dashboard-pulse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-pulse-card {
  padding: 15px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(2, 132, 199, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
  border: 1px solid rgba(226, 232, 240, 0.82);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.07);
}

.dashboard-pulse-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-pulse-card strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  color: var(--text);
}

.dashboard-pulse-card p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}

.dashboard-pulse-track {
  margin-top: 12px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.dashboard-pulse-track i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--pulse-color, linear-gradient(90deg, var(--brand), var(--brand-2)));
}

.dashboard-card.is-ready .dashboard-pulse-track i {
  animation: pulseRise 0.88s ease forwards;
  animation-delay: var(--pulse-delay, 0ms);
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 140;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0));
  background: linear-gradient(180deg, rgba(246, 248, 250, 0), rgba(246, 248, 250, 0.78));
  backdrop-filter: blur(18px);
}

.bottom-nav-inner {
  position: relative;
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 96px 1fr;
  gap: 12px;
  align-items: end;
  padding: 10px 14px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.bottom-nav-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 0%, rgba(15, 118, 110, 0.1), transparent 26%),
    radial-gradient(circle at 86% 0%, rgba(249, 115, 22, 0.12), transparent 26%);
  pointer-events: none;
}

.bottom-nav-item,
.bottom-nav-publish {
  border: none;
  background: transparent;
  cursor: pointer;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 56px;
  color: #64748b;
  border-radius: 18px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  position: relative;
  z-index: 1;
}

.bottom-nav-item.active {
  color: var(--brand);
  background: linear-gradient(145deg, rgba(15, 118, 110, 0.12), rgba(2, 132, 199, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 12px 24px rgba(15, 118, 110, 0.08);
  transform: translateY(-2px);
}

.bottom-nav-item:hover {
  transform: translateY(-2px);
}

.bottom-nav-glyph {
  font-size: 18px;
  line-height: 1;
}

.bottom-nav-text {
  font-size: 12px;
  font-weight: 700;
}

.bottom-nav-publish {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #fff;
}

.bottom-nav-plus {
  width: 54px;
  height: 54px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fb923c, #f97316, #ea580c);
  box-shadow: 0 18px 30px rgba(249, 115, 22, 0.28);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  animation: softGlow 3s ease-in-out infinite;
}

.bottom-nav-publish .bottom-nav-text {
  color: #ea580c;
}

@media (max-width: 900px) {
  .page-overview-grid,
  .hero-meta-chips {
    grid-template-columns: 1fr;
  }

  .dashboard-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-admin-summary,
  .dashboard-charts-grid,
  .admin-manage-grid,
  .admin-manage-grid--users {
    grid-template-columns: 1fr;
  }

  .dashboard-card-wide {
    grid-column: span 1;
  }

  .dashboard-card-head {
    flex-direction: column;
  }

  .dashboard-card-tools {
    width: 100%;
    align-items: flex-start;
  }

  .dashboard-card-head p {
    max-width: none;
    text-align: left;
  }

  .dashboard-toggle-group {
    justify-content: flex-start;
  }

  .dashboard-donut-wrap,
  .dashboard-heatmap-summary,
  .dashboard-hour-meta {
    grid-template-columns: 1fr;
  }

  .dashboard-pulse-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-heatmap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .page-overview-head,
  .post-signal-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-titles h1 {
    font-size: 16px;
  }

  .post-title {
    font-size: 15px;
  }

  .dashboard-toggle {
    padding: 7px 10px;
    font-size: 11px;
  }

  .admin-branding-actions {
    flex-direction: column;
  }

  .dashboard-hour-columns {
    gap: 4px;
    padding-left: 8px;
    padding-right: 8px;
  }
}

