/* SideProjects.net design system — from mockups/ (warm editorial launchpad) */

:root {
  --bg: #FAF8F4;
  --bg-deep: #F5F1E8;
  --surface: #FFFFFF;
  --ink: #1B1917;
  --body: #4B4741;
  --muted: #6E6A63;
  --soft: #8A857C;
  --faint: #B3ADA2;
  --border: #E9E4DA;
  --border-2: #E2DCD0;
  --chip-bg: #F3F0E9;
  --accent: #6D5BD0;
  --accent-deep: #5747B8;
  --accent-ink: #43359C;
  --accent-tint: #F4F2FC;
  --accent-tint-border: #DDD6F3;
  --accent-chip: #EFECFB;
  --amber-ink: #92610C;
  --amber-bg: #F6E8C9;
  --amber-border: #EAD9B8;
  --promo-bg: #FFF9EE;
  --green: #3E9C5C;
  --dark: #1B1917;
  --dark-2: #2C2926;
  --dark-3: #3D3934;
  --dark-text: #B8B3AA;
  --gold: #E8C468;
  --stat-bg: #F7F4EE;
  --dot: #E4DED2;
  --font-display: 'Bricolage Grotesque', 'Avenir Next', sans-serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: 'Spline Sans Mono', ui-monospace, monospace;
}

