/* ==========================================================================
   夜城 · Night City — Shared Stylesheet
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --bg: #05070C;
  --bg-deep: #020305;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-hover: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.09);
  --ink: #E9ECF2;
  --muted: #7A8296;
  --glow: #F4EFE2;          /* warm moonlight — light source colour */
  --glow-soft: rgba(244, 239, 226, 0.55);
  --ripple: rgba(210, 225, 255, 0.35); /* cool water-light for ripples */
  --violet: #B9A7FF;        /* accent colour */
}

/* ---------- Base & Reset ---------- */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(70,90,140,0.10), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Noto Sans SC', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  overflow-x: hidden;
}

/* Scroll lock specific for project page layout on desktop */
body.page-project {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* Faint starlight / city-lights background texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,0.35) 0, transparent 60%),
    radial-gradient(1px 1px at 82% 15%, rgba(255,255,255,0.25) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 68% 78%, rgba(255,255,255,0.22) 0, transparent 60%),
    radial-gradient(1px 1px at 30% 85%, rgba(255,255,255,0.28) 0, transparent 60%),
    radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,0.18) 0, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Page Layout Wrappers ---------- */
.page {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 24px 64px;
}

.page.page-sub {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 28px 80px;
  align-items: stretch;
}

.page.page-sub-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 28px 90px;
  align-items: stretch;
}

.page.page-project-container {
  height: 100vh;
  padding: 28px 28px 0;
  max-width: 1080px;
  margin: 0 auto;
  align-items: stretch;
}

/* ---------- Navigation Header ---------- */
.nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 46px;
}

.nav.nav-home {
  max-width: 420px;
  margin-bottom: 48px;
}

.nav .tag {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav a.back {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  transition: color .2s ease;
}

.nav a.back:hover {
  color: var(--glow);
}

/* Language Toggle Button */
.lang-toggle {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}

.lang-toggle:hover {
  border-color: var(--glow-soft);
  color: var(--ink);
  background: var(--panel-hover);
  transform: translateY(-1px);
}

.lang-toggle .lang-opt {
  transition: color .2s ease, text-shadow .2s ease;
}

.lang-toggle .lang-opt.active {
  color: var(--glow);
  font-weight: 600;
  text-shadow: 0 0 8px rgba(244,239,226,0.4);
}

.lang-toggle .divider {
  opacity: 0.35;
}

/* ---------- Icon Design System & Micro-Interactions ---------- */
[data-lucide] {
  stroke-width: 1.75px;
  vertical-align: middle;
  flex-shrink: 0;
  transition: stroke .25s ease, color .25s ease, transform .25s ease, filter .25s ease;
}

.tag-icon {
  width: 13px;
  height: 13px;
  margin-right: 5px;
  color: var(--violet);
  vertical-align: -1px;
}

.lang-icon {
  width: 13px;
  height: 13px;
  color: var(--muted);
  transition: color .2s ease, transform .2s ease;
}

.lang-toggle:hover .lang-icon {
  color: var(--glow);
  transform: rotate(15deg);
}

.card-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--glow);
  flex-shrink: 0;
  transition: border-color .3s, background .3s, transform .3s, box-shadow .3s;
}

.card-icon-badge [data-lucide] {
  width: 20px;
  height: 20px;
}

.card:hover .card-icon-badge {
  border-color: var(--glow-soft);
  background: rgba(244, 239, 226, 0.08);
  transform: scale(1.08) translateY(-1px);
  box-shadow: 0 0 16px rgba(244, 239, 226, 0.2);
}

.card-project .card-icon-badge { color: #82aaff; border-color: rgba(130, 170, 255, 0.25); }
.card-commission .card-icon-badge { color: var(--violet); border-color: rgba(185, 167, 255, 0.25); }
.card-support .card-icon-badge { color: #ff8b94; border-color: rgba(255, 139, 148, 0.25); }
.card-profile .card-icon-badge { color: #64ffda; border-color: rgba(100, 255, 218, 0.25); }

.stat-icon-wrap {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--glow);
  transition: border-color .2s, transform .2s, background .2s;
}

.stat-icon-wrap [data-lucide] {
  width: 17px;
  height: 17px;
}

.stat-card:hover .stat-icon-wrap {
  border-color: var(--glow-soft);
  background: rgba(244, 239, 226, 0.08);
  transform: scale(1.12);
}

.chip-icon {
  width: 13px;
  height: 13px;
  margin-right: 5px;
  vertical-align: -2px;
  opacity: 0.85;
}

.comm-card.personal .comm-icon {
  background: radial-gradient(circle at 38% 32%, #ffffff, var(--glow) 45%, #b9a37c 100%);
  box-shadow: 0 0 16px 3px rgba(244,239,226,0.35), 0 0 36px 10px rgba(244,239,226,0.12);
  color: #181712;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comm-card.personal .comm-icon [data-lucide] {
  width: 24px;
  height: 24px;
  stroke-width: 2.2px;
}

.comm-card.public .comm-icon.vote-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(185,167,255,0.12);
  border: 1px solid rgba(185,167,255,0.35);
  box-shadow: 0 0 20px rgba(185,167,255,0.25);
  color: var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
}

.comm-card.public .comm-icon.vote-icon [data-lucide] {
  width: 24px;
  height: 24px;
  stroke-width: 2px;
}

.step-icon {
  width: 15px;
  height: 15px;
  color: var(--glow);
  flex-shrink: 0;
}

.prop-icon {
  width: 14px;
  height: 14px;
  color: var(--violet);
  margin-right: 6px;
  vertical-align: -2px;
}

.note-icon {
  width: 13px;
  height: 13px;
  margin-right: 5px;
  vertical-align: -2px;
}

.lamp .core {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lamp .lamp-flame {
  width: 24px;
  height: 24px;
  color: #181712;
  stroke-width: 2.2px;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.8));
}

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

.tier-icon {
  width: 20px;
  height: 20px;
  color: var(--glow);
  transition: transform .25s ease;
}

.tier:hover .tier-icon {
  transform: scale(1.2) rotate(6deg);
}

.tier.featured .tier-icon {
  color: var(--violet);
}

.fund-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--glow);
  margin-bottom: 4px;
  transition: border-color .2s, background .2s;
}

