/* =========================================================
   PDM IMPORTS — page-specific only
   This file is intentionally small so it does not fight styles.css
   ========================================================= */

.imports-page{
  padding: 58px 0 80px;
  position: relative;
  z-index: 1;
}

.imports-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.imports-controls{
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.imports-search{
  width: 270px;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color .18s ease, background .18s ease;
}

.imports-search::placeholder{
  color: rgba(245,246,248,.45);
}

.imports-search:focus{
  border-color: rgba(255,223,135,.38);
  background: rgba(255,255,255,.055);
}

.imports-tabs{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.imports-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.import-card{
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.24);
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.import-card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,223,135,.24);
  background: rgba(0,0,0,.30);
}

.import-card__image{
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0c0d10;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.import-card__image img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.import-card__body{
  padding: 13px 14px 14px;
}

.import-card__top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.import-card h3{
  margin: 0;
  min-width: 0;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 800;
  color: rgba(245,246,248,.95);
}

.import-class{
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255,223,135,.20);
  background: rgba(255,223,135,.07);
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.import-spawn{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.import-spawn span{
  color: rgba(245,246,248,.45);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.import-spawn code{
  max-width: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}

.import-empty{
  display: none;
  margin-top: 22px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.03);
}

@media (max-width: 980px){
  .imports-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .imports-head{
    align-items: stretch;
    flex-direction: column;
  }

  .imports-controls{
    width: 100%;
  }

  .imports-search{
    flex: 1 1 auto;
    width: auto;
  }
}

@media (max-width: 720px){
  .imports-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px){
  .imports-controls{
    flex-direction: column;
    align-items: stretch;
  }

  .imports-search,
  .tebex-btn{
    width: 100%;
  }

  .imports-tabs{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .imports-tabs .tab{
    width: 100%;
  }

  .imports-grid{
    grid-template-columns: 1fr;
  }
}