[data-theme="dark"] {
  --bg: #171512;
  --bg-deep: #1E1B17;
  --surface: #221F1B;
  --ink: #F2EFE9;
  --body: #D7D2C9;
  --muted: #A8A297;
  --soft: #8A857C;
  --faint: #6E6A63;
  --border: #35312B;
  --border-2: #3D3934;
  --chip-bg: #2C2926;
  --accent: #7B69DC;
  --accent-deep: #A99BF5;
  --accent-ink: #C4BAF8;
  --accent-tint: #29253A;
  --accent-tint-border: #3A3455;
  --accent-chip: #2E2A45;
  --amber-ink: #E0B15E;
  --amber-bg: #3A3020;
  --amber-border: #4A3D28;
  --promo-bg: #2A2418;
  --green: #5DBB7F;
  --dark: #121110;
  --dark-2: #2C2926;
  --dark-3: #3D3934;
  --stat-bg: #2C2926;
  --dot: #262119;
}
[data-theme="dark"] .btn-dark { background: var(--ink); color: #1B1917; }
[data-theme="dark"] .btn-dark:hover { background: #FFFFFF; color: #1B1917; }
[data-theme="dark"] .flash.success { background: #1F3327; color: #A7E0BC; border-color: #2E4A38; }
[data-theme="dark"] .flash.error { background: #3A211C; color: #F0B7AA; border-color: #533028; }
[data-theme="dark"] .tabs a.active, [data-theme="dark"] .filters-bar a.active,
[data-theme="dark"] .pagination span.current { background: var(--ink); color: #1B1917; border-color: var(--ink); }

* { box-sizing: border-box; }
::selection { background: var(--accent-chip); color: var(--accent-ink); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 24px; }
@keyframes pill-pop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
.pop { animation: pill-pop 0.3s ease; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent-ink); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.mono-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.07em; color: var(--soft); text-transform: uppercase; }

/* ---------- Nav ---------- */
.nav { border-bottom: 1px solid var(--border); background: var(--bg); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 32px; max-width: 1280px; margin: 0 auto; gap: 20px; }
.nav-left { display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand-name span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--body); padding-bottom: 2px; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); border-bottom-color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-2); background: var(--surface); border-radius: 999px; padding: 8px 16px; color: var(--soft); font-size: 14px; min-width: 170px; }
.nav-search input { border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); width: 120px; }
.nav-login { font-size: 15px; font-weight: 600; color: var(--body); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 15px; padding: 10px 20px; border-radius: 999px; color: var(--ink); background: transparent; white-space: nowrap; transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(27,25,23,0.12); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #33302C; color: #fff; }
.btn-outline { background: var(--surface); border: 1px solid var(--border-2); }
.btn-outline:hover { border-color: var(--faint); color: var(--ink); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-gold { background: var(--gold); color: var(--dark); font-weight: 700; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 64px 32px 52px; text-align: center;
  background-image: radial-gradient(var(--dot) 1.3px, transparent 1.3px),
                    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
  background-size: 26px 26px, auto;
  border-bottom: 1px solid var(--border);
}
.squiggle { position: relative; display: inline-block; }
.squiggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.08em; height: 0.22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C14 2, 26 10, 38 6 S 62 2, 74 7 S 100 10, 118 4' fill='none' stroke='%236D5BD0' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
[data-theme="dark"] .squiggle::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C14 2, 26 10, 38 6 S 62 2, 74 7 S 100 10, 118 4' fill='none' stroke='%23A99BF5' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.spark { position: absolute; color: var(--accent); opacity: 0.45; animation: spark-float 7s ease-in-out infinite; }
.spark-1 { top: 18%; left: 16%; }
.spark-2 { top: 30%; right: 18%; animation-delay: 2.2s; }
.spark-3 { bottom: 24%; right: 11%; animation-delay: 4.1s; opacity: 0.3; }
@keyframes spark-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-9px) rotate(14deg); } }
@media (max-width: 760px) { .spark { display: none; } }
.hero-community { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; font-size: 14px; font-weight: 500; color: var(--muted); }
.avatar-stack { display: flex; }
.avatar-stack .avatar { border: 2px solid var(--bg-deep); }
.avatar-stack .avatar + .avatar { margin-left: -9px; }
.avatar-stack .avatar:nth-child(2) { background: #A7F3D0; color: #065F46; }
.avatar-stack .avatar:nth-child(3) { background: #FDE68A; color: #78350F; }
.avatar-stack .avatar:nth-child(4) { background: #BFDBFE; color: #1E3A8A; }
.avatar-stack .avatar:nth-child(5) { background: #FBCFE8; color: #831843; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 999px; padding: 6px 14px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.06; letter-spacing: -0.03em; margin: 18px auto 14px; max-width: 800px; }
.hero-sub { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0 auto 22px; }
.hero-ctas { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-points { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 20px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.hero-points span { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Layout ---------- */
.page { display: flex; gap: 44px; padding: 44px 32px 64px; max-width: 1280px; margin: 0 auto; }
.page-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.page-side { width: 310px; flex-shrink: 0; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 960px) {
  .page { flex-direction: column; }
  .page-side { width: 100%; }
  .nav-search, .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-right .nav-login, .nav-right .btn { display: none; }
}

/* ---------- Mobile menu ---------- */
.nav-burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; color: var(--ink); }
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 10px 20px 18px; border-bottom: 1px solid var(--border); background: var(--bg); }
.mobile-menu.open { display: flex; }
.mobile-menu a { display: block; padding: 12px 6px; font-size: 16px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu .btn { margin-top: 10px; text-align: center; border-bottom: 0; }

.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--surface); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); flex-shrink: 0; }

/* ---------- User menu ---------- */
.user-menu { position: relative; display: inline-flex; }
.user-menu-toggle { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.menu-panel { position: absolute; top: calc(100% + 10px); right: 0; display: none; flex-direction: column; min-width: 170px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 32px rgba(27,25,23,0.16); padding: 6px; z-index: 40; }
.menu-panel.open { display: flex; }
.menu-panel a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.menu-panel a:hover { background: var(--chip-bg); color: var(--ink); }
.menu-panel a.menu-danger { color: #B3261E; border-top: 1px solid var(--border); border-radius: 0 0 9px 9px; margin-top: 4px; padding-top: 11px; }
[data-theme="dark"] .menu-panel a.menu-danger { color: #F0938A; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head h2 { font-size: 25px; font-weight: 700; }

.tabs { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; }
.tabs a { color: var(--muted); padding: 6px 14px; border-radius: 999px; }
.tabs a.active { background: var(--dark); color: #fff; }

/* ---------- Cards / rows ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; }
.row { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(27,25,23,0.04); }
a.row { color: inherit; }
a.row:hover { border-color: var(--border-2); box-shadow: 0 3px 10px rgba(27,25,23,0.07); color: inherit; }
.row-rank { font-family: var(--font-mono); font-size: 15px; color: var(--faint); width: 24px; text-align: center; flex-shrink: 0; }
.tile { border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-display); font-weight: 700; flex-shrink: 0; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-md { width: 54px; height: 54px; font-size: 21px; }
.tile-sm { width: 38px; height: 38px; font-size: 14px; border-radius: 10px; }
.tile-lg { width: 84px; height: 84px; font-size: 32px; border-radius: 22px; box-shadow: 0 2px 6px rgba(27,25,23,0.12); }
.row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.row-title { font-weight: 700; font-size: 16.5px; }
.row-title .tagline { font-weight: 400; color: var(--muted); font-size: 15px; }
.row-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 12.5px; font-weight: 500; color: var(--accent-deep); background: var(--accent-chip); border-radius: 999px; padding: 3px 10px; }
.chip-neutral { color: var(--body); background: var(--chip-bg); }
.row-comments { display: inline-flex; align-items: center; gap: 5px; color: var(--soft); font-size: 13px; margin-left: 4px; }

/* ---------- Reactions ---------- */
.react-cluster { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.react-pill { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--border-2); background: var(--surface); border-radius: 999px; padding: 7px 13px; font-weight: 700; font-size: 15px; color: var(--ink); }
.react-pill.mine { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-ink); }
.emoji-stack { display: flex; align-items: center; }
.emoji-stack span { width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.emoji-stack span + span { margin-left: -6px; }
.react-add { width: 38px; height: 38px; border: 1.5px dashed #C9C2B4; background: var(--surface); border-radius: 999px; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.react-add:hover { border-color: var(--accent); }

.picker { position: absolute; top: calc(100% + 10px); right: 0; display: none; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 7px 9px; box-shadow: 0 10px 28px rgba(27,25,23,0.18); z-index: 20; }
.picker.open { display: flex; }
.picker button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid transparent; background: transparent; font-size: 23px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.picker button:hover { background: var(--chip-bg); }
.picker button.mine { background: var(--accent-tint); border-color: var(--accent); }

.react-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.react-chips .rchip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px; font-size: 13.5px; font-weight: 600; color: var(--body); }
.react-chips .rchip.mine { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-ink); }

/* ---------- Podium (leaderboard top 3) ---------- */
.row.podium-1, .row.podium-2, .row.podium-3 { position: relative; overflow: hidden; }
.row.podium-1 { background: linear-gradient(90deg, var(--surface) 55%, rgba(232, 196, 104, 0.18)); border-color: rgba(212, 169, 60, 0.5); }
.row.podium-2 { background: linear-gradient(90deg, var(--surface) 55%, rgba(158, 152, 144, 0.16)); border-color: rgba(158, 152, 144, 0.5); }
.row.podium-3 { background: linear-gradient(90deg, var(--surface) 55%, rgba(192, 122, 62, 0.14)); border-color: rgba(192, 122, 62, 0.45); }
.row.podium-1::after, .row.podium-2::after, .row.podium-3::after {
  content: ""; position: absolute; right: 84px; top: 50%; width: 72px; height: 72px;
  transform: translateY(-50%) rotate(-8deg); opacity: 0.3; pointer-events: none;
  background: no-repeat center / contain;
}
.row.podium-1::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4A93C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8'/%3E%3Cpath d='M12 17v4'/%3E%3Cpath d='M7 4h10v4a5 5 0 0 1-10 0z'/%3E%3Cpath d='M7 6H4a2 2 0 0 0 2 4h1'/%3E%3Cpath d='M17 6h3a2 2 0 0 1-2 4h-1'/%3E%3C/svg%3E"); }
.row.podium-2::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239E9890' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8'/%3E%3Cpath d='M12 17v4'/%3E%3Cpath d='M7 4h10v4a5 5 0 0 1-10 0z'/%3E%3Cpath d='M7 6H4a2 2 0 0 0 2 4h1'/%3E%3Cpath d='M17 6h3a2 2 0 0 1-2 4h-1'/%3E%3C/svg%3E"); }
.row.podium-3::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C07A3E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8'/%3E%3Cpath d='M12 17v4'/%3E%3Cpath d='M7 4h10v4a5 5 0 0 1-10 0z'/%3E%3Cpath d='M7 6H4a2 2 0 0 0 2 4h1'/%3E%3Cpath d='M17 6h3a2 2 0 0 1-2 4h-1'/%3E%3C/svg%3E"); }
.row .winner-badge { flex-shrink: 0; }

/* ---------- Promoted / sponsor ---------- */
.promo-row { display: flex; align-items: center; gap: 16px; background: var(--promo-bg); border: 1px solid var(--amber-border); border-radius: 16px; padding: 16px 18px; }
.tag-promoted { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--amber-ink); background: var(--amber-bg); border-radius: 5px; padding: 3px 8px; letter-spacing: 0.05em; }
.sponsor-card { border-style: dashed; border-color: #C9C2B4; }

/* ---------- Sidebar cards ---------- */
.newsletter-card { background: var(--dark); border-radius: 18px; padding: 22px; color: #fff; }
.newsletter-card h3 { font-size: 18px; font-weight: 700; color: #fff; }
.newsletter-card p { font-size: 14px; color: var(--dark-text); margin: 8px 0 12px; }
.newsletter-card input { width: 100%; background: var(--dark-2); border: 1px solid var(--dark-3); border-radius: 10px; padding: 11px 14px; color: #fff; font: inherit; font-size: 14px; margin-bottom: 8px; }
.newsletter-card input::placeholder { color: var(--soft); }
.side-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.side-item { display: flex; align-items: center; gap: 11px; color: inherit; }
.side-item:hover { color: inherit; }
.side-item .name { font-weight: 600; font-size: 14px; }
.side-item .sub { font-size: 12.5px; color: var(--soft); }
.avatar { border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; background: #D8B4FE; color: #581C87; position: relative; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 34px; height: 34px; font-size: 13px; }
.avatar-md { width: 44px; height: 44px; font-size: 16px; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip-cloud a { font-size: 13.5px; font-weight: 500; color: var(--body); background: var(--chip-bg); border-radius: 999px; padding: 6px 13px; }
.chip-cloud a.accent { color: var(--accent-deep); background: var(--accent-chip); }
.card h3 { font-size: 16.5px; font-weight: 700; font-family: var(--font-body); letter-spacing: 0; }

/* ---------- Winners ---------- */
.winners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .winners { grid-template-columns: 1fr; } }
.winner-badge { font-family: var(--font-mono); font-size: 12px; font-weight: 600; border-radius: 6px; padding: 4px 8px; }
.winner-badge.gold { color: var(--amber-ink); background: var(--amber-bg); }
.winner-badge.silver { color: #57534E; background: #EDEAE4; }
.winner-badge.bronze { color: #7C4A1E; background: #F1E2D4; }

/* ---------- Project detail ---------- */
.project-head { display: flex; align-items: center; gap: 22px; padding: 26px 32px 30px; border-bottom: 1px solid var(--border); max-width: 1280px; margin: 0 auto; flex-wrap: wrap; }
.project-head-info { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 8px; }
.project-head h1 { font-size: 32px; font-weight: 800; }
.project-head .tagline { font-size: 17.5px; color: var(--muted); }
.project-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.badge-rank { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--amber-ink); background: var(--amber-bg); border-radius: 6px; padding: 4px 9px; letter-spacing: 0.05em; }
.icon-btn { width: 46px; height: 46px; border: 1px solid var(--border-2); background: var(--surface); border-radius: 14px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--body); }
.icon-btn.active { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-deep); }
.icon-btn.active svg, .bm-btn.active svg { fill: currentColor; }
.bm-btn { width: 40px; height: 40px; border: 1.5px solid var(--border-2); background: var(--surface); border-radius: 999px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--soft); flex-shrink: 0; }
.bm-btn.active { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-deep); }
.btn-react { position: relative; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }
.shot { height: 280px; border-radius: 16px; border: 1px solid var(--border); background: linear-gradient(135deg, #E4E9F5, #CBD6EE); display: flex; align-items: center; justify-content: center; color: #7286B3; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot img[data-lightbox] { cursor: zoom-in; }
.shot-video { grid-column: 1 / -1; height: auto; aspect-ratio: 16 / 9; position: relative; cursor: pointer; background: #10131B; }
.shot-video img { opacity: 0.9; }
.shot-video iframe { width: 100%; height: 100%; border: 0; }
.play-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 62px; height: 62px; border-radius: 50%; background: rgba(12, 14, 20, 0.72); color: #fff; display: flex; align-items: center; justify-content: center; padding-left: 4px; transition: transform 0.15s ease, background 0.15s ease; }
.shot-video:hover .play-badge, .shot-video:focus-visible .play-badge { transform: translate(-50%, -50%) scale(1.08); background: rgba(12, 14, 20, 0.88); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 92vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 10, 12, 0.82); }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 12px; display: block; cursor: zoom-out; }
.edit-shots { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.edit-shot { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); cursor: pointer; }
.edit-shot img { width: 132px; height: 88px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); display: block; }
.edit-shot:has(input:checked) img { opacity: 0.35; outline: 2px solid #B3261E; }
.prose { font-size: 16px; line-height: 1.65; color: var(--body); max-width: 720px; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre { margin: 0 0 12px; }
.prose > :last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 3px 0; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { font-size: 17px; margin: 18px 0 6px; }
.prose > h1:first-child, .prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose code { font-family: var(--font-mono); font-size: 13.5px; background: var(--stat-bg); padding: 1px 5px; border-radius: 6px; }
.prose pre { background: var(--stat-bg); border-radius: 10px; padding: 12px 14px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { border-left: 3px solid var(--border-2); padding-left: 12px; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.stat { background: var(--stat-bg); border-radius: 12px; padding: 12px; }
.stat b { font-family: var(--font-display); font-size: 18px; display: block; line-height: 1.25; }
.stat span { font-size: 12px; color: var(--soft); }
.kv { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); padding: 4px 0; }
.kv b { color: var(--ink); font-weight: 500; }

/* ---------- Comments ---------- */
.comment { display: flex; gap: 13px; }
.comment-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.comment-head { display: flex; align-items: baseline; gap: 8px; }
.comment-head .who { font-weight: 700; font-size: 14.5px; }
.comment-head .when { font-size: 13px; color: var(--soft); }
.tag-maker { font-size: 11px; font-weight: 600; color: var(--accent-deep); background: var(--accent-chip); border-radius: 5px; padding: 2px 7px; }
.comment-text { font-size: 15px; line-height: 1.55; color: var(--body); }
.comment-foot { display: flex; align-items: center; gap: 16px; font-size: 13.5px; color: var(--soft); font-weight: 500; }
.comment-foot button { border: 0; background: none; font: inherit; color: var(--soft); cursor: pointer; padding: 0; }
.comment-foot button:hover { color: var(--ink); }
.replies { margin-top: 10px; padding-left: 16px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 14px; }
.composer { display: flex; gap: 13px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.composer textarea { flex: 1; border: 0; outline: 0; resize: vertical; min-height: 44px; font: inherit; font-size: 15px; color: var(--ink); background: transparent; }
.composer-actions { display: flex; justify-content: flex-end; }

/* ---------- Forms ---------- */
.form-card { max-width: 520px; margin: 48px auto; }
.form-card h1 { font-size: 28px; margin-bottom: 4px; }
.form-sub { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field textarea, .field select { border: 1px solid var(--border-2); background: var(--surface); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-chip); }
.field .hint { font-size: 13px; color: var(--soft); }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks label { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border-2); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500; cursor: pointer; }
.checks input { accent-color: var(--accent); }
.flash { border-radius: 12px; padding: 12px 16px; margin: 16px auto; max-width: 1216px; font-size: 14.5px; font-weight: 500; }
.flash.success { background: #E7F4EC; color: #14532D; border: 1px solid #BBE3C9; }
.flash.error { background: #FCEEEA; color: #7F1D1D; border: 1px solid #F3CFC5; }

/* ---------- Pricing ---------- */
.pricing-head { text-align: center; padding: 56px 32px 8px; }
.pricing-head h1 { font-size: 42px; font-weight: 800; line-height: 1.1; }
.pricing-head p { font-size: 18px; color: var(--muted); max-width: 540px; margin: 12px auto; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px; }
.plan.popular { border: 2px solid var(--accent); box-shadow: 0 4px 16px rgba(109,91,208,0.16); }
.plan-flag { position: absolute; top: -13px; left: 26px; background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; border-radius: 999px; padding: 5px 12px; }
.plan h3 { font-size: 18px; font-weight: 700; font-family: var(--font-body); }
.plan .desc { font-size: 14.5px; color: var(--muted); }
.price { font-family: var(--font-display); font-weight: 800; font-size: 34px; }
.price small { font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--soft); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; color: var(--body); }
.plan ul li { display: flex; align-items: center; gap: 9px; }
.plan .cta { margin-top: auto; }
.buy-form { display: flex; flex-direction: column; gap: 8px; }
.buy-form select { border: 1px solid var(--border-2); background: var(--surface); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 14px; color: var(--ink); }
.pro-price .buy-form { width: 100%; }
.pro-band { background: var(--dark); border-radius: 22px; padding: 34px 38px; display: flex; align-items: center; gap: 40px; color: #fff; flex-wrap: wrap; }
.pro-band h3 { font-size: 26px; font-weight: 800; color: #fff; }
.pro-band .desc { color: var(--dark-text); max-width: 520px; font-size: 15.5px; }
.pro-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 26px; margin-top: 10px; font-size: 14.5px; color: #E5E1D8; }
@media (max-width: 760px) { .pro-feats { grid-template-columns: 1fr; } }
.pro-feats span { display: inline-flex; align-items: center; gap: 9px; }
.pro-price { background: var(--dark-2); border-radius: 18px; padding: 26px 34px; display: flex; flex-direction: column; align-items: center; gap: 9px; margin-left: auto; }
.pro-price .amount { font-family: var(--font-display); font-weight: 800; font-size: 42px; }
.pro-price .per { font-size: 13px; color: var(--soft); }
.tag-founding { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--dark); background: var(--gold); border-radius: 6px; padding: 4px 9px; letter-spacing: 0.05em; }

/* ---------- Face-off & Discover ---------- */
.vs-grid { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); gap: 16px; align-items: stretch; max-width: 860px; margin: 0 auto; }
@media (max-width: 760px) { .vs-grid { grid-template-columns: 1fr; } .vs-badge { margin: 0 auto; } }
.vs-card { text-align: center; display: flex; flex-direction: column; padding: 30px 26px; }
.vs-card .btn { margin-top: auto; }
.vs-badge { align-self: center; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--faint); background: var(--surface); border: 1px solid var(--border); border-radius: 50%; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; }
.deck-card { max-width: 480px; margin: 0 auto; text-align: center; padding: 32px 30px; position: relative; touch-action: pan-y; user-select: none; cursor: grab; will-change: transform; }
.deck-card:active { cursor: grabbing; }
.swipe-tag { position: absolute; top: 18px; font-family: var(--font-display); font-weight: 800; font-size: 22px; padding: 6px 14px; border-radius: 10px; border: 3px solid; opacity: 0; pointer-events: none; }
.swipe-skip { left: 18px; color: #B3261E; border-color: #B3261E; transform: rotate(-12deg); }
.swipe-like { right: 18px; color: var(--amber-ink); border-color: var(--amber-ink); transform: rotate(12deg); }
.deck-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.deck-btn { border-radius: 50%; width: 52px; height: 52px; }
.deck-fire { border-color: var(--amber-border); }
.deck-fire:hover { background: var(--amber-bg); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-deep); margin-top: 40px; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 38px 32px; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 300px; }
.footer-brand p { font-size: 13.5px; color: var(--muted); }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer-col a { color: var(--body); }
.footer-col a:hover { color: var(--ink); }

/* ---------- Misc ---------- */
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--muted); padding: 44px 0; }
.empty svg { color: var(--faint); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; font-size: 14.5px; font-weight: 600; }
.pagination a, .pagination span { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); color: var(--ink); }
.pagination span.current { background: var(--dark); color: #fff; border-color: var(--dark); }
.center { display: flex; justify-content: center; }
.filters-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filters-bar a { font-size: 13.5px; font-weight: 500; color: var(--body); background: var(--chip-bg); border-radius: 999px; padding: 7px 14px; }
.filters-bar a.active { background: var(--dark); color: #fff; }
.search-input { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-2); background: var(--surface); border-radius: 999px; padding: 9px 16px; flex: 1; max-width: 340px; }
.search-input input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 14.5px; width: 100%; }

/* ---------- Search typeahead ---------- */
.nav-search, .search-input { position: relative; }
.kbd { font-family: var(--font-mono); font-size: 11px; color: var(--faint); border: 1px solid var(--border-2); border-radius: 6px; padding: 2px 6px; }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; min-width: 300px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 32px rgba(27,25,23,0.16); padding: 6px; z-index: 30; }
.suggest[hidden] { display: none; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); }
.suggest a:hover, .suggest a.sel { background: var(--chip-bg); color: var(--ink); }
.suggest .s-tile { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 12px; font-family: var(--font-display); overflow: hidden; }
.suggest .s-tile img { width: 100%; height: 100%; object-fit: cover; }
.suggest .s-body { flex: 1; min-width: 0; }
.suggest .s-name { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest .s-tag { display: block; font-size: 12.5px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest .s-count { margin-left: auto; font-size: 12.5px; color: var(--soft); flex-shrink: 0; }
.suggest .s-all { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--accent-deep); justify-content: center; }