.fund-item:hover .fund-icon-box {
  border-color: var(--glow-soft);
  background: rgba(244, 239, 226, 0.08);
}

.fund-icon-box [data-lucide] {
  width: 18px;
  height: 18px;
}

.supporter-heart {
  width: 15px;
  height: 15px;
  color: #ff6b6b;
  fill: #ff6b6b;
  margin-right: 6px;
  vertical-align: -2px;
  animation: heart-beat 2s ease-in-out infinite;
}

@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.22); }
}

.search-box [data-lucide] {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex-shrink: 0;
  transition: color .2s ease;
}

.search-box:focus-within [data-lucide] {
  color: var(--glow);
}

.filter-btn [data-lucide] {
  width: 17px;
  height: 17px;
}

.rail-btn [data-lucide] {
  width: 12px;
  height: 12px;
}

.btn-icon {
  width: 13px;
  height: 13px;
  margin-right: 4px;
  vertical-align: -2px;
}


/* ---------- Typography & Common Components ---------- */
.title-cn {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  font-size: 30px;
  color: var(--glow);
  text-shadow: 
    0 0 12px rgba(244,239,226,0.4), 
    0 0 30px rgba(244,239,226,0.15);
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.title-cn.center-title {
  justify-content: center;
}

.title-cn .en {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-shadow: none;
}

.lede {
  color: var(--muted);
  font-size: 14px;
  max-width: 56ch;
  line-height: 1.6;
  margin: 0 0 40px;
}

.section {
  margin-bottom: 46px;
}

.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

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

.chip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--violet);
  border: 1px solid rgba(185,167,255,0.35);
  padding: 5px 12px;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.chip:hover {
  border-color: var(--glow-soft);
  color: var(--ink);
}

.chip.active {
  border-color: var(--violet);
  color: var(--violet);
  background: rgba(185,167,255,0.08);
}

footer {
  margin-top: 56px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: rgba(122,130,150,0.6);
  text-transform: uppercase;
}

/* ==========================================================================
   Home Page Components
   ========================================================================== */
.home-stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -20px; /* overlap the next section slightly */
}

.char {
  font-family: 'Noto Serif SC', serif;
  font-weight: 600;
  font-size: 68px;
  color: rgba(233,236,242,0.55);
  letter-spacing: 0;
  user-select: none;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  filter: blur(0.2px);
  transition: color .4s ease;
}

.char-left { margin-right: -14px; }
.char-right { margin-left: -14px; }

.avatar-stack {
  position: relative;
  width: 168px;
  height: 168px;
  flex-shrink: 0;
  z-index: 2;
  display: block;
}

.ripple-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ripple {
  position: absolute;
  left: 50%; top: 50%;
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 1px solid var(--ripple);
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  animation: ripple-out 4.5s ease-out infinite;
  mix-blend-mode: screen;
}

.ripple.r2 { animation-delay: 1.5s; }
.ripple.r3 { animation-delay: 3s; }

@keyframes ripple-out {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.55; }
  70%  { opacity: 0.12; }
  100% { transform: translate(-50%, -50%) scale(2.05); opacity: 0; }
}

.avatar {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #ffffff 0%, var(--glow) 42%, #b9a37c 100%);
  box-shadow:
    0 0 18px 4px rgba(244,239,226,0.35),
    0 0 46px 14px rgba(244,239,226,0.12);
  animation: breathe 4.5s ease-in-out infinite;
  overflow: hidden;
  transition: transform .3s ease;
}

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

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 18px 4px rgba(244,239,226,0.32), 0 0 46px 14px rgba(244,239,226,0.10); }
  50%      { box-shadow: 0 0 24px 7px rgba(244,239,226,0.45), 0 0 60px 20px rgba(244,239,226,0.16); }
}

