/* ===== HOME PAGE - Design from newswire-redesign (3) ===== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(1vw); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideGlow {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.home-page-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22vw;
  gap: 1.5vw;
  padding: 0;
  padding-top: 0;
  margin-left: 0;
  max-width: 100%;
  min-height: 100vh;
  background: #f5f6f8;
}

/* Убираем остаточный разрыв под верхней sticky-панелью только на Home */
.main-content:has(.home-page-container) {
  padding-top: 0 !important;
}

.home-main-column {
  display: flex;
  flex-direction: column;
  gap: 1.6vw;
  padding: 1.5vw;
}

.home-news-section {
  margin-top: 0;
}

.home-news-section__header {
  margin-bottom: 1.1vw;
}

.home-news-section__title {
  margin: 0;
  font-size: clamp(18px, 1.45vw, 28px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #101828;
  display: inline-flex;
  align-items: center;
  gap: 0.6vw;
}

.home-news-section__title::before {
  content: "";
  width: 3px;
  height: 1.1em;
  background: linear-gradient(180deg, #d946ef 0%, #7c3aed 100%);
}

.home-news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85vw;
}

.home-news-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e7e8ec;
  border-radius: 0.35vw;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-news-card:hover {
  transform: translateY(-2px);
  border-color: #d5d8e0;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
}

.home-news-card__image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #eef1f6;
}

.home-news-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-news-card__body {
  padding: 0.62vw 0.78vw 0.68vw;
}

.home-news-card__date {
  margin: 0 0 0.42vw;
  font-size: clamp(12px, 0.74vw, 14px);
  line-height: 1.15;
  font-weight: 600;
  color: #1d4ed8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-news-card__title {
  margin: 0 0 0.45vw;
  font-size: clamp(14px, 0.93vw, 18px);
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-news-card__desc {
  margin: 0 0 0.62vw;
  font-size: clamp(13px, 0.8vw, 15px);
  line-height: 1.38;
  color: #475467;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-news-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-news-card__views {
  display: inline-flex;
  align-items: center;
  gap: 0.32vw;
  font-size: clamp(12px, 0.74vw, 14px);
  font-weight: 600;
  color: #1d4ed8;
}

.home-news-card__views i {
  font-size: 0.82em;
}

.home-news-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.32vw;
  font-size: clamp(12px, 0.74vw, 14px);
  font-weight: 600;
  color: #1d4ed8;
  transition: transform 0.22s ease, letter-spacing 0.22s ease;
  cursor: pointer;
}

.home-news-card__read-more i {
  font-size: 0.78em;
  transition: transform 0.22s ease;
}

.home-news-card__read-more:hover {
  transform: translateX(4px);
  letter-spacing: 0.01em;
}

.home-news-card__read-more:hover i {
  transform: scaleX(1.35);
}

.home-news-card--community {
  max-width: 100%;
}

.home-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75vw;
  position: sticky;
  top: 1.5vw;
  align-self: start;
  margin: 1.5vw 1.5vw 0 0;
}

.home-sidebar-stats {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
  border: 1px solid #e4e7ec;
  border-radius: 0.35vw;
  padding: 0.72vw 0.8vw;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.06);
}

.home-sidebar-stats__head {
  margin-bottom: 0.58vw;
  padding-bottom: 0.42vw;
  border-bottom: 1px solid #e9ecf2;
}

.home-sidebar-stats__title {
  margin: 0;
  font-size: clamp(15px, 0.96vw, 18px);
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #111827;
}

.home-sidebar-block {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
  border: 1px solid #e4e7ec;
  border-radius: 0.35vw;
  padding: 0.72vw 0.8vw;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.06);
}

/* Latest Community News в сайдбаре: на десктопе — как остальные блоки, без полоски как у секций main */
.home-sidebar-community-news {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
  border: 1px solid #e4e7ec;
  border-radius: 0.35vw;
  padding: 0.72vw 0.8vw;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.06);
}

.home-sidebar-community-news .home-news-section__header {
  margin-bottom: 0.58vw;
  padding-bottom: 0.42vw;
  border-bottom: 1px solid #e9ecf2;
}

.home-sidebar-community-news .home-news-section__title {
  margin: 0;
  font-size: clamp(15px, 0.96vw, 18px);
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #111827;
  display: block;
}

.home-sidebar-community-news .home-news-section__title::before {
  display: none;
  content: none;
  width: 0;
  height: 0;
}

.home-top-users {
  display: flex;
  flex-direction: column;
  gap: 0.18vw;
}

