/* =============================================
   COCKROACH JANTA PARTY - Unified CSS
   Official Colors: Saffron / Green / Ink / Paper
   Desktop + Mobile Responsive
   ============================================= */

/* ===== OFFICIAL CJP VARIABLES ===== */
:root {
  --saffron: #E0651E;
  --saffron-2: #F0823A;
  --saffron-deep: #B84915;
  --green: #1F5A2E;
  --green-2: #2D7A45;
  --ink: #1A1108;
  --ink-2: #3A2A1C;
  --ink-3: #6A5440;
  --paper: #F4EBD7;
  --paper-2: #EADFC4;
  --paper-3: #DBCBA5;
  --blood: #8B1A1A;
  --gold: #C9A227;

  --display: 'Bowlby One', 'Impact', sans-serif;
  --condensed: 'Oswald', 'Arial Narrow', sans-serif;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --max: 1280px;
  --gutter: 56px;
  --header-height: 56px;
  --bottom-nav-height: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.mobile-view {
  padding-top: var(--header-height);
  padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom));
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  height: 100%;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); padding: 12px 16px; width: 100%; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--saffron-deep); box-shadow: 3px 3px 0 var(--saffron-deep); }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236A5440' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
textarea { resize: vertical; min-height: 120px; }
::placeholder { color: var(--ink-3); opacity: 0.6; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ===== TYPOGRAPHY ===== */
.display {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(44px, 6vw, 80px); line-height: 0.92;
  letter-spacing: -0.005em; color: var(--ink);
}
.display em { font-style: italic; font-family: 'Georgia', serif; font-weight: 400; color: var(--green); letter-spacing: -0.01em; }
.display.on-dark { color: var(--paper); }
.display.on-dark em { color: var(--saffron-2); }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--saffron-deep); margin-bottom: 22px;
}
.eyebrow.on-dark { color: var(--saffron-2); }
.lead {
  font-family: var(--sans); font-size: 18px; line-height: 1.55;
  color: var(--ink-2); max-width: 560px; margin-top: 24px;
}
.lead.on-dark { color: rgba(244,235,215,0.78); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--condensed); font-size: 14px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; padding: 16px 24px;
  border: 2px solid var(--ink); transition: all 0.15s;
}
.btn .arr { transition: transform 0.2s; }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--saffron-deep); color: var(--paper); box-shadow: 6px 6px 0 var(--ink); }
.btn-primary:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--ink); }
.btn-primary:active { transform: translate(0, 0); box-shadow: none; }
.btn-secondary { background: var(--paper-2); color: var(--ink); box-shadow: 4px 4px 0 var(--ink-3); }
.btn-secondary:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink-3); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--saffron-deep); }
.btn-sm { padding: 10px 18px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-pill {
  background: var(--ink); color: var(--paper); font-family: var(--condensed);
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 12px 22px; border: 2px solid var(--ink); transition: all 0.18s;
}
.btn-pill:hover {
  background: var(--saffron-deep); border-color: var(--saffron-deep);
  transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink);
}
.btn-pill-outline { background: transparent; color: var(--ink); }
.btn-pill-outline:hover { background: var(--ink); color: var(--paper); box-shadow: none; transform: none; }
.btn-link {
  font-family: var(--condensed); font-size: 14px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 6px; transition: all 0.2s;
}
.btn-link:hover { color: var(--saffron-deep); border-color: var(--saffron-deep); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== FORMS ===== */
.form-page { padding: 16px; max-width: 500px; margin: 0 auto; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ===== DESKTOP HEADER ===== */
.desktop-header { display: none; }
.desktop-header .top-strip {
  background: var(--ink); color: var(--paper); font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 9px 0; overflow: hidden; border-bottom: 2px solid var(--saffron);
}
.desktop-header .ticker {
  display: flex; gap: 56px; white-space: nowrap; width: max-content;
  animation: ticker 50s linear infinite;
}
.desktop-header .ticker span::before { content: '✦'; margin-right: 12px; color: var(--saffron-2); }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.desktop-header .nav {
  background: rgba(244,235,215,0.94); backdrop-filter: blur(8px); border-bottom: 2px solid var(--ink);
}
.desktop-header .nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px;
}
.desktop-header .brand { display: flex; align-items: center; gap: 14px; }
.desktop-header .brand-logo { width: 48px; height: 48px; display: grid; place-items: center; }
.desktop-header .brand-logo svg { width: 100%; height: 100%; }
.desktop-header .brand-text { display: flex; flex-direction: column; gap: 6px; line-height: 1; }
.desktop-header .brand-name { font-family: var(--display); font-size: 16px; letter-spacing: 0.01em; line-height: 0.94; color: var(--ink); }
.desktop-header .brand-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--saffron-deep); }
.desktop-header .primary-nav ul { list-style: none; display: flex; justify-content: center; gap: 36px; }
.desktop-header .primary-nav a {
  font-family: var(--condensed); font-size: 14px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink);
  padding: 6px 0; position: relative;
}
.desktop-header .primary-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--saffron); transform: scaleX(0);
  transform-origin: left; transition: transform 0.25s;
}
.desktop-header .primary-nav a:hover { color: var(--saffron-deep); }
.desktop-header .primary-nav a:hover::after { transform: scaleX(1); }
.desktop-header .primary-nav a.active { color: var(--saffron-deep); }
.desktop-header .primary-nav a.active::after { transform: scaleX(1); }
.desktop-header .nav-right { display: flex; align-items: center; gap: 16px; }
.desktop-header .notif-btn-header { position: relative; font-size: 18px; color: var(--ink-2); padding: 8px; }
.desktop-header .notif-badge-header {
  position: absolute; top: 2px; right: 2px; background: var(--blood); color: var(--paper);
  font-size: 9px; font-weight: 700; min-width: 16px; height: 16px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

/* ===== MOBILE HEADER ===== */
.mobile-header { display: none; }
.mobile-header .app-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-height);
  background: var(--paper); border-bottom: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: space-between; padding: 0 16px; z-index: 1000;
}
.mobile-header .app-header .header-left { display: flex; align-items: center; gap: 12px; }
.mobile-header .app-header .header-logo { font-family: var(--display); font-size: 18px; color: var(--ink); letter-spacing: -0.5px; }
.mobile-header .app-header .header-logo span { color: var(--saffron-deep); }
.mobile-header .app-header .header-right { display: flex; align-items: center; gap: 16px; }
.mobile-header .hamburger-btn { font-size: 22px; padding: 8px; color: var(--ink); }
.mobile-header .login-link { font-family: var(--condensed); font-size: 13px; font-weight: 600; color: var(--saffron-deep); text-transform: uppercase; letter-spacing: 0.15em; }
.mobile-header .notif-btn { position: relative; font-size: 18px; padding: 8px; color: var(--ink); }
.mobile-header .notif-badge {
  position: absolute; top: 2px; right: 2px; background: var(--blood); color: var(--paper);
  font-size: 9px; font-weight: 700; min-width: 16px; height: 16px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.mobile-header .hamburger-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 999;
}
.mobile-header .hamburger-overlay.active { display: block; }
.mobile-header .hamburger-menu {
  display: none; position: fixed; top: 0; left: -280px; width: 280px; height: 100%;
  background: var(--paper); z-index: 1001; transition: left 0.3s;
  padding-top: 16px; overflow-y: auto; border-right: 2px solid var(--ink);
}
.mobile-header .hamburger-menu.active { left: 0; display: block; }
.mobile-header .ham-user { padding: 16px 20px; border-bottom: 1px solid var(--paper-3); margin-bottom: 8px; display: flex; align-items: center; gap: 14px; }
.mobile-header .ham-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--saffron); }
.mobile-header .ham-name { font-weight: 700; font-size: 16px; color: var(--ink); }
.mobile-header .ham-rank { font-size: 12px; color: var(--ink-3); }
.mobile-header .ham-nav { list-style: none; }
.mobile-header .ham-nav li a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; font-size: 15px; color: var(--ink-2); transition: background 0.2s;
}
.mobile-header .ham-nav li a:hover { background: var(--paper-2); }
.mobile-header .ham-nav li a i { width: 20px; text-align: center; color: var(--saffron-deep); }
.mobile-header .ham-nav li.divider { border-top: 1px solid var(--paper-3); margin: 8px 16px; }