.yc-mark {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 0.03em;
  color: var(--glow);
  text-shadow:
    0 0 10px rgba(244,239,226,0.65),
    0 0 26px rgba(244,239,226,0.35),
    0 0 54px rgba(244,239,226,0.15);
  margin-bottom: 8px;
}

.subtitle {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 44px;
  text-align: center;
}

/* Home Navigation Cards */
.cards {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: border-color .35s ease, background .35s ease, transform .25s ease;
}

.card::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(244,239,226,0.10), transparent 55%);
  opacity: 0;
  transition: opacity .35s ease;
}

.card:hover {
  border-color: rgba(244,239,226,0.35);
  background: rgba(255,255,255,0.045);
  transform: translateY(-1px);
}

.card:hover::before { opacity: 1; }
.card:focus-visible { outline: 1.5px solid var(--glow); outline-offset: 3px; }

.card-text { position: relative; z-index: 1; }

.card-en {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.card-cn {
  font-family: 'Noto Serif SC', serif;
  font-size: 19px;
  color: var(--ink);
  transition: color .3s ease;
}

.card:hover .card-cn {
  color: var(--glow);
}

.card-arrow {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  transition: border-color .3s, color .3s, transform .3s;
}

.card-arrow svg {
  width: 14px;
  height: 14px;
  transition: transform .3s ease;
}

.card:hover .card-arrow {
  border-color: var(--glow-soft);
  color: var(--glow);
}

.card:hover .card-arrow svg {
  transform: translateX(2px);
}

/* ==========================================================================
   Commission Page Components
   ========================================================================== */
.commission-grid {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.comm-card {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color .3s ease, background .3s ease, transform .25s ease;
}

.comm-card:hover { transform: translateY(-2px); }
.comm-card.personal:hover { border-color: var(--glow-soft); background: var(--panel-hover); }
.comm-card.public:hover { border-color: rgba(185,167,255,0.5); background: var(--panel-hover); }

.comm-card::before {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.16;
  pointer-events: none;
}

.comm-card.personal::before { background: var(--glow); top: -60px; right: -60px; }
.comm-card.public::before { background: var(--violet); top: -60px; right: -60px; }

.comm-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.comm-card.personal .comm-icon {
  background: radial-gradient(circle at 38% 32%, #ffffff, var(--glow) 45%, #b9a37c 100%);
  box-shadow: 0 0 16px 3px rgba(244,239,226,0.35), 0 0 36px 10px rgba(244,239,226,0.12);
}

.comm-card.public .comm-icon {
  background: transparent;
  display: grid;
  grid-template-columns: repeat(3, 8px);
  grid-template-rows: repeat(3, 8px);
  gap: 3px;
}

.comm-card.public .comm-icon span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.35;
  box-shadow: 0 0 6px 1px rgba(185,167,255,0.4);
}

.comm-card.public .comm-icon span.lit {
  opacity: 1;
  box-shadow: 0 0 8px 2px rgba(185,167,255,0.75);
}

.comm-title {
  font-family: 'Noto Serif SC', serif;
  font-weight: 600;
  font-size: 21px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.comm-title .en {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.comm-desc {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.steps {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  position: relative;
  z-index: 1;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink);
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.steps li:last-child { border-bottom: none; }

.steps li .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  width: 18px;
}

.proposals {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  position: relative;
  z-index: 1;
}

.proposals li { margin-bottom: 16px; }
.proposals li:last-child { margin-bottom: 0; }

.proposal-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  margin-bottom: 6px;
}

.proposal-top .pct {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--violet);
}

.bar-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(185,167,255,0.5), var(--violet));
}

.comm-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  position: relative;
  z-index: 1;
  transition: transform .2s ease, box-shadow .2s ease;
}

.comm-card.personal .comm-cta {
  background: var(--glow);
  color: #181712;
}

.comm-card.public .comm-cta {
  background: transparent;
  color: var(--violet);
  border: 1px solid rgba(185,167,255,0.5);
}

.comm-cta:hover { transform: translateY(-1px); }
.comm-card.personal .comm-cta:hover { box-shadow: 0 6px 20px rgba(244,239,226,0.25); }
.comm-card.public .comm-cta:hover { box-shadow: 0 6px 20px rgba(185,167,255,0.18); }

.status-note {
  margin-top: 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Profile Page Components
   ========================================================================== */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

.mini-orb {
  position: relative;
  width: 74px; height: 74px;
  flex-shrink: 0;
}

.mini-orb .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--ripple);
  animation: ring-pulse 4.5s ease-out infinite;
}

.mini-orb .core {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #ffffff 0%, var(--glow) 45%, #b9a37c 100%);
  box-shadow: 0 0 16px 3px rgba(244,239,226,0.35), 0 0 34px 10px rgba(244,239,226,0.12);
}

@keyframes ring-pulse {
  0%   { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 0; }
}