.home-top-users__row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0.5vw;
  text-decoration: none;
  color: inherit;
  padding: 0.3vw 0;
  border-bottom: 1px dashed #e5e7eb;
}

.home-top-users__row:last-child {
  border-bottom: none;
}

.home-top-users__rank {
  font-size: clamp(12px, 0.78vw, 14px);
  font-weight: 700;
  color: #7c3aed;
}

.home-top-users__avatar {
  width: 1.7vw;
  height: 1.7vw;
  min-width: 28px;
  min-height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.home-top-users__name {
  font-size: clamp(14px, 0.9vw, 16px);
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-top-users__xp {
  font-size: clamp(12px, 0.78vw, 14px);
  font-weight: 700;
  color: #4f46e5;
  white-space: nowrap;
}

.home-quick-links {
  display: flex;
  flex-direction: column;
  gap: 0.18vw;
}

.home-quick-links__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5vw;
  text-decoration: none;
  color: #374151;
  font-size: clamp(13px, 0.8vw, 15px);
  font-weight: 600;
  padding: 0.46vw 0;
  border-bottom: 1px dashed #e5e7eb;
}

.home-quick-links__item:last-child {
  border-bottom: none;
}

.home-quick-links__item i {
  font-size: 0.7em;
  color: #98a2b3;
}

.home-sidebar-stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.08vw;
}

.home-sidebar-stats__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.45vw;
  padding: 0.36vw 0;
  border-bottom: 1px dashed #e5e7eb;
}

.home-sidebar-stats__item:last-child {
  border-bottom: none;
  padding-bottom: 0.1vw;
}

.home-sidebar-stats__label {
  font-size: clamp(13px, 0.82vw, 15px);
  font-weight: 600;
  color: #667085;
}

.home-sidebar-stats__value {
  font-size: clamp(14px, 0.96vw, 17px);
  font-weight: 800;
  color: #111827;
}

.home-top-showcase {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
}

.home-top-showcase__main-card,
.home-top-showcase__small-card {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #0b1020;
}

.home-top-showcase__main-card {
  aspect-ratio: 16 / 9;
}

.home-top-showcase__right-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  height: 100%;
}

.home-top-showcase__image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.home-top-showcase__image-wrap--main {
  aspect-ratio: 16 / 9;
}

.home-top-showcase__small-card {
  aspect-ratio: 16 / 9;
}

.home-top-showcase__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-top-showcase__main-card::after,
.home-top-showcase__small-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 8, 20, 0.85) 0%, rgba(5, 8, 20, 0.42) 45%, rgba(5, 8, 20, 0.1) 100%);
}

.home-top-showcase__overlay {
  position: absolute;
  left: 1.35vw;
  right: 1.35vw;
  bottom: 1.2vw;
  z-index: 2;
}

.home-top-showcase__overlay--small {
  left: 0.9vw;
  right: 0.9vw;
  bottom: 0.8vw;
}

.home-top-showcase__top-badge {
  position: absolute;
  top: 0.6vw;
  left: 0.6vw;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35vw;
  font-size: clamp(11px, 0.66vw, 12px);
  font-weight: 700;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.35vw;
  padding: 0.24vw 0.5vw;
  backdrop-filter: blur(2px);
}

.home-top-showcase__top-badge i {
  font-size: 0.82em;
}

.home-wiki-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85vw;
}

.home-wiki-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e7e8ec;
  border-radius: 0.35vw;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-wiki-card:hover {
  transform: translateY(-2px);
  border-color: #d5d8e0;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
}

.home-wiki-card__image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #eef1f6;
}

.home-wiki-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-wiki-card__body {
  padding: 0.62vw 0.74vw 0.66vw;
}

.home-wiki-card__title {
  margin: 0 0 0.5vw;
  font-size: clamp(14px, 0.93vw, 18px);
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-wiki-card__divider {
  height: 1px;
  background: #e5e7eb;
  margin-bottom: 0.55vw;
}

.home-wiki-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6vw;
}

.home-wiki-card__views,
.home-wiki-card__explore {
  font-size: clamp(11px, 0.69vw, 13px);
  font-weight: 600;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  gap: 0.28vw;
}

.home-wiki-card__explore {
  transition: transform 0.22s ease, letter-spacing 0.22s ease;
}

.home-wiki-card__explore i {
  transition: transform 0.22s ease;
}

.home-wiki-card__explore:hover {
  transform: translateX(4px);
  letter-spacing: 0.01em;
}

.home-wiki-card__explore:hover i {
  transform: scaleX(1.35);
}

.home-top-showcase__title {
  margin: 0 0 0.45vw;
  font-size: clamp(24px, 2.2vw, 44px);
  line-height: 1.05;
  font-weight: 800;
  color: #fff;
}