/* ===== MOBILE BOTTOM NAV ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(var(--bottom-nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--paper); border-top: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: space-around; z-index: 1000;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 12px; color: var(--ink-3); font-size: 10px;
  font-family: var(--condensed); text-transform: uppercase; letter-spacing: 0.1em;
  transition: color 0.2s; flex: 1; text-align: center;
}
.nav-item i { font-size: 20px; transition: color 0.2s; }
.nav-item.active { color: var(--saffron-deep); }
.nav-item.raise-btn i {
  background: var(--saffron-deep); color: var(--paper);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-top: -12px;
  box-shadow: 0 4px 12px rgba(224,101,30,0.3);
}
.nav-item .nav-badge {
  position: absolute; top: 2px; right: 50%; transform: translateX(22px);
  background: var(--blood); color: var(--paper); font-size: 9px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

/* ===== MAIN CONTENT ===== */
.app-content { min-height: 100vh; }
.mobile-view .app-content { height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.page-section { padding: 80px 0; border-bottom: 2px solid var(--ink); }

/* ===== CATEGORY PILLS ===== */
.cat-scroll { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; overflow-x: auto; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
  padding: 8px 18px; font-family: var(--condensed); font-size: 12px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase; background: var(--paper-2);
  color: var(--ink-2); border: 2px solid var(--ink); transition: all 0.15s; cursor: pointer; white-space: nowrap;
}
.cat-pill.active { background: var(--saffron-deep); color: var(--paper); border-color: var(--saffron-deep); }
.cat-pill:hover { background: var(--ink); color: var(--paper); }

/* ===== ISSUE CARDS ===== */
.issue-feed { padding: 0 16px 16px; }
.issue-feed-inner { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; margin-top: 48px; }
.issue-card {
  background: var(--paper); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden; transition: all 0.2s; display: block;
}
.issue-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.issue-card:active { transform: scale(0.98); }
.issue-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-bottom: 2px solid var(--ink); }
.issue-card-body { padding: 16px 18px 18px; }
.issue-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.cat-tag { font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
.issue-card-title { font-size: 16px; font-weight: 700; line-height: 1.35; margin-bottom: 6px; color: var(--ink); }
.issue-card-excerpt { font-size: 13px; color: var(--ink-3); line-height: 1.5; margin-bottom: 12px; }
.issue-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.issue-card-stats { display: flex; align-items: center; gap: 14px; }
.issue-card-stats span { display: flex; align-items: center; gap: 4px; }
.issue-card-stats i { font-size: 14px; }
.vote-up { color: var(--green); font-weight: 600; }
.vote-down { color: var(--blood); }
.issue-card-user { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.card-user-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 1px solid var(--ink-3); }

/* ===== SEVERITY & STATUS ===== */
.severity-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.severity-low { background: rgba(31,90,46,0.15); color: var(--green); }
.severity-med { background: rgba(184,73,21,0.15); color: var(--saffron-deep); }
.severity-high { background: rgba(139,26,26,0.15); color: var(--blood); }
.status-badge { font-size: 10px !important; font-weight: 600; padding: 3px 10px !important; border-radius: 2px; display: inline-block; }

/* ===== ISSUE DETAIL ===== */
.detail-header { position: relative; }
.detail-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-bottom: 2px solid var(--ink); }
.detail-back {
  position: absolute; top: 12px; left: 12px; width: 40px; height: 40px;
  background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center;
  font-size: 18px; border: 2px solid var(--paper);
}
.detail-body { padding: 24px; max-width: 760px; margin: 0 auto; }
.detail-title { font-size: 28px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; color: var(--ink); }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: center; }
.detail-meta-item { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 4px; }
.detail-description { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin-bottom: 24px; }
.detail-actions { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.detail-action-btn {
  flex: 1; min-width: 80px; padding: 12px; text-align: center; font-size: 13px; font-weight: 600;
  font-family: var(--condensed); text-transform: uppercase; letter-spacing: 0.1em;
  border: 2px solid var(--ink); background: var(--paper); transition: all 0.15s; cursor: pointer;
}
.detail-action-btn:hover { background: var(--paper-2); }
.detail-action-btn:active { transform: scale(0.95); }
.detail-action-btn.voted-up { background: var(--green); color: var(--paper); border-color: var(--green); }
.detail-action-btn.voted-down { background: var(--blood); color: var(--paper); border-color: var(--blood); }

/* ===== COMMENTS ===== */
.comment-section { padding: 24px; max-width: 760px; margin: 0 auto; border-top: 2px solid var(--ink); }
.comment-section h3 { font-family: var(--display); font-size: 22px; margin-bottom: 16px; color: var(--ink); }
.comment-input-row { display: flex; gap: 8px; margin-bottom: 16px; }
.comment-input-row input { flex: 1; }
.comment-item { display: flex; gap: 10px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--paper-3); }
.comment-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-body { flex: 1; }
.comment-user { font-weight: 600; font-size: 14px; color: var(--ink); }
.comment-time { font-size: 11px; color: var(--ink-3); margin-left: 8px; }
.comment-text { font-size: 14px; line-height: 1.5; margin-top: 4px; color: var(--ink-2); border-left: 2px solid var(--saffron); padding-left: 12px; }
.comment-reply-btn { font-size: 12px; color: var(--saffron-deep); font-weight: 600; margin-top: 4px; display: inline-block; }