.profile-name {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  font-size: 30px;
  color: var(--glow);
  text-shadow: 0 0 12px rgba(244,239,226,0.4), 0 0 30px rgba(244,239,226,0.15);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.profile-name .en {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-shadow: none;
}

.profile-tagline {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
  max-width: 44ch;
  line-height: 1.55;
}

.stats-row {
  display: flex;
  gap: 14px;
  margin-bottom: 40px;
}

.stat-card {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
}

.stat-num {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 24px;
  color: var(--glow);
  text-shadow: 0 0 10px rgba(244,239,226,0.3);
}

.stat-label {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.03em;
}

.bio-text {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink);
  max-width: 66ch;
}

.bio-text + .bio-text {
  margin-top: 14px;
}

.skill-group {
  margin-bottom: 18px;
}

.skill-group:last-child {
  margin-bottom: 0;
}

.skill-group h4 {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 10px;
}

.journey {
  position: relative;
  padding-left: 22px;
}

.journey::before {
  content: '';
  position: absolute;
  left: 4px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--line);
}

.journey-entry {
  position: relative;
  padding-bottom: 26px;
}

.journey-entry:last-child {
  padding-bottom: 0;
}

.journey-entry::before {
  content: '';
  position: absolute;
  left: -22px; top: 5px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--glow-soft);
}

.journey-year {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 4px;
}

.journey-title {
  font-size: 14.5px;
  color: var(--ink);
}

.socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 13px;
  color: var(--muted);
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}

.social-btn svg {
  width: 15px;
  height: 15px;
  color: currentColor;
}

.social-btn:hover {
  border-color: var(--glow-soft);
  color: var(--glow);
  background: var(--panel-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   Project Page Components
   ========================================================================== */
.title-row {
  margin-bottom: 22px;
}

.toolbar {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
  position: relative;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .2s, background .2s;
}

.search-box:focus-within {
  border-color: var(--glow-soft);
  background: var(--panel-hover);
}

.search-box svg {
  width: 16px; height: 16px;
  color: var(--muted);
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-size: 14px;
  font-family: 'Noto Sans SC', sans-serif;
}

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

.toolbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.collapse-toggle-btn {
  position: relative;
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: visible;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}

.collapse-toggle-btn:hover {
  border-color: var(--glow-soft);
  color: var(--glow);
  background: var(--panel-hover);
  transform: scale(1.05);
}

.collapse-toggle-btn svg {
  width: 17px; height: 17px;
  transition: transform .25s ease;
}

.collapse-toggle-btn.collapsed svg {
  transform: rotate(180deg);
}

.filter-btn {
  position: relative;
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: visible;
  transition: border-color .2s, color .2s, background .2s;
}

.filter-btn svg { width: 17px; height: 17px; }
.filter-btn.active { border-color: var(--glow-soft); color: var(--glow); background: rgba(244,239,226,0.06); }

/* Custom Action Tooltip (Toolbar Buttons) */
.action-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: rgba(8, 12, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 100;
}

.action-tooltip::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: rgba(8, 12, 20, 0.95);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.collapse-toggle-btn:hover .action-tooltip,
.filter-btn:hover .action-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.filter-btn.active .action-tooltip,
.filter-panel.open ~ .action-tooltip,
.filter-panel.open .action-tooltip {
  opacity: 0 !important;
  visibility: hidden !important;
}

.filter-btn .count {
  position: absolute;
  margin-left: 26px; margin-top: -30px;
  background: var(--violet);
  color: #0B0B14;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-panel {
  position: absolute;
  top: 54px; right: 0;
  width: 280px;
  background: #0A0D14;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  z-index: 20;
  display: none;
}

.filter-panel.open { display: block; }

.filter-group { margin-bottom: 16px; }
.filter-group:last-child { margin-bottom: 0; }

.filter-group h4 {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.filter-clear {
  margin-top: 14px;
  width: 100%;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--muted);
  background: none;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 9px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}

.filter-clear:hover { color: var(--glow); border-color: var(--glow-soft); }

.content-row {
  flex: 1;
  display: flex;
  gap: 8px;
  min-height: 0;
  margin-top: 18px;
}

.scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 4px 4px 40px 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroll-area::-webkit-scrollbar { display: none; width: 0; height: 0; }

#results {
  padding-bottom: 320px;
}

.year-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  transition: color .2s ease;
}

.year-label:hover {
  color: var(--glow);
}

.year-chevron {
  width: 14px;
  height: 14px;
  color: var(--muted);
  transition: transform .25s ease, color .2s ease;
}

.year-label:hover .year-chevron {
  color: var(--glow);
}

.year-block.collapsed .year-chevron {
  transform: rotate(-90deg);
}

.year-count {
  font-size: 11px;
  opacity: 0.55;
  font-weight: 400;
}

.year-block:first-child .year-label { margin-top: 4px; }
.year-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
  transition: background .2s ease;
}

.year-label:hover::after {
  background: rgba(255, 255, 255, 0.2);
}

.year-content {
  overflow: hidden;
  transition: max-height .35s cubic-bezier(0.4, 0, 0.2, 1), opacity .25s ease;
  max-height: 2000px;
  opacity: 1;
  padding-top: 6px;
  margin-top: -2px;
}