.home-top-showcase__subtitle {
  margin: 0 0 0.65vw;
  font-size: clamp(13px, 0.95vw, 18px);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.86);
  max-width: 80%;
}

.home-top-showcase__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35vw;
  font-size: clamp(12px, 0.82vw, 15px);
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.88) 0%, rgba(147, 51, 234, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.34vw;
  padding: 0.34vw 0.62vw;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-top-showcase__main-card:hover .home-top-showcase__link {
  transform: translateY(-1px);
  box-shadow: 0 0.45vw 1vw rgba(17, 24, 39, 0.25);
}

.home-top-showcase__meta {
  margin: 0 0 0.35vw;
  font-size: clamp(11px, 0.72vw, 13px);
  color: rgba(255, 255, 255, 0.74);
}

.home-top-showcase__small-title {
  margin: 0;
  font-size: clamp(13px, 0.95vw, 20px);
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1500px) {
  .home-page-container {
    grid-template-columns: minmax(0, 1fr) 24vw;
  }

  .home-news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-wiki-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1240px) {
  .home-page-container {
    grid-template-columns: 1fr;
    gap: 1vw;
  }

  .home-sidebar {
    position: static;
    margin: 0 1.5vw 1.5vw;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9vw;
  }

  .home-main-column {
    padding-bottom: 0.9vw;
  }

  .home-wiki-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── WELCOME BANNER ── */
.home-welcome-banner {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 0.06vw solid #e2e5ea;
  border-radius: 0.7vw;
  padding: 1.4vw 1.6vw;
}

.home-welcome-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.22vw;
  background: linear-gradient(90deg, #4f6ef7, #8b5cf6, #4f6ef7);
  background-size: 200% 100%;
  animation: slideGlow 4s linear infinite;
}

.home-welcome-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1vw;
}

.home-welcome-left {
  display: flex;
  align-items: center;
  gap: 1vw;
}

.home-welcome-logo-badge {
  width: 3.6vw;
  height: 3.6vw;
  border-radius: 0.5vw;
  background: linear-gradient(135deg, #4f6ef7 0%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.3vw 1vw rgba(79,110,247,0.3);
  flex-shrink: 0;
}

.home-welcome-logo-icon {
  width: 2.6vw;
  height: 2.6vw;
  color: #fff;
}

.home-welcome-text h1 {
  font-size: 1.35vw;
  font-weight: 800;
  color: #111318;
  line-height: 1.2;
  margin: 0 0 0.2vw 0;
}

.home-welcome-text p {
  font-size: 0.78vw;
  color: #667085;
  line-height: 1.5;
  margin: 0;
}

.home-welcome-right {
  display: flex;
  align-items: center;
  gap: 0.7vw;
  flex-shrink: 0;
}

.home-online-badge {
  display: flex;
  align-items: center;
  gap: 0.35vw;
  background: rgba(16,185,129,0.08);
  border: 0.06vw solid rgba(16,185,129,0.2);
  border-radius: 2vw;
  padding: 0.35vw 0.75vw;
}

.home-online-dot {
  width: 0.4vw;
  height: 0.4vw;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-dot 2s ease infinite;
}

.home-online-badge span {
  font-size: 0.68vw;
  font-weight: 600;
  color: #10b981;
}

.home-btn-primary {
  display: flex;
  align-items: center;
  gap: 0.4vw;
  background: transparent;
  color: #4f6ef7;
  padding: 0.5vw 1vw;
  border-radius: 0.4vw;
  font-size: 0.88vw;
  font-weight: 500;
  text-decoration: none;
  border: 0.06vw solid rgba(79,110,247,0.35);
  transition: all 0.2s;
}

.home-btn-primary i,
.home-btn-primary .home-btn-icon {
  font-size: 0.9vw;
  opacity: 0.85;
}
.home-btn-primary .home-btn-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.home-btn-primary:hover {
  background: rgba(79,110,247,0.06);
  border-color: rgba(79,110,247,0.5);
  color: #3b5bdb;
}

.home-btn-secondary {
  display: flex;
  align-items: center;
  gap: 0.4vw;
  background: transparent;
  color: #374151;
  padding: 0.5vw 1vw;
  border-radius: 0.4vw;
  font-size: 0.88vw;
  font-weight: 500;
  text-decoration: none;
  border: 0.06vw solid #e2e5ea;
  transition: all 0.2s;
}

.home-btn-secondary:hover {
  border-color: #c0c5cf;
  color: #111318;
}

/* ── SECTION HEADERS ── */
.home-section {
  margin-bottom: 0.5vw;
}

.home-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2vw;
}

.home-section-title-row {
  display: flex;
  align-items: center;
  gap: 0.7vw;
}

.home-section-icon {
  width: 2.1vw;
  height: 2.1vw;
  border-radius: 0.45vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-section-icon i,
.home-section-icon .lucide-icon,
.home-section-icon .home-section-icon-svg {
  width: 1.2vw;
  height: 1.2vw;
  font-size: 1.2vw !important;
}
.home-section-icon .home-section-icon-svg {
  display: block;
  flex-shrink: 0;
}

.home-section-icon.trending {
  background: rgba(245,158,11,0.1);
}

.home-section-icon.trending i,
.home-section-icon.trending .lucide-icon,
.home-section-icon.trending .home-section-icon-svg {
  color: #f59e0b;
}

.home-section-icon.news {
  background: rgba(239,68,68,0.1);
}

.home-section-icon.news i,
.home-section-icon.news .lucide-icon,
.home-section-icon.news .home-section-icon-svg {
  color: #ef4444;
}

.home-section-icon.stats {
  background: rgba(79,110,247,0.1);
}

.home-section-icon.stats i,
.home-section-icon.stats .lucide-icon,
.home-section-icon.stats .home-section-icon-svg {
  color: #4f6ef7;
}

.home-section-icon.explore {
  background: rgba(139,92,246,0.1);
}

.home-section-icon.explore i,
.home-section-icon.explore .lucide-icon,
.home-section-icon.explore .home-section-icon-svg {
  color: #8b5cf6;
}

.home-section-title {
  font-size: 1.28vw;
  font-weight: 700;
  color: #111318;
  margin: 0;
  letter-spacing: -0.02vw;
}

.home-view-all-link {
  display: flex;
  align-items: center;
  gap: 0.2vw;
  font-size: 0.9vw;
  font-weight: 600;
  color: #4f6ef7;
  text-decoration: none;
}

.home-view-all-link:hover {
  color: #3b5bdb;
}

/* ── TRENDING & NEWS GRIDS (use content-cards.css) ── */
.home-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8vw;
}

.home-cards-grid .news-date-search {
  font-size: 0.7vw;
}

/* Trending: 5 cards, proportionally scaled */
.home-trending-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6vw;
}

