/* ==========================================================================
   Galaxy Roleplay - Forum Styles
   Clean, natural design with clear structure
   ========================================================================== */

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0f1c;
  --bg-white: #151d2e;
  --bg-hover: #212c43;
  --bg-active: #1d2f52;
  --border: #2a3650;
  --border-light: #1f2940;
  --text: #eef2f9;
  --text-secondary: #aab6cc;
  --text-muted: #7b89a3;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-light: #1d2f52;
  --green: #34d399;
  --green-light: #0f3d2b;
  --red: #f87171;
  --red-light: #4a1d1d;
  --orange: #fb923c;
  --orange-light: #3d1a08;
  --purple: #c4b5fd;
  --purple-light: #32216b;
  --gold: #fde047;
  --gold-light: #42300f;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
  --transition: 0.2s ease;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-image: url('https://images.pexels.com/photos/346529/pexels-photo-346529.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 56px;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-logo svg,
.nav-logo img {
  color: var(--accent);
}

.nav-center {
  flex: 1;
  max-width: 480px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 12px;
  transition: border-color var(--transition);
}

.search-box:focus-within {
  border-color: var(--accent);
}

.search-box svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-box input {
  border: none;
  background: none;
  font-size: 0.9rem;
  color: var(--text);
  width: 100%;
  outline: none;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.87rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
}

.nav-link:hover {
  background: var(--bg-hover);
  color: var(--text);
  text-decoration: none;
}

.nav-link.active {
  background: var(--accent-light);
  color: var(--accent);
}

.nav-link svg {
  opacity: 0.7;
}

.btn-nav-login {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-size: 0.87rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-nav-login:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.forum-main {
  padding: 24px 0;
}

.forum-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

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

.sidebar-section {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

.sidebar-title svg {
  opacity: 0.5;
}

.sidebar-categories {
  padding: 6px;
}

.sidebar-cat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.87rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
}

.sidebar-cat:hover {
  background: var(--bg-hover);
  color: var(--text);
  text-decoration: none;
}

.sidebar-cat.active {
  background: var(--accent-light);
  color: var(--accent);
}

.sidebar-cat svg {
  opacity: 0.6;
  width: 16px;
  height: 16px;
}

.online-users {
  padding: 10px 16px;
}

.online-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.87rem;
}

.online-user span:last-child {
  margin-left: auto;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.stats-list {
  padding: 12px 16px;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.stat-row svg {
  color: var(--text-muted);
  opacity: 0.6;
  flex-shrink: 0;
}

.top-users {
  padding: 10px 16px;
}

.top-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.87rem;
}

/* ==========================================================================
   Avatars
   ========================================================================== */

.avatar-tiny {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.avatar-small {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.avatar-medium {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.avatar-green {
  background: var(--green);
}

.avatar-purple {
  background: var(--purple);
}

.avatar-blue {
  background: var(--accent);
}

.avatar-orange {
  background: var(--orange);
}

.avatar-gold {
  background: var(--gold);
}

.avatar-silver {
  background: #94a3b8;
}

.avatar-bronze {
  background: #b45309;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  image-rendering: pixelated;
}

/* ==========================================================================
   Profil-Modal / Profilbild-Picker
   ========================================================================== */

.profile-info {
  text-align: center;
  margin-bottom: 14px;
}

.profile-user {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
}

.profile-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 2px 0 8px;
}

.profile-preview-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.profile-preview-wrap .avatar-medium {
  width: 64px;
  height: 64px;
  background: var(--bg-hover);
}

.profile-preview-initial {
  font-size: 1.3rem;
  color: #fff;
}

.profile-picker-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
}

.profile-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.profile-option:hover {
  border-color: var(--accent-hover);
}

.profile-option.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.profile-option img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  image-rendering: pixelated;
}

.profile-option span {
  font-size: 12px;
  color: var(--text-secondary);
}

.profile-option.active span {
  color: var(--accent);
}

/* ==========================================================================
   Badges & Tags
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-admin {
  background: var(--red-light);
  color: var(--red);
}

.badge-mod {
  background: var(--accent-light);
  color: var(--accent);
}

.badge-new {
  background: var(--green-light, #ecfdf5);
  color: var(--green, #059669);
}

.tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 500;
}

.tag-important {
  background: var(--red-light);
  color: var(--red);
}

.tag-recruiting {
  background: var(--green-light);
  color: var(--green);
}

.tag-info {
  background: var(--accent-light);
  color: var(--accent);
}

.tag-guide {
  background: var(--purple-light);
  color: var(--purple);
}

.topic-category-tag {
  display: inline-flex;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 500;
}

.tag-general {
  background: var(--bg-hover);
  color: var(--text-secondary);
}

.tag-roleplay {
  background: var(--purple-light);
  color: var(--purple);
}

.tag-hilfe {
  background: var(--accent-light);
  color: var(--accent);
}

.tag-events {
  background: var(--orange-light);
  color: var(--orange);
}

.tag-medien {
  background: var(--red-light);
  color: var(--red);
}

.tag-regeln {
  background: var(--gold-light);
  color: var(--gold);
}

/* ==========================================================================
   Forum Welcome
   ========================================================================== */

.forum-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 24px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.forum-welcome h1 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.forum-welcome p {
  font-size: 0.87rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  border-radius: 4px;
}

.btn-icon:hover {
  color: var(--accent);
  background: var(--bg-hover);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
}

.section-header h2 svg {
  color: var(--text-muted);
  opacity: 0.5;
}

.see-all {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.see-all:hover {
  color: var(--accent);
}

/* ==========================================================================
   Categories Grid (Homepage)
   ========================================================================== */

.categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.category-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  grid-template-rows: auto auto;
  gap: 0 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
}

.category-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.category-card-icon {
  grid-row: 1 / 3;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card-info {
  min-width: 0;
}

.category-card-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.category-card-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-card-stats {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.category-card-stats strong {
  color: var(--text);
  font-weight: 600;
}

.category-card-latest {
  grid-column: 2 / 4;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.latest-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.latest-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.latest-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Topic Rows (Homepage Latest)
   ========================================================================== */

.recent-topics {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.topic-row {
  display: grid;
  grid-template-columns: 32px 40px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}

.topic-row:last-child {
  border-bottom: none;
}

.topic-row:hover {
  background: var(--bg-hover);
}

.topic-status {
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topic-status svg {
  width: 16px;
  height: 16px;
}

.topic-pinned svg {
  color: var(--gold);
}

.topic-hot svg {
  color: var(--orange);
}

.topic-avatar {
  display: flex;
}

.topic-info {
  min-width: 0;
}

.topic-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-title:hover {
  color: var(--accent);
  text-decoration: none;
}

.topic-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.topic-meta .badge {
  font-size: 0.65rem;
}

.topic-sep {
  opacity: 0.4;
}

.topic-stats {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.topic-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topic-stats svg {
  opacity: 0.5;
}

.topic-last-post {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
}

.last-post-info {
  display: flex;
  flex-direction: column;
}

.last-post-info span:first-child {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
}

.last-post-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Category Page
   ========================================================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb svg {
  opacity: 0.5;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.category-header-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-header-info {
  flex: 1;
}

.category-header-info h1 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.category-header-info p {
  font-size: 0.87rem;
  color: var(--text-secondary);
}

.thread-list-header {
  display: grid;
  grid-template-columns: 32px 1fr 80px 80px 160px;
  gap: 12px;
  padding: 10px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg-white);
  border-radius: var(--radius) var(--radius) 0 0;
}

.thread-list {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}

.thread-row {
  display: grid;
  grid-template-columns: 32px 1fr 80px 80px 80px 160px;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}

.thread-row:last-child {
  border-bottom: none;
}

.thread-row:hover {
  background: var(--bg-hover);
}

.thread-pinned {
  background: #33260d;
}

.thread-pinned:hover {
  background: #423014;
}

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

.thread-info {
  min-width: 0;
}

.thread-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.thread-title:hover {
  color: var(--accent);
}

.thread-tags {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.thread-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.thread-replies, .thread-views {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.thread-replies strong {
  color: var(--text);
}

.thread-last-post {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
}

.lp-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Thread / Posts
   ========================================================================== */

.thread-header {
  margin-bottom: 20px;
  padding: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.thread-header-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.thread-header h1 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.thread-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.posts-container {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.post {
  display: flex;
  gap: 0;
  background: var(--bg-white);
}

.post-sidebar {
  width: 160px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #182032;
  border-right: 1px solid var(--border-light);
  flex-shrink: 0;
}

.post-content {
  flex: 1;
  min-width: 0;
  padding: 20px;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.post-author {
  font-weight: 700;
  font-size: 0.9rem;
}

.post-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: auto;
}

.post-body {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
}

.post-body p {
  margin-bottom: 12px;
}

.post-body p:last-child {
  margin-bottom: 0;
}

.post-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 16px 0 8px;
}

.post-body ul, .post-body ol {
  margin: 8px 0 12px 20px;
}

.post-body li {
  margin-bottom: 4px;
}

.post-body strong {
  font-weight: 600;
}

.post-body blockquote {
  margin: 12px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: var(--bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.87rem;
  color: var(--text-secondary);
}

.post-actions {
  display: flex;
  gap: 4px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.post-action {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.post-action:hover {
  background: var(--bg-hover);
  color: var(--text-secondary);
}

.post-action.liked {
  color: var(--accent);
  background: var(--accent-light);
}

.post-action.liked:hover {
  background: var(--accent-light);
}

/* Participant list */
.participant-list {
  padding: 10px 16px;
}

.participant {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 0.85rem;
}

/* ==========================================================================
   Reply Box
   ========================================================================== */

.reply-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.reply-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  font-weight: 700;
}

.reply-header svg {
  color: var(--text-muted);
}

.reply-editor textarea {
  display: block;
  width: 100%;
  border: none;
  padding: 16px 20px;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  resize: vertical;
  outline: none;
  min-height: 120px;
}

.reply-editor textarea::placeholder {
  color: var(--text-muted);
}

.reply-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-top: 1px solid var(--border-light);
  background: #182032;
}

.toolbar-left {
  display: flex;
  gap: 2px;
}

.toolbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.toolbar-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 20px 0;
}

.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.page-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  color: var(--accent);
}

.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ==========================================================================
   Modals
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-white);
  border-radius: 12px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-lg {
  max-width: 580px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
  z-index: 1;
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.modal-header {
  text-align: center;
  padding: 32px 24px 16px;
}

.modal-header svg {
  color: var(--accent);
  margin-bottom: 12px;
}

.modal-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.modal-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.modal-form {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  margin-bottom: 16px;
}

.modal-divider::before, .modal-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.modal-divider span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-footer-text {
  text-align: center;
  padding: 12px 24px 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.modal-footer-text a {
  font-weight: 600;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group label svg {
  opacity: 0.5;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-white);
  transition: border-color var(--transition);
  outline: none;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input {
  cursor: pointer;
}

.checkbox-label a {
  font-weight: 500;
}

.link-small {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.link-small:hover {
  color: var(--accent);
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-social:hover {
  background: var(--bg);
}

/* ==========================================================================
   CAPTCHA
   ========================================================================== */

.captcha-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.captcha-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.captcha-group label svg {
  opacity: 0.5;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.captcha-text {
  font-family: "Courier New", monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-white);
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 3px;
  border: 1px solid var(--border);
  min-width: 100px;
  text-align: center;
}

.captcha-box input {
  flex: 1;
  border: none;
  background: none;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
}

.captcha-box input::placeholder {
  color: var(--text-muted);
}

/* ==========================================================================
   Toast
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 0.87rem;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast.success {
  border-left: 3px solid var(--green);
}

.toast.error {
  border-left: 3px solid var(--red);
}

.toast.info {
  border-left: 3px solid var(--accent);
}

/* ==========================================================================
   Impressum
   ========================================================================== */

.impressum-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.impressum-header {
  text-align: center;
  margin-bottom: 32px;
}

.impressum-header svg {
  color: var(--accent);
  margin-bottom: 12px;
}

.impressum-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.impressum-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.impressum-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.impressum-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: #182032;
  border-bottom: 1px solid var(--border-light);
}

.card-header svg {
  color: var(--accent);
}

.card-header h2 {
  font-size: 0.95rem;
  font-weight: 700;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.info-row svg {
  color: var(--accent);
  opacity: 0.6;
  margin-top: 2px;
  flex-shrink: 0;
}

.info-row strong {
  display: block;
  font-size: 0.9rem;
}

.info-row span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.info-row a {
  font-size: 0.85rem;
}

.impressum-legal {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-section {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.legal-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.legal-section h3 svg {
  color: var(--accent);
}

.legal-section p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 16px 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.footer-left svg,
.footer-left img {
  opacity: 0.4;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

/* ==========================================================================
   Leerer Zustand
   ========================================================================== */

.empty-state {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 20px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state svg {
  color: var(--border);
  margin-bottom: 12px;
}

.empty-state .empty-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.empty-state .empty-text {
  font-size: 0.85rem;
}

.sidebar-empty {
  padding: 14px 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-white);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
}

/* ==========================================================================
   Bild-Upload & Anzeige
   ========================================================================== */

.dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 24px 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-hover);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.dropzone:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.dropzone svg {
  opacity: 0.6;
}

.attach-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.attach-thumb {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-hover);
}

.attach-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.attach-thumb button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.attach-thumb button:hover {
  background: #dc2626;
}

.post-images, .topic-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.post-images img, .topic-images img {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}

.topic-attach {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.topic-attach img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .forum-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .impressum-cards {
    grid-template-columns: 1fr;
  }

  .thread-list-header {
    display: none;
  }

  .thread-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 16px;
  }

  .thread-views {
    display: none;
  }

  .thread-last-post {
    display: none;
  }

  .topic-row {
    grid-template-columns: 32px 36px 1fr;
    gap: 10px;
  }

  .topic-stats {
    display: none;
  }

  .topic-last-post {
    display: none;
  }

  .post {
    flex-direction: column;
  }

  .post-sidebar {
    width: 100%;
    flex-direction: row;
    padding: 12px 16px;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .category-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .nav-center {
    display: none;
  }

  .forum-welcome {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .thread-header-meta {
    flex-direction: column;
    gap: 2px;
  }

  .footer-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* ==========================================================================
   Berechtigungshinweise
   ========================================================================== */

.perm-note {
  display: none;
  font-size: 0.85rem;
  color: var(--orange);
  margin-top: 6px;
  line-height: 1.5;
}

.reply-notice {
  display: none;
  padding: 14px 20px;
  background: #2b1a0e;
  border: 1px solid #7c4a1d;
  border-radius: var(--radius);
  margin-bottom: 16px;
  color: var(--orange);
  font-size: 0.87rem;
  font-weight: 500;
  text-align: center;
}

/* ==========================================================================
   User-Menü / Nav-User
   ========================================================================== */

.nav-user {
  position: relative;
}

.user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: -8px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 200;
  display: none;
  overflow: hidden;
}

.user-menu.open {
  display: block;
}

.user-menu-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
  font-size: 0.87rem;
}

.user-menu-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.user-menu-item:hover {
  background: var(--bg-hover);
  color: var(--text);
  text-decoration: none;
}

.user-menu-item:last-child {
  color: var(--red);
}

/* ==========================================================================
   Owner / Member Badges
   ========================================================================== */

.badge-owner {
  background: #42300f;
  color: #fde047;
}

.badge-member {
  background: #212c43;
  color: #aab6cc;
}

.avatar-red {
  background: var(--red);
}

/* ==========================================================================
   Post / Thread Sidebar Extras
   ========================================================================== */

.post-username {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  word-break: break-word;
}

/* ==========================================================================
   Admin Modal
   ========================================================================== */

.admin-add-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.admin-section-title svg {
  opacity: 0.5;
}

.admin-user-list {
  display: flex;
  flex-direction: column;
}

.admin-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
}

.admin-user-row:last-child {
  border-bottom: none;
}

.admin-user-ava {
  flex-shrink: 0;
}

.admin-user-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.admin-user-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.admin-user-email {
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-role-select {
  width: 110px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  background: var(--bg-white);
  color: var(--text);
  outline: none;
  cursor: pointer;
}

.user-role-select:focus {
  border-color: var(--accent);
}

.user-role-select option[value="admin"] {
  color: var(--red);
  font-weight: 600;
}

.user-role-select option[value="mod"] {
  color: var(--accent);
  font-weight: 600;
}

/* ==========================================================================
   Datenbank / forum.yml
   ========================================================================== */

.db-hint {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.db-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.btn-danger {
  margin-top: 12px;
  background: var(--red-light);
  border: 1px solid #7f1d1d;
  color: var(--red);
  font-weight: 600;
}

.btn-danger:hover {
  background: #7f1d1d;
  border-color: #b91c1c;
}

@media (max-width: 600px) {
  .admin-add-grid {
    grid-template-columns: 1fr;
  }

  .admin-user-row {
    flex-wrap: wrap;
  }

  .user-role-select {
    width: 100%;
    margin-top: 6px;
  }

  .db-actions {
    flex-direction: column;
  }
}

/* ==========================================================================
   Minecraft Home Accents (nur index.html)
   ========================================================================== */

.mc-hero {
  position: relative;
  overflow: hidden;
}

.mc-hero::before {
  content: "";
  display: block;
  height: 10px;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  background: repeating-linear-gradient(90deg, #6fbf4a 0 18px, #4c9a36 18px 36px);
  image-rendering: pixelated;
}

.mc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.mc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-hover);
  color: var(--text-secondary);
}

.mc-badge svg {
  flex-shrink: 0;
}

.mc-badge-online {
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.35);
}

.mc-title-pixel {
  color: var(--green);
}

.mc-server-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 6px;
}

.mc-server-ip {
  font-family: "Courier New", ui-monospace, Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.82rem;
}

.btn-outline-mc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-outline-mc:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ==========================================================================
   MODERN MINECRAFT REDESIGN (2026)
   ========================================================================== */

:root {
  --font-sans: "Rubik", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-px: "Press Start 2P", "Courier New", monospace;

  --bg: #080c16;
  --bg-white: rgba(17, 25, 45, 0.86);
  --bg-hover: #1b2742;
  --bg-active: #22345e;
  --border: rgba(126, 156, 224, 0.16);
  --border-light: rgba(126, 156, 224, 0.1);
  --text: #eef2ff;
  --text-secondary: #a7b3cf;
  --text-muted: #6c7a9c;

  --accent: #3ddc84;
  --accent-hover: #34c977;
  --accent-light: rgba(61, 220, 132, 0.13);

  --green: #34d399;
  --green-light: rgba(52, 211, 153, 0.14);
  --red: #fb7185;
  --red-light: rgba(251, 113, 133, 0.14);
  --orange: #fb923c;
  --orange-light: rgba(251, 146, 60, 0.14);
  --purple: #a78bfa;
  --purple-light: rgba(167, 139, 250, 0.14);
  --gold: #fbbf24;
  --gold-light: rgba(251, 191, 36, 0.14);

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 28px rgba(2, 6, 18, 0.4);
  --shadow-lg: 0 24px 60px rgba(2, 6, 18, 0.55);
  --transition: 0.2s ease;
}

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(61, 220, 132, 0.08), transparent 60%),
    radial-gradient(920px 480px at -10% 22%, rgba(167, 139, 250, 0.08), transparent 60%),
    linear-gradient(180deg, #05070f 0%, #0a1022 42%, #070b16 100%);
  background-attachment: fixed;
}

/* ------------- Navbar ------------- */

.navbar {
  background: rgba(8, 12, 24, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(2, 6, 18, 0.35);
}

.navbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--accent) 0 14px, #1d8f57 14px 28px);
  image-rendering: pixelated;
  opacity: 0.9;
}

.nav-logo {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.nav-logo svg,
.nav-logo img {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 8px rgba(61, 220, 132, 0.55));
}

.search-box {
  background: rgba(10, 15, 28, 0.65);
  border-color: var(--border);
  border-radius: 10px;
}

.nav-link {
  border-radius: 8px;
  font-weight: 600;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav-link.active {
  background: var(--accent-light);
  color: var(--accent);
}

.btn-nav-login {
  background: linear-gradient(135deg, #38e590 0%, #22c07a 100%);
  border: 1px solid rgba(34, 197, 122, 0.6);
  border-radius: 10px;
  color: #052016;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(52, 211, 153, 0.28);
}

.btn-nav-login:hover {
  background: linear-gradient(135deg, #2fd983 0%, #1fb06c 100%);
  border-color: rgba(34, 197, 122, 0.8);
  color: #052016;
}

.nav-user {
  cursor: pointer;
}

.nav-user .avatar-small {
  box-shadow: 0 0 0 2px var(--accent-light), 0 4px 12px rgba(2, 6, 18, 0.5);
}

.user-menu {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.97);
}

.user-menu-item {
  border-radius: 8px;
  margin: 2px 6px;
  padding: 9px 12px;
}

/* ------------- Buttons ------------- */

.btn {
  border-radius: 10px;
  font-weight: 600;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #22c07a 100%);
  border: 1px solid rgba(34, 197, 122, 0.55);
  color: #052016;
  box-shadow: 0 8px 22px rgba(52, 211, 153, 0.3);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #35d98a 0%, #20b26f 100%);
  border-color: rgba(34, 197, 122, 0.8);
  color: #052016;
  box-shadow: 0 10px 26px rgba(52, 211, 153, 0.42);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 12px 22px;
  font-size: 0.95rem;
}

.btn-social {
  border-radius: 10px;
}

.btn-icon {
  border-radius: 8px;
}

/* ------------- Panels / Cards ------------- */

.sidebar-section {
  background: linear-gradient(180deg, rgba(22, 32, 58, 0.92), rgba(12, 19, 38, 0.92));
  border-color: var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.sidebar-title {
  font-weight: 700;
}

.stat-row {
  border-radius: 8px;
}

.stat-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.categories-grid {
  gap: 14px;
}

.category-card {
  background: linear-gradient(180deg, rgba(22, 32, 58, 0.92), rgba(12, 19, 38, 0.92));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 220, 132, 0.45);
  box-shadow: 0 18px 40px rgba(2, 6, 18, 0.5), 0 0 34px rgba(61, 220, 132, 0.12);
}

.category-card-icon {
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 8px 18px rgba(2, 6, 18, 0.35);
}

.category-card h3 {
  font-weight: 700;
}

.section-header h2 {
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ------------- Topic / Thread rows ------------- */

.topic-row {
  background: linear-gradient(180deg, rgba(22, 32, 58, 0.9), rgba(12, 19, 38, 0.9));
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.topic-row:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.thread-row {
  background: linear-gradient(180deg, rgba(22, 32, 58, 0.9), rgba(12, 19, 38, 0.9));
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.thread-row:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

/* ------------- Category / Thread header ------------- */

.breadcrumb {
  font-weight: 500;
}

.category-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(22, 32, 58, 0.92), rgba(12, 19, 38, 0.92));
  border-color: var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.category-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--accent) 0 14px, #1d8f57 14px 28px);
}

.category-header-icon {
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 8px 18px rgba(2, 6, 18, 0.35);
}

.thread-header h1 {
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ------------- Posts / Reply ------------- */

.post {
  background: linear-gradient(180deg, rgba(22, 32, 58, 0.9), rgba(13, 20, 40, 0.9));
  border-color: var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.post-sidebar {
  border-right-color: rgba(126, 156, 224, 0.12);
}

.post-header {
  border-bottom-color: rgba(126, 156, 224, 0.12);
}

.reply-box {
  background: linear-gradient(180deg, rgba(22, 32, 58, 0.92), rgba(13, 20, 40, 0.92));
  border-color: var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.reply-editor textarea,
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(8, 12, 24, 0.6);
  border-color: var(--border);
  border-radius: 10px;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reply-editor textarea:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.12);
  outline: none;
}

.toolbar-btn {
  color: var(--text-secondary);
}

.toolbar-btn:hover {
  color: var(--accent);
  background: var(--accent-light);
}

/* ------------- Badges / Toast / Empty ------------- */

.badge {
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.toast {
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 44px rgba(2, 6, 18, 0.55);
}

.empty-state {
  background: rgba(15, 23, 42, 0.7);
  border-color: var(--border);
  border-radius: 14px;
}

.dropzone {
  border-radius: 12px;
}

/* ------------- Modals ------------- */

.modal-overlay {
  background: rgba(4, 7, 15, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal {
  background: linear-gradient(180deg, #141d37, #0d1527);
  border-color: var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(61, 220, 132, 0.08);
}

.modal-header h2 {
  font-weight: 800;
}

.modal-close {
  background: rgba(8, 12, 24, 0.7);
}

/* ------------- Footer ------------- */

.footer {
  background: rgba(8, 12, 24, 0.9);
  border-top: 1px solid var(--border);
}

.footer-left svg,
.footer-left img {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(61, 220, 132, 0.6));
}

.footer-links a:hover {
  color: var(--accent);
}

/* ==========================================================================
   MODERN MINECRAFT TITLE-SCREEN HERO (index.html)
   ========================================================================== */

.mc-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #070c18;
  min-height: 470px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px 132px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(61, 220, 132, 0.06), 0 0 60px rgba(61, 220, 132, 0.06);
}

.mc-hero::before {
  display: none;
}

.mc-hero-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #04060d 0%, #080e1c 50%, #0d1629 100%);
}

.mc-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.mc-orb-emerald {
  width: 380px;
  height: 380px;
  background: rgba(61, 220, 132, 0.5);
  top: -150px;
  right: -90px;
  animation: mcOrbA 16s ease-in-out infinite alternate;
}

.mc-orb-amethyst {
  width: 330px;
  height: 330px;
  background: rgba(124, 92, 255, 0.45);
  bottom: -130px;
  left: -80px;
  animation: mcOrbB 18s ease-in-out infinite alternate;
}

@keyframes mcOrbA {
  to {
    transform: translate(-24px, 20px) scale(1.08);
  }
}

@keyframes mcOrbB {
  to {
    transform: translate(22px, -16px) scale(1.06);
  }
}

.mc-float {
  position: absolute;
  z-index: 2;
  width: 46px;
  height: 46px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  image-rendering: pixelated;
  opacity: 0.95;
  filter: drop-shadow(0 10px 18px rgba(2, 6, 18, 0.5));
  pointer-events: none;
  animation: mcFloat linear infinite;
}

@keyframes mcFloat {
  0% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-16px) rotate(4deg);
  }
  100% {
    transform: translateY(0) rotate(-4deg);
  }
}

.mc-f1 { left: 7%; top: 16%; width: 54px; height: 54px; animation-duration: 7s; }
.mc-f2 { right: 9%; top: 20%; width: 40px; height: 40px; animation-duration: 9s; animation-delay: 0.8s; }
.mc-f3 { left: 13%; bottom: 34%; width: 34px; height: 34px; animation-duration: 8s; animation-delay: 1.6s; }
.mc-f4 { right: 14%; bottom: 28%; width: 58px; height: 58px; animation-duration: 6s; animation-delay: 0.4s; }
.mc-f5 { left: 44%; top: 10%; width: 30px; height: 30px; animation-duration: 10s; animation-delay: 2s; }

.mc-block-grass {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' shape-rendering='crispEdges'><rect width='24' height='24' fill='%237a4a26'/><rect x='18' y='10' width='4' height='4' fill='%2393613d'/><rect x='7' y='15' width='5' height='5' fill='%2393613d'/><rect x='0' y='0' width='24' height='9' fill='%236fbf4a'/><rect x='0' y='9' width='24' height='2' fill='%2359a13c'/><rect x='5' y='2' width='3' height='3' fill='%2388d660'/><rect x='14' y='5' width='4' height='3' fill='%2388d660'/></svg>");
}

.mc-block-diamond {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' shape-rendering='crispEdges'><rect width='24' height='24' fill='%2345c4ff'/><rect x='3' y='3' width='18' height='18' fill='%2366d3ff'/><rect x='6' y='6' width='5' height='5' fill='%23c8f0ff'/><rect x='16' y='6' width='3' height='3' fill='%2391e0ff'/><rect x='6' y='16' width='4' height='4' fill='%2391e0ff'/><rect x='16' y='14' width='4' height='4' fill='%2391e0ff'/></svg>");
}

.mc-block-creeper {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' shape-rendering='crispEdges'><rect width='24' height='24' fill='%230f2b14'/><rect x='3' y='3' width='18' height='18' fill='%2359c668'/><rect x='6' y='6' width='4' height='5' fill='%230f2b14'/><rect x='14' y='6' width='4' height='5' fill='%230f2b14'/><rect x='9' y='8' width='2' height='3' fill='%230f2b14'/><rect x='13' y='8' width='2' height='3' fill='%230f2b14'/><rect x='5' y='14' width='4' height='2' fill='%230f2b14'/><rect x='15' y='14' width='4' height='2' fill='%230f2b14'/><rect x='8' y='16' width='8' height='2' fill='%230f2b14'/></svg>");
}

.mc-block-dirt {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' shape-rendering='crispEdges'><rect width='24' height='24' fill='%2396633f'/><rect x='2' y='5' width='4' height='4' fill='%237b4c2b'/><rect x='10' y='2' width='4' height='4' fill='%237b4c2b'/><rect x='17' y='7' width='4' height='4' fill='%237b4c2b'/><rect x='6' y='13' width='4' height='4' fill='%237b4c2b'/><rect x='15' y='16' width='4' height='4' fill='%237b4c2b'/><rect x='3' y='19' width='4' height='4' fill='%237b4c2b'/></svg>");
}

.mc-block-gold {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' shape-rendering='crispEdges'><rect width='24' height='24' fill='%23e8a018'/><rect x='2' y='2' width='20' height='20' fill='%23f7c531'/><rect x='5' y='5' width='5' height='5' fill='%23ffe27a'/><rect x='15' y='5' width='4' height='4' fill='%23eec352'/><rect x='6' y='15' width='4' height='4' fill='%23eec352'/><rect x='15' y='14' width='5' height='5' fill='%23ffe27a'/></svg>");
}

.mc-terrain {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  z-index: 1;
  pointer-events: none;
}

.mc-terrain > div {
  position: absolute;
  left: 0;
  right: 0;
  background-repeat: repeat-x;
  animation: mcPan 10s linear infinite;
}

.mc-terrain-grass {
  bottom: 84px;
  height: 36px;
  background-image: repeating-linear-gradient(90deg, #6fbf4a 0 12px, #5aa03c 12px 24px);
  box-shadow: inset 0 4px 0 rgba(0, 0, 0, 0.28);
}

.mc-terrain-dirt {
  bottom: 44px;
  height: 44px;
  background-image: repeating-linear-gradient(90deg, #8a5a33 0 12px, #795028 12px 24px);
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.25);
}

.mc-terrain-stone {
  bottom: 0;
  height: 48px;
  background-image: repeating-linear-gradient(90deg, #5d6a77 0 12px, #4d5862 12px 24px);
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.25);
}

@keyframes mcPan {
  to {
    background-position-x: -48px;
  }
}

.mc-hero-inner {
  position: relative;
  z-index: 3;
  max-width: 720px;
  margin: 0 auto;
}

.mc-overline {
  font-family: var(--font-px);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #7fe0ac;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(61, 220, 132, 0.4);
}

.mc-badges {
  justify-content: center;
  margin-bottom: 16px;
}

.mc-badge {
  background: rgba(10, 16, 32, 0.75);
  border-color: var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.mc-badge-online {
  color: #4ade80;
  border-color: rgba(61, 220, 132, 0.45);
  background: rgba(52, 211, 153, 0.1);
}

.mc-badge-crossplay {
  color: #67e8f9;
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.08);
}

.mc-badge-version {
  color: #e2e8f0;
}

.mc-title {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 6px 0 14px;
  color: #f2f6ff;
  text-shadow: 0 6px 30px rgba(2, 6, 18, 0.6);
}

.mc-gradient {
  background: linear-gradient(92deg, #3ddc84 0%, #43c8ff 55%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mc-subtitle {
  max-width: 560px;
  margin: 0 auto 10px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.mc-server-row {
  justify-content: center;
  margin: 22px 0 10px;
}

.mc-server-ip {
  font-family: "Courier New", ui-monospace, Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 10px 16px;
  border: 1px solid rgba(61, 220, 132, 0.45);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: rgba(10, 16, 32, 0.8);
  color: #eafff4;
  box-shadow: 0 0 24px rgba(61, 220, 132, 0.14);
}

.btn-outline-mc {
  border-radius: 10px;
  padding: 9px 14px;
  border-color: var(--border);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline-mc:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(61, 220, 132, 0.08);
}

.mc-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.perm-note {
  text-align: center;
  margin-top: 12px;
}

/* ==========================================================================
   MODERN DISCORD CTA BANNER (index.html)
   ========================================================================== */

.mc-discord {
  margin-top: 28px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background:
    radial-gradient(600px 220px at 12% 130%, rgba(124, 92, 255, 0.2), transparent 60%),
    linear-gradient(120deg, rgba(22, 32, 58, 0.95), rgba(12, 19, 38, 0.95));
  padding: 26px 28px;
  box-shadow: var(--shadow);
}

.mc-discord::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, #5865f2 0 14px, #3b4fd0 14px 28px);
}

.mc-discord-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.mc-discord-info h2 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.mc-discord-info p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 760px) {
  .mc-hero {
    min-height: 0;
    padding: 46px 18px 116px;
    border-radius: 14px;
  }

  .mc-f1,
  .mc-f4 {
    display: none;
  }

  .mc-title {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .mc-discord-inner {
    justify-content: center;
    text-align: center;
  }

  .mc-server-row {
    justify-content: center;
  }
}

/* ==========================================================================
   REFINED PROFESSIONAL PASS
   ========================================================================== */

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 320px),
    linear-gradient(180deg, #0b0f19 0%, #080b12 55%, #06090f 100%);
  background-attachment: fixed;
}

.mc-orb,
.mc-float {
  display: none;
}

.mc-hero {
  text-align: left;
  border: 1px solid #232d46;
  background: #0a0e18;
  min-height: 0;
  padding: 48px 32px 108px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 30px 60px rgba(2, 6, 16, 0.45);
}

.mc-hero-sky {
  background: linear-gradient(180deg, #0d1220 0%, #090d17 70%, #070a12 100%);
}

.mc-hero-inner {
  margin: 0;
  max-width: 640px;
}

.mc-overline {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: #63d68f;
  opacity: 0.9;
  margin-bottom: 14px;
}

.mc-badges {
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}

.mc-badge {
  background: rgba(13, 18, 30, 0.8);
  border: 1px solid #232d47;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #8fa3c4;
  text-transform: uppercase;
}

.mc-badge-online {
  color: #6ee7a0;
  border-color: rgba(61, 220, 132, 0.35);
}

.mc-badge-online .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  background: #34d399;
  border-radius: 1px;
  animation: mcPulse 2.2s infinite;
}

@keyframes mcPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(52, 211, 153, 0);
  }
}

.mc-title {
  font-size: clamp(2.1rem, 5.2vw, 3.2rem);
  color: #f4f7ff;
  margin: 0 0 12px;
}

.mc-gradient {
  -webkit-background-clip: initial;
  background-clip: initial;
  background: none;
  -webkit-text-fill-color: #7ee6a6;
  color: #7ee6a6;
}

.mc-subtitle {
  margin: 0 0 14px;
  color: #8fa3c4;
  line-height: 1.55;
}

.mc-server-row {
  justify-content: flex-start;
  margin: 20px 0 12px;
}

.mc-server-ip {
  background: #070b13;
  border: 1px solid #232d47;
  border-left: 3px solid #34d399;
  border-radius: 8px;
  color: #dbeafe;
  box-shadow: none;
  padding: 10px 16px;
}

.btn-outline-mc {
  border: 1px solid #2a3552;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #9fb0cf;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn-outline-mc:hover {
  border-color: #2f9d57;
  color: #6ee7a0;
  background: rgba(61, 220, 132, 0.06);
}

.mc-hero-actions {
  justify-content: flex-start;
  margin-top: 16px;
}

.perm-note {
  text-align: left;
}

.btn-accent {
  background: #1fae58;
  border: 1px solid #137a3b;
  color: #06170c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 2px 0 #082416;
}

.btn-accent:hover {
  background: #27c465;
  border-color: #15873f;
  color: #06170c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 2px 0 #082416;
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #2a3552;
  color: #cbd5e8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 0 #05070d;
}

.btn-ghost:hover {
  border-color: #2f9d57;
  color: #6ee7a0;
  background: rgba(61, 220, 132, 0.07);
  transform: translateY(-1px);
}

.btn-nav-login {
  background: #1fae58;
  border: 1px solid #137a3b;
  color: #06170c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 2px 0 #082416;
}

.btn-nav-login:hover {
  background: #27c465;
  color: #06170c;
}

.category-card,
.sidebar-section,
.topic-row,
.thread-row,
.post,
.reply-box,
.category-header,
.empty-state,
.mc-discord {
  background-color: #0e1526;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 50%);
  border: 1px solid #212b42;
  border-top-color: #2a3550;
  border-bottom-color: #151c2e;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 10px 24px rgba(2, 6, 16, 0.35);
}

.category-card:hover,
.topic-row:hover,
.thread-row:hover {
  border-color: #2f9d57;
  border-top-color: #3aab63;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 30px rgba(2, 6, 16, 0.4);
  transform: translateY(-2px);
}

.category-card-icon,
.category-header-icon {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 2px 0 rgba(0, 0, 0, 0.35);
  border-radius: 8px;
}

.section-header h2 svg {
  display: none;
}

.section-header h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  background: #3ddc84;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.3);
}

.navbar {
  background: rgba(9, 12, 21, 0.9);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.modal {
  background: #0e1526;
  box-shadow: 0 30px 70px rgba(2, 6, 16, 0.6);
  border-radius: 12px;
}

.mc-discord {
  margin-top: 28px;
  border-radius: 10px;
  padding: 0;
  background-color: #0e1526;
}

.mc-discord::after {
  display: none;
}

.mc-discord-inner {
  padding: 16px 20px;
}

.mc-discord-info h2 {
  font-size: 1.05rem;
  font-weight: 700;
}

.mc-discord-info p {
  color: #8fa3c4;
  font-size: 0.88rem;
}

@media (max-width: 760px) {
  .mc-hero {
    text-align: left;
    padding: 40px 20px 96px;
  }

  .mc-badges,
  .mc-server-row,
  .mc-hero-actions {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   MODERN REDESIGN v3 — MOTION + CINEMATIC
   ========================================================================== */

/* ---------- Motion tokens ---------- */

:root {
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --hero-h: clamp(460px, 54vw, 620px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-expo), transform 0.7s var(--ease-expo);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s var(--ease-expo), transform 0.55s var(--ease-expo);
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 70ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 140ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 210ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 280ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 350ms; }
.reveal-stagger.in > * {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Hero entrance keyframes ---------- */

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mc-hero-inner > * {
  opacity: 0;
  animation: heroFadeUp 0.7s var(--ease-expo) forwards;
}
.mc-hero-inner > *:nth-child(1) { animation-delay: 0.12s; }
.mc-hero-inner > *:nth-child(2) { animation-delay: 0.22s; }
.mc-hero-inner > *:nth-child(3) { animation-delay: 0.32s; }
.mc-hero-inner > *:nth-child(4) { animation-delay: 0.42s; }
.mc-hero-inner > *:nth-child(5) { animation-delay: 0.52s; }
.mc-hero-inner > *:nth-child(6) { animation-delay: 0.62s; }
.mc-hero-inner > *:nth-child(7) { animation-delay: 0.72s; }

/* ---------- Full-width cinematic hero ---------- */

body { background: #060a14; }

.forum-main { padding-top: 0; padding-bottom: 24px; }

.forum-layout { margin-top: 26px; }

.mc-hero {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  min-height: var(--hero-h);
  background: #060a14;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.mc-hero-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1.5px 1.5px at 18% 14%, rgba(255,255,255,0.65), transparent),
    radial-gradient(1px   1px   at 54%  7%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1.5px 1.5px at 80% 20%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1px   1px   at 35% 27%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1.5px 1.5px at 66% 17%, rgba(255,255,255,0.5),  transparent),
    radial-gradient(1px   1px   at 10% 31%, rgba(255,255,255,0.3),  transparent),
    radial-gradient(1.5px 1.5px at 90% 11%, rgba(255,255,255,0.4),  transparent),
    radial-gradient(1px   1px   at 44% 24%, rgba(255,255,255,0.28), transparent),
    linear-gradient(180deg, #0c1220 0%, #090e1a 50%, #060a12 100%);
  z-index: 0;
}

.mc-hero-inner {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  max-width: 740px;
  padding: 100px 40px 80px;
  text-align: left;
}

.mc-overline {
  font-family: var(--font-px);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: #6ee7a0;
}

.mc-badges { gap: 10px; }

.mc-badge {
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  background: rgba(12, 18, 32, 0.85);
  border: 1px solid rgba(126,156,224,0.12);
  color: #8fa3c4;
}

.mc-badge-online {
  color: #4ade80;
  border-color: rgba(74,222,128,0.3);
}

.mc-badge-online .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  margin-right: 7px;
  animation: mcPulse 2.2s infinite;
}

@keyframes mcPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(74,222,128,0);   }
}

.mc-title {
  font-size: clamp(2.4rem, 5.6vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 14px;
  color: #f0f4ff;
}

.mc-gradient {
  -webkit-background-clip: initial;
  background-clip: initial;
  background: none;
  -webkit-text-fill-color: #4ade80;
  color: #4ade80;
}

.mc-subtitle {
  margin: 0 0 16px;
  color: #8fa3c4;
  line-height: 1.6;
  font-size: 0.98rem;
}

.mc-server-row {
  justify-content: flex-start;
  margin: 22px 0 14px;
  gap: 10px;
}

.mc-server-ip {
  font-family: var(--font-px);
  font-size: 0.66rem;
  background: rgba(8, 13, 24, 0.8);
  border: 1px solid rgba(126,156,224,0.12);
  border-left: 3px solid #4ade80;
  border-radius: 10px;
  color: #dbeafe;
  padding: 10px 16px;
  box-shadow: none;
}

.btn-outline-mc {
  border-radius: 10px;
  border: 1px solid rgba(126,156,224,0.15);
  background: rgba(255,255,255,0.05);
  color: #8fa3c4;
}
.btn-outline-mc:hover {
  border-color: #4ade80;
  color: #4ade80;
  background: rgba(74,222,128,0.08);
}

.mc-hero-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.perm-note { text-align: left; }

/* ---------- Stats band ---------- */

.mc-stats {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(126,156,224,0.1);
}

.mc-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 12px;
  background: rgba(12, 18, 32, 0.85);
  border-right: 1px solid rgba(126,156,224,0.08);
}
.mc-stat:last-child { border-right: none; }

.mc-stat strong {
  font-size: 1.9rem;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: -0.03em;
}
.mc-stat span {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6c7a9c;
}

/* ---------- Terrain silhouette ---------- */

.mc-terrain {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}
.mc-terrain > div { height: 12px; }
.mc-terrain-grass { background: #1a5e2e; }
.mc-terrain-dirt  { background: #3e2b15; }
.mc-terrain-stone { background: #2a2a30; }

/* ---------- Navbar ---------- */

.navbar {
  transition: background 0.35s ease, box-shadow 0.35s ease;
  background: rgba(8, 12, 24, 0.7);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: none;
}
.navbar::after { display: none; }

.navbar.scrolled {
  background: rgba(6, 10, 20, 0.96);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

/* ---------- Section headers ---------- */

.section-header h2 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6c7a9c;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-header h2 svg { display: none; }
.section-header h2::before {
  content: "";
  width: 4px;
  height: 18px;
  background: #4ade80;
  border-radius: 2px;
}
.section-header {
  border-bottom: 1px solid rgba(126,156,224,0.1);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

/* ---------- Cards: flat modern ---------- */

.category-card,
.sidebar-section,
.topic-row,
.thread-row,
.post,
.reply-box,
.category-header,
.empty-state {
  background: rgba(12, 18, 32, 0.9);
  border: 1px solid rgba(126,156,224,0.1);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
}

.category-card:hover,
.topic-row:hover,
.thread-row:hover {
  transform: translateY(-3px);
  border-color: rgba(74,222,128,0.35);
  box-shadow: 0 8px 30px rgba(0,0,0,0.32), 0 0 40px rgba(74,222,128,0.07);
}

.category-card-icon { border-radius: 14px; }

/* ---------- Buttons ---------- */

.btn-accent {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: none;
  color: #fff;
  box-shadow: 0 4px 16px rgba(34,197,111,0.35);
}
.btn-accent:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  box-shadow: 0 6px 24px rgba(34,197,111,0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(126,156,224,0.15);
  color: #a7b3cf;
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: #4ade80;
  color: #4ade80;
  transform: translateY(-1px);
}

.btn-nav-login {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: none;
  color: #fff;
  box-shadow: 0 4px 16px rgba(34,197,111,0.35);
}
.btn-nav-login:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  box-shadow: 0 6px 20px rgba(34,197,111,0.45);
  transform: translateY(-1px);
}

/* ---------- Discord bar ---------- */

.mc-discord {
  max-width: 1200px;
  margin: 28px auto 0;
  border-radius: 14px;
  padding: 0;
  background: rgba(12, 18, 32, 0.9);
  border: 1px solid rgba(126,156,224,0.1);
}
.mc-discord::after { display: none; }
.mc-discord-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
}
.mc-discord-info h2 { font-size: 1rem; font-weight: 700; }
.mc-discord-info p  { font-size: 0.85rem; color: #6c7a9c; margin: 0; }

/* ---------- Modals ---------- */

.modal-overlay {
  background: rgba(4, 7, 15, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal {
  background: linear-gradient(180deg, #141d37, #0d1527);
  border: 1px solid rgba(126,156,224,0.12);
  border-radius: 20px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.55);
}
.modal-overlay.active .modal {
  animation: modalIn 0.3s var(--ease-expo);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---------- Footer ---------- */

.footer {
  background: rgba(6, 10, 20, 0.95);
  border-top: 1px solid rgba(126,156,224,0.08);
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .mc-hero { min-height: 460px; }
  .mc-hero-inner { padding: 84px 20px 64px; }
  .mc-hero-actions { flex-wrap: wrap; }
  .mc-hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .mc-stats { flex-wrap: wrap; }
  .mc-stat { flex: 1 1 50%; }
  .mc-discord-inner { flex-direction: column; text-align: center; align-items: center; }
  .mc-server-row { flex-wrap: wrap; }
}

/* ==========================================================================
   NORMAL MODERN FORUM (2026) - helles, sauberes Standard-Design
   ========================================================================== */

/* ---------- Light design tokens ---------- */

:root {
  --font-sans: "Rubik", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --bg: #f3f5f9;
  --bg-white: #ffffff;
  --bg-hover: #f1f5f9;
  --bg-active: #e8eef6;
  --border: rgba(15, 23, 42, 0.1);
  --border-light: rgba(15, 23, 42, 0.06);
  --text: #0f172a;
  --text-secondary: #4b5563;
  --text-muted: #94a3b8;

  --accent: #22c55e;
  --accent-hover: #16a34a;
  --accent-light: rgba(34, 197, 94, 0.12);

  --green: #16a34a;
  --green-light: rgba(22, 163, 74, 0.1);
  --red: #dc2626;
  --red-light: rgba(220, 38, 38, 0.1);
  --orange: #ea580c;
  --orange-light: rgba(234, 88, 12, 0.1);
  --purple: #7c3aed;
  --purple-light: rgba(124, 58, 237, 0.1);
  --gold: #d97706;
  --gold-light: rgba(217, 119, 6, 0.1);

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 26px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  --transition: 0.18s ease;
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 300px),
    linear-gradient(180deg, #f7f9fc 0%, #eef1f6 100%);
  color: var(--text);
}

/* ---------- Hide leftover minecraft decoration ---------- */

.mc-hero,
.mc-hero-inner,
.mc-hero-sky,
.mc-terrain,
.mc-terrain > div,
.mc-orb,
.mc-float,
.mc-overline,
.mc-badges,
.mc-badge,
.mc-server-row,
.mc-server-ip,
.mc-gradient,
.mc-hero-actions,
.mc-stats,
.mc-stat {
  display: none;
}

/* ---------- Normal hero ---------- */

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 20px 0;
}

.hero-panel {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 40px 44px;
  text-align: left;
  animation: heroFadeUp 0.5s var(--ease-expo) both;
}

.hero-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin: 0 0 10px;
}

.hero-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 12px;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 0 24px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero-ip {
  font-family: "Consolas", "Menlo", monospace;
  font-size: 0.86rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
}

.hero-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 4px 10px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.perm-note {
  margin: 14px 0 0;
  text-align: left;
}

/* ---------- Stats bar ---------- */

.stats-bar {
  max-width: 1200px;
  margin: 14px auto 0;
  padding: 0 20px;
  display: flex;
}

.stat-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 18px 10px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-right-width: 0;
  border-radius: 0;
  box-shadow: var(--shadow);
}

.stat-box:first-child { border-radius: 14px 0 0 14px; }
.stat-box:last-child { border-radius: 0 14px 14px 0; border-right-width: 1px; }

.stat-box strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-box span {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ---------- Navbar ---------- */

.navbar {
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

.navbar.scrolled {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.nav-logo {
  color: var(--text);
}

.nav-logo svg {
  filter: none;
}

.nav-logo img {
  display: inline-block;
  vertical-align: middle;
  border-radius: 8px;
}

.search-box {
  background: #f1f5f9;
  border-color: transparent;
  color: var(--text-secondary);
}

.search-box input {
  color: var(--text);
}

.nav-link {
  color: var(--text-secondary);
}

.nav-link:hover {
  background: #f1f5f9;
  color: var(--text);
}

.nav-link.active {
  background: var(--accent-light);
  color: var(--accent-hover);
}

.btn-nav-login,
.btn-nav-login:hover {
  background: var(--accent);
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.25);
}

.btn-nav-login:hover {
  background: var(--accent-hover);
}

/* ---------- Panels / Cards ---------- */

.category-card,
.sidebar-section,
.topic-row,
.thread-row,
.post,
.reply-box,
.category-header,
.empty-state {
  background: var(--bg-white);
  background-image: none;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.category-card:hover,
.topic-row:hover,
.thread-row:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
}

.category-card-icon,
.category-header-icon {
  border-radius: 12px;
  box-shadow: none;
}

.category-header::before {
  display: none;
}

.category-card h3,
.sidebar-title,
.thread-header h1,
.empty-title {
  color: var(--text);
}

.category-header .category-card h3,
.category-header h1,
.category-header .category-header-title {
  color: var(--text);
}

.post-sidebar {
  border-right-color: var(--border-light);
}

.post-header {
  border-bottom-color: var(--border-light);
}

.stat-row {
  color: var(--text-secondary);
}

.stat-row:hover {
  background: #f7f9fc;
}

/* ---------- Section headers ---------- */

.section-header h2 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header h2 svg { display: none; }

.section-header h2::before {
  content: "";
  width: 5px;
  height: 20px;
  background: var(--accent);
  border-radius: 3px;
}

.section-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */

.btn-accent {
  background: var(--accent);
  background-image: none;
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.25);
}

.btn-accent:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.32);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--bg-white);
  border: 1px solid #d7dde6;
  color: var(--text-secondary);
  box-shadow: none;
}

.btn-ghost:hover {
  background: #f7fdf9;
  border-color: var(--accent);
  color: var(--accent-hover);
  transform: translateY(-1px);
}

/* ---------- Forms ---------- */

.reply-editor textarea,
.form-group input,
.form-group select,
.form-group textarea {
  background: #f8fafc;
  border-color: #d7dde6;
  border-radius: 10px;
  color: var(--text);
}

.reply-editor textarea:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* ---------- Modals ---------- */

.modal-overlay {
  background: rgba(15, 23, 42, 0.42);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal {
  background: var(--bg-white);
  background-image: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);
}

.modal-header h2 {
  color: var(--text);
}

.modal-close {
  background: #f1f5f9;
}

.modal-close:hover {
  background: #e2e8f0;
}

/* ---------- Toast / badges ---------- */

.toast {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
}

.badge {
  color: #ffffff;
}

.btn-discord {
  background: #5865f2;
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35);
}

.btn-discord:hover,
.btn-discord:focus {
  background: #4752c4;
  color: #ffffff;
}

.profile-preview-wrap .avatar-medium {
  background: var(--gold);
}

.profile-preview-initial {
  color: #ffffff;
}

.badge-owner {
  background: var(--gold);
  color: #ffffff;
}

.badge-admin {
  background: var(--red);
  color: #ffffff;
}

.badge-mod {
  background: var(--accent-hover);
  color: #ffffff;
}

.badge-member {
  background: var(--text-secondary);
  color: #ffffff;
}

.sidebar-empty {
  color: var(--text-muted);
}

/* ---------- User menu (light override) ---------- */

.user-menu {
  background: #ffffff;
  border: 1px solid var(--border);
}

.user-menu-head {
  color: var(--text);
}

.user-menu-name {
  color: var(--text);
}

.user-menu-item {
  color: var(--text-secondary);
}

.user-menu-item:hover {
  background: var(--bg-hover);
  color: var(--text);
}

/* ---------- Profile info (light) ---------- */

.profile-meta {
  color: var(--text-secondary);
  font-weight: 500;
}

.profile-info {
  background: var(--bg-hover);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 24px 16px;
}

/* ---------- Reactions (light) ---------- */

.post-action.disliked {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.12);
}

.post-action.disliked:hover {
  background: rgba(220, 38, 38, 0.12);
}

.post-action-comment {
  margin-left: auto;
}

.topic-comment-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-hover);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.topic-comment-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.thread-comment {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

@media (max-width: 900px) {
  .thread-comment {
    display: none;
  }
}

/* ---------- Discord bar ---------- */

.mc-discord {
  max-width: 1200px;
  margin: 28px auto 0;
  background: var(--bg-white);
  background-image: none;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.mc-discord::after { display: none; }

.mc-discord-info h2 {
  color: var(--text);
}

.mc-discord-info p {
  color: var(--text-secondary);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.footer-left span {
  color: var(--text-muted);
}

.footer-left svg,
.footer-left img {
  filter: none;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-hover);
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .hero { padding: 20px 16px 0; }
  .hero-panel { padding: 28px 20px; }
  .stats-bar { flex-wrap: wrap; gap: 10px; padding: 0 16px; }
  .stat-box { flex: 1 1 46%; border-right-width: 1px; border-radius: 12px !important; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .mc-discord-inner { flex-direction: column; text-align: center; align-items: center; }
}

/* ---------- Impressum (light) ---------- */

.impressum-page {
  color: var(--text);
}

.impressum-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
}

.impressum-card .card-header {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
}

.impressum-card .card-header h2 {
  color: var(--text);
}

.impressum-card .card-header svg {
  color: var(--accent-hover);
}

.legal-section {
  background: var(--bg-white);
  border: 1px solid var(--border);
}

.legal-section h3 {
  color: var(--text);
}

.info-row strong {
  color: var(--text);
}

.info-row span {
  color: var(--text-secondary);
}

.info-row a {
  color: var(--accent-hover);
}

.impressum-subtitle {
  color: var(--text-secondary);
}

/* ==========================================================================
   MARKEN-ANPASSUNG 2026
   Farben aus dem Logo, Layout-Fixes und bessere Lesbarkeit
   wichtiger Daten. Diese Ebene steht bewusst ganz am Ende.
   ========================================================================== */

:root {
  /* Direkt aus dem Logo entnommen */
  --brand-violet: #7c1ff6;
  --brand-violet-deep: #540fcc;
  --brand-gold: #f0af31;
  --brand-gold-deep: #b45309;
  --brand-space: #0b0616;

  /* Akzent: Violett statt Grün - passt zum Logo.
     #6d28d9 auf Weiss = 7.4:1 Kontrast (WCAG AAA fuer Fliesstext). */
  --accent: #6d28d9;
  --accent-hover: #5b21b6;
  --accent-light: rgba(109, 40, 217, 0.10);
  --accent-ring: rgba(109, 40, 217, 0.28);

  /* Textfarben etwas kraeftiger als vorher */
  --text: #0f172a;
  --text-secondary: #3f4a5f;
  --text-muted: #57637a;
}

/* Gruen bleibt ausschliesslich Status-Farbe (online, Erfolg) */
.status-online,
.badge-online { color: var(--green); }

/* ---------- Gruen-Reste ersetzen ---------- */

.btn-accent {
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.26);
}

.btn-accent:hover {
  box-shadow: 0 8px 22px rgba(109, 40, 217, 0.34);
}

.btn-ghost:hover {
  background: #faf7ff;
  border-color: var(--accent);
  color: var(--accent-hover);
}

.category-card:hover,
.topic-row:hover,
.thread-row:hover {
  border-color: rgba(109, 40, 217, 0.38);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.10);
}

.hero-tag {
  color: var(--accent-hover);
  background: #f3e8ff;
  border-color: #ddd0fb;
}

.navbar {
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(109, 40, 217, 0.06);
}

/* Logo im Header etwas praesenter */
.nav-logo img {
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(11, 6, 22, 0.28);
}

.footer-left img {
  border-radius: 5px;
}

/* ---------- Sichtbarer Tastatur-Fokus ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.category-card:focus-visible,
.topic-row:focus-visible {
  outline: 3px solid var(--accent-ring);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ==========================================================================
   Kategorie-Karten: Layout-Fix
   Vorher hatte .category-card-stats zwar grid-row, aber keine Spalte.
   Dadurch ist der Zahlenblock VOR den Titel gerutscht und der Text
   ist umgebrochen. Jetzt ist jede Zelle explizit gesetzt.
   ========================================================================== */

.categories-grid {
  gap: 14px;
}

.category-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 0;
  align-items: start;
  padding: 18px;
}

.category-card-icon {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  align-self: start;
}

.category-card-info {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.category-card-info h3 {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  color: var(--text);
}

/* Beschreibung darf umbrechen statt abgeschnitten zu werden */
.category-card-info p {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-secondary);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Zahlen = wichtige Daten: gross, dunkel, rechtsbuendig */
.category-card-stats {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: row;
  gap: 18px;
  text-align: right;
  white-space: nowrap;
  align-self: start;
  padding-left: 8px;
}

.category-card-stats .cat-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.category-card-stats .cat-stat strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.category-card-latest {
  grid-column: 2 / 4;
  grid-row: 2;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.latest-title {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.latest-time {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Auf schmalen Schirmen untereinander statt gequetscht */
@media (max-width: 900px) {
  .categories-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .category-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .category-card-icon { width: 44px; height: 44px; }
  .category-card-stats {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-start;
    text-align: left;
    padding-left: 0;
    margin-top: 10px;
  }
  .category-card-stats .cat-stat { align-items: flex-start; }
  .category-card-latest { grid-column: 1 / 3; grid-row: 3; }
}

/* ---------- Statistik-Leiste: Zahlen deutlicher ---------- */

.stat-box strong {
  font-size: 1.7rem;
  color: var(--text);
}

.stat-box span {
  color: var(--text-secondary);
  font-size: 0.7rem;
}

.stat-row {
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.stat-row:hover { background: #faf7ff; }

.sidebar-title {
  color: var(--text);
  letter-spacing: 0.06em;
}

/* ==========================================================================
   Impressum: wichtige Daten hervorheben
   Name, Anschrift und E-Mail waren nur 0.85rem in Grau. Das sind
   die rechtlich relevanten Angaben - die duerfen nicht der
   leiseste Text auf der Seite sein.
   ========================================================================== */

.impressum-page {
  max-width: 880px;
  padding: 40px 20px 72px;
}

.impressum-header {
  margin-bottom: 40px;
}

.impressum-header svg {
  color: var(--accent);
}

.impressum-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.impressum-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.impressum-cards {
  gap: 22px;
  margin-bottom: 40px;
}

.impressum-card {
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Kopfzeile: vorher #f8fafc - jetzt klar abgesetzt in Markenfarbe */
.impressum-card .card-header {
  background: linear-gradient(180deg, #f6f1ff 0%, #f1ebfd 100%);
  border-bottom: 1px solid rgba(109, 40, 217, 0.16);
  padding: 15px 22px;
}

.impressum-card .card-header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-hover);
  letter-spacing: -0.01em;
}

.impressum-card .card-header svg {
  color: var(--accent);
}

.impressum-card .card-body {
  padding: 22px;
  gap: 18px;
}

.impressum-card .info-row svg {
  color: var(--accent);
  opacity: 1;
  margin-top: 3px;
}

/* Name / Betreiber */
.impressum-card .info-row strong {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Anschrift */
.impressum-card .info-row span {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #1e293b;
}

/* E-Mail als gut klickbarer, kontraststarker Chip */
.impressum-card .info-row a {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-hover);
  background: var(--accent-light);
  border: 1px solid rgba(109, 40, 217, 0.2);
  border-radius: 8px;
  padding: 5px 11px;
  word-break: break-word;
}

.impressum-card .info-row a:hover,
.impressum-card .info-row a:focus {
  background: rgba(109, 40, 217, 0.16);
  border-color: var(--accent);
  color: var(--accent-hover);
}

/* ---------- Rechtstexte ---------- */

.impressum-legal { gap: 18px; }

.legal-section {
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.legal-section h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 12px;
}

.legal-section h3 svg { color: var(--accent); }

/* Laufweite und Kontrast fuer laengere Absaetze */
.legal-section p {
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 72ch;
}

.legal-section p + p { margin-top: 10px; }

.legal-section a {
  color: var(--accent-hover);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

@media (max-width: 760px) {
  .impressum-cards { grid-template-columns: 1fr; }
  .impressum-page { padding: 28px 16px 56px; }
}

/* ---------- Bewegung respektieren ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Scroll-Reveal absichern
   .reveal setzt opacity:0. Ohne JavaScript (Blocker, Fehler, alter
   Browser) blieben Kategorien, Aktivitaeten und Discord-Bereich
   dauerhaft unsichtbar. Nur noch verstecken, wenn JS wirklich laeuft.
   ========================================================================== */

html:not(.js) .reveal,
html:not(.js) .reveal-stagger > * {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Kategorie-Zahlen kompakter, mehr Platz fuer den Text ---------- */

.category-card-stats {
  flex-direction: column;
  gap: 5px;
}

.category-card-stats .cat-stat {
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
}

.category-card-stats .cat-stat strong {
  font-size: 1.05rem;
}

/* ==========================================================================
   GX-HOME-UPGRADE 2026
   Neuer Hero-Bereich (Logo, Live-Zahlen, Willkommen/Store) + 3-Spalten
   Footer, angelehnt an moderne Minecraft-Netzwerk-Startseiten. Nutzt die
   bestehenden Marken-Variablen (--brand-violet / --brand-gold) von oben.
   ========================================================================== */

/* ---------- Nav: Store-Pill + Mehr-Dropdown ---------- */

.gx-nav-store {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

.gx-nav-store:hover {
  background: var(--accent);
  color: #fff;
}

.gx-nav-more { position: relative; }

.gx-nav-more-btn {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

.gx-nav-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 120;
}

.gx-nav-more-menu.open { display: flex; }

.gx-nav-more-menu a {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.87rem;
  font-weight: 500;
}

.gx-nav-more-menu a:hover {
  background: var(--bg-hover);
  color: var(--text);
}

/* ---------- Hero ---------- */

.gx-hero {
  margin: 0 0 24px;
}

/* Full-bleed Band: geht ueber die komplette Breite der Seite, nicht nur
   die 1200px-Box. Der Inhalt (.gx-hero-top) bleibt innen zentriert. */
.gx-hero-band {
  width: 100%;
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(124, 31, 246, 0.16), transparent 65%),
    linear-gradient(180deg, var(--brand-space) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.gx-hero-top {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 30px 32px 40px;
}

.gx-welcome-row,
.gx-quick-actions {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.gx-welcome-row { margin-top: 24px; }

.gx-hero-side {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.gx-hero-right { flex-direction: row-reverse; text-align: right; }
.gx-side-text-right { align-items: flex-end; }

.gx-side-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gx-side-value {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
}

.gx-side-ip {
  font-family: "Consolas", "Menlo", monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0;
}

.gx-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  animation: mcPulse 2.2s infinite;
}

.gx-play-btn,
.gx-discord-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gx-play-btn {
  background: radial-gradient(circle at 30% 30%, var(--brand-violet), var(--brand-violet-deep));
  box-shadow: 0 0 0 4px rgba(124, 31, 246, 0.15);
}

.gx-discord-btn {
  background: #5865f2;
  box-shadow: 0 0 0 4px rgba(88, 101, 242, 0.15);
}

.gx-play-btn:hover,
.gx-discord-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 6px rgba(124, 31, 246, 0.22);
}

.gx-hero-logo {
  flex: 1 1 260px;
  min-width: 260px;
  text-align: center;
}

.gx-kicker {
  margin: 0 0 6px;
  text-align: center;
}

.gx-logo-wrap {
  display: inline-block;
  width: min(760px, 60vw);
  min-width: 260px;
  background: none;
}

.gx-logo-img {
  display: block;
  width: 100%;
  height: auto;
  background: none;
  border: none;
  /* drop-shadow statt box-shadow: folgt der Silhouette des Logos statt
     ein sichtbares Rechteck um die transparenten Bereiche zu zeichnen. */
  filter: drop-shadow(0 10px 26px rgba(124, 31, 246, 0.45));
}

/* ---------- Willkommens-Karte nach Login ausblenden ---------- */

.gx-welcome-row.is-authed .gx-welcome-card { display: none; }
.gx-welcome-row.is-authed .gx-store-card { flex-basis: 100%; }

/* ---------- Willkommen + Store ---------- */

.gx-welcome-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.gx-welcome-card {
  flex: 3 1 320px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 26px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.gx-welcome-avatar {
  border-radius: 14px;
  border: 2px solid var(--brand-violet);
  box-shadow: 0 0 0 4px rgba(124, 31, 246, 0.15);
  flex-shrink: 0;
}

.gx-welcome-text { flex: 1 1 180px; }

.gx-welcome-text h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  color: var(--text);
}

.gx-welcome-text p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.gx-welcome-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.gx-store-card {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(135deg, var(--brand-violet) 0%, var(--brand-violet-deep) 100%);
  border-radius: 18px;
  padding: 20px 26px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(124, 31, 246, 0.35);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gx-store-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(124, 31, 246, 0.45);
  color: #fff;
  text-decoration: none;
}

.gx-store-text { display: flex; flex-direction: column; gap: 2px; }

.gx-store-title {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.gx-store-sub {
  font-size: 0.8rem;
  opacity: 0.85;
}

.gx-store-icon { opacity: 0.6; flex-shrink: 0; }

.gx-quick-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.gx-quick-actions #btnNewTopicHome { display: none; }

/* ---------- Footer ---------- */

.gx-footer {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 40px 20px 24px;
}

.gx-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.gx-footer-col h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

.gx-footer-underline {
  display: inline-block;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand-violet);
}

.gx-footer-col p {
  margin: 0 0 14px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.gx-footer-col a {
  display: block;
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.gx-footer-col a:hover { color: var(--accent); }

.gx-footer-ip-btn,
.gx-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--brand-violet);
  color: var(--accent-hover);
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
}

.gx-footer-ip-btn:hover,
.gx-footer-btn:hover {
  background: var(--brand-violet);
  color: #fff;
  text-decoration: none;
}

.gx-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.gx-footer-bottom .footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gx-footer-disclaimer { color: var(--text-muted); }

@media (max-width: 900px) {
  .gx-footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .gx-hero-top { justify-content: center; text-align: center; }
  .gx-hero-right { flex-direction: row; text-align: left; }
  .gx-side-text-right { align-items: flex-start; }
  .gx-welcome-actions { margin-left: 0; width: 100%; justify-content: flex-start; }
}

@media (max-width: 600px) {
  .gx-nav-store span,
  .gx-nav-more-btn span { display: inline; }
  .gx-hero-top { padding: 22px 16px 28px; }
  .gx-welcome-row,
  .gx-quick-actions { padding: 0 16px; }
  .gx-play-btn, .gx-discord-btn { width: 40px; height: 40px; }
  .gx-footer-bottom { flex-direction: column; align-items: flex-start; }
}
