* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #475569;
  background:
    radial-gradient(circle at top left, rgba(167, 139, 250, 0.22), transparent 26%),
    radial-gradient(circle at top right, rgba(217, 70, 239, 0.12), transparent 18%),
    linear-gradient(180deg, #fcfaff 0%, #f5efff 100%);
}

body.admin-body {
  background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
}

body.theme-dark {
  color: #cbd5e1;
  background:
    radial-gradient(circle at top left, rgba(91, 33, 182, 0.3), transparent 28%),
    radial-gradient(circle at top right, rgba(147, 51, 234, 0.18), transparent 20%),
    linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

a { color: inherit; text-decoration: none; }

.app-grid { display: grid; min-height: 100vh; grid-template-columns: 280px minmax(0, 1fr); }
.app-grid.is-collapsed { grid-template-columns: 0 minmax(0, 1fr); }
.sidebar { border-right: 1px dashed #dbe1f0; background: rgba(255,255,255,.72); backdrop-filter: blur(12px); padding: 24px 22px 30px; }
.app-grid.is-collapsed .sidebar { width: 0; padding: 0; border-right: 0; overflow: hidden; opacity: 0; pointer-events: none; }
.brand-row, .profile-card, .topbar, .stat-card, .surface-card, .hero-card, .topic-row, .reply-card, .auth-card, .admin-grid-card { box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06); }
.brand-row { display: flex; align-items: center; gap: 12px; }
.brand { font-size: 2.1rem; font-weight: 700; color: #7c3aed; letter-spacing: -0.05em; }
.version-pill, .badge, .rank-pill, .rank-chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 10px; font-size: .72rem; font-weight: 700; }
.version-pill { background: #f5d0fe; color: #a21caf; }
.sidebar-close, .sidebar-overlay { display: none; }
body.sidebar-open { overflow: hidden; }
.profile-card { margin-top: 20px; display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid #e5e7eb; border-radius: 22px; background: rgba(255,255,255,.95); }
.avatar-circle { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: white; background: linear-gradient(135deg, #c084fc, #7c3aed); }
.profile-meta { display: flex; flex-direction: column; gap: 4px; }
.profile-meta strong { color: #0f172a; }
.profile-meta span { font-size: .9rem; color: #64748b; }
.nav-group { margin-top: 28px; }
.nav-label { margin: 0 0 12px; font-size: .76rem; text-transform: uppercase; letter-spacing: .18em; color: #94a3b8; }
.nav-link { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; padding: 12px 14px; border-radius: 14px; transition: .2s ease; }
.nav-link:hover, .nav-link.is-active { background: #f3e8ff; color: #6d28d9; }
.nav-link-static { background: rgba(248,250,252,.7); color: #64748b; }
.nav-logout-form { margin: 0; }
.nav-link-button { width: 100%; display: flex; justify-content: flex-start; background: transparent; color: inherit; box-shadow: none; }
.nav-link-button:hover { background: #f3e8ff; color: #6d28d9; }
.content-area { background: rgba(252,251,255,.72); }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 18px 28px; border-bottom: 1px solid #eef2f7; background: rgba(255,255,255,.66); backdrop-filter: blur(10px); }
.menu-button { border: 1px solid #e9d5ff; background: #fff; color: #64748b; font-size: 1rem; cursor: pointer; padding: 10px 14px; border-radius: 14px; font-weight: 700; box-shadow: 0 12px 30px rgba(124, 58, 237, 0.08); }
.topbar-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.topbar-link, .user-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; border: 1px solid #ede9fe; background: rgba(255,255,255,.95); color: #6d28d9; font-size: .9rem; font-weight: 700; transition: .2s ease; }
.topbar-link:hover, .user-pill:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(124, 58, 237, 0.12); background: #faf5ff; }
.topbar-count { min-width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; padding: 0 6px; font-size: .73rem; font-weight: 800; color: white; background: linear-gradient(135deg, #c026d3, #7c3aed); }
.user-pill { background: linear-gradient(135deg, #faf5ff, #f5f3ff); }
.theme-toggle { font: inherit; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu-panel { position: absolute; top: calc(100% + 10px); right: 0; min-width: 220px; padding: 10px; border: 1px solid #ede9fe; border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14); }
.user-menu-link, .user-menu-button { display: flex; width: 100%; align-items: center; justify-content: flex-start; padding: 11px 12px; border-radius: 12px; color: #475569; background: transparent; border: 0; font: inherit; }
.user-menu-link:hover, .user-menu-button:hover { background: #faf5ff; color: #6d28d9; }
.user-menu-form { margin: 0; }
.page-content { padding: 30px 28px 40px; }
.hero-card, .surface-card, .stat-card, .reply-card, .auth-card, .admin-grid-card { border: 1px solid #e8eaf4; border-radius: 22px; background: rgba(255,255,255,.92); }
.hero-card { display: flex; justify-content: space-between; gap: 24px; padding: 34px; color: white; background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 55%, #d946ef 100%); }
.hero-card h1, .hero-card p, .topic-main h3, .topic-main p, .reply-card p, .reply-card h4 { margin: 0; }
.hero-card h1 { font-size: 2.4rem; line-height: 1.15; }
.hero-card p { margin-top: 14px; max-width: 780px; color: rgba(255,255,255,.92); font-size: 1.05rem; line-height: 1.8; }
.hero-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.button, button, input[type="submit"] { border: 0; border-radius: 12px; padding: 12px 16px; font: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.button-primary, button, input[type="submit"] { background: linear-gradient(135deg, #7c3aed, #d946ef); color: white; }
.button-soft { background: rgba(255,255,255,.15); color: white; border: 1px solid rgba(255,255,255,.32); }
.button-danger { background: linear-gradient(135deg, #dc2626, #f43f5e); color: white; }
.hero-rocket { align-self: center; font-size: 5.4rem; animation: float 5s ease-in-out infinite; }
.stats-grid, .admin-grid, .grid-two { display: grid; gap: 24px; margin-top: 28px; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-card, .admin-grid-card, .surface-card, .auth-card { padding: 24px; }
.stat-label { margin: 0; color: #64748b; font-size: 1rem; }
.stat-value { margin: 10px 0 0; font-size: 1.9rem; font-weight: 700; color: #0f172a; }
.section-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.section-header h2, .section-header h3, .topic-main h3, .reply-card h4 { color: #0f172a; }
.topic-list, .reply-list, .category-list, .stack-list, .table-like { display: flex; flex-direction: column; gap: 14px; }
.topic-row, .reply-card { border: 1px solid #edf0f7; border-radius: 18px; background: white; padding: 18px; }
.topic-row { display: grid; grid-template-columns: minmax(0, 2.6fr) 1.2fr 0.8fr 0.8fr; gap: 18px; align-items: center; }
.topic-main p, .reply-card p, .muted { color: #64748b; }
.meta-stack { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.metric-pill { display: inline-flex; justify-content: center; padding: 10px 12px; min-width: 74px; border-radius: 999px; background: #faf5ff; color: #7c3aed; font-weight: 700; }
.badge-admin { background: #fdf2f8; color: #be185d; }
.badge-mod { background: #ecfeff; color: #0f766e; }
.badge-user, .rank-pill { background: #ede9fe; color: #6d28d9; }
.rank-chip { border: 1px solid transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); padding: 0; overflow: hidden; min-height: 36px; background: #31456b; color: white; }
.rank-chip-name, .rank-chip-icon { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; }
.rank-chip-name { padding: 0 14px; font-size: .78rem; font-weight: 800; letter-spacing: .03em; }
.rank-chip-icon { min-width: 42px; padding: 0 10px; border-left: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.1); font-size: .84rem; font-weight: 900; }
.rank-chip-new { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #eff6ff; }
.rank-chip-active { background: linear-gradient(135deg, #10b981, #047857); color: #ecfdf5; }
.rank-chip-senior { background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #f5f3ff; }
.rank-chip-expert { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff1f2; }
.rank-chip-legend { background: linear-gradient(135deg, #334155, #1e293b); color: #e0f2fe; }
.flash { margin-bottom: 16px; padding: 14px 16px; border-radius: 14px; }
.flash-success { background: #ecfdf5; color: #047857; }
.flash-error { background: #fef2f2; color: #b91c1c; }
.flash-info { background: #eff6ff; color: #1d4ed8; }
.form-grid { display: grid; gap: 14px; }
label { display: block; margin-bottom: 6px; color: #334155; font-weight: 600; }
input, textarea, select { width: 100%; padding: 12px 14px; border: 1px solid #dbe1f0; border-radius: 12px; background: white; color: #0f172a; font: inherit; }
textarea { min-height: 140px; resize: vertical; }
.inline-form { margin: 0; display: inline-flex; }
.table-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr auto; gap: 14px; align-items: center; padding: 16px; border: 1px solid #edf0f7; border-radius: 16px; background: white; }
.empty-state { padding: 28px; border: 1px dashed #dbe1f0; border-radius: 18px; text-align: center; color: #64748b; }
.pagination { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.pagination-link { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; padding: 10px 12px; border-radius: 12px; background: white; border: 1px solid #e2e8f0; color: #64748b; }
.pagination-link.is-active { background: linear-gradient(135deg, #7c3aed, #d946ef); color: white; border-color: transparent; }

.forum-topic-table .table-row {
  grid-template-columns: minmax(220px, 2fr) 1fr 0.9fr 0.8fr 0.9fr;
}

.table-row-head {
  background: #f8fafc;
  border-style: dashed;
  font-weight: 700;
}

.admin-shell {
  min-height: 100vh;
  display: block;
}

.admin-nav-link {
  padding: 10px 14px;
  border-radius: 14px;
  color: #64748b;
  background: #f8fafc;
  white-space: nowrap;
}

.admin-nav-link.is-active,
.admin-nav-link:hover {
  background: linear-gradient(135deg, #7c3aed, #d946ef);
  color: white;
}

.admin-content {
  padding: 24px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding: 22px 24px;
  border-radius: 22px;
  background: white;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  flex-wrap: wrap;
}

.admin-topbar h1 {
  margin: 0 0 6px;
  color: #0f172a;
}

.admin-topbar p {
  margin: 0;
  color: #64748b;
}

.admin-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-topbar-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.admin-topnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.forum-block {
  margin-top: 32px;
}
.topic-shell { padding: 18px; }
.topic-shell-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.forum-post-list { gap: 18px; }
.forum-post { overflow: hidden; border: 1px solid #d8e1ea; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06); }
.forum-post-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: #103554; border-bottom: 1px solid #0e2f49; color: #f8fafc; font-size: .98rem; font-weight: 700; }
.forum-post-bar span:last-child { background: #1ed7ef; color: #0f172a; padding: 10px 12px; margin: -14px -18px -14px 0; min-width: 56px; text-align: center; font-weight: 800; }
.forum-post-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.forum-post-author { padding: 18px 18px 0; border-right: 1px solid #edf2f7; display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; background: #fbfdff; }
.forum-post-status { position: absolute; top: 126px; right: 58px; width: 14px; height: 14px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14); }
.forum-post-avatar { width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #f5d0fe, #8b5cf6); color: white; font-size: 2.4rem; font-weight: 800; }
.forum-post-name { color: #7c3aed; font-size: 1.35rem; font-weight: 700; line-height: 1; }
.forum-post-body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.forum-post-stats { display: flex; justify-content: flex-end; gap: 24px; flex-wrap: wrap; color: #475569; font-size: .95rem; }
.forum-post-stats-side { width: calc(100% + 36px); margin: 4px -18px 0; padding: 16px 18px; border-top: 1px solid #edf2f7; background: #f8fbfc; flex-direction: column; gap: 10px; font-size: .95rem; }
.forum-post-stats-side span { display: flex; justify-content: space-between; gap: 14px; color: #475569; }
.forum-post-content { color: #334155; line-height: 1.8; font-size: 1.04rem; min-height: 180px; }
.forum-post-content p { margin: 0; }
.forum-post-toolbar, .forum-post-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.forum-post-toolbar { justify-content: space-between; align-items: center; }
.forum-post-toolbar-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.forum-post-date-label { color: #94a3b8; font-size: .92rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.forum-post-toolbar .button { padding: 10px 14px; border-radius: 8px; background: #4b5563; }
.forum-post-content blockquote { margin: 0; padding: 14px 16px; border-left: 4px solid #8b5cf6; border-radius: 12px; background: #f8fafc; color: #334155; }


.home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.home-main { display: flex; flex-direction: column; gap: 24px; }
.home-side { display: flex; flex-direction: column; gap: 24px; }
.activity-card, .forum-overview-card, .side-card { padding: 24px; }
.activity-tabs { display: inline-flex; gap: 8px; padding: 8px; border-radius: 16px; background: #f1f5f9; margin-bottom: 18px; }
.activity-tab { padding: 10px 16px; border-radius: 12px; color: #64748b; font-weight: 600; }
.activity-tab.is-active { background: white; color: #0f172a; box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08); }
.activity-table, .forum-overview-table { display: flex; flex-direction: column; min-width: 0; }
.activity-row { display: grid; grid-template-columns: 24px 132px minmax(160px, 1fr) 150px 74px 74px 74px; gap: 14px; align-items: center; padding: 16px 8px; border-top: 1px solid #edf2f7; }
.activity-row-head { padding-top: 0; padding-bottom: 14px; border-top: 0; color: #94a3b8; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.activity-pin { width: 18px; height: 6px; border-radius: 999px; background: linear-gradient(135deg, #2563eb, #4f46e5); display: inline-block; }
.activity-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.activity-user-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.activity-user-meta strong a, .activity-topic strong a, .forum-overview-topic strong a, .forum-overview-last strong a { color: #0f172a; }
.activity-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #60a5fa, #7c3aed); color: white; font-weight: 700; flex-shrink: 0; }
.activity-avatar-small { width: 28px; height: 28px; font-size: .78rem; }
.activity-topic { min-width: 0; }
.activity-topic strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-forum, .activity-metric { color: #475569; font-weight: 500; min-width: 0; }
.activity-avatars { display: flex; align-items: center; }
.activity-metric { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; border: 1px solid #e2e8f0; border-radius: 999px; padding: 0 10px; background: #fff; }
.app-grid:not(.is-collapsed) .home-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; }
.app-grid:not(.is-collapsed) .activity-row { grid-template-columns: 18px 120px minmax(140px, 1fr) 132px 64px 64px 64px; gap: 12px; padding-left: 6px; padding-right: 6px; }
.forum-overview-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, .9fr); gap: 24px; align-items: center; padding: 18px 12px; border-top: 1px solid #edf2f7; }
.forum-overview-head { padding-top: 0; padding-bottom: 12px; color: #94a3b8; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.forum-overview-topic { display: flex; gap: 14px; align-items: flex-start; }
.forum-overview-icon { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #eef2ff, #ede9fe); color: #4f46e5; font-weight: 800; flex-shrink: 0; }
.forum-overview-topic p, .forum-overview-last span, .side-card p { margin: 6px 0 0; color: #64748b; line-height: 1.6; }
.forum-overview-last { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.side-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.side-card-head h3, .side-card h3 { margin: 0; color: #0f172a; }
.side-card-head p { margin: 4px 0 0; }
.side-icon { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #eef2ff, #ede9fe); color: #4f46e5; font-weight: 800; }
.side-user-list { display: flex; flex-direction: column; gap: 12px; }
.side-user { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf2f7; }
.side-user:last-child { border-bottom: 0; padding-bottom: 0; }
.side-user .rank-pill { margin-left: auto; }
.side-highlight { background: linear-gradient(180deg, rgba(239, 246, 255, .96), rgba(238, 242, 255, .96)); text-align: center; }
.side-highlight .side-icon { margin: 0 auto 14px; }
.side-button { width: 100%; margin-top: 18px; }
.side-promo { margin-top: 16px; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, #2563eb 0%, #4f46e5 65%, #7c3aed 100%); padding: 18px; color: white; }
.side-promo-brand { font-size: 1.4rem; font-weight: 800; text-align: center; }
.side-promo-window { margin-top: 14px; border-radius: 14px; background: rgba(255,255,255,.18); padding: 10px; }
.side-promo-bar { height: 20px; border-radius: 999px; background: rgba(255,255,255,.26); }
.side-promo-screen { margin-top: 10px; height: 140px; border-radius: 12px; background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(224,231,255,.9)); }
.side-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.site-footer { margin-top: 28px; border-top: 1px solid #e8eaf4; background: rgba(255,255,255,.86); backdrop-filter: blur(10px); }
.site-footer-inner { max-width: 1600px; margin: 0 auto; padding: 20px 28px; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.site-footer-inner strong { color: #0f172a; display: block; margin-bottom: 6px; }
.site-footer-inner p { margin: 0; color: #64748b; }
.site-footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer-links a { color: #6d28d9; font-weight: 600; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}

@media (max-width: 1100px) {
  .stats-grid, .admin-grid, .grid-two, .topic-row, .table-row, .home-layout, .activity-row, .forum-overview-row, .forum-post-grid { grid-template-columns: 1fr; }
  .forum-post-author { border-right: 0; border-bottom: 1px solid #edf2f7; padding-bottom: 0; }
  .topic-shell-head { flex-direction: column; }
  .forum-post-status { top: 126px; right: auto; left: calc(50% + 32px); }
  .forum-post-stats-side { width: calc(100% + 36px); }
}

@media (max-width: 900px) {
  .app-grid { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%); z-index: 40; transition: transform .25s ease; }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 30; background: rgba(15, 23, 42, 0.45); border: 0; padding: 0; cursor: pointer; }
  body.sidebar-open .sidebar-overlay { display: block; }
  .sidebar-close { display: inline-flex; margin-left: auto; border: 1px solid #e9d5ff; background: #fff; color: #6d28d9; padding: 8px 12px; border-radius: 12px; font-weight: 700; }
  .page-content, .topbar { padding-left: 18px; padding-right: 18px; }
  .hero-card { padding: 24px; flex-direction: column; }
  .admin-content { padding: 18px; }
  .forum-topic-table .table-row { grid-template-columns: 1fr; }
  .activity-card, .forum-overview-card, .side-card { padding: 18px; }
  .activity-row, .forum-overview-row { gap: 10px; padding-left: 0; padding-right: 0; }
  .site-footer-inner { padding: 18px; flex-direction: column; align-items: flex-start; }
}

body.theme-dark .sidebar,
body.theme-dark .topbar,
body.theme-dark .profile-card,
body.theme-dark .surface-card,
body.theme-dark .stat-card,
body.theme-dark .hero-card,
body.theme-dark .reply-card,
body.theme-dark .auth-card,
body.theme-dark .admin-grid-card,
body.theme-dark .topic-row,
body.theme-dark .forum-block,
body.theme-dark .forum-topic-table,
body.theme-dark .table-shell,
body.theme-dark .user-menu-panel { background: rgba(15, 23, 42, 0.86); border-color: rgba(148, 163, 184, 0.2); box-shadow: 0 22px 40px rgba(0, 0, 0, 0.24); }
body.theme-dark .content-area { background: rgba(15, 23, 42, 0.52); }
body.theme-dark .profile-meta strong,
body.theme-dark .hero-card h1,
body.theme-dark .section-header h2,
body.theme-dark .stat-value,
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4 { color: #f8fafc; }
body.theme-dark .profile-meta span,
body.theme-dark .nav-label,
body.theme-dark .muted,
body.theme-dark .stat-label,
body.theme-dark .topic-meta,
body.theme-dark .table-head,
body.theme-dark .forum-description { color: #94a3b8; }
body.theme-dark .nav-link,
body.theme-dark .nav-link-static,
body.theme-dark .user-menu-link,
body.theme-dark .user-menu-button { color: #cbd5e1; }
body.theme-dark .activity-user-meta strong a,
body.theme-dark .activity-topic strong a,
body.theme-dark .forum-overview-topic strong a,
body.theme-dark .forum-overview-last strong a,
body.theme-dark .side-card h3,
body.theme-dark .side-card-head h3 { color: #f8fafc; }
body.theme-dark .activity-tab { color: #cbd5e1; }
body.theme-dark .activity-tab.is-active,
body.theme-dark .activity-metric,
body.theme-dark .forum-overview-icon,
body.theme-dark .side-icon { background: rgba(30, 41, 59, 0.92); color: #e9d5ff; border-color: rgba(167, 139, 250, 0.28); }
body.theme-dark .activity-tabs { background: rgba(30, 41, 59, 0.76); }
body.theme-dark .activity-row,
body.theme-dark .forum-overview-row,
body.theme-dark .side-user { border-color: rgba(148, 163, 184, 0.16); }
body.theme-dark .side-highlight { background: linear-gradient(180deg, rgba(30, 41, 59, .95), rgba(17, 24, 39, .95)); }
body.theme-dark .forum-post { background: rgba(15, 23, 42, 0.86); border-color: rgba(148, 163, 184, 0.2); }
body.theme-dark .forum-post-bar { background: #0f2d45; border-color: rgba(148, 163, 184, 0.16); color: #e2e8f0; }
body.theme-dark .forum-post-author { border-color: rgba(148, 163, 184, 0.16); }
body.theme-dark .forum-post-name,
body.theme-dark .forum-post-content { color: #f8fafc; }
body.theme-dark .forum-post-stats { color: #cbd5e1; }
body.theme-dark .forum-post-content blockquote { background: rgba(30, 41, 59, .92); color: #e2e8f0; }
body.theme-dark .forum-post-stats-side { background: rgba(30, 41, 59, .72); border-color: rgba(148, 163, 184, 0.16); }
body.theme-dark .forum-post-stats-side span,
body.theme-dark .forum-post-date-label { color: #cbd5e1; }
body.theme-dark .site-footer { background: rgba(15, 23, 42, 0.82); border-color: rgba(148, 163, 184, 0.16); }
body.theme-dark .site-footer-inner strong { color: #f8fafc; }
body.theme-dark .site-footer-inner p { color: #cbd5e1; }
body.theme-dark .site-footer-links a { color: #e9d5ff; }
body.theme-dark .nav-link:hover,
body.theme-dark .nav-link.is-active,
body.theme-dark .user-menu-link:hover,
body.theme-dark .user-menu-button:hover,
body.theme-dark .topbar-link:hover,
body.theme-dark .user-pill:hover { background: rgba(91, 33, 182, 0.24); color: #f5d0fe; }
body.theme-dark .topbar-link,
body.theme-dark .user-pill,
body.theme-dark .menu-button,
body.theme-dark .sidebar-close { background: rgba(30, 41, 59, 0.9); border-color: rgba(167, 139, 250, 0.28); color: #e9d5ff; }