.home-trending-grid .category-image-container-search {
  aspect-ratio: 16 / 9;
}

.home-trending-grid .category-content-search {
  padding: 0.5vw 0.6vw;
  gap: 0.15vw;
}

.home-trending-grid .category-icon-search {
  width: 1.35vw;
  height: 1.35vw;
  font-size: 0.68vw;
}

.home-trending-grid .category-title-search {
  font-size: 0.8vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.home-trending-grid .category-footer-search {
  padding-top: 0.35vw;
}

.home-trending-grid .category-meta-info {
  font-size: 0.6vw;
  padding: 0.18vw 0.4vw;
}

.home-trending-grid .category-explore-link {
  font-size: 0.6vw;
}

.home-trending-grid .category-explore-link i {
  font-size: max(10px, 0.55vw);
}

/* ── COMMUNITY STATS ── */
.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.7vw;
}

.home-stat-card {
  background: #fff;
  border: 0.06vw solid #e2e5ea;
  border-radius: 0.55vw;
  padding: 1vw 0.9vw;
  display: flex;
  flex-direction: column;
  gap: 0.5vw;
  transition: all 0.2s;
  cursor: default;
}

.home-stat-card:hover {
  border-color: rgba(79,110,247,0.4);
  box-shadow: 0 0.3vw 1vw rgba(79,110,247,0.15);
}

.home-stat-top-row {
  display: flex;
  align-items: center;
  gap: 0.6vw;
}

.home-stat-icon {
  width: 2.4vw;
  height: 2.4vw;
  border-radius: 0.45vw;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-stat-icon i,
.home-stat-icon .lucide-icon,
.home-stat-icon .home-stat-icon-svg {
  width: 1.3vw;
  height: 1.3vw;
  font-size: 1.3vw !important;
}
.home-stat-icon .home-stat-icon-svg {
  display: block;
  flex-shrink: 0;
}

.home-stat-value {
  font-size: 1.35vw;
  font-weight: 800;
  color: #111318;
  line-height: 1;
}

.home-stat-label {
  font-size: 0.78vw;
  font-weight: 500;
  color: #667085;
}

/* ── EXPLORE NAV LINKS ── */
.home-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7vw;
}