/* ===== SOLUTION BOX ===== */
.solution-box { border: 2px solid var(--green); background: var(--paper-2); padding: 20px; margin-bottom: 24px; }
.solution-box h4 { font-family: var(--display); font-size: 18px; color: var(--green); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.solution-box p { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.solution-votes { display: flex; gap: 10px; margin-top: 12px; }
.sol-vote-btn {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 12px; font-weight: 600;
  border: 2px solid var(--ink); background: var(--paper); cursor: pointer; transition: all 0.2s;
}
.sol-vote-btn:hover { background: var(--paper-2); }

/* ===== LEADERBOARD ===== */
.leaderboard-tabs { display: flex; border-bottom: 2px solid var(--ink); margin-bottom: 16px; }
.lb-tab {
  flex: 1; text-align: center; padding: 12px; font-size: 13px; font-weight: 600;
  font-family: var(--condensed); text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--ink-3); border-bottom: 3px solid transparent; transition: all 0.2s; cursor: pointer;
}
.lb-tab.active { color: var(--saffron-deep); border-bottom-color: var(--saffron-deep); }
.lb-list { padding: 0 16px; }
.lb-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--paper-3); }
.lb-rank {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; background: var(--paper-2); color: var(--ink-3);
  flex-shrink: 0; border: 2px solid var(--ink);
}
.lb-rank.top-1 { background: var(--saffron); color: var(--paper); border-color: var(--gold); }
.lb-rank.top-2 { background: var(--ink-3); color: var(--paper); border-color: var(--ink-2); }
.lb-rank.top-3 { background: var(--saffron-deep); color: var(--paper); }
.lb-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--saffron); }
.lb-info { flex: 1; }
.lb-name { font-weight: 600; font-size: 15px; color: var(--ink); }
.lb-sub { font-size: 12px; color: var(--ink-3); }
.lb-points { font-weight: 700; color: var(--saffron-deep); font-size: 16px; font-family: var(--display); }
.lb-item.highlight { background: var(--paper-2); margin: 0 -16px; padding: 14px 16px; }