.year-block.collapsed .year-content {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  padding-top: 0;
  margin-top: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  padding: 4px;
  margin: -4px;
}

.project-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: border-color .25s, background .25s, transform .2s;
}

.project-card:hover {
  border-color: var(--glow-soft);
  background: var(--panel-hover);
  transform: translateY(-2px);
}

.preview-row { display: flex; gap: 8px; }

.preview-box {
  flex: 1;
  aspect-ratio: 1.5;
  border-radius: 10px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 25%, rgba(244,239,226,0.22), transparent 60%),
    rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--glow);
  overflow: hidden;
  position: relative;
}

.preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1), filter .35s ease;
}

.project-card:hover .preview-box img {
  transform: scale(1.08);
}

.preview-box svg {
  width: 22px;
  height: 22px;
  color: var(--glow);
  opacity: 0.85;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
}

.card-title {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 6px;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.card-tags span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--violet);
  border: 1px solid rgba(185,167,255,0.35);
  padding: 2px 8px;
  border-radius: 999px;
}

.empty-state {
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  font-family: 'IBM Plex Mono', monospace;
}

.scroll-rail {
  width: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 6px;
  flex-shrink: 0;
  align-self: center;
  position: relative;
  z-index: 10;
  overflow: visible;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  max-height: calc(100% - 24px);
  transition: height .3s ease;
}

.rail-btn {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  flex-shrink: 0;
  overflow: visible;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}

.rail-btn svg {
  width: 13px;
  height: 13px;
}

.rail-btn:hover {
  border-color: var(--glow-soft);
  color: var(--glow);
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.08);
}

.rail-track {
  position: relative;
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
  margin: 16px 0;
  overflow: visible;
  min-height: 50px;
  max-height: calc(100vh - 280px);
  transition: height .35s cubic-bezier(0.4, 0, 0.2, 1);
}

.rail-dot {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 20;
  transition: transform .25s cubic-bezier(0.34, 1.56, 0.64, 1), background .2s ease, box-shadow .2s ease, opacity .2s ease;
}

/* Expanded click target area */
.rail-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.rail-dot:hover {
  opacity: 1;
  background: #ffffff;
  transform: translate(-50%, -50%) scale(1.35);
  box-shadow: 0 0 14px 2px rgba(255, 255, 255, 0.9);
}

.rail-dot.active {
  background: var(--violet);
  box-shadow: 0 0 10px rgba(185, 167, 255, 0.8);
}

.rail-tooltip {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: rgba(8, 12, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 100;
}

.rail-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: rgba(8, 12, 20, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.rail-btn .rail-tooltip {
  right: 36px;
}

.rail-dot:hover .rail-tooltip,
.rail-btn:hover .rail-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.rail-indicator {
  position: absolute;
  left: 50%; top: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 12px 3px rgba(185,167,255,0.85), 0 0 24px 6px rgba(185,167,255,0.35);
  transform: translate(-50%, -50%);
  transition: top .08s linear;
  pointer-events: none;
  z-index: 25;
}

/* ==========================================================================
   Support Page Components
   ========================================================================== */
.support-hero {
  text-align: center;
  margin-bottom: 46px;
}

.lamp {
  position: relative;
  width: 96px; height: 96px;
  margin: 0 auto 22px;
}

.lamp .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--ripple);
  animation: lamp-pulse 3.6s ease-out infinite;
}

.lamp .ring.r2 { animation-delay: 1.2s; }
.lamp .ring.r3 { animation-delay: 2.4s; }

@keyframes lamp-pulse {
  0%   { transform: scale(0.7); opacity: 0.55; }
  100% { transform: scale(1.6); opacity: 0; }
}

.lamp .core {
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #ffffff 0%, var(--glow) 45%, #b9a37c 100%);
  box-shadow: 0 0 20px 5px rgba(244,239,226,0.4), 0 0 50px 16px rgba(244,239,226,0.15);
  animation: breathe 4.5s ease-in-out infinite;
}

.support-lede {
  color: var(--muted);
  font-size: 14px;
  max-width: 48ch;
  margin: 0 auto;
  line-height: 1.65;
}

.tiers {
  display: flex;
  gap: 16px;
  margin-bottom: 50px;
}

.tier {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  transition: border-color .25s, background .25s, transform .2s;
}

.tier:hover {
  transform: translateY(-2px);
  border-color: var(--glow-soft);
  background: var(--panel-hover);
}

.tier.featured {
  border-color: rgba(244,239,226,0.4);
  position: relative;
}

.tier.featured::before {
  content: 'MOST LIT';
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  background: var(--glow);
  color: #181712;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.tier-name {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.tier-price {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 14px;
}

.tier-price span {
  font-size: 12px;
  color: var(--muted);
}

.tier-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 22px;
  flex: 1;
}

.tier-cta {
  text-align: center;
  padding: 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: var(--glow);
  color: #181712;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform .2s, box-shadow .2s;
}

.tier-cta svg {
  width: 13px;
  height: 13px;
}

.tier-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(244,239,226,0.25);
}

