/* ============================================
   {WTF} WICKED TEAM FRAGGERS - Community Theme
   Dark gaming aesthetic with neon accents
   ============================================ */

:root {
  --bg-dark: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a26;
  --bg-input: #0e0e16;
  --bg-nav: #0c0c14;
  --border: #1e1e2e;
  --border-glow: #39ff1440;

  --text-primary: #e0e0e8;
  --text-secondary: #8888a0;
  --text-muted: #555570;

  --accent: #39ff14;
  --accent-dim: #39ff1480;
  --accent-dark: #1a7a0a;
  --accent-orange: #ff6b14;
  --accent-red: #ff1444;
  --accent-blue: #14a0ff;
  --accent-purple: #a855f7;

  --upvote: #ff6b14;
  --downvote: #6b14ff;

  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 8px;
  --radius-sm: 4px;
}

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

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

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: all 0.2s; }
a:hover { color: #6fff50; text-shadow: 0 0 8px var(--accent-dim); }

/* ---- NAVBAR ---- */
.navbar {
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.nav-brand:hover { color: var(--accent); }

.brand-icon {
  font-size: 28px;
  color: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent-dim));
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.brand-tag {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 3px;
  font-weight: 900;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary);
}

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

.nav-link {
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
  text-shadow: none;
}

.btn-submit {
  color: var(--accent) !important;
  border: 1px solid var(--accent-dim);
}
.btn-submit:hover { background: var(--accent-dark) !important; color: #fff !important; }

.btn-register {
  background: var(--accent);
  color: var(--bg-dark) !important;
  font-weight: 700;
}
.btn-register:hover { background: #6fff50; }

.nav-user { display: flex; align-items: center; gap: 4px; }

.user-link { display: flex; align-items: center; gap: 6px; }

.user-rank-badge {
  font-size: 10px;
  background: var(--accent-dark);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-display);
  text-transform: uppercase;
}

.nav-logout { color: var(--text-muted) !important; font-size: 12px; }

/* ---- MAIN LAYOUT ---- */
.main-content {
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
}

.page-layout {
  display: grid;
  grid-template-columns: 220px 1fr 300px;
  gap: 20px;
  align-items: start;
}

.page-single {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}

/* ---- SIDEBAR ---- */
.sidebar { position: sticky; top: 76px; }

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.glow-text {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-dim);
}

.category-list { list-style: none; }

.cat-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}

.cat-link:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); text-shadow: none; }
.cat-link.active { background: var(--accent-dark); color: var(--accent); font-weight: 600; }

.cat-icon { font-size: 14px; width: 20px; text-align: center; }

