/* ===== Marketplace ===== */
.marketplace .toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin: 16px 0;
}

.marketplace .toolbar-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  flex: 1 1 650px;
}

.marketplace .toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

/* ===== Marketplace list map ===== */
.marketplace-map-card {
  margin: 16px 0;
  padding: 14px 16px;
}

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

.marketplace-map-title {
  margin: 0;
  font-size: 1.08rem;
}

.marketplace-map-subtitle {
  margin: 4px 0 0 0;
}

.marketplace-map-count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 700;
}

.marketplace-map {
  height: 380px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  position: relative;
  z-index: 1;
}

.marketplace .map-empty {
  margin-top: 10px;
  padding: 14px;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  color: #6b7280;
  background: #f8fafc;
}

.marketplace-map-popup {
  min-width: 190px;
  max-width: 260px;
}

.marketplace-map-popup strong {
  display: block;
  margin-bottom: 6px;
  color: #111827;
}

.marketplace-map-popup-meta {
  margin-bottom: 6px;
  color: #475569;
  font-size: 0.88rem;
}

.marketplace-map-popup-location {
  margin-bottom: 8px;
  color: #6b7280;
  font-size: 0.84rem;
}

.marketplace-map-popup-link {
  display: inline-flex;
  margin-top: 2px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.marketplace-map-popup-link:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .marketplace-map-head {
    flex-direction: column;
  }

  .marketplace-map {
    height: 300px;
  }
}

.marketplace .toolbar-filters input[type="text"] {
  min-width: 220px;
  flex: 1 1 220px;
}

.marketplace .toolbar-filters select {
  min-width: 150px;
}

.marketplace .subcat-filter {
  display: inline-flex;
}

.marketplace input[type="text"],
.marketplace select,
.marketplace textarea {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-size: 0.95rem;
}

.marketplace input[type="text"]:focus,
.marketplace select:focus,
.marketplace textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.marketplace .list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.marketplace .card {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}

.marketplace .card-title {
  margin: 0;
  font-size: 1.05rem;
}

.marketplace .card-title a {
  color: inherit;
  text-decoration: none;
}

.marketplace .card-title a:hover {
  text-decoration: underline;
}

.marketplace .meta {
  margin-top: 8px;
  color: #555;
  font-size: 0.92rem;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.marketplace .muted {
  margin-top: 6px;
  color: #6b7280;
  font-size: 0.9rem;
}

/* ===== Marketplace pagination ===== */
.marketplace-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0 8px 0;
}

.pagination-pages {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
}

.pagination-btn:hover {
  background: #f8fafc;
  border-color: var(--primary);
  color: var(--primary);
}

.pagination-current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pagination-current:hover {
  background: var(--primary);
  color: #fff;
}

.pagination-disabled {
  color: #9ca3af;
  background: #f8fafc;
  cursor: not-allowed;
}

.pagination-disabled:hover {
  border-color: #d1d5db;
  color: #9ca3af;
  background: #f8fafc;
}

.pagination-ellipsis {
  padding: 0 4px;
  color: #6b7280;
  font-weight: 700;
}

.marketplace-pagination-summary {
  margin: 0 0 16px 0;
  text-align: center;
  color: #6b7280;
  font-size: 0.88rem;
}

