.orders-page {
  min-height: 70vh;
  padding: 42px 0 80px;
  background: #fff;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--color-green-main);
  font-weight: 600;
}

.page-title {
  margin-bottom: 30px;
  font-family: var(--font-display);
  font-size: 36px;
  color: #030712;
}

.orders-list {
  display: grid;
  gap: 22px;
}

.order-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 26px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.order-img {
  width: 130px;
  height: 130px;
  border-radius: 18px;
  object-fit: cover;
  background: #f1f5f9;
}

.order-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.order-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: #030712;
}

.order-owner {
  margin-top: 4px;
  color: #475467;
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 20px 0;
}

.order-label {
  color: #667085;
  font-size: 14px;
}

.order-value {
  color: #030712;
  font-weight: 800;
}

.deposit-line {
  margin-bottom: 18px;
  color: #344054;
}

.deposit-badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff4bf;
  color: #92400e;
  font-size: 13px;
  font-weight: 700;
}

.status-badge {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pending {
  background: #fff4bf;
  color: #92400e;
}

.status-accepted {
  background: #dcfce7;
  color: #15803d;
}

.status-rejected {
  background: #fee2e2;
  color: #b91c1c;
}

.order-message {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.order-message.accepted {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.order-message.rejected {
  border-color: #fecaca;
  background: #fff5f5;
  color: #b91c1c;
}

.order-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.order-btn {
  min-height: 42px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.primary-btn {
  background: #6a9858;
  color: #fff;
  border-color: #6a9858;
}

.loader,
.empty-state {
  padding: 40px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  text-align: center;
  color: #667085;
}

@media (max-width: 768px) {
  .order-card {
    grid-template-columns: 1fr;
  }

  .order-img {
    width: 100%;
    height: 230px;
  }

  .order-head {
    flex-direction: column;
  }

  .order-grid {
    grid-template-columns: 1fr;
  }
}
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: min(660px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 26px;
  border-radius: 22px;
  background: #fff;
}

.modal-content h2 {
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: 24px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 28px;
}

.modal-product-box {
  margin-bottom: 22px;
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
}

.modal-product-box span {
  display: block;
  color: #475467;
  font-size: 14px;
}

.modal-product-box b {
  font-size: 18px;
}

.modal-content label {
  display: block;
  margin: 18px 0 8px;
  font-weight: 700;
}

.modal-content textarea,
.modal-content input {
  width: 100%;
  border: 1px solid #cfd6df;
  border-radius: 16px;
  outline: none;
  font: inherit;
}

.modal-content textarea {
  min-height: 110px;
  padding: 14px;
  resize: vertical;
}

.modal-content input {
  padding: 14px;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 26px;
}

.modal-btn {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.modal-btn.cancel {
  background: #f3f4f6;
  color: #111827;
}

.modal-btn.primary {
  background: #5b3df5;
  color: #fff;
}

@media (max-width: 560px) {
  .modal-content {
    padding: 22px 16px;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }
}

.nav__link--mobile {
  display: none;
}

@media (max-width: 980px) {
  .nav__link--mobile {
    display: block;
  }
}

@media (max-width: 980px) {
  .nav.open {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 18px 35px rgba(16, 24, 40, 0.12);
  }
}