/* ===== PROFILE ===== */
.profile-header { text-align: center; padding: 40px 24px 24px; border-bottom: 2px solid var(--ink); background: var(--paper-2); }
.profile-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--saffron-deep); margin: 0 auto 12px; display: block; cursor: pointer; }
.profile-name { font-family: var(--display); font-size: 28px; color: var(--ink); }
.profile-rank { font-size: 14px; color: var(--saffron-deep); margin-top: 4px; font-family: var(--condensed); text-transform: uppercase; letter-spacing: 0.15em; }
.profile-points { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ink); margin: 0 24px; border: 2px solid var(--ink); }
.stat-item { background: var(--paper); text-align: center; padding: 20px 8px; }
.stat-number { font-family: var(--display); font-size: 28px; color: var(--saffron-deep); }
.stat-label { font-family: var(--mono); font-size: 10px; color: var(--ink-3); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.3px; }
.badges-section { padding: 24px; max-width: 600px; margin: 0 auto; }
.badges-section h3 { font-family: var(--display); font-size: 22px; margin-bottom: 16px; color: var(--ink); }
.badges-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.badge-item { text-align: center; padding: 16px 4px; background: var(--paper-2); border: 2px solid var(--ink); }
.badge-item i { font-size: 28px; color: var(--saffron); }
.badge-item.locked i { color: var(--ink-3); opacity: 0.4; }
.badge-item.locked { opacity: 0.5; }
.badge-name { font-family: var(--mono); font-size: 9px; color: var(--ink-3); margin-top: 4px; display: block; text-transform: uppercase; letter-spacing: 0.1em; }

