.ideas-page {
  max-width: 1120px;
  margin: 24px auto 40px;
}

/* HEADER */

.ideas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.ideas-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
}

.ideas-subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280;
}

.ideas-header-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  background: #1DDD9D;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(29, 221, 157, 0.35);
  transition: background 0.1s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

.ideas-header-btn:hover {
  background: #17c98d;
  transform: translateY(-1px);
}

/* FORM */

.ideas-form-wrap {
  margin-bottom: 24px;
}

.ideas-form {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 20px 20px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
}

.ideas-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.ideas-textarea-wrap {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 8px 10px;
  transition: border-color 0.1s ease, box-shadow 0.1s ease;
}

.ideas-textarea-wrap:focus-within {
  border-color: #1DDD9D;
  box-shadow: 0 0 0 1px rgba(29, 221, 157, 0.25);
  background: #ffffff;
}

.ideas-textarea-wrap textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  background: transparent;
  color: #111827;
}

.ideas-textarea-wrap textarea::placeholder {
  color: #9ca3af;
}

.ideas-form-footer {
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Attach */

.ideas-attach {
  flex: 1 1 auto;
}

.ideas-attach-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
}

.ideas-attach-btn input[type="file"] {
  display: none;
}

.ideas-attach-hint {
  margin: 4px 0 0;
  font-size: 11px;
  color: #9ca3af;
}

.ideas-attach-preview {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ideas-attach-preview-item {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.ideas-attach-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Submit */

.ideas-submit {
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  background: #1DDD9D;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(29, 221, 157, 0.35);
  transition: background 0.1s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

.ideas-submit:hover {
  background: #17c98d;
  transform: translateY(-1px);
}

/* LIST */

.ideas-list-section {
  margin-top: 8px;
}

.ideas-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ideas-list-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

/* Filters / Sorting */

.ideas-filters {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-size: 12px;
}

.ideas-filter-row {
  white-space: nowrap;
}

.ideas-filter-label {
  margin-right: 4px;
  color: #6b7280;
  font-weight: 500;
}

.ideas-filter-link {
  margin-right: 4px;
  text-decoration: none;
  color: #2563eb;
  transition: color 0.1s ease, text-decoration 0.1s ease;
}

.ideas-filter-link:last-child {
  margin-right: 0;
}

.ideas-filter-link:hover {
  text-decoration: underline;
}

.ideas-filter-link.is-active {
  font-weight: 600;
  color: #111827;
}

.ideas-list-meta {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
  text-align: right;
}

/* LIST container */

.ideas-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* CARD */

.idea-card {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
  border: 1px solid #e5e7eb;
}

/* Vote column */

.idea-vote {
  width: 44px;
  min-width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.idea-vote-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.1s ease, border-color 0.1s ease, transform 0.1s ease;
}

.idea-vote-btn:hover {
  background: #e8fff7;
  border-color: #1DDD9D;
}

.idea-vote-btn--active {
  background: #1DDD9D;
  border-color: #1DDD9D;
  color: #ffffff;
}

.idea-vote-arrow {
  font-size: 14px;
}

.idea-vote-count {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

/* Main */

.idea-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.idea-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.idea-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.idea-head-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.idea-tag {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  background: #f3f4f6;
  color: #4b5563;
}

.idea-tag--bug {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

.idea-tag--idea {
  background: rgba(29, 221, 157, 0.12);
  color: #0f766e;
}

/* статус заявки */

.idea-status {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
}

.idea-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
}

.idea-images {
  margin-top: 4px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.idea-images img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

/* Ответ сервиса + бонусы */

.idea-service-reply {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #E4FBF3;
  border: 1px solid #e5e7eb;
}

.idea-service-reply-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin-bottom: 4px;
}

.idea-service-reply-text {
  font-size: 13px;
  line-height: 1.5;
  color: #111827;
}

.idea-service-bonus {
  margin-top: 6px;
  font-size: 12px;
  color: #059669;
}

.idea-service-bonus span {
  font-weight: 600;
}

/* Meta */

.idea-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #9ca3af;
}

.idea-meta-left,
.idea-meta-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.idea-meta-dot {
  font-size: 14px;
}

.idea-meta-author {
  font-weight: 500;
}

/* Empty */

.ideas-empty {
  margin: 8px 0 0;
  font-size: 13px;
  color: #6b7280;
}

/* Pagination */

.ideas-pagination {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
}

.ideas-page-link {
  color: #1DDD9D;
  text-decoration: none;
  font-weight: 500;
}

.ideas-page-link:hover {
  text-decoration: underline;
}

.ideas-page-current {
  color: #6b7280;
}

/* Radios "Тип обращения" */

.ideas-kind {
  margin-top: 10px;
}

.ideas-kind-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #4b5563;
}

.ideas-kind-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ideas-kind-option {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}

.ideas-kind-option input {
  accent-color: #1DDD9D;
}

/* Responsive */

@media (max-width: 768px) {
  .ideas-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ideas-list-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .ideas-filters {
    align-items: flex-start;
  }

  .idea-card {
    padding: 12px 14px;
  }
}
