/* ============================================================
   redesign-v2.css — Phase 6 components
   ============================================================
   .sticky-topbar    — top navigation bar (sticky, blurred bg)
   .hero-swiper      — Swiper carousel (3 slides)
   .opp-tabs-v2      — text-only tabs (no counters) with underline
   .opp-pills        — category filter pills (rounded)
   .opp-sort         — sort dropdown
   .bounty-card-v2   — 96–104px card row layout
   .footer-v2        — 4-column footer with social/resources/legal

   Loaded on: index.php, bounties.php, bounty.php, profile.php,
              leaderboard.php, admin*, and 30+ static HTML pages via
              <link rel="stylesheet" href="/assets/css/redesign-v2.css">.

   Design tokens: reuses existing --accent, --bg-soft, --border,
   --shadow-md, --radius from page-level CSS. Adds local fallbacks
   so this file is usable standalone.
   ============================================================ */

:root {
  --rv2-accent: var(--accent, #0057B7);
  --rv2-accent-soft: var(--accent-soft, rgba(0, 87, 183, 0.08));
  --rv2-text: var(--text, #0A1628);
  --rv2-text-dim: var(--text-dim, #4A5568);
  --rv2-text-mute: var(--text-mute, #8492A6);
  --rv2-bg: var(--bg, #F4F6FA);
  --rv2-bg-elev: var(--bg-elev, #FFFFFF);
  --rv2-border: var(--border, #DDE2EB);
  --rv2-radius: var(--radius, 14px);
  --rv2-shadow-sm: var(--shadow-sm, 0 1px 3px rgba(10, 22, 40, 0.06));
  --rv2-shadow-md: var(--shadow-md, 0 4px 12px rgba(10, 22, 40, 0.08));
  --rv2-success: #1F7A4D;
  --rv2-success-soft: rgba(34, 139, 87, 0.10);
  --rv2-warn: #B17F0A;
  --rv2-warn-soft: rgba(214, 158, 46, 0.12);
  --rv2-danger: #C0392B;
  --rv2-neutral: #6B7280;
  --rv2-neutral-soft: rgba(107, 114, 128, 0.10);
}

/* ============ STICKY TOPBAR — DISABLED ============ */
/* Original <nav class="nav"> on each page already provides full menu + logo + auth + burger.
   Sticky-topbar was a Phase 6 duplicate. Hidden globally; belt-and-suspenders. */
nav.sticky-topbar,
.sticky-topbar {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* ============ FOOTER-V2 — DISABLED (REVERSAL) ============ */
/* Old <footer class="site-footer"> is the rich informative footer (Платформа /
   Розробникам / Conflux / Контакти + status badge + © + policy links).
   Operator wants that VISIBLE. New footer-v2 added in Phase 6 is the
   duplicate. Hide footer-v2 site-wide. */
footer.footer-v2,
.footer-v2 {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

.sticky-topbar-LEGACY-UNUSED {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rv2-border);
}
.stb-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.stb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
}
.stb-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(180deg, #0057B7 0%, #2E7DD7 25%, #6FA8DC 50%, #FFE066 75%, #FFD500 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px -4px rgba(0, 87, 183, 0.45);
  flex-shrink: 0;
}
.stb-logo-mark img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  display: block;
}
.stb-logo-text {
  background-image: linear-gradient(90deg, #0057B7 0%, #2E7DD7 25%, #6FA8DC 50%, #FFE066 75%, #FFD500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.01em;
}
.stb-logo-ua {
  font-weight: 700;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.stb-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.stb-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--rv2-text-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.stb-nav a:hover { color: var(--rv2-accent); }
.stb-nav a.is-active { color: var(--rv2-accent); }

.stb-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.stb-auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--rv2-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}
.stb-auth-chip:hover { background: #003F87; }
.stb-auth-chip svg { width: 14px; height: 14px; }

@media (max-width: 1023px) {
  .sticky-topbar { height: 56px; }
  .stb-inner { padding: 0 16px; }
  .stb-nav { display: none; }
  .stb-brand { font-size: 15px; gap: 8px; }
  .stb-logo-mark { width: 32px; height: 32px; }
  .stb-logo-mark img { width: 19px; height: 19px; }
}

/* ============ HERO SWIPER ============ */
.hero-swiper-wrap {
  width: 100%;
  padding: 24px 0;
}
.hero-swiper {
  max-width: 1280px;
  margin: 0 auto;
  height: 480px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}
.hero-swiper .swiper-slide {
  display: flex;
  align-items: center;
  padding: 64px;
  position: relative;
  background: linear-gradient(135deg, var(--rv2-accent) 0%, #1a73cf 100%);
  color: #fff;
  overflow: hidden;
}
.hero-swiper .swiper-slide.hs-slide-2 {
  background: linear-gradient(135deg, #1F7A4D 0%, #1F9059 100%);
}
.hero-swiper .swiper-slide.hs-slide-3 {
  background: linear-gradient(135deg, #B17F0A 0%, #D49B2D 100%);
}
.hero-swiper .hs-content {
  max-width: 640px;
  z-index: 2;
  position: relative;
}
.hero-swiper .hs-eyebrow {
  display: inline-flex;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-swiper .hs-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.hero-swiper .hs-sub {
  font-size: 18px;
  line-height: 1.55;
  opacity: 0.92;
  margin: 0 0 28px;
  max-width: 540px;
}
.hero-swiper .hs-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #fff;
  color: var(--rv2-text);
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.hero-swiper .hs-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.hero-swiper .hs-cta svg { width: 16px; height: 16px; }

/* Decorative shapes (low opacity SVG bg) */
.hero-swiper .hs-deco {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  opacity: 0.12;
  pointer-events: none;
}

.hero-swiper .swiper-pagination {
  bottom: 18px;
}
.hero-swiper .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.5;
  width: 8px;
  height: 8px;
}
.hero-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  width: 24px;
  border-radius: 4px;
  transition: width 0.25s;
}
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}
.hero-swiper:hover .swiper-button-prev,
.hero-swiper:hover .swiper-button-next {
  opacity: 1;
}
.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
  font-size: 22px;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .hero-swiper { height: 320px; border-radius: 14px; }
  .hero-swiper .swiper-slide { padding: 40px 32px; }
  .hero-swiper .hs-title { font-size: 36px; }
  .hero-swiper .hs-sub { font-size: 15px; margin-bottom: 22px; }
  .hero-swiper .hs-deco { width: 320px; height: 320px; right: -60px; }
  .hero-swiper .swiper-button-prev, .hero-swiper .swiper-button-next { display: none; }
}
@media (max-width: 640px) {
  .hero-swiper-wrap { padding: 12px 0; }
  .hero-swiper { height: 240px; border-radius: 12px; }
  .hero-swiper .swiper-slide { padding: 24px 20px; }
  .hero-swiper .hs-eyebrow { font-size: 10px; padding: 4px 10px; margin-bottom: 12px; }
  .hero-swiper .hs-title { font-size: 24px; margin-bottom: 10px; }
  .hero-swiper .hs-sub { font-size: 13px; margin-bottom: 16px; }
  .hero-swiper .hs-cta { padding: 10px 18px; font-size: 13px; }
  .hero-swiper .hs-deco { width: 220px; height: 220px; right: -40px; opacity: 0.08; }
}

/* ============ OPP TABS V2 (text-only, underline) ============ */
.opp-tabs-v2 {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--rv2-border);
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
.opp-tabs-v2::-webkit-scrollbar { display: none; }
.opp-tab-v2 {
  display: inline-block;
  padding: 12px 2px;
  font-size: 15px;
  font-weight: 600;
  color: var(--rv2-text-mute);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.opp-tab-v2:hover { color: var(--rv2-text-dim); }
.opp-tab-v2.is-active {
  color: var(--rv2-accent);
  border-bottom-color: var(--rv2-accent);
}

/* ============ OPP PILLS (category filter) ============ */
.opp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.opp-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--rv2-text-dim);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--rv2-border);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.opp-pill:hover {
  background: var(--rv2-accent-soft);
  color: var(--rv2-accent);
  border-color: var(--rv2-accent-soft);
}
.opp-pill.is-active {
  background: var(--rv2-accent);
  color: #fff;
  border-color: var(--rv2-accent);
}

/* ============ OPP SORT (dropdown) ============ */
.opp-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.opp-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.opp-sort label {
  font-size: 13px;
  color: var(--rv2-text-mute);
  font-weight: 600;
}
.opp-sort select {
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--rv2-border);
  border-radius: 10px;
  background: var(--rv2-bg-elev);
  color: var(--rv2-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2'><path stroke-linecap='round' d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
}

/* ============ BOUNTY CARD V2 ============ */
.bounty-list-v2 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bounty-card-v2 {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  background: var(--rv2-bg-elev);
  border: 1px solid var(--rv2-border);
  border-left: 4px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.bounty-card-v2:hover {
  border-color: var(--rv2-accent);
  border-left-color: var(--rv2-accent);
  transform: translateY(-1px);
  box-shadow: var(--rv2-shadow-md);
}
.bcv2-logo {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: var(--rv2-bg);
  border: 1px solid var(--rv2-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  color: var(--rv2-text-mute);
}
.bcv2-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bcv2-logo svg { width: 28px; height: 28px; }

.bcv2-body { min-width: 0; }
.bcv2-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--rv2-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.bcv2-desc {
  font-size: 14px;
  color: var(--rv2-text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}
.bcv2-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.bcv2-org {
  font-size: 12px;
  color: var(--rv2-text-mute);
  font-weight: 600;
}
.bcv2-when {
  font-size: 11px;
  color: var(--rv2-text-mute);
}
.bcv2-skill {
  display: inline-flex;
  padding: 1px 7px;
  background: var(--rv2-bg);
  border: 1px solid var(--rv2-border);
  border-radius: 4px;
  font-size: 11px;
  color: var(--rv2-text-dim);
  font-weight: 500;
}

.bcv2-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.bcv2-reward {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--rv2-border);
  background: var(--rv2-bg);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--rv2-text);
  white-space: nowrap;
}
.bcv2-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.bcv2-status.is-active    { background: var(--rv2-success-soft); color: var(--rv2-success); }
.bcv2-status.is-closed    { background: var(--rv2-neutral-soft); color: var(--rv2-neutral); }
.bcv2-status.is-soon      { background: var(--rv2-accent-soft);  color: var(--rv2-accent); }
.bcv2-status.is-review    { background: var(--rv2-warn-soft);    color: var(--rv2-warn); }

@media (max-width: 640px) {
  .bounty-card-v2 { grid-template-columns: 52px 1fr; gap: 14px; padding: 14px; }
  .bcv2-logo { width: 52px; height: 52px; }
  .bcv2-right {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--rv2-border);
    margin-top: 4px;
  }
  .bcv2-title { font-size: 15px; }
  .bcv2-desc { font-size: 13px; white-space: normal; -webkit-line-clamp: 2; }
}

.bounty-empty-v2 {
  padding: 60px 20px;
  text-align: center;
  background: var(--rv2-bg-elev);
  border: 1px dashed var(--rv2-border);
  border-radius: var(--rv2-radius);
}
.bounty-empty-v2 svg {
  width: 48px;
  height: 48px;
  color: var(--rv2-text-mute);
  opacity: .5;
  margin-bottom: 12px;
}
.bounty-empty-v2-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--rv2-text);
  margin-bottom: 6px;
}
.bounty-empty-v2-sub {
  font-size: 14px;
  color: var(--rv2-text-dim);
}

/* ============ FOOTER V2 ============ */
.footer-v2 {
  background: var(--rv2-bg-elev);
  border-top: 1px solid var(--rv2-border);
  padding: 56px 0 32px;
  margin-top: 64px;
}
.footer-v2-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-v2-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-v2-col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--rv2-text-mute);
  margin: 0 0 14px;
}
.footer-v2-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}
.footer-v2-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(180deg, #0057B7 0%, #2E7DD7 25%, #6FA8DC 50%, #FFE066 75%, #FFD500 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px -4px rgba(0, 87, 183, 0.45);
  flex-shrink: 0;
}
.footer-v2-logo-mark img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  display: block;
}
.footer-v2-logo-text {
  background-image: linear-gradient(90deg, #0057B7 0%, #2E7DD7 25%, #6FA8DC 50%, #FFE066 75%, #FFD500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.01em;
}
.footer-v2-logo-ua {
  font-weight: 700;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.footer-v2-tagline {
  font-size: 13px;
  color: var(--rv2-text-dim);
  line-height: 1.55;
  max-width: 380px;
}
.footer-v2-col ul { list-style: none; padding: 0; margin: 0; }
.footer-v2-col li { margin-bottom: 8px; }
.footer-v2-col a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--rv2-text-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-v2-col a:hover { color: var(--rv2-accent); }
.footer-v2-col a svg { width: 14px; height: 14px; }
.footer-v2-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--rv2-border);
  font-size: 12px;
  color: var(--rv2-text-mute);
}
.footer-v2-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: var(--rv2-accent-soft);
  border-radius: 100px;
  color: var(--rv2-accent);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
}