/* ===== NOTIFICATIONS ===== */
.notif-list { max-width: 600px; margin: 0 auto; padding: 16px; }
.notif-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--paper-3); }
.notif-item.unread { background: var(--paper-2); margin: 0 -16px; padding: 16px; }
.notif-icon { width: 40px; height: 40px; background: var(--paper-2); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; color: var(--saffron-deep); }
.notif-content { flex: 1; }
.notif-title { font-weight: 600; font-size: 14px; color: var(--ink); }
.notif-message { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.notif-time { font-size: 11px; color: var(--ink-3); margin-top: 4px; font-family: var(--mono); text-transform: uppercase; }

/* ===== AUTH ===== */
.auth-page { display: flex; flex-direction: column; justify-content: center; padding: 32px 24px; max-width: 420px; margin: 0 auto; min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height)); }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo svg { width: 72px; height: 72px; margin: 0 auto 12px; display: block; }
.auth-logo h1 { font-family: var(--display); font-size: 32px; color: var(--ink); }
.auth-logo h1 span { color: var(--saffron-deep); }
.auth-logo p { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--ink-3); }
.auth-footer a { color: var(--saffron-deep); font-weight: 600; border-bottom: 1px solid var(--saffron-deep); }

/* ===== ALERT ===== */
.alert { padding: 12px 16px; margin-bottom: 16px; font-size: 14px; border: 2px solid; }
.alert-error { background: rgba(139,26,26,0.08); border-color: var(--blood); color: var(--blood); }
.alert-success { background: rgba(31,90,46,0.08); border-color: var(--green); color: var(--green); }
.alert-info { background: rgba(224,101,30,0.08); border-color: var(--saffron); color: var(--saffron-deep); }

