.results, .result-item, .item-key, .item-value, .terminal-line, 
.terminal-text, .nameserver-list li, .alert-warning, .result-section h3, 
.result-content, .redirect-url, .header-item, .header-name, .header-value, 
.json-code-block, .warning-banner, .warning-box, .warning-content, 
.darkweb-result, .info-message, .hash, .map-note, .error-message, 
.file-input-label, .metadata-table th, .metadata-table td {
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  max-width: 100%;
}

.results {
  flex: 1;
  position: relative;
  background: linear-gradient(160deg,rgba(18,21,29,0.92) 0%,rgba(16,19,27,0.98) 100%);
  padding: 1.15rem;
  border: 1px solid var(--loading-border);
  border-radius: var(--radius-md) var(--radius-md) var(--radius-md) var(--radius-md);
  overflow-y: auto;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) rgba(18,21,29,0.92);
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.results > * {
  width: 100%;
}

.ip-card {
  display: flex;
  gap: 24px;
  background: linear-gradient(145deg, rgba(20, 24, 34, 0.94), rgba(12, 15, 23, 0.9));
  border: 1px solid rgba(143, 156, 255, 0.14);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.48);
}

.ip-card.with-map {
  align-items: stretch;
}

.ip-card.no-map {
  flex-direction: column;
}

.ip-card-map {
  width: 320px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(143, 156, 255, 0.16);
  background: rgba(16, 19, 28, 0.9);
}

.ip-card-map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  border-radius: 4px;
}

.ip-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ip-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
}

.ip-card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.ip-card-title {
  font-size: 1.85rem;
  font-weight: 600;
  color: #8f9cff;
  letter-spacing: 0.04em;
}

.ip-card-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.74);
}

.ip-card-actions {
  margin-left: auto;
  display: flex;
  align-items: flex-start;
}

.ip-card-download {
  appearance: none;
  border: 1px solid rgba(143, 156, 255, 0.38);
  background: rgba(143, 156, 255, 0.12);
  color: #c7ceff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ip-card-download:hover {
  background: rgba(143, 156, 255, 0.18);
  border-color: rgba(143, 156, 255, 0.55);
  color: #eef0ff;
  transform: translateY(-1px);
}

.ip-card-download:active {
  transform: translateY(0);
}

.ip-card-download:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.ip-card-download.print-hidden {
  visibility: hidden;
}

.ip-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.ip-card-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(19, 23, 33, 0.88);
  border: 1px solid rgba(143, 156, 255, 0.1);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

.ip-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(143, 156, 255, 0.12);
  color: #8f9cff;
  flex-shrink: 0;
}

.ip-card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ip-card-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.52);
}

.ip-card-value {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  word-break: break-word;
}

.ip-card-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ip-card-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.06em;
}

.ip-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ip-card-notice {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
}

.ip-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(143, 156, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(143, 156, 255, 0.28);
}

.ip-card-tag.danger {
  background: rgba(255, 107, 53, 0.18);
  border-color: rgba(255, 107, 53, 0.36);
  color: #ffb599;
}

.ip-card-tag.warning {
  background: rgba(255, 184, 94, 0.18);
  border-color: rgba(255, 184, 94, 0.36);
  color: #ffd7a6;
}

@media (max-width: 1024px) {
  .ip-card {
    flex-direction: column;
  }

  .ip-card-map {
    width: 100%;
    max-height: 260px;
  }
}

@media (max-width: 768px) {
  .ip-card {
    padding: 20px;
    gap: 20px;
  }

  .ip-card-map {
    max-height: none;
    height: auto;
  }

  .ip-card-map img {
    height: auto;
    max-height: none;
  }

  .ip-card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .ip-card-actions {
    margin-left: 0;
  }

  .ip-card-grid {
    grid-template-columns: 1fr;
  }

  .ip-card-item {
    padding: 14px;
  }
}