@media (max-width: 700px) {
  .marketplace-pagination {
    justify-content: flex-start;
  }

  .pagination-btn {
    min-width: 34px;
    min-height: 34px;
    padding: 6px 9px;
  }

  .marketplace-pagination-summary {
    text-align: left;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #ddd;
  font-size: 0.85rem;
  background: #f8fafc;
}

.badge-offer {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.badge-request {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.10);
}

/* Form rows */
.marketplace form p.form-row {
  margin: 10px 0;
  display: grid;
  grid-template-columns: 215px 1fr;
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
}

.marketplace form p.form-row > label {
  padding-top: 8px;
}

.marketplace form p.form-row > input,
.marketplace form p.form-row > select,
.marketplace form p.form-row > textarea {
  width: 100%;
  box-sizing: border-box;
}

.marketplace form p.form-row > input[type="file"] {
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #475569;
  background: #ffffff;
}

.marketplace-image-control {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.marketplace-current-image {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f8fafc;
}

.marketplace-current-image-preview-frame {
  position: relative;
  width: 112px;
  height: 84px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #e2e8f0;
}

.marketplace-current-image-preview-backdrop {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  object-fit: cover;
  filter: blur(10px) saturate(0.8);
  opacity: 0.62;
  transform: scale(1.05);
}

.marketplace-current-image-preview {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.marketplace-current-image-preview,
.marketplace-current-image-preview-backdrop {
  pointer-events: none;
}

.marketplace-current-image-info {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.marketplace-image-control-label {
  color: #475569;
  font-size: 0.85rem;
  font-weight: 700;
}

.marketplace-current-image-link {
  color: #2563eb;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.marketplace-current-image-link:hover {
  text-decoration: underline;
}

.marketplace-image-remove-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.marketplace-image-remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #b91c1c;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.marketplace-image-remove:hover {
  border-color: #fca5a5;
  background: #fef2f2;
}

.marketplace-image-remove svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.marketplace-image-remove-checkbox:checked + .marketplace-image-remove {
  border-color: #dc2626;
  color: #ffffff;
  background: #dc2626;
}

.marketplace-image-remove-checkbox:focus-visible + .marketplace-image-remove {
  outline: 3px solid rgba(37, 99, 235, 0.18);
  outline-offset: 2px;
}

.marketplace-image-remove-pending {
  display: none;
  color: #b91c1c;
  font-size: 0.8rem;
  font-weight: 600;
}

.marketplace-image-remove-checkbox:checked
  ~ .marketplace-image-remove-pending {
  display: block;
}

.marketplace-image-control input[type="file"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #475569;
  background: #ffffff;
}

.marketplace-image-control input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 7px 11px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: #2563eb;
  cursor: pointer;
  font-weight: 700;
}

.marketplace-image-control input[type="file"]::file-selector-button:hover {
  background: #1d4ed8;
}

.marketplace form p.form-row > .field-help {
  grid-column: 2;
  color: #6b7280;
  font-size: 0.85rem;
}

.marketplace form p.form-row > .field-error {
  grid-column: 2;
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 2px;
}

@media (max-width: 700px) {
  .marketplace form p.form-row {
    grid-template-columns: 1fr;
  }

  .marketplace form p.form-row > .field-error {
    grid-column: 1;
  }

  .marketplace form p.form-row > .field-help {
    grid-column: 1;
  }
}


/* ===== Marketplace detail ===== */
.marketplace-detail .detail-head{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.marketplace-detail .detail-head-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.marketplace-detail .detail-grid{
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  align-items: start;
}

.marketplace-detail .detail-main,
.marketplace-detail .detail-side{
  padding: 16px 18px;
}

.marketplace-detail .detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.marketplace-detail .listing-image-card {
  padding: 16px 18px;
}

.marketplace-detail .listing-image-frame,
.marketplace-detail .listing-image-empty {
  display: block;
  width: 100%;
  height: 240px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.marketplace-detail .listing-image-frame {
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
}

.marketplace-detail .listing-image-backdrop {
  position: absolute;
  inset: -18px;
  width: calc(100% + 36px);
  height: calc(100% + 36px);
  object-fit: cover;
  filter: blur(18px) saturate(0.8);
  opacity: 0.62;
  transform: scale(1.05);
}

.marketplace-detail .listing-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.marketplace-detail .listing-image-view {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: background 0.15s ease, transform 0.15s ease;
}

.marketplace-detail .listing-image-view:hover {
  color: #ffffff;
  background: #2563eb;
  transform: translateY(-1px);
}

.marketplace-detail .listing-image-view svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.marketplace-detail .listing-image-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
  color: #64748b;
  background: #f8fafc;
}

.marketplace-detail .listing-image-empty-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  fill: none;
  stroke: #94a3b8;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.marketplace-detail .listing-image-empty strong {
  color: #475569;
}

.marketplace-detail .listing-image-empty span {
  font-size: 0.9rem;
}

.marketplace-detail .section-title{
  margin: 0 0 14px 0;
  font-size: 1.05rem;
}

.marketplace-detail .section-subtitle{
  margin: 0 0 8px 0;
  font-size: 0.98rem;
}

.marketplace-detail .detail-info{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.marketplace-detail .detail-row{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.marketplace-detail .detail-label{
  color: #6b7280;
  font-weight: 600;
  min-width: 110px;
}

.marketplace-detail .detail-description{
  margin-top: 16px;
}

.marketplace-detail .detail-description p{
  margin: 0;
  white-space: pre-wrap;
}

.marketplace-detail .listing-map{
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid #e5e7eb;
  position: relative;
  z-index: 1;
}

.marketplace-detail .map-empty{
  margin-top: 10px;
  padding: 14px;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  color: #6b7280;
  background: #f8fafc;
}

.marketplace-detail .detail-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.marketplace-detail .detail-location-text{
  margin-bottom: 8px;
}

@media (max-width: 900px){
  .marketplace-detail .detail-head {
    flex-direction: column;
  }

  .marketplace-detail .detail-head-actions {
    justify-content: flex-start;
  }

  .marketplace-detail .detail-grid{
    grid-template-columns: 1fr;
  }

  .marketplace-detail .listing-image-frame,
  .marketplace-detail .listing-image-empty {
    height: clamp(220px, 52vw, 360px);
  }

  .marketplace-detail .detail-row{
    flex-direction: column;
    gap: 4px;
  }
}

.detail-matches {
  margin-top: 24px;
}

.match-card {
  border: 1px solid #ddd;
  border-left: 4px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  box-shadow: none;
}

.match-card-high {
  border-left-color: #16a34a;
  background: linear-gradient(to right, rgba(22, 163, 74, 0.05), #fff 120px);
}

.match-card-medium {
  border-left-color: #f59e0b;
  background: linear-gradient(to right, rgba(245, 158, 11, 0.06), #fff 120px);
}

.match-card-low {
  border-left-color: #ef4444;
  background: linear-gradient(to right, rgba(239, 68, 68, 0.05), #fff 120px);
}

.match-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.match-score-box {
  min-width: 88px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fafafa;
}

.match-score-box.score-high {
  border-color: rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.10);
}

.match-score-box.score-medium {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
}

.match-score-box.score-low {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.10);
}

.match-score-label {
  font-size: 10px;
  color: #666;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.match-score-value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
}

.match-score-text {
  font-size: 10px;
  font-weight: 700;
}

.score-high .match-score-text,
.score-high .match-score-value {
  color: #166534;
}

.score-medium .match-score-text,
.score-medium .match-score-value {
  color: #92400e;
}

.score-low .match-score-text,
.score-low .match-score-value {
  color: #991b1b;
}

.match-details {
  margin-top: 14px;
  border-top: 1px solid #eef2f7;
  padding-top: 12px;
}

.match-details summary {
  cursor: pointer;
  font-weight: 700;
  color: #334155;
  user-select: none;
}

.match-details[open] summary {
  margin-bottom: 12px;
}

.match-reason-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.match-reason-chip {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8fafc;
}

.match-reason-chip-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.match-reason-name {
  font-weight: 700;
  color: #334155;
}

.match-reason-points {
  font-weight: 800;
  color: var(--primary);
}

.match-reason-desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.35;
}

.match-mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.match-mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  font-size: 0.8rem;
  color: #475569;
}

.match-inline-location {
  margin-top: 4px;
  font-size: 0.82rem;
  color: #6b7280;
}

.match-description {
  margin-top: 6px;
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.3;
}

.marketplace-active-field {
  margin: 14px 0;
}

.marketplace-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
}

.marketplace-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.info-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #999;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  user-select: none;
}

.info-tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  left: 50%;
  bottom: 140%;
  transform: translateX(-50%);
  width: 260px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #222;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  z-index: 50;
  transition: opacity 0.15s ease;
}

