:root {
  --red: #e30613;
  --red-hover: #cc0511;
  --red-light: rgba(227, 6, 19, 0.08);
  --ink: #111111;
  --ink-secondary: #333333;
  --muted: #666666;
  --line: #deddd8;
  --line-light: #ecebe6;
  --paper: #f7f7f5;
  --white: #ffffff;
  --soft: #f0eee9;
  --radius: 2px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: transparent;
}

/* HEADER & NAVIGATION */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 62px;
  max-width: 1180px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 20px;
}

.logo {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -1.2px;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.logo b {
  color: var(--red);
}

.navlinks {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 700;
}

.navlinks a, .auth a, .navlinks span, .auth span {
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.navlinks a:hover, .auth a:hover, .navlinks span:hover, .auth span:hover {
  color: var(--red);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 4px;
}

.auth {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 700;
}

.ask {
  background: var(--ink);
  color: var(--white) !important;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.ask:hover {
  background: #252525;
}

.ask:active {
  transform: scale(0.98);
}

.searchBtn {
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
  color: var(--ink-secondary);
}

/* LAYOUT SHELL */
.shell {
  max-width: 1180px;
  margin: auto;
  padding: 32px 20px 80px;
  display: grid;
  grid-template-columns: minmax(0, 760px) 300px;
  gap: 50px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  color: var(--muted);
}

/* FEATURED POLL CARD */
.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 26px 24px 22px;
  margin-bottom: 24px;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.meta {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.category {
  color: var(--red);
  font-weight: 900;
}

h1 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin: 14px 0 10px;
  max-width: 720px;
  font-weight: 800;
}

.count {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* VOTING BUTTONS & RESULTS */
.votes {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 10px;
}

.vote {
  min-height: 52px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  padding: 12px 14px;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.vote:hover {
  border-color: var(--ink);
  background: #fbfbfa;
}

.vote:active {
  background: var(--soft);
  transform: scale(0.98);
}

/* VOTE CONFIRMATION & 5S UNDO */
.voteConfirmationBox {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  padding: 14px 16px;
  border-radius: var(--radius);
  margin: 10px 0;
  animation: fadeIn 0.15s ease;
}
.voteConfirmTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.voteConfirmCheck {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
}
.undoTimerBadge {
  background: var(--soft);
  color: var(--ink-secondary);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
}
.undoProgressTrack {
  height: 4px;
  background: var(--soft);
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 12px;
}
.undoProgressBar {
  height: 100%;
  width: 100%;
  background: var(--red);
  transition: width 0.2s linear;
}
.voteConfirmActions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.undoVoteBtn {
  border: 1px solid var(--red);
  color: var(--red);
  background: transparent;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  border-radius: var(--radius);
  transition: all 0.15s ease;
}
.undoVoteBtn:hover {
  background: var(--red);
  color: #ffffff;
}
.confirmVoteBtn {
  border: 0;
  background: var(--ink);
  color: #ffffff;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  border-radius: var(--radius);
  transition: opacity 0.15s;
}
.confirmVoteBtn:hover {
  opacity: 0.9;
}

.results {
  display: none;
  margin-top: 18px;
}

.result {
  margin: 14px 0;
}

.resulttop {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}

.track {
  height: 10px;
  background: var(--soft);
  overflow: hidden;
  border-radius: 1px;
}

.bar {
  height: 100%;
  width: 0;
  background: #222222;
  transition: width 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.result.selected .bar {
  background: var(--red);
}

.you {
  font-size: 13px;
  font-weight: 800;
  margin-top: 15px;
  color: var(--ink);
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
  align-items: center;
}

.smallbtn {
  border: 0;
  background: transparent;
  padding: 6px 0;
  margin-right: 16px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-secondary);
  transition: color 0.15s ease;
}

.smallbtn:hover {
  color: var(--red);
  text-decoration: underline;
}

.next {
  margin-left: auto;
  color: var(--red) !important;
}

/* FEED & ITEMS */
.sectionTitle {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 32px 0 12px;
  font-weight: 900;
  color: var(--ink-secondary);
}

.feedItem {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 20px 22px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.feedItem:hover {
  border-color: #bebcb4;
}

.feedItem h2 {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.4px;
  margin: 8px 0 10px;
  font-weight: 800;
}

.feedItem h2 a {
  color: var(--ink);
  text-decoration: none;
}

.feedItem h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.feedStats {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

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

.qv {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  transition: all 0.12s ease;
}

.qv:hover {
  border-color: var(--ink);
  background: var(--white);
}

.qv:active {
  transform: scale(0.97);
}

.qv.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.ad {
  height: 90px;
  margin: 20px 0;
  border: 1px dashed #cccccc;
  display: grid;
  place-items: center;
  color: #999999;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #fbfbfa;
}

/* SIDEBAR */
aside {
  padding-top: 10px;
}

.sideTitle {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}

.trend {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-light);
}

.trend a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.trend strong {
  font-size: 14px;
  line-height: 1.3;
  display: block;
  font-weight: 700;
}

.trend small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: 12px;
}

.trend:hover strong {
  color: var(--red);
  text-decoration: underline;
}

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.chip {
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line);
  padding: 6px 10px;
  background: var(--white);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: all 0.12s ease;
}

.chip:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* PAGES VISIBILITY */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* DETAIL VIEWS */
.detail h1 {
  font-size: 34px;
}

.description {
  font-size: 16px;
  line-height: 1.6;
  color: #3b3b3b;
  max-width: 700px;
}

.commentsHead {
  margin: 36px 0 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.sort button {
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.comment {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-light);
}

.user {
  font-size: 13px;
  font-weight: 800;
}

.comment p {
  font-size: 15px;
  line-height: 1.55;
  margin: 8px 0;
}

.score {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.nextBlock {
  background: #171717;
  color: #ffffff;
  margin-top: 30px;
  padding: 24px;
  border-radius: var(--radius);
}

.nextBlock small {
  color: #aaaaaa;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 11px;
}

.nextBlock h3 {
  font-size: 21px;
  margin: 8px 0 16px;
  font-weight: 800;
}

.nextBlock button {
  background: var(--white);
  color: var(--ink);
  border: 0;
  padding: 11px 16px;
  font-weight: 800;
  border-radius: var(--radius);
  transition: opacity 0.15s;
}

.nextBlock button:hover {
  opacity: 0.9;
}

/* FORUM & POSTS */
.forumHead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 0;
}

.forumHead h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

.forumHead p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.forumTabs {
  display: flex;
  gap: 16px;
  font-size: 13px;
  font-weight: 800;
}

.forumTabs span {
  cursor: pointer;
  color: var(--muted);
  transition: color 0.12s;
}

.forumTabs .activeTab {
  color: var(--red);
}

#forumList {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.postRow {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-light);
  transition: background 0.12s ease;
}

.postRow:last-child {
  border-bottom: 0;
}

.postRow:hover {
  background: #fafaf8;
}

.replyCount {
  background: var(--soft);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 8px 4px;
  text-align: center;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.replyCount b {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 2px;
}

.postTitle {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 4px;
}

.postTitle a {
  color: var(--ink);
  text-decoration: none;
}

.postTitle a:hover {
  color: var(--red);
  text-decoration: underline;
}

.postExcerpt {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  margin-bottom: 6px;
  max-width: 680px;
}

.postMeta {
  font-size: 12px;
  color: var(--muted);
}

.postDetailHeader {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.postDetailTitle {
  font-size: 28px;
  line-height: 1.2;
  margin: 12px 0 16px;
  font-weight: 800;
}

.postAuthorRow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
}

.authorAvatar {
  width: 40px;
  height: 40px;
  background: var(--ink);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.authorInfo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.authorNameLine {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.authorNameLine strong {
  font-weight: 800;
}

.authorCantonBadge {
  background: var(--soft);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius);
}

.authorRole {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.authorSubLine {
  font-size: 12px;
  color: var(--muted);
}

.postBody {
  font-size: 16px;
  line-height: 1.65;
  max-width: 720px;
}

.postBody p {
  margin: 0 0 18px;
}

.commentComposer {
  margin: 28px 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  padding: 20px;
  border-radius: var(--radius);
}

.commentComposer b {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
}

.commentComposer textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 14px;
  outline: none;
  font-size: 15px;
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.commentComposer textarea:focus {
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 2px var(--red-light);
}

.commentComposer button {
  margin-top: 10px;
  background: var(--ink);
  color: var(--white);
  border: 0;
  padding: 12px 18px;
  font-weight: 800;
  border-radius: var(--radius);
  font-size: 13px;
  transition: opacity 0.15s;
}

.commentComposer button:hover {
  opacity: 0.9;
}

.forumComment {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-light);
}

.forumCommentHead {
  font-size: 13px;
  font-weight: 800;
}

.forumCommentHead span {
  font-weight: 400;
  color: var(--muted);
}

.forumComment p {
  font-size: 15px;
  line-height: 1.55;
  margin: 8px 0;
}

.forumCommentActions {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

/* CATEGORIES GRID */
.gridcats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
}

.catrow {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line-light);
  cursor: pointer;
  transition: background 0.12s ease;
}

.catrow:hover {
  background: #fbfbfa;
}

.catrow:nth-child(odd) {
  border-right: 1px solid var(--line-light);
}

.catrow h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
}

.catrow p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* FORMS & AUTH */
.formbox {
  max-width: 690px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 26px 24px;
  border-radius: var(--radius);
}

.formbox label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  display: block;
  margin: 16px 0 6px;
  color: var(--ink-secondary);
}

.formbox input, .formbox textarea, .formbox select, .authbox input, .authbox select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.formbox input:focus, .formbox textarea:focus, .formbox select:focus, .authbox input:focus, .authbox select:focus {
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 2px var(--red-light);
}

.publish {
  margin-top: 20px;
  border: 0;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  padding: 13px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  transition: background 0.15s, opacity 0.15s;
}

.publish:hover {
  background: var(--red-hover);
}

.preview {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
}

.preview small {
  font-weight: 900;
  color: var(--muted);
}

.preview h3 {
  font-size: 20px;
  margin: 8px 0;
  font-weight: 800;
}

.typeSwitch {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.typeSwitch button {
  border: 0;
  background: transparent;
  padding: 10px 16px 10px 0;
  margin-right: 16px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.typeSwitch button.on {
  color: var(--red);
  border-bottom: 2px solid var(--red);
  margin-bottom: -1px;
}

.authbox {
  max-width: 440px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  padding: 28px 26px;
  border-radius: var(--radius);
}

.authbox h1 {
  font-size: 26px;
  margin-top: 0;
}

.authbox button {
  width: 100%;
  padding: 13px;
  margin-top: 14px;
  background: var(--ink);
  color: var(--white);
  border: 0;
  font-weight: 800;
  border-radius: var(--radius);
  font-size: 14px;
  transition: opacity 0.15s;
}

.authbox button:hover {
  opacity: 0.92;
}

.authMsg {
  font-size: 13px;
  color: var(--red);
  font-weight: 700;
  margin-top: 8px;
}

/* SEARCH */
.searchPage input {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  padding: 12px 2px;
  font-size: 26px;
  font-weight: 800;
  outline: none;
}

.searchResult {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-light);
  cursor: pointer;
}

.searchResult:hover b {
  color: var(--red);
  text-decoration: underline;
}

/* PROFILE */
.profileTop {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  padding: 24px;
  border-radius: var(--radius);
}

.avatar {
  width: 64px;
  height: 64px;
  background: var(--ink);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  border-radius: 50%;
}

.profileTop h1 {
  font-size: 24px;
  margin: 0 0 4px;
}

.stats {
  display: flex;
  gap: 24px;
  margin: 16px 0;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 16px 20px;
  border-radius: var(--radius);
}

.stat b {
  font-size: 20px;
  display: block;
  font-weight: 900;
}

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

.tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  font-weight: 800;
  font-size: 13px;
}

.tabs span {
  cursor: pointer;
  color: var(--muted);
}

.tabs span.active {
  color: var(--red);
  border-bottom: 2px solid var(--red);
  padding-bottom: 10px;
  margin-bottom: -11px;
}

/* LEGAL & STATIC CONTENT */
.legalContent {
  max-width: 760px;
  line-height: 1.65;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
}

.legalContent h1 {
  font-size: 28px;
  margin: 0 0 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  letter-spacing: -0.5px;
}

.legalContent h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 24px 0 8px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.legalContent p, .legalContent ul {
  margin: 0 0 14px;
  color: #444444;
}

.legalContent ul {
  padding-left: 20px;
}

/* NOTIFICATIONS */
.notifWrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.notifBell {
  position: relative;
  border: 0;
  background: transparent;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.notifBell:hover {
  background: var(--soft);
}

.notifBadge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 900;
  height: 16px;
  min-width: 16px;
  padding: 0 4px;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.notifDropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-width: 92vw;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  box-shadow: 0 12px 30px rgba(0,0,0,0.14);
  z-index: 9999;
  display: none !important;
  flex-direction: column;
  border-radius: var(--radius);
}

.notifDropdown.open {
  display: flex !important;
}

.notifHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-light);
  background: #fafaf8;
}

.notifHeadTitle {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.notifHeadAction {
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  cursor: pointer;
  padding: 0;
}

.notifList {
  max-height: 360px;
  overflow-y: auto;
}

.notifItem {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-light);
  cursor: pointer;
  transition: background 0.12s;
}

.notifItem:hover {
  background: #f7f6f2;
}

.notifItem.unread {
  background: #fff8f8;
  border-left: 3px solid var(--red);
}

.notifItemHead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.notifTitle {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
}

.notifTime {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.notifBody {
  font-size: 12px;
  line-height: 1.4;
  color: #555555;
}

/* FOOTER */
.siteFooter {
  border-top: 2px solid var(--ink);
  background: var(--white);
  padding: 45px 20px 30px;
  font-size: 13px;
  color: #555555;
  margin-top: 50px;
}

.footerGrid {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 35px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-light);
}

.footerCol h4 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.footerCol p {
  margin: 0 0 10px;
  line-height: 1.55;
  font-size: 13px;
  color: var(--muted);
}

.footerCol ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footerCol ul li {
  margin-bottom: 8px;
}

.footerCol ul li a {
  color: var(--ink-secondary);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.12s;
}

.footerCol ul li a:hover {
  color: var(--red);
  text-decoration: underline;
}

.footerBottom {
  max-width: 1180px;
  margin: auto;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

/* COOKIE BANNER */
.cookieBanner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 760px;
  background: #111111;
  color: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
}

.cookieBanner p {
  margin: 0;
  line-height: 1.45;
  color: #dddddd;
}

.cookieBanner a {
  color: var(--white);
  text-decoration: underline;
}

.cookieBanner button {
  background: var(--red);
  color: var(--white);
  border: 0;
  padding: 10px 18px;
  font-weight: 800;
  border-radius: var(--radius);
  white-space: nowrap;
  cursor: pointer;
}

/* TOAST NOTIFICATIONS */
.toast-box {
  position: fixed;
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 92%;
  width: 380px;
}

.toast {
  background: #111111;
  color: var(--white);
  border-left: 3px solid var(--red);
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(12px);
  transition: 0.22s ease;
  pointer-events: auto;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* MODAL SYSTEM (MELDEN, KONTO LÖSCHEN & KONTO-PFLICHT) */
.reportModalOverlay, .deleteModalOverlay, .authModalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.reportModalOverlay.open, .deleteModalOverlay.open, .authModalOverlay.open {
  display: flex;
}

.reportModalCard, .deleteModalCard, .authModalCard {
  background: var(--white);
  max-width: 520px;
  width: 100%;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 26px 24px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  position: relative;
  border-radius: var(--radius);
  animation: fadeIn 0.15s ease;
}

.reportModalHeader, .authModalHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 12px;
}

.reportCloseBtn, .authCloseBtn {
  border: 0;
  background: transparent;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  color: #888888;
  cursor: pointer;
  padding: 0 4px;
}

.reportCloseBtn:hover, .authCloseBtn:hover {
  color: var(--ink);
}

.reportModalFooter, .authModalFooter {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  border-top: 1px solid var(--line-light);
  padding-top: 16px;
  flex-wrap: wrap;
}

.mobileNav {
  display: none;
}

/* ==============================================================================
   MODERNE & HOCHWERTIGE MOBILE SMARTPHONE UX & DESIGN (MAX-WIDTH: 850PX)
   ============================================================================== */
@media (max-width: 850px) {
  body {
    background: #f5f5f2;
    overflow-x: hidden !important;
  }

  header {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden;
  }

  .nav {
    height: 54px;
    padding: 0 16px;
    gap: 0;
    width: 100%;
    max-width: 100vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
  }

  .navlinks, .ask, .auth {
    display: none !important;
  }

  .notifWrapper {
    margin-left: auto;
  }

  .logo {
    font-size: 21px;
    flex-shrink: 0;
  }

  .shell {
    display: block;
    padding: 12px 12px 84px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  aside {
    display: none;
  }

  /* HEADINGS & TEXT */
  h1 {
    font-size: 22px;
    line-height: 1.22;
    letter-spacing: -0.4px;
    margin: 8px 0 12px;
  }

  .detail h1 {
    font-size: 23px;
    line-height: 1.25;
  }

  .eyebrow {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .count {
    font-size: 12px;
    margin-bottom: 14px;
  }

  /* KARTEN & CONTAINER */
  .feature {
    padding: 18px 16px;
    margin-bottom: 14px;
    border-radius: var(--radius);
  }

  .feedItem {
    padding: 16px;
    margin-bottom: 12px;
    border-radius: var(--radius);
  }

  .feedItem h2 {
    font-size: 17px;
    line-height: 1.3;
    margin: 6px 0 10px;
  }

  /* TOUCH-OPTIMIERTE ABSTIMMUNGS-BUTTONS */
  .votes {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .vote {
    min-height: 48px;
    font-size: 14px;
    background: #fafafa;
    border: 1px solid #d5d4ce;
    padding: 12px 16px;
    justify-content: center;
  }

  .vote:active {
    background: #eceae4;
    border-color: var(--ink);
  }

  .quickVotes {
    gap: 6px;
  }

  .qv {
    padding: 9px 13px;
    font-size: 12px;
    min-height: 40px;
    background: #fafaf8;
    border: 1px solid #d8d7d2;
  }

  .actions {
    margin-top: 14px;
    padding-top: 12px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .smallbtn {
    margin-right: 8px;
    font-size: 12px;
    padding: 4px 0;
  }

  /* FOREN-LISTE AUF MOBILGERÄTEN */
  #forumList {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .forumHead {
    background: var(--white);
    border: 1px solid var(--line);
    border-bottom: 0;
    padding: 16px 14px 12px;
    align-items: flex-start;
    gap: 10px;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .forumHead h1 {
    font-size: 19px;
  }

  .forumTabs {
    gap: 14px;
    font-size: 12px;
  }

  .postRow {
    grid-template-columns: 58px 1fr;
    gap: 12px;
    padding: 14px 12px;
  }

  .replyCount {
    padding: 6px 2px;
    font-size: 8px;
    letter-spacing: 0;
  }

  .replyCount b {
    font-size: 16px;
  }

  .postTitle {
    font-size: 15px;
    line-height: 1.3;
  }

  .postExcerpt {
    display: none;
  }

  .postDetailTitle {
    font-size: 21px;
    margin: 8px 0 12px;
  }

  .postBody {
    font-size: 15px;
    line-height: 1.6;
  }

  .commentComposer {
    padding: 16px 14px;
    margin: 18px 0;
  }

  .commentComposer textarea {
    font-size: 16px;
    min-height: 90px;
  }

  /* KATEGORIEN */
  .gridcats {
    grid-template-columns: 1fr;
  }

  .catrow {
    padding: 16px 14px;
  }

  .catrow:nth-child(odd) {
    border-right: 0;
  }

  .catrow h3 {
    font-size: 16px;
  }

  /* PROFILE & FORMS */
  .profileTop {
    padding: 16px 14px;
  }

  .stats {
    padding: 14px;
    margin: 12px 0;
    gap: 16px;
  }

  .stat b {
    font-size: 18px;
  }

  .formbox, .authbox, .legalContent {
    padding: 18px 14px;
    margin-bottom: 14px;
  }

  .formbox input, .formbox textarea, .formbox select, .authbox input, .authbox select {
    font-size: 16px;
    padding: 12px;
  }

  .publish {
    width: 100%;
    padding: 14px;
    font-size: 14px;
  }

  .footerGrid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .toast-box {
    bottom: 74px;
    width: calc(100% - 24px);
  }

  /* MODERNE MOBILE APP NAVIGATION (BOTTOM BAR) */
  .mobileNav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    display: flex;
    height: 58px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
  }

  .mobileNav button {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 6px 0 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #666666;
    transition: color 0.15s ease;
    cursor: pointer;
  }

  .mobileNav button svg {
    transition: transform 0.12s ease, stroke 0.15s ease;
  }

  .mobileNav button span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
  }

  .mobileNav button:active svg {
    transform: scale(0.9);
  }

  .mobileNav button.active {
    color: var(--red);
  }

  .mobileNav button.active svg {
    stroke: var(--red);
  }

  .mobileNav button.createNavBtn {
    color: var(--ink);
  }

  .mobileNav button.createNavBtn.active {
    color: var(--red);
  }
}

/* ==============================================================================
   SCHWEIZ-MATCH 2.0 & GAMIFICATION STYLES
   ============================================================================== */
.navMatchBadge {
  background: rgba(224, 32, 32, 0.08);
  color: var(--red);
  border: 1px solid rgba(224, 32, 32, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.navMatchBadge:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.oauthBtn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.oauthBtn:active {
  transform: scale(0.99);
}

.googleBtn {
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
}

.googleBtn:hover {
  background: #f8f9fa;
  border-color: #c6c9ce;
}

.appleBtn {
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

.appleBtn:hover {
  background: #1a1a1a;
}

.swissMatchLayout {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.matchHeroCard {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.matchHeroTop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.matchBadgeTag {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.matchHeroTitle {
  font-size: 26px;
  font-weight: 900;
  margin: 0 0 6px;
  line-height: 1.2;
}

.matchHeroSubtitle {
  font-size: 14px;
  color: #555555;
  margin: 0;
  line-height: 1.5;
  max-width: 580px;
}

.matchGaugeBox {
  background: #fafaf9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 22px;
  text-align: center;
  min-width: 140px;
}

.matchPercentVal {
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  color: var(--red);
  font-family: var(--font-mono, monospace);
}

.matchPercentText {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 4px;
}

.matchStatsRow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
}

.matchStatItem {
  background: #fdfdfc;
  border: 1px solid var(--line-light);
  border-radius: 4px;
  padding: 12px;
  text-align: center;
}

.matchStatNumber {
  display: block;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
}

.matchStatDesc {
  font-size: 11px;
  color: #666;
  font-weight: 700;
}

.matchDisclaimerNote {
  margin-top: 14px;
  font-size: 11px;
  color: #888;
  line-height: 1.4;
}

.matchProgressWrapper {
  height: 10px;
  background: var(--soft);
  border-radius: 5px;
  overflow: hidden;
  margin: 16px 0 8px;
}

.matchProgressBar {
  height: 100%;
  background: var(--red);
  transition: width 0.4s ease;
}

.matchProgressLabel {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.matchSaveBanner {
  background: linear-gradient(135deg, #fdf6f0, #fff8f8);
  border: 1px solid #ffd8d8;
  border-left: 4px solid var(--red);
  padding: 18px 20px;
  border-radius: var(--radius);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.matchSaveIcon {
  font-size: 28px;
}

.matchHighlightBox {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.matchSection {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.matchSectionHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.matchSectionHeader h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
}

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

.matchCategoryGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.matchCategoryCard {
  background: #fafaf9;
  border: 1px solid var(--line-light);
  border-radius: 4px;
  padding: 14px;
}

.matchCategoryTop {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
}

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

.matchFilterBtn {
  background: #f0efe9;
  border: 0;
  border-radius: 14px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #555;
  cursor: pointer;
  transition: all 0.12s;
}

.matchFilterBtn.active {
  background: var(--red);
  color: #fff;
}

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

.matchComparisonItem {
  background: #fafaf9;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 16px;
}

.matchComparisonItem.item-majority {
  border-left: 4px solid #2e7d32;
}

.matchComparisonItem.item-minority {
  border-left: 4px solid #e63946;
}

.matchItemMeta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  margin-bottom: 6px;
  font-weight: 700;
}

.matchTag {
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.majorityTag {
  background: #e8f5e9;
  color: #1b5e20;
}

.minorityTag {
  background: #ffebee;
  color: #c62828;
}

.matchItemTitle {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.35;
}

.matchItemChoices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--line-light);
  border-radius: 4px;
  padding: 10px 12px;
}

@media (max-width: 600px) {
  .matchItemChoices {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .matchMilestonesGrid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.choiceLabel {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--muted);
  margin-bottom: 2px;
}

.choiceVal {
  font-size: 12px;
  color: var(--ink);
}

.matchUnansweredGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.matchUnansweredCard {
  background: #fafaf9;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 16px;
}

.matchMilestonesGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.matchMilestoneCard {
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: all 0.2s ease;
}

.matchMilestoneCard.achieved {
  background: #ffffff;
  border-color: #d1d5db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.matchMilestoneCard.achieved .milestoneTitle {
  color: var(--ink);
  font-weight: 700;
}

.matchMilestoneCard.achieved .milestoneDesc {
  color: #555552;
}

.matchMilestoneCard.locked {
  background: #fafaf8;
  border-color: #ebebea;
}

.matchMilestoneCard.locked .milestoneTitle {
  color: #888884;
  font-weight: 600;
}

.matchMilestoneCard.locked .milestoneDesc {
  color: #a3a39e;
}

.milestoneIcon {
  font-size: 13px;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

.matchMilestoneCard.achieved .milestoneIcon {
  background: #198754;
  color: #ffffff;
}

.matchMilestoneCard.locked .milestoneIcon {
  background: transparent;
  border: 1.5px solid #d4d4d0;
  color: transparent;
}

.milestoneInfo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.milestoneTitle {
  font-size: 13.5px;
  line-height: 1.3;
}

.milestoneDesc {
  font-size: 11.5px;
  line-height: 1.35;
}

.matchShareBar {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.dynamicVoteFeedback {
  margin-top: 14px;
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  padding: 12px 16px;
  border-radius: var(--radius);
}

.feedbackMain {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.feedbackIcon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2e7d32;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
}

