@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css");

.icon-home::before {
  content: "\f015";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.icon-search::before {
  content: "\f002";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.icon-plus-circle::before {
  content: "\f055";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.icon-heart::before {
  content: "\f004";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.icon-user::before {
  content: "\f007";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

:root {
  --main-green: #9FBC0B;
  --main-green-light: #B8D011;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  margin: 0;
  padding: 0;
  background: #F5F7FA;
  color: #333;
}

@media(min-width: 768px) {
  body {
    max-width: 1200px;
    margin: auto;
  }
}

/* Основной стиль */
.hdr {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid #ddd;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: visible;
}

.hdr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
}

.hdr-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.hdr-logo {
  font-weight: 700;
  font-size: 20px;
  color: #4b4b4b;
}

.hdr-logo-kz {
  color: #6a8f2b;
  font-weight: 700;
}

.hdr-guide-btn {
  background: #6a8f2b;
  color: #fff;
  padding: 7px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.hdr-guide-btn:hover {
  background: #557220;
}

.hdr-right {
  display: flex;
  align-items: center;
  gap: 15px;
  overflow: visible;
}

.hdr-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  transition: 0.3s;
}

.hdr-btn-outline {
  border: 1px solid #6a8f2b;
  color: #6a8f2b;
}

.hdr-btn-outline:hover {
  background: #6a8f2b;
  color: #fff;
}

.hdr-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

/* Profile section - hidden by default, shown when logged in */
.hdr-profile {
  display: none;
  position: relative;
  overflow: visible;
}

.hdr-profile.show {
  display: flex;
  align-items: center;
}

/* Profile icon trigger */
.hdr-profile-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7fa934, #5a7a24);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.hdr-profile-icon:hover {
  transform: scale(1.05);
  border-color: rgba(127, 169, 52, 0.5);
  box-shadow: 0 2px 10px rgba(127, 169, 52, 0.3);
}

.hdr-profile-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.hdr-dropdown {
  position: fixed;
  z-index: 100000;
  min-width: 180px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.hdr-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.hdr-dropdown a {
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  background: #ffffff;
  transition: background 0.2s;
}

.hdr-dropdown a:hover {
  background: #f5f5f5;
}

.hdr-dropdown a:first-child {
  border-radius: 10px 10px 0 0;
}

.hdr-dropdown a:last-child {
  border-radius: 0 0 10px 10px;
}

/* Mobile dropdown */
@media (max-width: 768px) {
  .hdr-dropdown {
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -10px);
    width: calc(100% - 32px);
    max-width: 320px;
  }

  .hdr-dropdown.show {
    transform: translate(-50%, 0);
  }
}

/* Hide auth buttons when logged in */
.auth-buttons.hide {
  display: none !important;
}

/* Prevent FOUC: hide auth elements until JS checks status */
.auth-buttons,
.hdr-profile {
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Show after auth check */
.auth-buttons.ready,
.hdr-profile.ready {
  opacity: 1;
}

.hdr-lang {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.hdr-lang-btn {
  background: none;
  border: none;
  color: #6a8f2b;
  cursor: pointer;
}

.hdr-divider {
  color: #888;
}

.hdr-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
  cursor: pointer;
}

.hdr-burger span {
  background: #333;
  height: 2px;
  width: 100%;
  border-radius: 2px;
}

.hdr-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 8px;
  transition: all 0.3s ease;
}

.hdr-nav a {
  text-decoration: none;
  color: #333;
  font-size: 15px;
  transition: 0.2s;
}

.hdr-nav a:hover {
  color: #6a8f2b;
}

/* --- Мобильная версия --- */
@media (max-width: 768px) {
  .hdr-right {
    gap: 10px;
  }

  .hdr-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
  }

  .hdr-nav.active {
    display: flex;
  }

  .hdr-burger {
    display: flex;
  }

  .hdr-auth {
    display: none;
  }

  .hdr-lang {
    display: none;
  }
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 12px 0;
  min-height: calc(100vh - 200px);
  padding-bottom: 120px;
  /* Отступ для футера */
}

/* Quote Section */
.quote-section {
  max-width: 800px;
  margin: 60px auto 40px;
  padding: 0 20px;
  text-align: center;
}

.quote {
  font-size: 24px;
  font-style: italic;
  color: #2D5016;
  margin: 0 0 15px 0;
  line-height: 1.5;
}

.quote-author {
  font-size: 16px;
  color: #2D5016;
  font-weight: 500;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 32px;
  margin-bottom: 40px;
}

/* Side Banners */
.side-banner {
  background: linear-gradient(135deg, #eaf7ea 0%, #d0f5d0 100%);
  border-radius: 32px;
  padding: 24px 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(76, 175, 80, 0.10);
  min-height: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.side-banner::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: linear-gradient(45deg, #4CAF50 0%, #8fd694 100%);
  border-radius: 50%;
  opacity: 0.13;
}

.banner-logo {
  text-align: center;
  margin-bottom: 18px;
}

.chef-logo {
  background: linear-gradient(135deg, var(--main-green) 0%, var(--main-green-light) 100%);
  color: white;
  padding: 18px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: bold;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.13);
}

.banner-categories h3 {
  font-size: 13px;
  color: var(--main-green);
  margin-bottom: 10px;
  text-align: center;
  font-weight: 600;
}

.banner-products ul {
  list-style: none;
  width: 100%;
  padding: 0;
}

.banner-products li {
  padding: 7px 0;
  font-size: 15px;
  color: #333;
  border-bottom: 1px solid #d0f5d0;
  text-align: center;
  border-radius: 8px;
  transition: background 0.2s;
}

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

.banner-products li:hover {
  background: #eaf7ea;
}

/* Central Advertisement */
.central-ad {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
}

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

.ad-logo .chef-logo {
  width: 60px;
  height: 60px;
  font-size: 10px;
}

.ad-promo {
  text-align: right;
}

.promo-text {
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
}

.promo-badge {
  background: #4CAF50;
  color: white;
  padding: 4px 8px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
}

.ad-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.ad-image {
  position: relative;
}

.food-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(45deg, #f0f0f0 0%, #e0e0e0 100%);
  border-radius: 8px;
  margin-bottom: 15px;
  position: relative;
}

.food-image::before {
  content: '🍽️';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
}

.product-package {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
}

.package-label {
  font-size: 12px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.package-badges {
  display: flex;
  gap: 8px;
}

.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
}

.badge.natural {
  background: #4CAF50;
  color: white;
}

.badge.halal {
  background: #2196F3;
  color: white;
}

.ad-products h4 {
  font-size: 14px;
  color: #333;
  margin-bottom: 15px;
}

.ad-products ul {
  list-style: none;
}

.ad-products li {
  padding: 8px 0;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #eee;
}

.ad-products li.highlighted {
  color: #4CAF50;
  font-weight: bold;
}

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

.ad-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.nav-arrow {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 5px;
}

.nav-arrow:hover {
  color: #4CAF50;
}

.nav-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
}

.dot.active {
  background: #4CAF50;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.action-btn {
  padding: 15px 30px;
  border: 1px solid #4CAF50;
  background: white;
  color: #4CAF50;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.action-btn:hover {
  background: #4CAF50;
  color: white;
}

/* Links */
.links-section {
  text-align: center;
  margin-bottom: 40px;
}

.link {
  color: #4CAF50;
  text-decoration: none;
  margin: 0 15px;
  font-size: 14px;
}

.link:hover {
  text-decoration: underline;
}

/* Central Real Estate Section */
.central-realestate {
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(76, 175, 80, 0.10);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  min-height: 540px;
  animation: fadeIn 0.7s cubic-bezier(.4, 0, .2, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-block {
  display: flex;
  gap: 18px;
  width: 100%;
  justify-content: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.search-input {
  padding: 14px 18px;
  border-radius: 18px;
  border: 1.5px solid #d0f5d0;
  font-size: 16px;
  outline: none;
  min-width: 180px;
  background: #f7f9fb;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.04);
}

.search-input:focus {
  border: 1.5px solid #4CAF50;
  box-shadow: 0 2px 16px rgba(76, 175, 80, 0.10);
}

.search-btn {
  padding: 14px 32px;
  border-radius: 18px;
  border: none;
  background: linear-gradient(90deg, var(--main-green-light) 0%, var(--main-green) 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.10);
  transition: background 0.2s, box-shadow 0.2s;
}

.search-btn:hover {
  background: linear-gradient(90deg, var(--main-green) 0%, var(--main-green-light) 100%);
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.13);
}

.featured-listing {
  display: flex;
  gap: 28px;
  align-items: center;
  background: #f7f9fb;
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(76, 175, 80, 0.07);
  padding: 18px 24px;
  width: 100%;
  max-width: 600px;
  transition: box-shadow 0.2s;
  animation: fadeIn 0.9s cubic-bezier(.4, 0, .2, 1);
}

.featured-listing:hover {
  box-shadow: 0 8px 32px rgba(76, 175, 80, 0.13);
}

.listing-image {
  width: 140px;
  height: 110px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.10);
  flex-shrink: 0;
}

.listing-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.listing-title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin-bottom: 2px;
}

.listing-location {
  font-size: 15px;
  color: var(--main-green);
  font-weight: 600;
}

.listing-price {
  font-size: 19px;
  color: var(--main-green-light);
  font-weight: 700;
  margin-bottom: 2px;
}

.listing-details {
  font-size: 14px;
  color: #888;
  margin-bottom: 6px;
}

.details-btn {
  padding: 10px 22px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(90deg, var(--main-green-light) 0%, var(--main-green) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.10);
  transition: background 0.2s, box-shadow 0.2s;
}

.details-btn:hover {
  background: linear-gradient(90deg, var(--main-green) 0%, var(--main-green-light) 100%);
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.13);
}

/* Фиксированные рекламные баннеры */
.ad-banner {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 4px 24px rgba(37, 96, 41, 0.13);
  padding: 0;
  min-width: 140px;
  max-width: 200px;
  min-height: 60vh;
  max-height: 90vh;
  overflow: hidden;
}

.ad-banner-left {
  left: 24px;
}

.ad-banner-right {
  right: 24px;
}

.ad-img {
  width: 100%;
  height: 100%;
  min-height: 60vh;
  max-height: 90vh;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: none;
  margin: 0;
  display: block;
}

.ad-caption {
  color: var(--main-green);
}

/* Sticky Footer */
html,
body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1 0 auto;
}