.tier:not(.featured) .tier-cta {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.tier:not(.featured) .tier-cta:hover {
  border-color: var(--glow-soft);
  box-shadow: none;
}

.funds {
  display: flex;
  gap: 16px;
  margin-bottom: 50px;
}

.fund-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.fund-item .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 8px 2px rgba(244,239,226,0.4);
}

.fund-item .label { font-size: 13px; color: var(--ink); }
.fund-item .sub { font-size: 11.5px; color: var(--muted); }

.supporters { text-align: center; }

.supporters-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

.supporters-count strong { color: var(--glow); }

.light-field {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.light-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--glow);
  opacity: 0.85;
  box-shadow: 0 0 7px 2px rgba(244,239,226,0.4);
  animation: twinkle 3.2s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Reduced Motion Overrides */
@media (prefers-reduced-motion: reduce) {
  .ripple { animation: none; opacity: 0.15; }
  .avatar { animation: none; }
  .mini-orb .ring { animation: none; opacity: 0.2; }
  .lamp .ring { animation: none; opacity: 0.15; }
  .lamp .core { animation: none; }
  .light-dot { animation: none; opacity: 0.7; }
}

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

/* Wide / Desktop screens */
@media (min-width: 720px) {
  .nav.nav-home { max-width: 780px; }
  .home-stage { height: 260px; max-width: 560px; }
  .char { font-size: 86px; }
  .char-left { margin-right: -18px; }
  .char-right { margin-left: -18px; }
  .avatar-stack { width: 196px; height: 196px; }
  .avatar { width: 116px; height: 116px; }
  .ripple { width: 116px; height: 116px; }
  .yc-mark { font-size: 36px; }

  /* Home cards switch to horizontal grid layout with vertical internal structure */
  .cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 780px;
    gap: 16px;
  }
  .card {
    display: grid;
    grid-template-areas:
      "badge arrow"
      "text  text";
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    align-content: space-between;
    padding: 22px 20px;
    min-height: 156px;
    border-radius: 18px;
  }
  .card-icon-badge {
    grid-area: badge;
    justify-self: start;
  }
  .card-arrow {
    grid-area: arrow;
    justify-self: end;
    align-self: start;
  }
  .card-text {
    grid-area: text;
    margin-top: 24px;
  }
}

@media (max-width: 760px) {
  .commission-grid { flex-direction: column; }
  .page.page-sub { padding: 22px 18px 60px; }
}

@media (max-width: 719px) {
  .scroll-rail { display: none; }
  .content-row { gap: 0; }
  .page.page-project-container { padding: 22px 18px 0; }
  .project-grid { grid-template-columns: 1fr; }
  .filter-panel { width: min(280px, calc(100vw - 44px)); }
}

@media (max-width: 700px) {
  .tiers { flex-direction: column; }
  .funds { flex-direction: column; }
}

@media (max-width: 640px) {
  .stats-row { flex-wrap: wrap; }
  .stat-card { min-width: calc(50% - 7px); }
  .profile-hero { align-items: flex-start; }
}

/* ==========================================================================
   Project Detail Page — Night City Theme
   ========================================================================== */

.page-project-detail {
  background: var(--bg);
  min-height: 100vh;
  color: var(--ink);
  font-family: 'Noto Sans SC', sans-serif;
  overflow-x: hidden;
}

.detail-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Loading & Error States */
.detail-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  gap: 16px;
  text-align: center;
  color: var(--muted);
}

.detail-state .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--violet);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.detail-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--glow);
  text-decoration: none;
  font-size: 13px;
  transition: background .2s, border-color .2s;
}

.detail-back-btn:hover {
  background: var(--panel-hover);
  border-color: var(--glow-soft);
}

/* Hero Header */
.detail-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}

.detail-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--violet);
  letter-spacing: 0.06em;
}

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

.detail-title {
  font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  background: linear-gradient(135deg, #FFFFFF 0%, #D4CEBE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.detail-tagline {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  max-width: 720px;
}

.detail-header {
  position: relative;
  z-index: 50;
  overflow: visible;
}

.detail-header-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  position: relative;
  z-index: 50;
  overflow: visible;
}

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

.detail-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--muted);
  height: 28px;
}

.detail-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  position: relative;
  z-index: 50;
  overflow: visible;
}

/* Slideshow Gallery */
.detail-gallery-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 12px;
}

.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 840px;
  max-height: 440px;
  margin: 0 auto;
  aspect-ratio: 1.7;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slides-wrapper .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}

.slides-wrapper .slide.active {
  opacity: 1;
  visibility: visible;
}

.slides-wrapper .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(8, 12, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(8px);
  transition: background .2s, transform .2s, border-color .2s;
}

.slide-nav:hover {
  background: rgba(8, 12, 20, 0.95);
  border-color: var(--glow-soft);
  transform: translateY(-50%) scale(1.08);
}

.slide-nav.prev { left: 16px; }
.slide-nav.next { right: 16px; }

.slide-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}

