/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;600;700&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --bg-deep: #050505;
  --bg-panel: #0d0d0d;
  --bg-card: #0c0c0c;
  --border-light: #222222;
  --border-active: #00f3ff;
  --primary: #00f3ff;
  --text-main: #ffffff;
  --text-muted: #888888;
  --font-headings: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: 0.15s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-deep);
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text-main);
  font-family: var(--font-headings);
  overflow-x: hidden;
  line-height: 1.5;
  -ms-overflow-style: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 243, 255, 0.2) var(--bg-deep);
}

/* Custom Cyber Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  display: block;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
  border-left: 1px solid var(--border-light);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 243, 255, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Star Background Canvas */
#space-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

/* Strict Layout Lines */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-left: 1px solid rgba(255, 255, 255, 0.01);
  border-right: 1px solid rgba(255, 255, 255, 0.01);
  pointer-events: none;
  z-index: 999;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-canvas-container {
  width: 48px;
  height: 48px;
  position: relative;
  background: transparent;
  border: none;
  overflow: hidden;
}

.logo-text {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

nav a:hover, nav a.active {
  color: var(--primary);
}

.btn-download-nav {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.4rem 1rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.btn-download-nav:hover {
  background: var(--primary);
  color: #000;
}

/* Sections Base */
section {
  padding: 8rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--border-light);
}

/* Hero Section */
.hero {
  text-align: left;
  align-items: flex-start;
  position: relative;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-headings);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -2px;
  margin-bottom: 2rem;
  text-transform: uppercase;
  color: var(--text-main);
}

.hero-desc {
  max-width: 600px;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: #000;
  padding: 0.8rem 2rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background: transparent;
  color: var(--primary);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  padding: 0.8rem 2rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--text-main);
}

/* 3D Showroom section */
.showroom-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.showroom-viewer {
  position: relative;
  width: 100%;
  height: 400px;
  background: #000;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.showroom-viewer canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.viewer-label {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: #000;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--primary);
  pointer-events: none;
}

.showroom-info h2 {
  font-family: var(--font-headings);
  font-size: 2.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

.showroom-info p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
}

.stat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Builds Showcase */
.section-title-wrap {
  margin-bottom: 3.5rem;
}

.section-subtitle {
  text-transform: uppercase;
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-headings);
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.builds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.build-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
}

.build-card:hover {
  border-color: var(--text-muted);
}

.build-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid var(--border-light);
  background: #000;
}

.build-body {
  padding: 1.5rem;
}

.build-tag {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.build-title {
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.build-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.build-spec-list {
  display: flex;
  gap: 1.5rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.build-spec-item {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.build-spec-val {
  color: var(--text-main);
}

/* News & Posts Section (Reddit-like Vertical Feed) */
.posts-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.post-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: var(--transition);
}

.post-card:hover {
  border-color: #333333;
}

/* Post Header */
.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar-badge {
  width: 36px;
  height: 36px;
  background: #111111;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
}

.author-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.author-username {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.author-title-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.post-category-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid rgba(0, 243, 255, 0.2);
  padding: 0.25rem 0.6rem;
  background: rgba(0, 243, 255, 0.03);
}

/* Post Content */
.post-main-content {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.post-title {
  font-family: var(--font-headings);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

.post-summary {
  font-size: 0.98rem;
  color: #c8c8d0;
  line-height: 1.6;
}

.post-summary p {
  margin-bottom: 1.2rem;
}

.post-summary h3 {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 2rem 0 1rem 0;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.4rem;
}

.post-summary h4 {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.5rem 0 0.8rem 0;
}

.post-summary ul {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
  list-style-type: square;
}

.post-summary li {
  margin-bottom: 0.6rem;
}

.post-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.post-tag-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Post Footer Actions */
.post-footer-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 1.2rem;
}

.post-metadata-details {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.post-meta-dot {
  color: #333333;
}

/* Downloads Section */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 2rem;
  text-align: left;
  transition: var(--transition);
}

.download-card:hover {
  border-color: var(--primary);
}

.download-version {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 0.2rem;
}

.download-platform {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.download-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Footer styling */
footer {
  border-top: 1px solid var(--border-light);
  padding: 4rem 2rem;
  background: var(--bg-deep);
}

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

.footer-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--transition);
}

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

/* Responsive adjustment */
@media (max-width: 900px) {
  .showroom-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .nav-container {
    padding: 1rem;
  }
  nav {
    display: none;
  }
}

/* === COMMENTS & VOTING SYSTEM PLATFORM === */

.post-footer-actions {
  display: flex;
  justify-content: space-between !important; /* Distribute details left and voting/expand right */
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 1.2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Voting Widget */
.voting-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 0.2rem 0.5rem;
  font-family: var(--font-mono);
  border-radius: 4px;
}

.vote-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  outline: none;
}

.vote-btn:hover {
  color: var(--text-main);
}

.vote-btn.upvoted {
  color: var(--primary);
  text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}

.vote-btn.downvoted {
  color: #ff007f;
  text-shadow: 0 0 8px rgba(255, 0, 127, 0.5);
}

.vote-score {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
  color: var(--text-main);
}

.vote-score.positive {
  color: var(--primary);
}

.vote-score.negative {
  color: #ff007f;
}

/* Action Controls (e.g. comments toggle) */
.action-buttons-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-action-link {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-action-link:hover, .btn-action-link.active {
  color: var(--primary);
}

/* Comments Section Drawer */
.comments-drawer {
  display: none; /* Controlled via JS */
  border-top: 1px dashed var(--border-light);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Profile / Platform User Control Bar */
.profile-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 243, 255, 0.02);
  border: 1px solid rgba(0, 243, 255, 0.1);
  padding: 0.8rem 1.2rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.profile-bar-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  color: #000;
}

.user-name-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-main);
}