@media (max-width: 960px) {
  .footer-v2-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-v2-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer-v2 { padding: 40px 0 24px; margin-top: 48px; }
  .footer-v2-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-v2-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ============ OPPORTUNITIES SECTION V2 (2-col layout) ============ */
.opportunities-v2 { padding: 72px 0 56px; background: var(--rv2-bg); }
.opp-head-v2 { margin-bottom: 28px; }
.opp-eyebrow-v2 { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: var(--rv2-accent); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 10px; }
.opp-title-v2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 0 0 12px; letter-spacing: -0.02em; color: var(--rv2-text); }
.opp-sub-v2 { font-size: 16px; color: var(--rv2-text-dim); margin: 0; max-width: 720px; line-height: 1.55; }

.opp-layout-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.opp-main-v2 { min-width: 0; }
.opp-featured-v2 { min-width: 0; position: sticky; top: 88px; }

/* Scrollable list when more than ~5 items */
.opp-list-scroll {
  max-height: 540px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--rv2-border) transparent;
}
.opp-list-scroll::-webkit-scrollbar { width: 6px; }
.opp-list-scroll::-webkit-scrollbar-thumb { background: var(--rv2-border); border-radius: 999px; }
.opp-list-scroll::-webkit-scrollbar-track { background: transparent; }