.slide-dot.active {
  background: #ffffff;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Gallery Thumbnails Strip (Centered) */
.gallery-thumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar { display: none; }

.thumb-btn {
  width: 84px;
  height: 56px;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  padding: 0;
  background: var(--panel);
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity .2s, border-color .2s, transform .2s;
}

.thumb-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.thumb-btn.active {
  opacity: 1;
  border-color: var(--violet);
  box-shadow: 0 0 12px rgba(185, 167, 255, 0.4);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Detail Info Grid */
.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 680px) {
  .detail-info-grid {
    grid-template-columns: 1fr;
  }
}

.info-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.info-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.info-val {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}

.detail-icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: visible;
  transition: border-color .2s, color .2s, background .2s, transform .2s, box-shadow .2s;
}

.detail-icon-btn svg {
  width: 16px;
  height: 16px;
}

.detail-icon-btn:hover {
  border-color: var(--glow-soft);
  color: var(--glow);
  background: var(--panel-hover);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.detail-icon-btn .action-tooltip {
  top: auto;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  z-index: 1000;
}

.detail-icon-btn .action-tooltip::after {
  top: auto;
  bottom: -5px;
  border-left: none;
  border-top: none;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.detail-icon-btn:hover .action-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.no-actions-label {
  font-size: 12px;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--line);
}

/* Highlights */
.detail-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.highlight-badge {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 14px 18px;
}

.hl-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--violet);
  margin-bottom: 4px;
}

.hl-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--glow);
}

/* Section Headings */
.detail-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-heading {
  font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: var(--glow);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.detail-description {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(244, 239, 226, 0.88);
}

/* Free-to-Customize Content Blocks */
.detail-custom-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.custom-heading {
  font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--glow);
  margin: 16px 0 4px;
}

.custom-paragraph {
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(244, 239, 226, 0.82);
  margin: 0;
}

.custom-paragraph a {
  color: var(--violet);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}

.custom-paragraph a:hover {
  color: var(--glow);
}

.custom-quote {
  margin: 12px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--violet);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 12px 12px 0;
  font-style: italic;
}

.custom-quote p {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--glow);
}

.custom-quote cite {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-style: normal;
  color: var(--muted);
}

.custom-features-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.custom-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: rgba(244, 239, 226, 0.85);
}

.custom-features-list li svg {
  width: 18px;
  height: 18px;
  color: var(--violet);
  flex-shrink: 0;
  margin-top: 3px;
}

.custom-img-figure {
  margin: 16px 0;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--panel);
}

.custom-img-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.custom-img-figure figcaption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.3);
  text-align: center;
}

.custom-code-block {
  margin: 14px 0;
  padding: 16px;
  border-radius: 12px;
  background: rgba(5, 8, 14, 0.9);
  border: 1px solid var(--line);
  overflow-x: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: #e2e8f0;
}

/* Custom Cards Grid (Redirect Links) */
.custom-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 12px 0;
}

.custom-link-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .25s, background .25s, transform .2s, box-shadow .25s;
  cursor: pointer;
}

.custom-link-card:hover {
  border-color: var(--violet);
  background: var(--panel-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.custom-link-card .card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--glow);
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-link-card .card-title svg {
  width: 16px;
  height: 16px;
  color: var(--violet);
  flex-shrink: 0;
}

.custom-link-card .card-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.custom-link-card .card-url-hint {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--violet);
  opacity: 0.7;
  margin-top: auto;
}

/* Footer Nav */
.detail-footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.footer-nav-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  transition: border-color .25s, background .25s, transform .2s;
}

.footer-nav-card:hover {
  border-color: var(--glow-soft);
  background: var(--panel-hover);
  transform: translateY(-2px);
}

.footer-nav-card.next {
  text-align: right;
  align-items: flex-end;
  grid-column: 2;
}

.nav-dir {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--violet);
}

.nav-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--glow);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 7, 12, 0.95);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  padding: 24px;
}

.lightbox-modal.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2010;
  transition: background .2s, border-color .2s, transform .2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--glow-soft);
  transform: scale(1.08);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2010;
  transition: background .2s, transform .2s, border-color .2s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--glow-soft);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-nav.prev { left: 28px; }
.lightbox-nav.next { right: 28px; }

/* ==========================================================================
   Admin Custom Scrollbars & Visual Builders UI
   ========================================================================== */
.admin-container ::-webkit-scrollbar,
.admin-modal-box ::-webkit-scrollbar,
.vote-modal-card ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.admin-container ::-webkit-scrollbar-track,
.admin-modal-box ::-webkit-scrollbar-track,
.vote-modal-card ::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
}

.admin-container ::-webkit-scrollbar-thumb,
.admin-modal-box ::-webkit-scrollbar-thumb,
.vote-modal-card ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.admin-container ::-webkit-scrollbar-thumb:hover,
.admin-modal-box ::-webkit-scrollbar-thumb:hover,
.vote-modal-card ::-webkit-scrollbar-thumb:hover {
  background: var(--glow, #fff);
}

/* Visual Builder Item Cards */
.builder-item-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  position: relative;
}

.builder-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.builder-item-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.6;
}

