/* IP Checker — results (aligned with WHOIS / SEO tools) */

.ip-results-wrap {
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  background: #eef1f6;
  padding: 1.5rem 0 2rem;
}

.ip-results-wrap .container.ip-results-page {
  max-width: 920px !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

#ip-results-root {
  color: #0f172a;
}

.ip-report-shell {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.ip-report-hero {
  background: linear-gradient(135deg, #1a0b3d 0%, #2d1b69 48%, #3b2290 100%);
  padding: 1.35rem 1.5rem 1.25rem;
  text-align: center;
  color: #fff;
}

.ip-report-hero-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.ip-report-hero-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  background: none;
}

.ip-report-hero-sub {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.ip-report-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.ip-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #2d1b69;
  color: #fff;
  transition: opacity 0.2s;
}

.ip-toolbar-btn:hover {
  opacity: 0.9;
}

.ip-toolbar-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ip-toolbar-btn.outline {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.ip-stack-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.25rem;
}

@media (min-width: 768px) {
  .ip-stack-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.5rem;
  }
}

.ip-stack-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ip-stack-card.unavailable {
  background: #f8fafc;
  border-style: dashed;
}

.ip-stack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f1f5f9;
}

.ip-stack-head.ipv4 {
  background: linear-gradient(90deg, #ede9fe, #f8fafc);
}

.ip-stack-head.ipv6 {
  background: linear-gradient(90deg, #dbeafe, #f8fafc);
}

.ip-stack-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569;
}

.ip-stack-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #10b981;
  color: #fff;
}

.ip-stack-badge.muted {
  background: #94a3b8;
}

.ip-address-display {
  padding: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.95rem, 3.5vw, 1.15rem);
  font-weight: 700;
  color: #0f172a;
  word-break: break-all;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.15s;
}

.ip-address-display:hover {
  background: #f8fafc;
}

.ip-address-display.empty {
  color: #64748b;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: default;
}

.ip-stack-body {
  padding: 0 1rem 1rem;
  flex: 1;
}

.ip-detail-list {
  display: grid;
  gap: 0.65rem;
}

.ip-detail-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.ip-detail-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5b21b6;
}

.ip-detail-icon img.country-flag {
  width: 22px;
  height: auto;
  border-radius: 2px;
}

.ip-detail-content {
  min-width: 0;
  flex: 1;
}

.ip-detail-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.1rem;
}

.ip-detail-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
}

.ip-stack-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
  flex-wrap: wrap;
}

.ip-mini-btn {
  flex: 1 1 auto;
  min-width: 100px;
  padding: 0.45rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  cursor: pointer;
}

.ip-mini-btn:hover {
  background: #f8fafc;
}

.ip-loading-state,
.ip-error-state {
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.ip-loading-state .spinner-border {
  width: 2.5rem;
  height: 2.5rem;
  color: #7c3aed;
}

.ip-error-state {
  color: #b91c1c;
}

.ip-error-state h3 {
  font-size: 1.1rem;
  margin: 0.75rem 0 0.5rem;
}

.ip-toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  left: 1.25rem;
  max-width: 320px;
  margin-left: auto;
  z-index: 9999;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: ip-toast-in 0.25s ease;
}

.ip-toast.success {
  background: #059669;
}

@keyframes ip-toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Location map (OpenStreetMap embed) */
.ip-map-section {
  padding: 1.25rem 1.25rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  background: #fafbfc;
}

@media (min-width: 576px) {
  .ip-map-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.ip-map-head {
  margin-bottom: 0.85rem;
}

.ip-map-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ip-map-title i {
  color: #7c3aed;
}

.ip-map-subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
  word-break: break-word;
}

.ip-map-dual-note {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  line-height: 1.4;
}

.ip-map-wrap {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #e2e8f0;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
  min-height: 220px;
  aspect-ratio: 16 / 10;
}

.ip-map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
}

@media (min-width: 768px) {
  .ip-map-wrap {
    min-height: 280px;
  }

  .ip-map-wrap iframe {
    min-height: 280px;
  }
}

.ip-map-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
}

.ip-map-note {
  margin: 0;
  font-size: 0.75rem;
  color: #64748b;
  flex: 1 1 200px;
}

.ip-map-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: #5b21b6;
  text-decoration: none;
  white-space: nowrap;
}

.ip-map-link:hover {
  text-decoration: underline;
}

.ip-map-fallback {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
  padding: 1rem;
  background: #f1f5f9;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
}

.ip-map-unavailable .ip-map-title {
  margin-bottom: 0.5rem;
}

@media (max-width: 575px) {
  .ip-report-toolbar {
    flex-direction: column;
  }

  .ip-toolbar-btn {
    width: 100%;
    justify-content: center;
  }

  .ip-stack-actions {
    flex-direction: column;
  }

  .ip-mini-btn {
    width: 100%;
  }
}