.footer {
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

/* Удаляю старые боковые баннеры */
.side-banner,
.content-grid {
  display: none !important;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
  border-radius: 5px;
  padding: 3px;
}

.lang-btn {
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: #666;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  outline: none;
}

.lang-btn:hover {
  color: var(--main-green);
  background: #eaf7ea;
}

.lang-btn.active {
  background: var(--main-green);
  color: white;
  box-shadow: 0 2px 8px rgba(37, 96, 41, 0.15);
}

.lang-divider {
  color: #ccc;
  font-weight: 400;
  font-size: 12px;
}

@media (max-width: 768px) {
  .header-buttons {
    flex-direction: column;
    gap: 6px;
  }

  .lang-switcher {
    margin-left: 3px;
    margin-top: 0px;
  }
}

@media (max-width: 900px) {
  .ad-banner {
    display: none;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 180px 1fr 180px;
    gap: 18px;
  }

  .side-banner,
  .central-realestate {
    min-height: 420px;
  }
}

@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .side-banner {
    display: none;
  }

  .header-top {
    flex-direction: column;
    gap: 8px;
  }

  .navigation {
    flex-wrap: wrap;
  }

  .central-realestate {
    padding: 18px 6px;
    min-height: 320px;
  }

  .featured-listing {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 8px;
  }

  .listing-image {
    width: 100%;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 10px 2px 0 2px;
  }

  .central-realestate {
    padding: 8px 2px;
  }

  .featured-listing {
    padding: 6px 2px;
  }

  .footer {
    padding: 18px 0 10px 0;
    border-radius: 18px 18px 0 0;
  }
}