.opp-cta-row-v2 { display: flex; gap: 22px; margin-top: 18px; flex-wrap: wrap; }
.opp-cta-link-v2 { display: inline-flex; align-items: center; gap: 6px; color: var(--rv2-accent); font-weight: 700; font-size: 14px; text-decoration: none; }
.opp-cta-link-v2:hover { text-decoration: underline; }
.opp-cta-link-v2 svg { width: 14px; height: 14px; }

/* Mobile: stack 1-col, featured first, list below, no sticky */
@media (max-width: 960px) {
  .opportunities-v2 { padding: 48px 0 40px; }
  .opp-layout-v2 { grid-template-columns: 1fr; gap: 20px; }
  .opp-featured-v2 { position: static; order: -1; }
  .opp-list-scroll { max-height: none; overflow: visible; padding-right: 0; }
}

/* ============ FEATURED CARD (У ЦЕНТРІ УВАГИ) ============ */
.featured-v2 {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-bottom: 32px;
}
.featured-v2-inner {
  display: flex;
  flex-direction: column;
  background: var(--rv2-bg-elev);
  border: 1px solid var(--rv2-border);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.featured-v2:hover .featured-v2-inner {
  border-color: var(--rv2-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 87, 183, 0.12);
}
.featured-v2-banner {
  position: relative;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  background: var(--rv2-bg);
}
.featured-v2-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.featured-v2-eyebrow { display: none; }
.featured-v2-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}
.featured-v2-sponsor {
  font-size: 13px;
  color: var(--rv2-text-mute);
  font-weight: 600;
}
.featured-v2-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--rv2-text);
  line-height: 1.25;
}
.featured-v2-excerpt {
  font-size: 14px;
  color: var(--rv2-text-dim);
  line-height: 1.5;
  margin: 0;
}
.featured-v2-prize {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 4px;
  padding: 10px 14px;
  background: var(--rv2-accent-soft);
  border-radius: 10px;
  align-self: flex-start;
}
.featured-v2-prize-label {
  font-size: 12px;
  color: var(--rv2-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.featured-v2-prize-value {
  font-size: 18px;
  color: var(--rv2-accent);
  font-weight: 800;
}
.featured-v2-cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rv2-accent);
  font-weight: 700;
  font-size: 14px;
}
.featured-v2-cta svg { width: 14px; height: 14px; }