.results::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.results::-webkit-scrollbar-track {
  background: rgba(12,14,20,0.65);
  border: 1px solid rgba(143,156,255,0.08);
  border-radius: 8px;
}

.results::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg,var(--primary) 0%,var(--secondary) 100%);
  border-radius: 8px;
  box-shadow: 0 0 16px rgba(143,156,255,0.35);
  transition: background 0.2s ease,box-shadow 0.2s ease;
}

.results::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg,var(--primary-dark) 0%,var(--secondary) 100%);
  box-shadow: 0 0 20px rgba(143,156,255,0.55);
}

.placeholder-text {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  transform: translate(-50%,-50%);
  color: var(--text-color-dimmed);
  opacity: 0.55;
  font-size: 0.78rem;
  text-align: center;
  white-space: normal;
  letter-spacing: 0.12rem;
}

.result-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  width: 100%;
}

.result-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.item-key {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.item-value {
  color: var(--text-color);
  font-size: 0.9rem;
  width: 100%;
  line-height: 1.6;
}


.result-section {
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
}

.result-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.result-section h3 {
  display: flex;
  align-items: center;
  padding: 15px;
  margin: 0;
  background-color: rgba(0,0,0,0.3);
  color: var(--accent-color);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.result-section h3 i {
  margin-right: 10px;
  flex-shrink: 0;
}

.result-content {
  padding: 15px;
  width: 100%;
}

.redirect-chain {
  position: relative;
  width: 100%;
}

.redirect-item {
  display: flex;
  flex-direction: column;
  background-color: rgba(0,0,0,0.2);
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  border-left: 3px solid var(--accent-color);
  width: 100%;
}

.redirect-url {
  font-family: var(--monospace-font);
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--text-color);
  width: 100%;
}

.redirect-code {
  font-size: 11px;
}

.redirect-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 30px;
  position: relative;
  z-index: 1;
  color: var(--accent-color);
}

.redirect-arrow i {
  font-size: 18px;
  animation: pulse-redirect 2s infinite;
}

.header-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
}

.header-category {
  background-color: rgba(0,0,0,0.2);
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
}

.category-title {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background-color: rgba(0,0,0,0.3);
  color: var(--accent-color);
  font-weight: 500;
  font-size: 13px;
}

.category-title i {
  margin-right: 8px;
  flex-shrink: 0;
}

.headers-list {
  padding: 10px 15px;
  max-height: 300px;
  overflow-y: auto;
  width: 100%;
}

.header-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  width: 100%;
}

.header-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.header-name {
  font-family: var(--monospace-font);
  font-weight: 500;
  font-size: 12px;
  color: var(--accent-color);
  margin-bottom: 5px;
}

.header-value {
  font-family: var(--monospace-font);
  font-size: 12px;
  color: var(--text-color-dimmed);
  width: 100%;
}

.json-code-block {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--monospace-font);
  padding: 10px;
  white-space: pre-wrap;
  overflow-x: auto;
  width: 100%;
}

.darkweb-result {
  background-color: rgba(20,21,23,0.7);
  border: 1px solid #2a2d35;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
  position: relative;
  width: 100%;
}

.result-number {
  position: absolute;
  top: -10px;
  right: 10px;
  background-color: rgba(143,156,255,0.45);
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.onion-link {
  background-color: rgba(24,26,33,0.8);
  color: #8f9cff;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  border: 1px solid rgba(143,156,255,0.2);
  display: inline-block;
  word-break: break-all;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.onion-link:hover {
  background-color: rgba(24,26,33,0.9);
}

.results-container {
  margin-top: 20px;
  width: 100%;
}

.info-section {
  margin-bottom: 8px;
  width: 100%;
}

.info-message {
  color: #4da6ff;
  background-color: rgba(77,166,255,0.1);
  border: 1px solid rgba(77,166,255,0.3);
  padding: 15px;
  border-radius: 4px;
  text-align: center;
  width: 100%;
}