/* ===== LOADING ===== */
.loading-spinner { display: flex; justify-content: center; padding: 24px; }
.spinner { width: 32px; height: 32px; border: 3px solid var(--paper-3); border-top-color: var(--saffron-deep); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes livepulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.65); }
}

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 48px 16px; color: var(--ink-3); }
.empty-state i { font-size: 48px; margin-bottom: 16px; opacity: 0.4; color: var(--saffron-deep); }
.empty-state h3 { font-family: var(--display); font-size: 24px; color: var(--ink-2); margin-bottom: 8px; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: var(--paper); padding: 14px 28px; font-size: 14px;
  border: 2px solid var(--saffron); z-index: 9999; opacity: 0; transition: all 0.35s;
  pointer-events: none; font-family: var(--sans);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* ===== PAGE TITLE ===== */
.page-title { font-family: var(--display); font-size: clamp(24px, 4vw, 40px); padding: 24px 16px; text-align: center; color: var(--ink); background: var(--paper-2); border-bottom: 2px solid var(--ink); }

/* ===== LEGAL ===== */
.legal-page { max-width: 720px; margin: 0 auto; padding: 40px 24px; }
.legal-page h1 { font-family: var(--display); font-size: clamp(32px, 5vw, 56px); margin-bottom: 8px; color: var(--ink); }
.legal-page .last-updated { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--paper-3); }
.legal-page h2 { font-family: var(--display); font-size: 24px; margin: 32px 0 12px; color: var(--ink); }
.legal-page h3 { font-family: var(--condensed); font-size: 18px; font-weight: 600; margin: 24px 0 8px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); }
.legal-page p { font-size: 15px; line-height: 1.7; color: var(--ink-2); margin-bottom: 12px; }
.legal-page ul { list-style: disc; padding-left: 24px; margin-bottom: 12px; }
.legal-page ul li { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin-bottom: 6px; }

/* ===== SEVERITY SLIDER ===== */
.severity-slider-container { padding: 8px 0; }
.severity-slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--green), var(--saffron), var(--blood));
  outline: none; margin: 12px 0;
}
.severity-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--saffron-deep);
  cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.severity-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); font-family: var(--mono); text-transform: uppercase; }

/* ===== CONFETTI ===== */
.confetti-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; overflow: hidden; }
.confetti-piece { position: absolute; width: 10px; height: 10px; top: -10px; animation: confettiFall linear forwards; }
@keyframes confettiFall { 0% { transform: translateY(0) rotate(0deg); opacity: 1; } 100% { transform: translateY(100vh) rotate(720deg); opacity: 0; } }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content {
  background: var(--paper); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
  padding: 24px; max-width: 400px; width: 100%;
}
.modal-title { font-family: var(--display); font-size: 22px; margin-bottom: 8px; color: var(--ink); }
.modal-text { color: var(--ink-2); font-size: 14px; margin-bottom: 20px; line-height: 1.5; }

/* ===== SHARE ===== */
.share-buttons { display: flex; gap: 12px; margin-top: 16px; }
.share-btn { flex: 1; padding: 10px; text-align: center; font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 2px solid var(--ink); }
.share-whatsapp { background: #25D366; color: #fff; border-color: #25D366; }
.share-twitter { background: #1DA1F2; color: #fff; border-color: #1DA1F2; }
.share-copy { background: var(--paper-2); color: var(--ink); }

/* ===== MISC ===== */
.text-center { text-align: center; }
.text-saffron { color: var(--saffron-deep); }
.text-green { color: var(--green); }
.text-muted { color: var(--ink-3); }
.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.p-16 { padding: 16px; }
.p-24 { padding: 24px; }
.w-full { width: 100%; }

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

/* ===== DESKTOP ONLY (>1024px) ===== */
@media (min-width: 1025px) {
  .desktop-header { display: block; }
  .mobile-header { display: none !important; }
  .bottom-nav { display: none !important; }
  body.mobile-view { padding: 0 !important; overflow: auto; }
}

/* ===== MOBILE / TABLET (≤1024px) ===== */
@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .desktop-header { display: none !important; }
  .mobile-header { display: block; }
  body.mobile-view { padding-top: var(--header-height); padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom)); height: 100%; overflow: hidden; }
  .app-content { height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: auto; }

  .page-section { padding: 48px 0; }
  .issue-feed-inner { grid-template-columns: 1fr; }
  .detail-body { padding: 16px; }
  .comment-section { padding: 16px; }
  .detail-actions { flex-wrap: wrap; }
  .detail-action-btn { min-width: 60px; }
  .profile-stats { margin: 0 16px; }
  .lb-tab { font-size: 12px; }
  .badges-grid { grid-template-columns: repeat(3, 1fr); }
  .legal-page { padding: 24px 16px; }
  .auth-page { padding: 24px 16px; }
  .form-page { padding: 16px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
}