/* === Базовые стили === */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  color: #1e2a4a;
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 15px 80px;
}

/* === Заголовки и тексты === */
.app-title,
.page-title {
  text-align: center;
  color: #0d47a1;
  font-weight: 600;
  margin-bottom: 6px;
}

.app-title {
  font-size: 1.6rem;
  letter-spacing: 0.5px;
}

.subtitle {
  text-align: center;
  color: #6070a8;
  font-weight: 400;
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.logo-container {
  width: 100%;
  text-align: center;
}

.logo {
  width: 50vw;          /* 30% ширины экрана */
  max-width: 450px;     /* но не больше 150px */
  min-width: 240px;      /* и не меньше 80px */
  height: auto;
  object-fit: contain;
}


/* === Карточки === */
.cards-container {
  display: grid;
  gap: 16px;
}

.card {
  background: #e8eefc;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  transition: all 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.card h2 {
  margin: 0 0 8px 0;
  font-size: 1.05rem;
  color: #123a8d;
  font-weight: 600;
}

.card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 14px;
  line-height: 1.4;
}

.card button {
  background: #1b4de4;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  width: 100%;
  font-weight: 500;
  transition: background 0.2s ease;
}

.card button:hover {
  background: #163bbd;
}

.card .draft-actions {
    display: flex;
    justify-content: flex-end; /* кнопки выравниваются справа */
    align-items: center;
    gap: 8px; /* 👈 небольшое пространство между кнопками */
    margin-top: 10px;
}

.card .delete-btn {
    background: #d9534f;
    border: none;
    padding: 10px 14px;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    width: auto;
    display: inline-block;
    align-self: flex-end;
}

#drafts-results .card {
  position: relative; /* только для карточек внутри drafts-results */
}

#drafts-results .card .delete-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

/* === Поиск поставщиков === */
.standart-section {
  background: #e8eefc;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.04);
  margin-bottom: 20px;
}

.standart-section label {
  font-weight: 500;
  font-size: 0.9rem;
  display: block;
  color: #123a8d;
}

.input-main {
  width: 100%;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #cdd7f0;
  margin-bottom: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.main-btn {
  width: 100%;
  background: #1b4de4;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.main-btn:hover {
  background: #153cc7;
}

.profile-container {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px 15px 80px;
}

.profile-container h2 {
  text-align: center;
  color: #0d47a1;
  font-weight: 600;
  margin-bottom: 6px;
}

.profile-container p {
  text-align: center;
  color: #6070a8;
  font-weight: 400;
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.request-results h4 {
  margin-top: 18px;
  color: #0d47a1;
  font-weight: 600;
}

.request-results p {
  font-size: 0.9rem;
  color: #6070a8;
  margin: 2px 0 0 0;
}

/* === Лоты фильтрация === */
.filters-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.price-row {
    display: flex;
    gap: 10px;
}

.price-row .input-main {
    flex: 1;
}

/* === Нижнее меню (Bottom Navigation) === */
.bottom-nav {
  position: fixed;
  bottom: 10px;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid #dbe2ef;
  display: flex;
  justify-content: space-around;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  z-index: 9999;
  font-family: "Inter", sans-serif;
  box-sizing: border-box;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8fa1d1;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.25s ease, transform 0.2s ease;
  padding: 0 6px;
}

.nav-item.active {
  color: #1b4de4;
  font-weight: 600;
}

.icon-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  margin-bottom: 4px;
  opacity: 0.9;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-item:hover .icon-img {
  opacity: 1;
  transform: scale(1.1);
}

.nav-item p {
  margin: 4px 0 0;
  text-align: center;
  line-height: 1.1;
}

/* === Адаптивность === */
@media (max-width: 480px) {
  .bottom-nav {
    height: 68px;
  }
  .icon-img {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 600px) {
  .cards-container {
    gap: 14px;
  }
}


.pagination-controls {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

.pagination-controls .main-btn {
  flex: 1;
  font-size: 0.95rem;
  padding: 10px;
}

/* Модальное окно */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: none; /* скрыто по умолчанию */
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 10px; /* можно чуть оставить */
  box-sizing: border-box; /* важно! */
}

.modal-content {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  max-width: 600px; /* вместо 50% — гибче */
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  position: relative;
  box-sizing: border-box;
}


.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #d9534f;
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 16px;
  cursor: pointer;
}

.items_menu {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.04);
  overflow: hidden;
  margin-top: 20px;
}

.items_menu a {
  display: block;
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  font-weight: 500;
  color: #123a8d;
  text-align: left;
  text-decoration: none;
  border-bottom: 1px solid #e0e5f3;
  transition: background 0.2s ease, color 0.2s ease;
}

.items_menu a:last-child {
  border-bottom: none; /* у последнего пункта нет линии */
}

#add-draft {
  padding: 0 20% 0 20%;
  margin: 0 0 18px 0;
}

#select-draft {
  display: none;
}

#drafts-frame-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.25s ease;
}
#drafts-frame-overlay.show { opacity: 1; }
#frame-header {
  width: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  box-sizing: border-box;
}
#drafts-frame {
  width: 100%;
  height: calc(100vh - 50px);
  border: none;
  background: #fff;
}

.support-btn-vertical {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left top;
    background: #1b4de4; /* можно сделать полупрозрачным */
    color: #fff;
    padding: 4px 12px; /* тонкая ленточка */
    border-radius: 4px 4px 0 0; /* слегка закругленные края */
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 300; /* тонкий текст */
    font-size: 13px;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.2);
    z-index: 1000;
    cursor: pointer;
    display: inline-block;
}




.payment-box {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    font-family: sans-serif;
    max-width: 360px;
    margin: 0 auto;
}

.payment-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.features {
    font-size: 14px;
    margin-bottom: 12px;
    color: #444;
    line-height: 1.5;
}

.payment-price {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.payment-warning {
    font-size: 12px;
    color: #777;
    line-height: 1.4;
    margin-bottom: 15px;
}

.pay-btn {
    width: 100%;
    background: #4CAF50;
    border: none;
    padding: 12px;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
}

.pay-btn:hover {
    background: #43a047;
}

.support-link {
  text-decoration: none;
}

.support-link .card {
    display: flex;
    align-items: center;     /* центр по вертикали */
    gap: 12px;               /* расстояние между иконкой и текстом */
    justify-content: center; /* центр по горизонтали */
    flex-direction: row;     /* чтобы иконка была слева, текст справа */
}

.support-link .card .icon-img {
    margin: 0;               /* убираем нижний отступ */
    width: 28px;
    height: 28px;
    flex-shrink: 0;          /* иконка не сжимается */
}

.support-link .card-text {
    font-size: 1rem;
    font-weight: 500;
    color: #123a8d;
}