.search-input-container {
  position: relative;
  min-width: 180px;
}

.suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(37, 96, 41, 0.15);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  border: 1px solid #e0e0e0;
}

.suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
  font-size: 14px;
  color: #333;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: #f8f9fb;
  color: var(--main-green);
}

.suggestion-item.selected {
  background: var(--main-green);
  color: white;
}

.suggestion-item.highlighted {
  background: #eaf7ea;
  color: var(--main-green);
}

/* Стили для страниц авторизации */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 40px 20px;
}

.auth-card {
  background: white;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(37, 96, 41, 0.15);
  padding: 40px;
  width: 100%;
  max-width: 480px;
  animation: fadeIn 0.7s cubic-bezier(.4, 0, .2, 1);
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  text-align: center;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 16px;
  color: #666;
  text-align: center;
  margin-bottom: 32px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.form-input {
  padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid #d0f5d0;
  font-size: 16px;
  outline: none;
  background: #f7f9fb;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(37, 96, 41, 0.04);
}

.form-input:focus {
  border: 1.5px solid var(--main-green);
  box-shadow: 0 2px 16px rgba(37, 96, 41, 0.10);
}

.auth-btn {
  padding: 16px 32px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(90deg, var(--main-green-light) 0%, var(--main-green) 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 96, 41, 0.15);
  transition: background 0.2s, box-shadow 0.2s;
  margin-top: 8px;
}

.auth-btn:hover {
  background: linear-gradient(90deg, var(--main-green) 0%, var(--main-green-light) 100%);
  box-shadow: 0 6px 24px rgba(37, 96, 41, 0.20);
}

.auth-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

.auth-links {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.auth-links p {
  font-size: 14px;
  color: #666;
}

.auth-links a {
  color: var(--main-green);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.auth-links a:hover {
  color: var(--main-green-light);
  text-decoration: underline;
}

/* Адаптивность для форм */
@media (max-width: 768px) {
  .auth-card {
    padding: 24px;
    margin: 0 10px;
  }

  .auth-title {
    font-size: 24px;
  }

  .auth-subtitle {
    font-size: 14px;
  }

  .auth-btn {
    padding: 14px 24px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .auth-container {
    padding: 20px 10px;
  }

  .auth-card {
    padding: 20px;
  }

  .auth-title {
    font-size: 22px;
  }
}

/* Стили для подтверждения телефона */
.phone-input-container {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.phone-input-container .form-input {
  flex: 1;
}

.verify-btn {
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, var(--main-green-light) 0%, var(--main-green) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 96, 41, 0.10);
  transition: background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.verify-btn:hover {
  background: linear-gradient(90deg, var(--main-green) 0%, var(--main-green-light) 100%);
  box-shadow: 0 4px 16px rgba(37, 96, 41, 0.15);
}

.verify-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

.phone-status {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
}

.phone-status.success {
  color: var(--main-green);
}

.phone-status.error {
  color: #d32f2f;
}

.phone-status.verifying {
  color: #666;
}

/* Отображение номера под SMS-полем */
.phone-display {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 8px 12px;
  background: #f8f9fb;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.phone-display .phone-number {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.change-phone-btn {
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--main-green);
  background: transparent;
  color: var(--main-green);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.change-phone-btn:hover {
  background: var(--main-green);
  color: white;
}

/* Поле для ввода SMS-кода */
.sms-input-container {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sms-input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid #d0f5d0;
  font-size: 18px;
  text-align: center;
  letter-spacing: 4px;
  font-weight: 600;
  outline: none;
  background: #f7f9fb;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(37, 96, 41, 0.04);
}

.sms-input:focus {
  border: 1.5px solid var(--main-green);
  box-shadow: 0 2px 16px rgba(37, 96, 41, 0.10);
}

.sms-input.error {
  border: 1.5px solid #d32f2f;
  background: #ffebee;
}

.sms-input.success {
  border: 1.5px solid var(--main-green);
  background: #e8f5e8;
}

/* Заблокированная кнопка регистрации */
.auth-btn:disabled {
  background: #ccc !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  color: #666 !important;
}

/* Адаптивность для телефона */
@media (max-width: 480px) {
  .sms-input-container {
    flex-direction: column;
    gap: 8px;
  }

  .phone-display {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* Стили для элементов пользователя */
.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-name {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.logout-btn {
  font-size: 12px;
  padding: 6px 12px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #6c757d;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: #e9ecef;
  color: #495057;
}

.auth-buttons {
  gap: 10px;
}

/* Скрытие элементов при авторизации */
.user-info {
  display: none;
}

.user-info.show {
  display: flex;
}

.auth-buttons.hide {
  display: none;
}

/* Система уведомлений */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  font-size: 14px;
  z-index: 10000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  max-width: 350px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background: linear-gradient(135deg, #9FBC0B, #B8D011);
}

.notification.error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notification.warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.notification.info {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.notification-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.3);
}


/* --- АНИМАЦИИ --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animated {
  opacity: 0;
}

.visible {
  opacity: 1 !important;
  transition: opacity 0.7s, transform 0.7s;
}

.fade-in-up {
  animation: fadeInUp 0.7s cubic-bezier(.4, 0, .2, 1) forwards;
}

.fade-in {
  animation: fadeIn 1s cubic-bezier(.4, 0, .2, 1) forwards;
}

.scale-in {
  animation: scaleIn 0.7s cubic-bezier(.4, 0, .2, 1) forwards;
}

/* Stagger для action-btn */
[class^="stagger-"] {
  opacity: 0;
}

.stagger-0.visible {
  animation-delay: 0.1s;
}

.stagger-1.visible {
  animation-delay: 0.2s;
}

.stagger-2.visible {
  animation-delay: 0.3s;
}

.stagger-3.visible {
  animation-delay: 0.4s;
}

.stagger-4.visible {
  animation-delay: 0.5s;
}

.stagger-5.visible {
  animation-delay: 0.6s;
}

/* --- АДАПТИВНОСТЬ: БАННЕР И КНОПКИ --- */
@media (max-width: 600px) {
  .central-banner {
    margin-bottom: 15px;
    padding: 0 4px;
  }

  .banner-content {
    flex-direction: column;
    padding: 8px 6px;
    min-height: unset;
    border-radius: 12px;
  }

  .banner-image {
    margin: 8px 0 0 0;
    max-width: 100%;
    width: 100%;
    display: none;
    /* Скрываем баннер-картинку на очень маленьких экранах */
  }

  .banner-text h2 {
    font-size: 14px;
  }

  .banner-text p {
    font-size: 10px;
  }

  .main-actions {
    padding: 0 2px;
  }

  .action-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
  }

  .action-btn {
    padding: 10px;
    min-width: 0;
    font-size: 14px;
    flex-direction: row;
    align-items: center;
  }

  .action-icon {
    font-size: 20px;
    margin-right: 6px;
  }

  .action-text h3 {
    font-size: 13px;
  }

  .action-text p {
    font-size: 9px;
  }
}

@media (max-width: 400px) {

  .banner-content,
  .central-banner {
    padding: 0 2px;
    margin-bottom: 8px;
  }

  .banner-image {
    display: none !important;
  }

  .action-grid {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 6px;
  }

  .action-btn {
    padding: 8px;
    font-size: 12px;
  }
}

/* --- Нативный рекламный блок --- */
.native-ad-block {
  max-width: 900px;
  margin: 36px auto 36px auto;
  padding: 0 12px;
  animation: fadeInUp 0.8s cubic-bezier(.4, 0, .2, 1);
}

.native-ad-content {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #f8fafc 0%, #e0f7fa 100%);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(16, 185, 129, 0.10);
  padding: 28px 32px;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.native-ad-text {
  flex: 1;
}

.native-ad-badge {
  display: inline-block;
  background: #9FBC0B;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  padding: 3px 12px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.native-ad-text h3 {
  font-size: 22px;
  font-weight: 700;
  color: #9FBC0B;
  margin: 0 0 8px 0;
}

.native-ad-text p {
  font-size: 15px;
  color: #444;
  margin-bottom: 16px;
}

.native-ad-btn {
  display: inline-block;
  background: linear-gradient(90deg, #9FBC0B 0%, #B8D011 100%);
  color: #fff;
  font-weight: 600;
  border-radius: 14px;
  padding: 10px 28px;
  text-decoration: none;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.13);
  transition: background 0.2s, box-shadow 0.2s;
}

.native-ad-btn:hover {
  background: linear-gradient(90deg, #B8D011 0%, #9FBC0B 100%);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.18);
}

.native-ad-image {
  flex: 0 0 180px;
  max-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.native-ad-image img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.10);
}

@media (max-width: 700px) {
  .native-ad-content {
    flex-direction: column;
    gap: 16px;
    padding: 18px 10px;
    text-align: center;
  }

  .native-ad-image {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }

  .native-ad-image img {
    height: 90px;
  }

  .native-ad-text h3 {
    font-size: 17px;
  }

  .native-ad-text p {
    font-size: 13px;
  }
}

/* --- Цитата в хедере --- */
.header-quote {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 32px;
}

.header-quote .quote {
  font-size: 16px;
  font-style: italic;
  color: #2D5016;
  margin: 0 0 4px 0;
  line-height: 1.4;
  transition: transform 0.3s cubic-bezier(.4, 0, .2, 1), box-shadow 0.3s, color 0.3s;
  cursor: pointer;
  background: #eafaf1;
  border-radius: 12px;
  padding: 6px 16px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.07);
  display: inline-block;
}

.header-quote .quote-author {
  font-size: 12px;
  color: #2D5016;
  font-weight: 600;
}

.header-quote .quote:hover {
  transform: scale(1.08) rotate(-1deg);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.18);
  color: #B8D011;
  background: #e0f7fa;
}

@media (max-width: 900px) {
  .header-quote {
    margin: 0 6px;
  }

  .header-quote .quote {
    font-size: 14px;
    padding: 5px 8px;
  }
}

/* --- Рекламные блоки у нижних краёв main-content --- */
.native-ads-row {
  display: flex;
  gap: 32px;
  max-width: 1200px;
  margin: 36px auto 0 auto;
  padding: 0 12px 24px 12px;
  justify-content: center;
  align-items: flex-end;
  animation: fadeInUp 0.8s cubic-bezier(.4, 0, .2, 1);
}

.native-ads-row .native-ad-block {
  flex: 1 1 0;
  min-width: 0;
  max-width: 600px;
}

@media (max-width: 900px) {
  .native-ads-row {
    flex-direction: column;
    gap: 18px;
    margin: 24px auto 0 auto;
    padding: 0 4px 16px 4px;
    align-items: stretch;
  }

  .native-ads-row .native-ad-block {
    max-width: 100%;
  }
}

/* --- Квадратные боковые рекламные блоки --- */
.ad-square {
  position: fixed;
  width: 140px;
  height: 140px;
  z-index: 100;
  top: calc(50% - 220px);
  /* примерно над центральным баннером */
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  pointer-events: none;
}

.ad-square-content {
  background: linear-gradient(90deg, #f8fafc 0%, #e0f7fa 100%);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(16, 185, 129, 0.10);
  padding: 12px 8px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  height: 120px;
  pointer-events: auto;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ad-square-content:hover {
  transform: scale(1.07) rotate(-2deg);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.18);
}

.ad-square img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 8px;
}

.ad-square-text {
  font-size: 14px;
  color: #9FBC0B;
  font-weight: 600;
  text-align: center;
  margin-top: 2px;
}

.ad-square-left {
  left: 32px;
}

.ad-square-right {
  right: 32px;
}

@media (max-width: 1200px) {
  .ad-square {
    width: 100px;
    height: 100px;
  }

  .ad-square-content {
    width: 80px;
    height: 80px;
    padding: 8px 4px 4px 4px;
  }

  .ad-square img {
    width: 38px;
    height: 38px;
  }

  .ad-square-text {
    font-size: 11px;
  }

  .ad-square-left {
    left: 8px;
  }

  .ad-square-right {
    right: 8px;
  }
}

@media (max-width: 900px) {
  .ad-square {
    display: none !important;
  }
}

/* --- Кнопка закрытия для ad-square --- */
.ad-square-content {
  position: relative;
}

.ad-square-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: #B8D011;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
  z-index: 2;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-square-content:hover .ad-square-close {
  opacity: 1;
}

.ad-square-close:hover {
  background: #9FBC0B;
  color: #fff;
}

/* --- Компактный футер --- */
.footer {
  background: linear-gradient(356deg, #282d06 0%, #171a03 100%);
  color: white;
  padding: 10px 0 6px 0;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -2px 16px rgba(76, 175, 80, 0.07);
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

/* --- Футер: текст в одну строку --- */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 0 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-link {
  color: #e8f5e8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.2s;
  padding: 2px 0;
  margin-bottom: 0;
  display: inline-block;
}

.footer-link:hover {
  background: #4CAF50;
  text-decoration: underline;
}

.footer-copyright {
  color: #e8f5e8;
  font-size: 12px;
  margin-top: 0;
  display: inline-block;
}

/* Социальные сети в футере */
.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #e8f5e8;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
  padding: 2px;
}

.footer-social-icon:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.footer-social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .footer-content {
    gap: 8px;
    font-size: 12px;
  }

  .footer-link,
  .footer-copyright {
    font-size: 11px;
  }

  .footer-social {
    gap: 6px;
  }

  .footer-social-icon {
    width: 18px;
    height: 18px;
  }

  .footer-social-icon svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .footer-content {
    gap: 6px;
    flex-direction: column;
    padding: 4px 10px;
  }

  .footer-link,
  .footer-copyright {
    font-size: 10px;
  }

  .footer-social {
    gap: 8px;
    margin-top: 2px;
  }

  .footer-social-icon {
    width: 16px;
    height: 16px;
  }

  .footer-social-icon svg {
    width: 12px;
    height: 12px;
  }
}

/* --- Кнопка "Назад" --- */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(90deg, var(--main-green-light) 0%, var(--main-green) 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
}

.back-btn:hover {
  background: linear-gradient(90deg, var(--main-green) 0%, var(--main-green-light) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.20);
  color: white;
  text-decoration: none;
}

.back-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
}

/* --- Сетка объявлений и карточки (favorites + search) --- */
.adsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 400px));
  gap: 32px;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 16px 40px 16px;
  justify-content: center;
}

/* --- Карточки объявлений (ДИЗАЙН ПО FIGMA) --- */
.ad-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  max-width: 350px;
  width: 100%;
}