.info-tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #222 transparent transparent transparent;
}

.info-tooltip:hover .info-tooltip-text,
.info-tooltip:focus .info-tooltip-text {
  visibility: visible;
  opacity: 1;
}

.form-errors {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.9rem;
}

.contact-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eef2f7;
}

.contact-card {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f8fafc;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-label {
  color: #6b7280;
  font-weight: 600;
  min-width: 80px;
}

.contact-card a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .contact-row {
    flex-direction: column;
    gap: 4px;
  }
}

.contact-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  text-align: right;
}

.copy-contact-btn {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  padding: 3px 9px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.copy-contact-btn:hover {
  background: #f1f5f9;
}

@media (max-width: 700px) {
  .contact-value {
    justify-content: flex-start;
    text-align: left;
  }
}

.marketplace .my-post-toolbar {
  justify-content: flex-start;
}

.marketplace-messages {
  margin-bottom: 16px;
}

.marketplace-message {
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.marketplace-message-success {
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
  color: #166534;
}

/* ===== My posts archive tabs/actions ===== */
.marketplace-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 16px 0;
  border-bottom: 1px solid #e5e7eb;
}

.marketplace-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  background: transparent;
  color: #475569;
  font-weight: 700;
  text-decoration: none;
}

.marketplace-tab:hover {
  color: var(--primary);
  background: #f8fafc;
}

.marketplace-tab-active {
  color: var(--primary);
  background: #fff;
  border-color: #e5e7eb;
  position: relative;
  top: 1px;
}

.marketplace-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.78rem;
}

.marketplace-tab-active .marketplace-tab-count {
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
}

.my-post-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.my-post-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.my-post-actions form,
.detail-head-actions form {
  margin: 0;
  display: inline-flex;
}

.detail-head-actions .btn {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font: inherit;
  line-height: 1;
}

.my-post-actions .btn {
  min-height: 36px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1;
}

.archive-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f8fafc;
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 700;
}

.btn-danger-soft {
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #991b1b;
}

.btn-danger-soft:hover {
  background: rgba(239, 68, 68, 0.13);
  color: #7f1d1d;
}

@media (max-width: 700px) {
  .my-post-card-head {
    flex-direction: column;
  }

  .my-post-actions {
    justify-content: flex-start;
  }
}

/* ===== Verification badge ===== */

.verification-badge {
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.verification-verified {
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #166534;
}

.verification-pending {
  background: rgba(59, 130, 246, 0.10);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #1d4ed8;
}

.verification-rejected {
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #991b1b;
}