.builder-actions {
  display: flex;
  gap: 6px;
}

.builder-btn-mini {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}

.builder-btn-mini:hover {
  background: rgba(255, 255, 255, 0.2);
}

.builder-btn-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Split-Screen Live Preview */
.admin-modal-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .admin-modal-split { grid-template-columns: 1fr; }
}

.live-preview-box {
  background: #0d0e11;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  max-height: 75vh;
  overflow-y: auto;
}

/* ==========================================================================
   Global Cyberpunk Toast Notification System
   ========================================================================== */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-msg {
  background: #121316;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 12px 18px;
  color: #fff;
  font-size: 13px;
  font-family: 'Noto Sans SC', sans-serif;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  min-width: 240px;
  max-width: 380px;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.3s, transform 0.3s;
}

.toast-msg.toast-success {
  border-color: rgba(34, 197, 94, 0.5);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), #121316);
}

.toast-msg.toast-error {
  border-color: rgba(239, 68, 68, 0.5);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), #121316);
}

.toast-msg.toast-info {
  border-color: rgba(59, 130, 246, 0.5);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), #121316);
}

.toast-icon {
  font-weight: 700;
  font-size: 15px;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(40px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

/* ==========================================================================
   NSFW 18+ Chip & Age Gatekeeper Modal
   ========================================================================== */
.nsfw-chip {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-weight: 700;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 4px;
}

.age-gate-card {
  background: #151619;
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(239, 68, 68, 0.15);
  border-radius: 16px;
  padding: 32px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  color: #fff;
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.age-gate-icon {
  width: 56px;
  height: 56px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.age-gate-card h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  margin-bottom: 10px;
  color: #fff;
}

.age-gate-card p {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.75;
  margin-bottom: 24px;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.age-btn {
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.age-btn.primary {
  background: #ef4444;
  color: #fff;
}

.age-btn.primary:hover {
  background: #dc2626;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.age-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.age-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}


/* ==========================================================================
   Public Vote Interactive Modal & Cards
   ========================================================================== */
.vote-modal-card {
  background: #111215;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

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

.vote-modal-header {
  padding: 24px 28px 16px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.vote-modal-header h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  margin-bottom: 4px;
}

.vote-modal-header p {
  font-size: 12px;
  opacity: 0.6;
}

.vote-modal-body {
  padding: 20px 28px 28px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.proposal-modal-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s ease;
}

.proposal-modal-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.proposal-modal-card.voted {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.05);
}

.prop-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.prop-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.prop-card-icon {
  width: 20px;
  height: 20px;
  color: var(--glow);
}

.prop-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.prop-card-date {
  font-size: 11px;
  opacity: 0.45;
  display: block;
  margin-top: 2px;
}

.prop-card-pct {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  font-weight: 600;
  color: var(--glow);
}

.prop-card-desc {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.75;
  margin-top: 10px;
}

.prop-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.prop-vote-count {
  font-size: 12px;
  opacity: 0.6;
}

.vote-action-btn {
  background: #fff;
  color: #000;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vote-action-btn:hover:not(:disabled) {
  background: var(--glow);
  transform: translateY(-1px);
}

.vote-action-btn.voted {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
  cursor: default;
}

.disabled-card {
  opacity: 0.45;
  filter: grayscale(0.5);
}

/* ==========================================================================
   Page & Image Transition Styles
   ========================================================================== */
.page {
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}
.page.page-loaded {
  opacity: 1;
}
.page.page-fade-out {
  opacity: 0 !important;
}

/* Image fade-in animation */
img {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  background: rgba(255, 255, 255, 0.02);
}
img.img-loaded {
  opacity: 1;
}

/* ==========================================================================
   NSFW / Mature Content Settings & Modal Styles
   ========================================================================== */
.settings-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 6px;
  margin-left: 8px;
  transition: all 0.2s ease;
  height: 32px;
}
.settings-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.settings-toggle-btn svg, .settings-toggle-btn i {
  width: 15px;
  height: 15px;
  opacity: 0.8;
  transition: transform 0.3s ease;
}
.settings-toggle-btn:hover svg, .settings-toggle-btn:hover i {
  opacity: 1;
  transform: rotate(30deg);
}

.settings-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 3, 5, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.settings-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.settings-modal-box {
  background: rgba(10, 14, 23, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  padding: 24px;
  color: var(--ink);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.settings-modal-backdrop.active .settings-modal-box {
  transform: scale(1);
}

.settings-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.settings-modal-header h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  margin: 0;
}
.settings-close-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0 4px;
}
.settings-close-btn:hover {
  color: var(--ink);
}

.settings-option-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.settings-option-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.settings-option-label {
  font-weight: 500;
  font-size: 14px;
}
.settings-option-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.settings-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.settings-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.settings-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: .3s;
  border-radius: 24px;
}
.settings-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--ink);
  transition: .3s;
  border-radius: 50%;
}
.settings-switch input:checked + .settings-slider {
  background-color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}
.settings-switch input:checked + .settings-slider:before {
  transform: translateX(20px);
  background-color: #fff;
}