.ad-card:hover {
  box-shadow: 0px 12px 48px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

/* Контейнер изображения */
.ad-image {
  width: 100%;
  height: 220px;
  position: relative;
  background: #f5f5f5;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.ad-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ad-card:hover .ad-image img {
  transform: scale(1.05);
}

/* Бейджи тарифов - уникальные стили для каждого тарифа */

/* FREE - Бесплатное объявление (серый, минималистичный) */
.ad-tariff-badge.tariff-free {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 500;
  z-index: 2;
  background: #9e9e9e;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* START - Стартовый тариф (синий) */
.ad-tariff-badge.tariff-start {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(33, 150, 243, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* FAST SALE - Быстрая продажа (оранжевый) */
.ad-tariff-badge.tariff-fast-sale {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(255, 152, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  animation: pulse-fast 2s ease-in-out infinite;
}

/* TURBO SALE - Турбо продажа (фиолетовый) */
.ad-tariff-badge.tariff-turbo-sale {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
  background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
  color: #fff;
  box-shadow: 0 3px 12px rgba(156, 39, 176, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  animation: pulse-turbo 1.5s ease-in-out infinite;
}

/* HOT SALE - Горячие продажи (красный с огнем) */
.ad-tariff-badge.tariff-hot-sale {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
  background: linear-gradient(135deg, #FF5722 0%, #D32F2F 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.7), 0 0 20px rgba(255, 87, 34, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse-hot 1s ease-in-out infinite;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

/* Старые стили для совместимости (VIP, TOP, PREMIUM) */
.ad-premium-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
  background: var(--main-green);
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Анимации для тарифов */
@keyframes pulse-fast {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(255, 152, 0, 0.5);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(255, 152, 0, 0.7);
  }
}

@keyframes pulse-turbo {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(156, 39, 176, 0.6);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 6px 22px rgba(156, 39, 176, 0.8);
  }
}

@keyframes pulse-hot {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.7), 0 0 30px rgba(255, 87, 34, 0.3);
  }

  50% {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.9), 0 0 40px rgba(255, 87, 34, 0.5);
  }
}

/* Основные переменные */
:root {
  --main-green: #9FBC0B;
  --dark-green: #7a9408;
  --light-green: #b8d84e;
  --bg-color: #F5F7FA;
  --text-color: #333;
  --border-color: #e0e0e0;
  --shadow: 0px 10px 40px rgba(0, 0, 0, 0.06);
}

/* Иконка избранного */
.ad-favorite,
.fav-btn-container {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.ad-favorite {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ad-favorite:hover {
  background: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ad-favorite i {
  font-size: 16px;
  color: #666;
}

.ad-favorite.active i {
  color: #ff4757;
}

.fav-btn {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fav-btn:hover {
  background: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Контент карточки */
.ad-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Цена */
.ad-price {
  font-size: 22px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0;
  line-height: 1.2;
}

/* Заголовок */
.ad-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 44px;
  margin: 0;
}

/* Локация */
.ad-location {
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Детали (комнаты, площадь, этаж) */
.ad-details {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

/* Pill-shaped detail badges */
.ad-detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.ad-detail-pills span {
  background: #F2F4F7;
  color: #475467;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
}

.ad-detail {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #666;
}

.ad-detail-label {
  font-size: 12px;
  color: #999;
}

.ad-detail-value {
  font-size: 12px;
  color: #666;
  font-weight: 400;
}

/* Футер */
.ad-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  font-size: 12px;
  color: #999;
}

.ad-owner {
  font-size: 12px;
  color: #999;
}

.ad-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #999;
}

.ad-stat,
.ad-views,
.ad-date {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Описание (скрываем для минимализма) */
.ad-description {
  display: none;
}


/* Стили для ошибок формы */
.form-errors {
  background: #ffe6e6;
  border: 1px solid #ff9999;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.1);
}

.error-message {
  color: #cc0000;
}

.error-message strong {
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.error-message ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

.error-message li {
  margin-bottom: 4px;
  font-size: 14px;
}

/* Стили для уведомлений */
.success-notification,
.error-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 10000;
  max-width: 300px;
  animation: slideIn 0.3s ease-out;
}

.success-notification {
  background: #28a745;
  border: 1px solid #1e7e34;
}

.error-notification {
  background: #dc3545;
  border: 1px solid #c82333;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Секция VIP-объявлений */
.vip-ads-section {
  background: linear-gradient(135deg, #fffacd 0%, #fff8dc 100%);
  padding: 60px 0;
  margin-top: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.15);
}

.vip-ads-section .section-title {
  color: #1a1a1a;
}

/* Секция рекомендуемых объявлений */
.recommended-ads-section {
  background: #fff;
  padding: 60px 0;
  margin-top: 40px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title i,
.section-title .emoji {
  font-size: 18px;
}

.view-all-btn {
  background: transparent;
  color: var(--main-green);
  padding: 8px 16px;
  border: 1.5px solid var(--main-green);
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.view-all-btn:hover {
  background: var(--main-green);
  color: #fff;
  transform: translateY(-1px);
}

.view-all-btn::after {
  content: '→';
  font-size: 14px;
}



/* Сетка объявлений для главной страницы (VIP и рекомендуемые) */
.vip-ads-section .ads-grid,
.recommended-ads-section .ads-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 1199px) {

  .vip-ads-section .ads-grid,
  .recommended-ads-section .ads-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 899px) {

  .vip-ads-section .ads-grid,
  .recommended-ads-section .ads-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Мобильная адаптация для сетки объявлений */
@media (max-width: 768px) {
  .adsGrid {
    grid-template-columns: 1fr;
    padding: 0 16px 20px 16px;
    gap: 20px;
  }

  .ad-card {
    max-width: 100%;
  }

  .recommended-ads-section {
    padding: 40px 0;
  }

  .recommended-ads-section .ads-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .section-title {
    font-size: 24px;
  }

  .recommended-ads-section .ad-details {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Нижняя навигация */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.bottom-container {
  display: flex;
  justify-content: center;
  /* центрируем всю сетку */
  align-items: center;
  gap: 40px;
  /* равные промежутки между ссылками */
  width: 100%;
  max-width: 1200px;
}

/* Мобильная версия */
@media (min-width: 768px) {
  .bottom-container {
    display: none;
  }
}

/* Мобильная версия */
@media (max-width: 768px) {
  .bottom-container {
    gap: 0;
    justify-content: space-around;
    /* равномерно растягиваем по ширине */
    width: 100%;
    padding: 0 10px;
  }
}

.bottom-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  font-size: 13px;
  color: #444;
  transition: all 0.3s ease;
  position: relative;
}

.bottom-link i {
  font-size: 18px;
  margin-bottom: 3px;
}

.bottom-link.active,
.bottom-link:hover {
  color: #6a8f2b;
  transform: translateY(-2px);
}


/* --- Профильное мини-меню --- */
.bottom-profile {
  position: relative;
}

.bottom-profile-menu {
  display: none;
  position: absolute;
  bottom: 50px;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  min-width: 160px;
  text-align: left;
  animation: fadeInUp 0.3s ease;
}

.bottom-profile-menu a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: 0.2s;
}

.bottom-profile-menu a:hover {
  background: #f4f4f4;
  color: #6a8f2b;
}

/* Анимация */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Мобильная версия --- */
@media (max-width: 768px) {
  .bottom-container {
    max-width: 100%;
  }

  .bottom-link span {
    font-size: 11px;
  }

  .bottom-profile-menu {
    bottom: 55px;
    right: 10px;
  }
}

/* =========================
   CENTRAL BANNER
========================= */
.central-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;

  padding: 50px 60px;
  border-radius: 24px;

  background: linear-gradient(135deg, #f8fafc, #eef2f7);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);

  animation: fadeInUp 0.8s ease forwards;
}

/* Левый блок — текст */
.banner-left {
  flex: 1;
}

.banner-left h2 {
  font-size: 36px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
}

.banner-left p {
  font-size: 18px;
  color: #4b5563;
  line-height: 1.6;
}

/* Правый блок — картинка */
.banner-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.banner-right img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Анимация */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптив баннера */
@media (max-width: 900px) {
  .central-banner {
    flex-direction: column;
    text-align: center;
  }

  .banner-right {
    justify-content: center;
  }
}

/* =========================
   HERO SLIDER
========================= */
.hero-slider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px 32px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 20px;
  margin: 24px auto;
  max-width: 1400px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

/* Левая часть */
.hero-left {
  flex: 1;
}

.hero-left h2 {
  font-size: 36px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero-left p {
  font-size: 18px;
  color: #4b5563;
  max-width: 420px;
}

/* Правая часть */
.hero-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =========================
   SLIDER
========================= */
.slider-frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  height: 360px;
}

.slide-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  transition: opacity 0.6s ease;
}

.slide-item.active {
  opacity: 1;
}

/* =========================
   ARROWS
========================= */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 44px;
  height: 44px;

  border: none;
  border-radius: 50%;
  cursor: pointer;

  background: rgba(255, 255, 255, 0.85);
  color: #111827;
  font-size: 22px;
  font-weight: bold;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: background 0.25s ease, transform 0.25s ease;
}

.nav-arrow:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.nav-prev {
  left: 16px;
}

.nav-next {
  right: 16px;
}

/* Стрелки — мобилка */
@media (max-width: 480px) {
  .nav-arrow {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
}

/* =========================
   ACTION BUTTONS
========================= */
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.action-cell {
  padding: 18px;
  font-size: 16px;
  font-weight: 600;

  border: none;
  border-radius: 16px;
  cursor: pointer;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Нестандартные классы */
.rent-in {
  background: #6a8f2b;
  color: #ffffff
}

.rent-out {
  background: #6a8f2b;
  color: #ffffff
}

.buy {
  background: #6a8f2b;
  color: #ffffff
}

.sell {
  background: #6a8f2b;
  color: #ffffff
}

.action-cell:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* =========================
   MOBILE VERSION
========================= */
@media (max-width: 768px) {

  /* скрываем текст */
  .hero-left {
    display: none;
  }

  .hero-slider {
    padding: 9px;
    gap: 24px;
  }

  .hero-right {
    width: 100%;
  }

  .slider-frame {
    height: 240px;
  }
}

/* =========================
   PRICE TICKER / INDEX BAR
========================= */
.price-ticker {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 14px 0;
  width: 100%;
}

.price-ticker-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 36px;
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.ticker-label i {
  color: #9FBC0B;
}

.ticker-pills {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ticker-pills::-webkit-scrollbar {
  display: none;
}

.price-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 8px 16px;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}

.price-pill:hover {
  background: rgba(159, 188, 11, 0.2);
  border-color: rgba(159, 188, 11, 0.4);
  transform: translateY(-2px);
}

.price-pill .city {
  opacity: 0.85;
}

.price-pill .price {
  font-weight: 700;
}

.price-pill .change {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.price-pill .change.up {
  background: rgba(76, 175, 80, 0.3);
  color: #81C784;
}

.price-pill .change.down {
  background: rgba(244, 67, 54, 0.3);
  color: #E57373;
}

.ticker-updated {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  margin-left: auto;
}

@media (max-width: 768px) {
  .ticker-label {
    display: none;
  }

  .price-pill {
    padding: 5px 10px;
    font-size: 12px;
  }

  .ticker-updated {
    display: none;
  }
}

/* ========================================
   Premium Topup Modal Styles
   ======================================== */
.topup-modal {
  max-width: 420px !important;
  padding: 0 !important;
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25) !important;
}

.topup-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: all 0.2s ease;
  z-index: 10;
}

.topup-modal .modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #1f2937;
  transform: rotate(90deg);
}

.topup-header {
  background: linear-gradient(135deg, var(--main-green) 0%, #7fa808 100%);
  padding: 32px 24px 28px;
  text-align: center;
  color: white;
}

.topup-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  backdrop-filter: blur(10px);
}

.topup-icon svg {
  stroke: white;
}

.topup-header .modal-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: white !important;
}

.topup-subtitle {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
}

.topup-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 24px 24px 0;
}

.amount-btn {
  padding: 14px 8px;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
}

.amount-btn:hover {
  border-color: var(--main-green);
  background: #f0f9e8;
  color: var(--main-green);
}

.amount-btn.active {
  border-color: var(--main-green);
  background: linear-gradient(135deg, var(--main-green) 0%, #7fa808 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(159, 188, 11, 0.3);
}

.topup-custom {
  padding: 20px 24px;
}

.topup-custom label {
  display: block;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
  font-weight: 500;
}

.topup-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.topup-input-wrapper input {
  width: 100%;
  padding: 14px 50px 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  transition: all 0.2s ease;
  -moz-appearance: textfield;
}

.topup-input-wrapper input::-webkit-outer-spin-button,
.topup-input-wrapper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.topup-input-wrapper input:focus {
  outline: none;
  border-color: var(--main-green);
  box-shadow: 0 0 0 4px rgba(159, 188, 11, 0.15);
}

.topup-currency {
  position: absolute;
  right: 16px;
  font-size: 18px;
  font-weight: 600;
  color: #9ca3af;
}

.topup-hint {
  display: block;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 6px;
}

.topup-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 48px);
  margin: 0 24px 20px;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--main-green) 0%, #7fa808 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(159, 188, 11, 0.3);
}

.topup-pay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(159, 188, 11, 0.4);
}

.topup-pay-btn:active {
  transform: translateY(0);
}

.topup-pay-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.pay-btn-icon {
  transition: transform 0.3s ease;
}

.topup-pay-btn:hover .pay-btn-icon {
  transform: translateX(4px);
}

.topup-footer {
  background: #f9fafb;
  padding: 14px 24px;
  border-top: 1px solid #e5e7eb;
}

.topup-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
}

.topup-secure svg {
  stroke: #9ca3af;
}

.topup-modal .modal-success {
  margin: 0 24px 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
}

.topup-modal .modal-success.success {
  background: #ecfdf5;
  color: #059669;
}

.topup-modal .modal-success:not(.success) {
  background: #fef2f2;
  color: #dc2626;
}

/* Mobile adjustments for topup modal */
@media (max-width: 480px) {
  .topup-modal {
    margin: 16px !important;
    max-width: calc(100% - 32px) !important;
  }

  .topup-amounts {
    grid-template-columns: repeat(2, 1fr);
  }

  .topup-header {
    padding: 24px 20px;
  }

  .topup-custom,
  .topup-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .topup-pay-btn {
    width: calc(100% - 40px);
    margin-left: 20px;
    margin-right: 20px;
  }
}

/* ========================================
   TARIFF BADGES
======================================== */

.ad-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.ad-tariff-badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.tariff-free {
  background: #f3f4f6;
  color: #6b7280;
}

.tariff-start {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.tariff-fast {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.tariff-turbo {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
}

.tariff-vip {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1f2937;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

.btn-upgrade {
  transition: all 0.2s ease;
}

.btn-upgrade:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(159, 188, 11, 0.3);
}

/* ========================================
   CABINET STATS ROW
======================================== */

.cabinet-stats-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.stats-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.stats-icon {
  font-size: 18px;
}

.stats-label {
  font-size: 14px;
  color: #64748b;
}

.stats-value {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.stats-breakdown {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stats-pill {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .cabinet-stats-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}