/* Legacy server list */
.legacy-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legacy-item {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.legacy-item:last-child { border-bottom: none; }
.sidebar-muted {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

/* Community card */
.community-card { text-align: center; }

.community-banner {
  height: 60px;
  background: linear-gradient(135deg, var(--accent-dark), #0a2a08, #141428);
  border-radius: var(--radius-sm);
  margin: -16px -16px 16px;
  border-bottom: 2px solid var(--accent);
  position: relative;
  overflow: hidden;
}

.community-banner::after {
  content: 'â˜ ';
  position: absolute;
  font-size: 40px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.3;
  color: var(--accent);
}

.community-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.community-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat { display: flex; flex-direction: column; align-items: center; }
.stat-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.stat-value { font-size: 14px; color: var(--accent); font-weight: 600; font-family: var(--font-display); }

.btn-join-sidebar {
  display: block;
  background: var(--accent);
  color: var(--bg-dark) !important;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1px;
  text-align: center;
  transition: all 0.2s;
}
.btn-join-sidebar:hover { background: #6fff50; text-shadow: none; transform: translateY(-1px); }

.rules-list {
  padding-left: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}
.rules-list li { margin-bottom: 4px; }

/* ---- FEED ---- */
.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  margin-bottom: 12px;
}

.sort-tabs { display: flex; gap: 4px; }

.sort-tab {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
}
.sort-tab:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); text-shadow: none; }
.sort-tab.active { background: var(--accent-dark); color: var(--accent); }

.btn-new-post {
  background: var(--accent);
  color: var(--bg-dark) !important;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
}
.btn-new-post:hover { background: #6fff50; text-shadow: none; }

/* ---- POST CARD ---- */
.post-card {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  transition: border-color 0.2s;
}
.post-card:hover { border-color: var(--border-glow); }

.post-pinned { border-left: 3px solid var(--accent); }

.post-votes {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  gap: 2px;
  min-width: 48px;
}

.vote-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
  border-radius: 3px;
  transition: all 0.15s;
  line-height: 1;
}
.vote-btn:hover { background: rgba(255,255,255,0.05); }
.vote-up:hover, .vote-up.voted { color: var(--upvote); }
.vote-down:hover, .vote-down.voted { color: var(--downvote); }

.vote-score {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

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

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pin-badge {
  background: var(--accent-dark);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 1px;
}

.post-category {
  color: var(--accent-blue);
  font-weight: 600;
}
.post-category:hover { text-shadow: 0 0 6px rgba(20,160,255,0.4); }

.post-dot { color: var(--text-muted); }

.post-author {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.post-author:hover { color: var(--text-primary); text-shadow: none; }

.author-rank {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.author-rank.founder { background: #3d1a00; color: var(--accent-orange); border: 1px solid var(--accent-orange); }
.author-rank.admin { background: #1a003d; color: var(--accent-purple); border: 1px solid var(--accent-purple); }
.author-rank.moderator { background: #001a3d; color: var(--accent-blue); border: 1px solid var(--accent-blue); }
.author-rank.veteran { background: #0a2a0a; color: var(--accent); border: 1px solid var(--accent); }
.author-rank.recruit { background: #1a1a2a; color: var(--text-muted); border: 1px solid var(--border); }

.post-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}
.post-title a { color: var(--text-primary); }
.post-title a:hover { color: var(--accent); }

.post-preview {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.post-actions { display: flex; gap: 12px; }

.post-action {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.post-action:hover { background: rgba(255,255,255,0.05); color: var(--text-secondary); text-shadow: none; }

/* ---- POST FULL VIEW ---- */
.post-full { margin-bottom: 20px; }

.post-title-full {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.post-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  word-wrap: break-word;
}

.post-link {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  background: rgba(20,160,255,0.1);
  border: 1px solid rgba(20,160,255,0.3);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--accent-blue);
}

.back-link {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 13px;
}
.back-link:hover { color: var(--accent); }

/* ---- COMMENTS ---- */
.comment-section { margin-top: 8px; }

.comment-header {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.comment-form {
  margin-bottom: 20px;
}

.comment-form textarea, .reply-form textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 12px;
  resize: vertical;
  transition: border-color 0.2s;
}
.comment-form textarea:focus, .reply-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-dim);
}

.btn-comment, .btn-reply {
  margin-top: 8px;
  background: var(--accent);
  color: var(--bg-dark);
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-comment:hover, .btn-reply:hover { background: #6fff50; }

.btn-reply { padding: 5px 14px; font-size: 12px; }

.login-prompt {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.comment {
  display: flex;
  gap: 8px;
  padding: 10px 0;
  border-left: 2px solid var(--border);
  padding-left: 12px;
  margin-bottom: 4px;
}

.comment-votes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-width: 24px;
}

.vote-up-sm, .vote-down-sm {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
  padding: 1px 3px;
  transition: all 0.15s;
}
.vote-up-sm:hover, .vote-up-sm.voted { color: var(--upvote); }
.vote-down-sm:hover, .vote-down-sm.voted { color: var(--downvote); }

.vote-score-sm {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.comment-body { flex: 1; min-width: 0; }

.comment-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.comment-author {
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.comment-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  word-wrap: break-word;
}

.comment-actions { margin-top: 4px; }

.reply-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-body);
}
.reply-toggle:hover { background: rgba(255,255,255,0.05); color: var(--text-secondary); }

.reply-form { margin-top: 8px; }

.empty-comments {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
}

/* ---- AUTH FORMS ---- */
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 420px;
  margin: 40px auto;
  text-align: center;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 6px;
  color: var(--accent);
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.auth-form { text-align: left; }

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-display);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 12px;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-dim);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2339ff14' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-group select option { background: var(--bg-dark); }

.form-error {
  background: rgba(255,20,68,0.1);
  border: 1px solid rgba(255,20,68,0.3);
  color: var(--accent-red);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
}

.form-success {
  background: rgba(57,255,20,0.1);
  border: 1px solid rgba(57,255,20,0.3);
  color: var(--accent);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
}

.field-hint {
  font-size: 12px;
  color: var(--accent-orange);
  margin-top: 6px;
  line-height: 1.4;
}

.btn-auth {
  width: 100%;
  background: var(--accent);
  color: var(--bg-dark);
  border: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}
.btn-auth:hover { background: #6fff50; transform: translateY(-1px); }

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  background: #ffffff;
  color: #333;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-google:hover { background: #f0f0f0; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(255,255,255,0.15); color: #333; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-switch {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- SUBMIT FORM ---- */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.form-title {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.btn-submit-post {
  background: var(--accent);
  color: var(--bg-dark);
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-submit-post:hover { background: #6fff50; transform: translateY(-1px); }

/* ---- SERVER PAGE ---- */
.page-title {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 4px;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.2s;
}
.server-card:hover { border-color: var(--accent-dim); transform: translateY(-2px); }

.server-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.server-game-tag {
  font-size: 11px;
  background: rgba(57,255,20,0.1);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 600;
}

.server-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.server-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.server-connect {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.server-address {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.btn-copy {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all 0.2s;
}
.btn-copy:hover { border-color: var(--accent); color: var(--accent); }

.btn-connect {
  display: block;
  text-align: center;
  background: var(--accent-dark);
  color: var(--accent) !important;
  border: 1px solid var(--accent-dim);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
}
.btn-connect:hover { background: var(--accent); color: var(--bg-dark) !important; text-shadow: none; }

/* ---- ABOUT PAGE ---- */
.about-hero {
  text-align: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}

.about-icon {
  font-size: 60px;
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  filter: drop-shadow(0 0 20px var(--accent-dim));
}

.about-title {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 8px;
}

.about-tagline {
  color: var(--text-secondary);
  font-size: 16px;
}

.about-section {
  margin-bottom: 30px;
}

.about-section h2 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.about-section p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.7;
}

.about-list {
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

.game-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.game-card h3 {
  color: var(--accent);
  font-size: 16px;
  margin-bottom: 8px;
}
.game-card p { color: var(--text-secondary); font-size: 13px; }

/* ---- PROFILE ---- */
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.profile-avatar-large {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-dark), var(--bg-dark));
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--accent);
  flex-shrink: 0;
}

.profile-username {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 4px;
}

.profile-badges { display: flex; gap: 6px; margin-bottom: 4px; }

.rank-badge {
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.rank-badge.founder { background: #3d1a00; color: var(--accent-orange); }
.rank-badge.admin { background: #1a003d; color: var(--accent-purple); }
.rank-badge.recruit { background: #1a1a2a; color: var(--text-muted); }

.flair-badge {
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  background: rgba(57,255,20,0.1);
  color: var(--accent);
  border: 1px solid var(--accent-dim);
}

.profile-joined { font-size: 12px; color: var(--text-muted); }

.profile-stats {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.pstat { display: flex; flex-direction: column; align-items: center; }
.pstat-num { font-family: var(--font-display); font-size: 22px; color: var(--accent); font-weight: 700; }
.pstat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.section-title {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 2px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.post-compact { padding: 4px 0; }
.post-compact .post-votes { padding: 8px; }

/* ---- ERROR PAGE ---- */
.error-page {
  text-align: center;
  padding: 80px 0;
}
.error-icon { font-size: 60px; color: var(--accent-red); margin-bottom: 16px; display: block; }
.error-title { font-family: var(--font-display); font-size: 36px; color: var(--accent-red); margin-bottom: 8px; }
.error-message { color: var(--text-secondary); font-size: 16px; margin-bottom: 24px; }
.btn-home {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-dark) !important;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: var(--font-display);
}

/* ---- EMPTY STATE ---- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-icon { font-size: 40px; margin-bottom: 10px; }

/* ---- FOOTER ---- */
.footer {
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding: 20px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-secondary);
}

.footer-brand .brand-icon { font-size: 18px; }

.footer-info { text-align: center; }
.footer-info p { font-size: 12px; color: var(--text-muted); }
.footer-tagline { color: var(--accent); font-style: italic; }

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

.footer-claude {
  width: 100%;
  text-align: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.claude-credit { max-width: 700px; margin: 0 auto; }
.claude-headline {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.claude-link {
  color: var(--accent) !important;
  font-weight: 700;
  text-decoration: underline;
}
.claude-sub { font-size: 10px; color: var(--text-muted); }
.claude-details {
  text-align: left;
  margin-top: 8px;
}
.claude-details summary {
  cursor: pointer;
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  padding: 4px 0;
}
.claude-details summary:hover { text-shadow: 0 0 6px var(--accent-dim); }
.claude-details ul {
  padding-left: 20px;
  margin: 8px 0;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.8;
}
.claude-details li { margin-bottom: 2px; }
.claude-note {
  font-size: 10px;
  color: var(--accent);
  font-style: italic;
  margin-top: 6px;
  text-align: center;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  .page-layout { grid-template-columns: 200px 1fr; }
  .sidebar-right { display: none; }
}

@media (max-width: 768px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar-left { display: none; }
  .nav-inner { padding: 0 12px; }
  .brand-name { display: none; }
  .nav-links { gap: 2px; }
  .nav-link { padding: 8px 10px; font-size: 13px; }
  .post-title { font-size: 15px; }
  .game-cards { grid-template-columns: 1fr; }
  .profile-header { flex-direction: column; text-align: center; }
  .profile-stats { margin-left: 0; }
}

/* ---- ADMIN CONTROLS ---- */
.admin-actions {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

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

.btn-admin-delete {
  background: rgba(255,20,68,0.1);
  border: 1px solid rgba(255,20,68,0.3);
  color: var(--accent-red);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 12px;
  font-family: var(--font-display);
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-admin-delete:hover {
  background: rgba(255,20,68,0.2);
  border-color: var(--accent-red);
}

.btn-admin-delete-sm {
  background: none;
  border: none;
  color: var(--accent-red);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-body);
  opacity: 0.6;
  transition: all 0.15s;
}
.btn-admin-delete-sm:hover {
  background: rgba(255,20,68,0.15);
  opacity: 1;
}

/* ---- SCAN LINE EFFECT ---- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}
