.download-product-card {
  border: 1px solid #e7ecf3;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  background: #fff;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  height: 100%;
}
.download-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  border-color: #d8e0ec;
}
.download-product-card .product-image {
  height: 210px;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  background: #eef3f9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0 !important;
}
.download-product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.download-product-card:hover .product-image img {
  transform: scale(1.03);
}
.download-empty-cover {
  font-size: 40px;
  color: #98a5b6;
}
.download-card-owner-tools {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease;
}
.download-product-card:hover .download-card-owner-tools,
body.touch .download-card-owner-tools {
  opacity: 1;
  transform: translateY(0);
}
.download-card-owner-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}
.download-image-rating-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(2px);
}
.download-image-rating-badge i {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}
.download-image-rating-badge i.active {
  color: #f59e0b;
}
.download-image-rating-badge .rating-count {
  color: #f8fafc;
  font-size: 11px;
  font-weight: 600;
}
.download-image-metrics {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100% - 170px);
}
.download-image-metrics span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  line-height: 1;
}
.download-featured-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.94);
  color: #111827;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(2px);
}
.download-new-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.92);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(2px);
}
@media (hover: none) {
  .download-card-owner-tools {
    opacity: 1;
    transform: translateY(0);
  }
}
.download-source-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.download-card-content {
  padding: 16px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.download-grid-shell {
  min-height: 0;
}
.download-grid-top {
  margin-bottom: 2px;
}
.download-grid-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.download-card-heading {
  display: block;
}
.download-card-byline {
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
}
.download-market-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.download-market-stars {
  display: inline-flex;
  gap: 2px;
  font-size: 14px;
}
.download-market-stars i {
  color: #d1d5db;
}
.download-market-stars i.active {
  color: #f59e0b;
}
.download-market-rating-count {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}
.download-market-sales {
  color: #6b7280;
  font-size: 15px;
  font-weight: 600;
  margin-top: 2px;
}
.download-grid-foot {
  border-top: 1px solid #eef2f7;
  padding-top: 12px;
}
.download-card-title {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: #0f172a;
  margin-bottom: 0;
}
.download-card-description {
  color: #64748b;
  line-height: 1.5;
  min-height: 66px;
  display: block;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
}
.download-meta-line {
  font-size: 12px;
  color: #64748b;
  margin-top: 0;
  line-height: 1.5;
}
.download-rating-line {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.download-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  line-height: 1;
  color: #495057;
}
.download-rating-pill i {
  color: #f6b93b;
}
.download-rating-pill .rating-value {
  font-weight: 700;
}
.download-rating-count {
  font-size: 12px;
  color: #6c757d;
}
.download-card-actions {
  margin-top: auto;
  padding-top: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.download-card-actions .btn-primary {
  margin-left: auto;
}
.download-card-save-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0;
}
.download-card-view-btn {
  border-radius: 10px;
  min-width: 94px;
}
.download-card-download-btn {
  border-radius: 10px;
  min-width: 112px;
}
.download-card-bottom-cta {
  margin-top: 0;
  padding-top: 0;
  margin-bottom: 0;
}
.download-card-big-view-btn {
  width: 100%;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}
.download-card-btn {
  border-radius: 11px;
  padding: 8px 12px;
  font-weight: 500;
}
.download-item-hero-card {
  border: 1px solid #e7ecf3;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}
.download-item-hero-body {
  padding: 22px;
}
.download-item-hero-title {
  font-size: 1.7rem;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.download-item-hero-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.download-item-hero-content-col {
  padding-right: 20px;
}
.download-item-hero-actions-col {
  border-left: 1px solid #edf1f6;
  padding-left: 24px;
}
.download-item-hero-actions-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.download-item-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.downloads-tabs-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 6px;
  padding-bottom: 6px;
}
.downloads-tabs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}
.downloads-tabs-shell .downloads-tabs-list > li {
  float: none;
}
.downloads-tabs-action {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.btn-submit-download {
  white-space: nowrap;
}
.downloads-posts-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  line-height: 1.4;
}
.downloads-posts-filter-title {
  min-width: 0;
}
.downloads-posts-filter-actions {
  margin-left: auto;
  flex: 0 0 auto;
}
.download-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.download-status-filter-btn {
  margin-right: 0 !important;
}
.download-primary-btn {
  border-radius: 999px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.download-resource-row {
  border: 1px solid #e4e6eb;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.download-resource-row-content {
  min-width: 0;
  flex: 1 1 auto;
}
.download-resource-row-content .small {
  overflow-wrap: anywhere;
}
.download-resource-row-actions {
  flex: 0 0 auto;
}
.download-resource-row-actions .btn {
  white-space: nowrap;
}
.download-item-checksum code {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.download-card-owner-tools.with-featured {
  top: 42px;
}
.download-upload-section .card-header {
  font-weight: 600;
}
.download-publisher-tools {
  gap: 10px;
}
.download-publisher-tools-actions {
  gap: 8px;
}
.download-publisher-details-row,
.download-publisher-sources-row {
  row-gap: 12px;
}
.download-publisher-submit .btn {
  min-width: 250px;
}
.download-resource-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.download-preview-image-action {
  display: block;
  cursor: zoom-in;
}
.download-item-submeta {
  margin-top: 8px;
  line-height: 1.6;
}
.download-share-icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0;
}
.download-share-dropdown .dropdown-toggle::after {
  display: none;
}
.download-share-menu {
  min-width: 230px;
  border-radius: 12px;
}
.download-share-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.download-review-stars {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}
.download-review-stars input {
  display: none;
}
.download-review-stars label {
  cursor: pointer;
  color: #c5cbd3;
  font-size: 22px;
  line-height: 1;
}
.download-review-stars label:hover,
.download-review-stars label:hover ~ label,
.download-review-stars input:checked ~ label {
  color: #f6b93b;
}
.download-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.download-quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.download-quick-facts span {
  font-size: 12px;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px 10px;
}
.download-rating-distribution {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.download-rating-distribution span {
  font-size: 12px;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px 8px;
}
.download-insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}
.download-insight-card {
  border: 1px solid #e5eaf2;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}
.download-insight-card span {
  display: block;
  font-size: 12px;
  color: #64748b;
}
.download-insight-card strong {
  font-size: 18px;
  color: #0f172a;
}
.download-mini-tile {
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}
.download-mini-tile strong {
  color: #0f172a;
  font-size: 14px;
}
.download-mini-tile span {
  color: #64748b;
  font-size: 12px;
}
body.night-mode .download-product-card,
body.night-mode .download-item-hero-card {
  background: var(--card-dark-color);
  border-color: var(--card-dark-divider);
  box-shadow: none;
}
body.night-mode .download-product-card .product-image {
  background: rgba(255, 255, 255, 0.03);
}
body.night-mode .download-grid-foot {
  border-top-color: var(--card-dark-divider);
}
body.night-mode .download-card-byline,
body.night-mode .download-market-rating-count,
body.night-mode .download-market-sales {
  color: #9ca3af;
}
body.night-mode .download-image-rating-badge {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(2, 6, 23, 0.68);
}
body.night-mode .download-image-metrics span {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(2, 6, 23, 0.58);
  color: #dbe3ee;
}
body.night-mode .download-featured-badge {
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(217, 119, 6, 0.9);
}
body.night-mode .download-new-badge {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(37, 99, 235, 0.9);
}
body.night-mode .download-card-title {
  color: #e5e7eb;
}
body.night-mode .download-card-description,
body.night-mode .download-meta-line {
  color: #9ca3af;
}
body.night-mode .download-item-hero-actions-col {
  border-left-color: var(--card-dark-divider);
}
body.night-mode .download-rating-pill {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--card-dark-divider);
  color: #d6d9de;
}
body.night-mode .download-rating-count {
  color: #aab3bd;
}
body.night-mode .download-empty-cover {
  color: #6b7c8f;
}
body.night-mode .download-resource-row {
  border-color: var(--card-dark-divider);
}
body.night-mode .download-quick-facts span,
body.night-mode .download-rating-distribution span,
body.night-mode .download-insight-card,
body.night-mode .download-mini-tile {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--card-dark-divider);
}
body.night-mode .download-insight-card strong,
body.night-mode .download-mini-tile strong {
  color: #e5e7eb;
}
body.night-mode .download-quick-facts span,
body.night-mode .download-rating-distribution span,
body.night-mode .download-insight-card span,
body.night-mode .download-mini-tile span {
  color: #aab3bd;
}
@media (max-width: 767px) {
  .downloads-tabs-shell {
    padding: 8px 10px;
  }
  .downloads-tabs-list {
    flex: 1 1 100%;
  }
  .downloads-tabs-action {
    width: 100%;
    margin-left: 0;
  }
  .btn-submit-download {
    width: 100%;
    justify-content: center;
  }
  .downloads-posts-filter-actions {
    width: 100%;
    margin-left: 0;
  }
  .downloads-posts-filter-actions .countries-filter {
    width: 100%;
  }
  .download-status-filter-btn {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }
  .download-card-content {
    padding: 12px;
  }
  .download-card-description {
    min-height: 0;
  }
  .download-image-metrics {
    max-width: calc(100% - 130px);
  }
  .download-card-owner-tools.with-featured {
    top: 44px;
  }
  .download-item-hero-body {
    padding: 16px;
  }
  .download-item-hero-title {
    font-size: 1.3rem;
  }
  .download-grid-shell {
    min-height: auto;
  }
  .download-grid-foot {
    padding-top: 10px;
  }
  .download-card-actions .btn-primary {
    margin-left: 0;
  }
  .download-item-hero-content-col {
    padding-right: 12px;
  }
  .download-item-hero-actions-col {
    border-left: 0;
    border-top: 1px solid #edf1f6;
    padding-left: 0;
    padding-top: 14px;
    margin-top: 10px;
  }
  .download-item-header-actions {
    justify-content: flex-start;
    margin-top: 0;
  }
  .download-resource-row {
    align-items: flex-start;
  }
  .download-publisher-tools-actions {
    width: 100%;
  }
  .download-publisher-tools-actions .btn {
    flex: 1 1 100%;
  }
  .download-upload-section .x-image {
    width: 100%;
    max-width: none;
    height: 120px;
  }
  .download-publisher-add-btn {
    width: 100%;
  }
  .download-publisher-submit {
    text-align: left !important;
  }
  .download-publisher-submit .btn {
    width: 100%;
    min-width: 0;
  }
  body.night-mode .download-item-hero-actions-col {
    border-top-color: var(--card-dark-divider);
  }
}
@media (max-width: 575px) {
  .download-status-filter-btn {
    flex-basis: 100%;
  }
  .download-resource-row {
    flex-direction: column;
    align-items: stretch;
  }
  .download-resource-row-actions {
    width: 100%;
  }
  .download-resource-row-actions .btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }
}