.home-nav-link {
  display: flex;
  align-items: center;
  gap: 0.9vw;
  text-decoration: none;
  background: #fff;
  border: 0.06vw solid #e2e5ea;
  border-radius: 0.55vw;
  padding: 1vw 1.2vw;
  transition: all 0.2s;
}

.home-nav-link:hover {
  transform: translateY(-0.1vw);
}

.home-nav-icon {
  width: 2.8vw;
  height: 2.8vw;
  border-radius: 0.5vw;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-nav-icon i,
.home-nav-icon .lucide-icon,
.home-nav-icon .home-nav-icon-svg {
  width: 1.45vw;
  height: 1.45vw;
  font-size: 1.45vw !important;
}
.home-nav-icon .home-nav-icon-svg {
  display: block;
  flex-shrink: 0;
}

.home-nav-text {
  flex: 1;
}

.home-nav-title {
  font-size: 0.98vw;
  font-weight: 650;
  color: #111318;
}

.home-nav-desc {
  font-size: 0.78vw;
  color: #667085;
  font-weight: 500;
}

.home-nav-arrow {
  flex-shrink: 0;
  color: #c0c5cf;
}

.home-nav-arrow i,
.home-nav-arrow .lucide-icon,
.home-nav-arrow .home-nav-arrow-svg {
  width: 1vw;
  height: 1vw;
}
.home-nav-arrow .home-nav-arrow-svg {
  display: block;
  flex-shrink: 0;
}

.home-sidebar-card {
  background: #fff;
  border: 0.06vw solid #e2e5ea;
  border-radius: 0.55vw;
  overflow: hidden;
}

.home-sidebar-header {
  padding: 0.9vw 1vw;
  border-bottom: 0.06vw solid #e2e5ea;
  display: flex;
  align-items: center;
  gap: 0.55vw;
}

.home-sidebar-header i,
.home-sidebar-header .lucide-icon,
.home-sidebar-header .home-sidebar-header-icon {
  width: 1.15vw;
  height: 1.15vw;
  font-size: 1.15vw !important;
}
.home-sidebar-header .home-sidebar-header-icon {
  display: block;
  flex-shrink: 0;
}

.home-sidebar-header span {
  font-size: 1.05vw;
  font-weight: 650;
  color: #111318;
}

.home-sidebar-content {
  padding: 0.7vw 1vw;
}

.home-contributor-row {
  display: flex;
  align-items: center;
  gap: 0.65vw;
  padding: 0.6vw 0;
  transition: background 0.15s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.home-contributor-row:hover {
  background: #f5f6f8;
}

.home-contributor-rank {
  width: 1.7vw;
  height: 1.7vw;
  border-radius: 0.4vw;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78vw;
  font-weight: 700;
  flex-shrink: 0;
}

.home-contributor-avatar {
  width: 2.2vw;
  height: 2.2vw;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.home-contributor-info {
  flex: 1;
  min-width: 0;
}

.home-contributor-name {
  font-size: 0.9vw;
  font-weight: 600;
  color: #111318;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-contributor-xp {
  font-size: 0.75vw;
  color: #667085;
  font-weight: 500;
}

/* Quick Links */
.home-quick-link {
  display: flex;
  align-items: center;
  gap: 0.6vw;
  padding: 0.65vw 0.9vw;
  border-radius: 0.4vw;
  text-decoration: none;
  transition: background 0.15s;
}

.home-quick-link:hover {
  background: #f5f6f8;
}

.home-quick-link i,
.home-quick-link .lucide-icon {
  width: 0.95vw;
  height: 0.95vw;
  color: #667085;
  flex-shrink: 0;
}

.home-quick-link span {
  font-size: 0.78vw;
  font-weight: 500;
  color: #374151;
}

.home-quick-link .home-quick-arrow {
  margin-left: auto;
  color: #c0c5cf;
}

.home-quick-link .home-quick-arrow i,
.home-quick-link .home-quick-arrow .lucide-icon {
  width: 0.65vw;
  height: 0.65vw;
}

/* Ad Banner — полноразмерная заглушка */
.home-ad-banner {
    width: 100%;
    min-height: 200px;
    border-radius: 0.55vw;
    border: 0.12vw dashed #d1d5db;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6vw;
    background: #f5f6f8;
}

.home-ad-badge {
    background: #e5e7eb;
    border-radius: 0.35vw;
    padding: 0.4vw 0.8vw;
    font-size: 0.75vw;
    font-weight: 700;
    color: #9ca3af;
}

.home-ad-text {
    font-size: 0.9vw;
    font-weight: 600;
    color: #9ca3af;
}

.home-ad-subtext {
    font-size: 0.72vw;
    color: #c0c5cf;
}