.btn-edit-profile {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.25rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.btn-edit-profile:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* Profile Editor Modal-like drawer */
.profile-editor-inline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.profile-editor-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--primary);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.profile-inputs-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.input-profile-name {
  background: #000;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  flex-grow: 1;
  outline: none;
}

.input-profile-name:focus {
  border-color: var(--primary);
}

.color-picker-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.color-option {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease;
}

.color-option:hover {
  transform: scale(1.2);
}

.color-option.selected {
  border-color: #ffffff;
  transform: scale(1.1);
}

/* Comment Form */
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.comment-textarea {
  width: 100%;
  min-height: 80px;
  background: #000;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 1rem;
  font-family: var(--font-headings);
  font-size: 0.95rem;
  resize: vertical;
  outline: none;
}

.comment-textarea:focus {
  border-color: var(--primary);
}

.comment-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment-char-counter {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-comment-submit {
  background: var(--primary);
  color: #000;
  border: 1px solid var(--primary);
  padding: 0.5rem 1.5rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-comment-submit:hover {
  background: transparent;
  color: var(--primary);
}

/* Comments List */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.comment-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-light);
  padding: 1rem 1.2rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
}

.comment-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment-item-author-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-item-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.65rem;
  color: #000;
}

.comment-item-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.comment-item-time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.comment-item-content {
  font-size: 0.92rem;
  color: #c8c8d0;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-item-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  padding-top: 0.5rem;
}

.comment-action-btn {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  cursor: pointer;
  text-transform: uppercase;
  transition: var(--transition);
}

.comment-action-btn:hover {
  color: #ff007f;
}

.comment-action-btn.delete-btn:hover {
  color: #ff007f;
  text-shadow: 0 0 6px rgba(255, 0, 127, 0.3);
}

.no-comments-prompt {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 2rem 0;
}

/* System notice / Fallbacks */
.system-demo-notice {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #ffaa00;
  background: rgba(255, 170, 0, 0.04);
  border: 1px solid rgba(255, 170, 0, 0.1);
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  text-align: center;
  border-radius: 4px;
}

/* Poll System Styles */
.poll-container {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.poll-question {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.poll-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.poll-option-btn {
  position: relative;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 0.9rem 1.2rem;
  text-align: left;
  font-family: var(--font-headings);
  font-size: 0.95rem;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  border-radius: 4px;
}

.poll-option-btn:hover {
  border-color: #444;
}

.poll-option-btn.voted {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.poll-option-progress-bg {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(0, 243, 255, 0.07);
  transition: width 0.4s cubic-bezier(0.1, 0.8, 0.3, 1);
  z-index: 1;
  pointer-events: none;
}

.poll-option-btn.voted .poll-option-progress-bg {
  background: rgba(0, 243, 255, 0.12);
}

.poll-option-text {
  position: relative;
  z-index: 2;
  font-weight: 500;
}

.poll-option-meta {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.poll-option-btn.voted .poll-option-meta {
  color: var(--primary);
  font-weight: 700;
}

.poll-total-votes {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
  text-align: right;
}

/* Threaded Comments / Replies */
.comment-replies-list {
  margin-left: 1.5rem;
  border-left: 1px dashed var(--border-light);
  padding-left: 1rem;
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.comment-replies-list .comment-item {
  background: rgba(255, 255, 255, 0.005);
  padding: 0.8rem 1rem;
}

.reply-form-inline {
  margin-top: 0.8rem;
  margin-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed var(--border-light);
  padding: 0.8rem;
  border-radius: 4px;
}

.reply-textarea {
  width: 100%;
  min-height: 50px;
  background: #000;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 0.5rem 0.8rem;
  font-family: var(--font-headings);
  font-size: 0.9rem;
  resize: vertical;
  outline: none;
}

.reply-textarea:focus {
  border-color: var(--primary);
}

.reply-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  align-items: center;
}

.btn-reply-submit {
  background: var(--primary);
  color: #000;
  border: 1px solid var(--primary);
  padding: 0.3rem 1rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.btn-reply-submit:hover {
  background: transparent;
  color: var(--primary);
}

.btn-reply-cancel {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  padding: 0.3rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.btn-reply-cancel:hover {
  color: var(--text-main);
  border-color: var(--text-main);
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 400px;
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--primary);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.15);
  padding: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: slideUp 0.4s ease;
  border-radius: 4px;
}

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

.cookie-text {
  font-family: var(--font-headings);
  font-size: 0.88rem;
  color: #c8c8d0;
  line-height: 1.5;
}

.cookie-text a {
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.btn-cookie-accept {
  background: var(--primary);
  color: #000;
  border: 1px solid var(--primary);
  padding: 0.4rem 1rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cookie-accept:hover {
  background: transparent;
  color: var(--primary);
}

/* Legal Modal Overlay */
.legal-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.legal-modal-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  max-width: 650px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  animation: modalScale 0.25s cubic-bezier(0.1, 0.8, 0.3, 1);
}

@keyframes modalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.legal-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.legal-modal-title {
  font-family: var(--font-headings);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.btn-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.btn-modal-close:hover {
  color: #ff007f;
}

.legal-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  font-family: var(--font-headings);
  font-size: 0.92rem;
  line-height: 1.6;
  color: #c8c8d0;
}

.legal-modal-body h3 {
  font-family: var(--font-headings);
  color: var(--text-main);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  text-transform: uppercase;
  border-bottom: 1px dashed var(--border-light);
  padding-bottom: 0.2rem;
}

.legal-modal-body p {
  margin-bottom: 1rem;
}

.legal-modal-body ul {
  margin-bottom: 1rem;
  padding-left: 1.2rem;
}

.legal-modal-body li {
  margin-bottom: 0.4rem;
}



