.api-mirrors-container {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, rgba(5, 150, 105, 0.03) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  padding: 16px;
  margin: 20px 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.api-mirrors-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.api-mirrors-header .section-header-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: relative;
}

.api-mirrors-header .section-header-name span {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.api-mirrors-header .section-header-name img {
  width: 14px;
  height: 14px;
}

.api-mirrors-count {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #FFF;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.api-mirrors-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.api-mirror-card {
  background: rgba(29, 29, 30, 0.4);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-left: 3px solid #10b981;
  border-radius: 6px;
  overflow: visible;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.api-mirror-card:hover {
  background: rgba(29, 29, 30, 0.6);
  border-left-color: #059669;
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.mirror-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  min-height: auto;
}

.mirror-url-box {
  flex: 1;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 6px;
  padding: 8px 12px;
  min-width: 0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mirror-index {
  font-family: 'Roboto Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #10b981;
  opacity: 0.7;
  flex-shrink: 0;
  min-width: 20px;
}

.mirror-url-box:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.35);
}

.mirror-url-box code {
  font-family: 'Roboto Mono', monospace;
  font-size: 13px;
  color: #10b981;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.mirror-url-box.masked code {
  letter-spacing: 1px;
  color: #9ca3af;
}

.mirror-url-box.unlocked {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.08), rgba(46, 204, 113, 0.04));
  border-color: #2ecc71;
  animation: unlockPulse 0.4s ease;
}

.mirror-url-box.unlocked code {
  color: #2ecc71;
  font-weight: 500;
}

@keyframes unlockPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.01); }
}

.captcha-mini {
  background: #FFFFFF;
  border-radius: 4px;
  padding: 3px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
}

.captcha-img {
  display: block;
  height: 70px;
  width: auto;
  border-radius: 2px;
  image-rendering: crisp-edges;
  image-rendering: -webkit-optimize-contrast;
}

.captcha-field {
  width: 100px;
  background: #1D1D1E;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 6px;
  padding: 9px 10px;
  font-family: 'Roboto Mono', monospace;
  font-size: 13px;
  color: #E5E7EB;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-weight: 700;
}

.captcha-field:focus {
  outline: none;
  border-color: #10b981;
  background: #262627;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.captcha-field::placeholder {
  color: #666;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 500;
}

.unlock-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 9px 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.unlock-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #0284c7 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.unlock-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.mirror-open-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.12);
  color: #E5E7EB;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s ease;
  flex-shrink: 0;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.mirror-open-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  transform: translateX(3px);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

.btn-icon {
  width: 11px;
  height: 11px;
}

.mirror-pgp-toggle {
  position: relative;
  flex-shrink: 0;
}

.pgp-toggle-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.12);
  color: #E5E7EB;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  list-style: none;
  border: 1px solid rgba(16, 185, 129, 0.3);
  user-select: none;
}

.pgp-toggle-btn::-webkit-details-marker {
  display: none;
}

.pgp-toggle-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
}

.pgp-toggle-btn .arrow {
  font-size: 9px;
  transition: transform 0.2s;
}

.mirror-pgp-toggle[open] .arrow {
  transform: rotate(180deg);
}

.pgp-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #1D1D1E !important;
  border: 2px solid #A62288;
  border-radius: 8px;
  padding: 12px;
  min-width: 300px;
  max-width: 480px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 6px 24px rgba(166, 34, 136, 0.3);
  opacity: 1;
}

.pgp-dropdown pre {
  margin: 0;
  font-family: 'Monaco', 'Cascadia Code', 'Courier New', Courier, monospace;
  font-size: 10px;
  color: #E5E7EB;
  white-space: pre-wrap;
  word-break: break-all;
  background: #2A2A2B;
  border: 1px solid #434344;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  user-select: all;
}

.pgp-dropdown pre:hover {
  border-color: #A62288;
  background: rgba(166, 34, 136, 0.05);
}

.pgp-hint {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(166, 34, 136, 0.3);
  font-size: 10px;
  color: #9ca3af;
  font-style: italic;
  text-align: center;
}

.api-mirrors-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 10px;
  color: #FFFFFF;
  text-align: center;
  font-weight: 400;
}

.feedback-alert {
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 500;
}

.feedback-alert.success {
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid #2ecc71;
  color: #2ecc71;
}

.feedback-alert.error {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid #dc2626;
  color: #ff4444;
}

@media (max-width: 1024px) {
  .mirror-row {
    flex-wrap: wrap;
  }

  .mirror-url-box {
    flex-basis: 100%;
    order: 1;
  }

  .captcha-mini,
  .captcha-field,
  .unlock-btn,
  .mirror-open-btn,
  .mirror-pgp-toggle {
    order: 2;
  }
}

@media (max-width: 768px) {
  .api-mirrors-container {
    padding: 8px;
  }

  .mirror-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px;
  }

  .mirror-url-box {
    width: 100%;
  }

  .captcha-mini {
    align-self: center;
  }

  .captcha-img {
    height: 70px;
  }

  .captcha-field {
    width: 100%;
  }

  .unlock-btn,
  .mirror-open-btn {
    width: 100%;
    justify-content: center;
  }

  .pgp-dropdown {
    right: auto;
    left: 0;
    width: calc(100vw - 60px);
    max-width: 100%;
  }
}

.pgp-dropdown::-webkit-scrollbar {
  width: 6px;
}

.pgp-dropdown::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}

.pgp-dropdown::-webkit-scrollbar-thumb {
  background: rgba(166, 34, 136, 0.5);
  border-radius: 3px;
}

.pgp-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(166, 34, 136, 0.7);
}