/* Compact featured on mobile — content fits viewport without huge gaps */
@media (max-width: 768px) {
  .featured-v2-banner { aspect-ratio: 16 / 9; }
  .featured-v2-body { padding: 14px 16px 16px; gap: 6px; }
  .featured-v2-sponsor { font-size: 12px; }
  .featured-v2-title { font-size: 17px; line-height: 1.2; }
  .featured-v2-excerpt {
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .featured-v2-prize { padding: 6px 10px; gap: 8px; margin-top: 2px; }
  .featured-v2-prize-label { font-size: 10px; }
  .featured-v2-prize-value { font-size: 14px; }
  .featured-v2-cta { font-size: 13px; margin-top: 4px; }
  .featured-v2-cta svg { width: 12px; height: 12px; }
}

/* ============ BOUNTY CARD V2 — tighter layout (logo-bound height) ============ */
/* Override defaults: larger logo, card height tied to logo size */
.bounty-card-v2 {
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  padding: 14px 18px;
}
.bcv2-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
}
.bcv2-logo svg { width: 30px; height: 30px; }
.bcv2-title { margin-bottom: 3px; line-height: 1.2; }
.bcv2-desc {
  margin-bottom: 5px;
  font-size: 13px;
  -webkit-line-clamp: 1;
}

@media (max-width: 640px) {
  .bounty-card-v2 { grid-template-columns: 56px 1fr; gap: 12px; padding: 12px 14px; }
  .bcv2-logo { width: 56px; height: 56px; }
  .bcv2-title { font-size: 14.5px; }
  .bcv2-desc { font-size: 12.5px; -webkit-line-clamp: 2; white-space: normal; line-height: 1.4; }
  .bcv2-meta { gap: 6px; }
  .bcv2-skill { font-size: 10px; padding: 1px 6px; }
  .bcv2-org { font-size: 11px; }
}

/* ============ PHASE 6 BODY ADJUSTMENT ============ */
/* Sticky topbar coexists with the legacy <nav class="nav"> on index.php.
   The old nav holds the full menu (Чому ми / Навчання / FAQ / Увійти / Створити акаунт + mobile burger).
   Topbar shows only brand + auth chip. */

/* ============ PHASE 8: MOBILE BOTTOM NAV ============ */
.mobile-bn {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  display: none;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--rv2-border);
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}
.mobile-bn-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}
.mobile-bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  text-decoration: none;
  color: var(--rv2-text-mute);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.mobile-bn-item:hover { color: var(--rv2-text-dim); }
.mobile-bn-item.is-active { color: var(--rv2-accent); }
.mobile-bn-item svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Show only on mobile (<1024px) */
@media (max-width: 1023px) {
  .mobile-bn { display: block; }
  /* Add bottom padding to body so content isn't hidden under nav */
  body.has-stb-v2 { padding-bottom: 64px; }
  body.has-stb-v2 .footer-v2 { padding-bottom: 80px; }
}

