.te-calc-wrap {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  max-width: 1100px;
}

.te-calc-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
}

.te-title {
  font-size: 22px;
  font-weight: 800;
  color: #111;
}

.te-subtitle {
  font-size: 13px;
  color: #333;
}

.te-controls {
  display: flex;
  gap: 14px;
  align-items: flex-end;
}

.te-label {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #111;
}

.te-controls input,
.te-controls select {
  background: #111;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.2);
  min-width: 170px;
}

#te-coin-search::placeholder {
  color: rgba(255,255,255,0.7);
}

/* Search results dropdown */
.te-coin-results {
  position: absolute;
  top: 62px;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #111;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  overflow: hidden;
  max-height: 280px;
  overflow-y: auto;
}

.te-coin-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.te-coin-item:hover {
  background: rgba(255,255,255,0.08);
}

.te-coin-main {
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

.te-coin-sub {
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  margin-top: 2px;
}

/* Output */
.te-output {
  margin-top: 14px;
  padding: 14px;
  background: #f5f5f5;
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.te-output b {
  display: block;
  font-size: 12px;
  color: #555;
  margin-bottom: 4px;
}

.te-output span {
  font-size: 16px;
  font-weight: 800;
  color: #111;
}

@media (max-width: 900px) {
  .te-calc-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .te-controls {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .te-controls input,
  .te-controls select {
    width: 100%;
    min-width: 0;
  }

  .te-coin-results {
    position: relative;
    top: 0;
    margin-top: 8px;
  }

  .te-output {
    grid-template-columns: repeat(2, 1fr);
  }
}
