﻿/* Minimal, clean, and responsive styles for the landing page */
:root {
  --bg: #fafafa;
  --card: #ffffff;
  --ink: #111;
  --muted: #6b7280;
  --line: #e5e7eb;
  /* Brand color (restored to previous darker navy) */
  --brand: #0f172a;
  /* dark navy (previous value) */
  --accent: #14b8a6;
  /* Primary button color variable for easy theming */
  --button-color: #3B82F6;
}

/* Typography and color overrides (Newsreader for headings, Inter for body) */
/* For headings */
h1,
h2,
h3 {
  font-family: "Newsreader", serif;
}

/* For body text and links */
body,
a {
  font-family: "Inter", sans-serif;
}

/* For headings color */
h1,
h2,
h3 {
  color: #334155;
  /* A dark blue-gray */
}

/* For body text color */
body {
  color: #4A5568;
  /* A dark gray */
}

/* Links should inherit color by default (use brand for buttons only) */
a {
  color: inherit;
}

/* Apply the same sans-serif UI font everywhere (buttons, inputs, form controls) */
body,
a,
button,
input,
textarea,
select,
.btn {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

/* Pipeline Styles */
.pipeline-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.agent-card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--line);
  width: 60%;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.agent-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.agent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.agent-number {
  background: #eff6ff;
  color: #3b82f6;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}

.agent-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.agent-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--brand);
  font-family: "Newsreader", serif;
}

.agent-description {
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.flow-arrow {
  font-size: 24px;
  color: #cbd5e1;
  margin-bottom: 24px;
}

/* FAQ Styles */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: white;
  border: none;
  padding: 20px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  font-size: 16px;
}

.faq-icon {
  color: var(--button-color);
  font-size: 20px;
  transition: transform 0.2s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: #f8fafc;
}

.faq-answer-content {
  padding: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Trust Section Grid Fix */
.trust-section .container {
  max-width: 1200px;
  margin: 0 auto;
}



html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px
}

.nowrap {
  white-space: nowrap
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  width: 100%;
  height: 100%;
}

.logo {
  height: 40px;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  background: transparent;
  border: none;
  flex-shrink: 0
}

/* ... existing logo styles ... */

.nav-links {
  display: none;
  gap: 32px;
  align-items: center;
}

.nav-links a:not(.btn) {
  color: #64748b;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover {
  color: #0f172a;
  text-decoration: none;
}

.nav-cta {
  display: flex;
  gap: 8px
}

@media(min-width:768px) {
  .nav-links {
    display: flex;
    align-items: center;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  border: 1px solid var(--line);
  white-space: nowrap;
  font-size: 14px;
  transition: all 0.2s ease
}

.btn-primary {
  background: var(--button-color);
  color: #fff;
  border-color: var(--button-color)
}

.btn-primary:hover {
  filter: brightness(.95);
  text-decoration: none;
  transform: translateY(-1px)
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line)
}

.btn-secondary:hover {
  background: #f8fafc;
  text-decoration: none;
  transform: translateY(-1px)
}

.btn-accent {
  background: #10b981;
  color: #fff;
  border-color: #10b981
}

.btn-accent:hover {
  background: #059669;
  text-decoration: none;
  transform: translateY(-1px)
}

.btn-outline {
  background: #fff;
  color: var(--ink)
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff
}

.hero {
  padding: 64px 0 36px
}

.hero-grid {
  display: grid;
  gap: 24px;
  align-items: center
}

@media(min-width:900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr
  }
}

.hero h1 {
  font-size: 40px;
  line-height: 1.1;
  margin: 16px 0 0
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  margin: 16px 0
}

.hero-cta {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  margin-top: 16px;
  justify-content: center;
  align-items: center
}

.hero-card .hero-cta {
  justify-content: center
}

.hero-cta .btn {
  flex-shrink: 0;
  min-width: fit-content
}

@media(max-width:900px) {
  .hero-cta {
    gap: 6px
  }

  .hero-cta .btn {
    padding: 9px 12px;
    font-size: 13px
  }
}

@media(max-width:767px) {
  .hero-cta {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px
  }

  .hero-cta .btn {
    flex: 1;
    min-width: 140px
  }
}

.micro {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.card-title {
  font-weight: 600
}

.code-block {
  background: #0b0f19;
  color: #e5e7eb;
  border-radius: 1px;
  padding: 1px;
  overflow: auto;
  max-height: 400px;
  overflow: auto
}

/* Custom Scrollbar for Webkit Browsers 
.code-block::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.code-block::-webkit-scrollbar-track {
  background: #0b0f19;
  border-radius: 10px;
}

.code-block::-webkit-scrollbar-thumb {
  background-color: #0b0f19;
  border-radius: 10px;
  border: 2px solid #0b0f19;
}

.code-block::-webkit-scrollbar-thumb:hover {
  background-color: #0b0f19;
}*/
.pill-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px
}

@media(min-width:680px) {
  .pill-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

.pill {
  background: #f3f4f6;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  font-size: 13px
}

.pill-title {
  display: block;
  font-weight: 600;
  text-align: left
}

.pill-copy {
  display: block;
  margin-top: 4px;
  text-align: left;
  color: var(--muted)
}

.strip {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff
}

.section {
  padding: 30px 0
}

.section.alt {
  background: #fff;
  border-top: 1px solid var(--line)
}

.cards {
  display: grid;
  gap: 16px
}

.cards.three {
  grid-template-columns: repeat(1, 1fr)
}

@media(min-width:900px) {
  .cards {
    grid-template-columns: repeat(3, 1fr)
  }

  .cards.three {
    grid-template-columns: repeat(3, 1fr)
  }
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.feature-title {
  display: flex;
  align-items: center;
  gap: 8px
}

.feature-title h3 {
  margin: 0;
  line-height: 1
}

.feature-title .icon svg {
  display: block
}

.feature p {
  margin: 4px 0 0
}

.icon-dot {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--brand);
  opacity: .9
}

.grid-2 {
  display: grid;
  gap: 20px
}

@media(min-width:900px) {
  .grid-2 {
    grid-template-columns: 450px minmax(0, 1fr)
  }
}

.list {
  padding-left: 18px
}

.list li {
  margin: 8px 0
}

.list.tight div {
  margin: 6px 0
}

.img-frame {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6
}

/* .img-frame img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain} */
/* .img-frame svg{display:block;width:100%;height:auto;max-width:100%} */

.timeline {
  display: grid;
  gap: 10px
}

.tl-item {
  display: flex;
  gap: 10px;
  align-items: flex-start
}

.tl-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px
}

.tl-box {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc
}

.tl-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px
}

.form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px
}

.form input[type=email] {
  flex: 1;
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 40px 0
}

.footer-grid {
  display: grid;
  gap: 20px
}

@media(min-width:900px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr
  }
}

.col-head {
  font-weight: 600;
  margin-bottom: 8px
}

.col-links {
  list-style: none;
  padding: 0;
  margin: 0
}

.col-links li {
  margin: 6px 0
}

.muted {
  color: #9ca3af
}

.faq-accordion .faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 8px 0;
  font-size: 18px;
  font-weight: 600;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
}

.faq-question:hover {
  color: var(--brand);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer p {
  margin: 0 0 8px;
  color: var(--muted);
}

.faq-icon {
  font-size: 24px;
  font-weight: 400;
  transition: transform 0.3s ease-out;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Like buttons container - single line with scroll */
.like-buttons-container {
  margin-top: 20px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.like-buttons-container h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
}

.like-buttons-container .buttons-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.like-buttons-container .buttons-row::-webkit-scrollbar {
  height: 6px;
}

.like-buttons-container .buttons-row::-webkit-scrollbar-track {
  background: #e5e7eb;
  border-radius: 3px;
}

.like-buttons-container .buttons-row::-webkit-scrollbar-thumb {
  background: #9ca3af;
  border-radius: 3px;
}

.like-buttons-container .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/*
 Modal Styles - Enhanced for Search UI */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  margin: 20px;
  padding: 0;
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4), 0 0 1px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.modal-header {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  padding: 16px 24px;
  color: white;
  position: relative;
  overflow: hidden;
}

.modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.modal-header h2 {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  color: white;
}

.modal-header p {
  margin: 0;
  opacity: 0.95;
  font-size: 15px;
  position: relative;
  z-index: 1;
}

.modal-body {
  padding: 32px;
  overflow-y: auto;
  max-height: calc(90vh - 200px);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 28px;
  font-weight: 300;
  color: white;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg) scale(1.1);
}

/* Search Section Styling */
.search-section {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.search-section h3 {
  margin: 0 0 16px 0;
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: #e3f2fd;
  color: #1976d2;
}

.search-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .form-row.two-col {
    grid-template-columns: 1fr 1fr;
  }

  .form-row.single-col {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  /* Prevents flex items from shrinking below content size */
}

.form-field label {
  font-weight: 500;
  font-size: 14px;
  color: #374151;
}

.form-field input,
.form-field select {
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.2s ease;
  background: white;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Ensure DOB field maintains proper structure */
#dobField {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

#dobField input {
  width: 100%;
  box-sizing: border-box;
}

.form-field input::placeholder {
  color: #9ca3af;
}

.search-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.search-actions .btn {
  flex: 1;
  min-width: 140px;
  justify-content: center;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
}

/* API Key Display */
.api-key-display {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #3b82f6;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.api-key-display strong {
  display: block;
  margin-bottom: 8px;
  color: #1e40af;
  font-size: 14px;
  font-weight: 600;
}

.api-key-display code {
  background: white;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  display: block;
  word-break: break-all;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.api-key-display p {
  margin: 12px 0 0 0;
  font-size: 13px;
  color: #6b7280;
}

/* Results Display */
.results-section {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.results-section h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
}

.results-meta {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
}

.results-section pre {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal responsive adjustments */
@media (max-width: 768px) {
  .modal-content {
    margin: 10px;
    width: 95%;
    max-height: 95vh;
    border-radius: 16px;
  }

  .modal-header {
    padding: 24px;
  }

  .modal-header h2 {
    font-size: 24px;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .search-section {
    padding: 20px;
  }

  .search-actions {
    flex-direction: column;
  }

  .search-actions .btn {
    width: 100%;
  }
}

/* Like buttons container styling */
.like-buttons-container {
  margin-top: 24px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.like-buttons-container h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 18px;
  color: #111;
}

.buttons-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  overflow-x: auto;
  padding-bottom: 8px;
}

.buttons-row::-webkit-scrollbar {
  height: 6px;
}

.buttons-row::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.buttons-row::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.buttons-row::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Entity Cards */
.entity-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.entity-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: #bfdbfe;
}

.entity-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.entity-name {
  font-weight: 700;
  font-size: 16px;
  color: #1e293b;
}

.entity-score {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.score-high {
  background: #dcfce7;
  color: #166534;
}

.score-medium {
  background: #fef9c3;
  color: #854d0e;
}

.score-low {
  background: #fee2e2;
  color: #991b1b;
}

.entity-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.risk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.risk-tag {
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.btn-details {
  width: 100%;
  background: white;
  border: 1px solid #e5e7eb;
  color: #3b82f6;
  padding: 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-details:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

/* Details View */
.details-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.details-header h3 {
  margin: 0;
  font-size: 18px;
}

.btn-back {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-back:hover {
  color: #111;
  text-decoration: underline;
}

.entity-details-card {
  background: white;
}

.detail-row.main-info {
  margin-bottom: 24px;
}

.detail-name {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}

.detail-id {
  font-family: monospace;
  font-size: 13px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.detail-section {
  margin-bottom: 24px;
}

.detail-section h4 {
  font-size: 14px;
  text-transform: uppercase;
  color: #6b7280;
  letter-spacing: 0.5px;
  margin: 0 0 12px 0;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.detail-item label {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 2px;
}

.detail-item span {
  font-size: 14px;
  font-weight: 500;
  color: #111;
}

.aliases-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.alias-tag {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
}

.detail-summary {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  background: #f9fafb;
  padding: 16px;
  border-radius: 8px;
}

.raw-data-box {
  background: #1e293b;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 8px;
  font-size: 12px;
  overflow-x: auto;
  max-height: 300px;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  border-top-color: #3b82f6;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.no-results {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}

.no-results ul {
  display: inline-block;
  text-align: left;
  margin-top: 16px;
  font-size: 14px;
}

.error-message {
  background: #fee2e2;
  color: #991b1b;
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid #fecaca;
}

/* ============================================================================
   ENTITY CARD V2 - Viktor Bout Style
   ============================================================================ */

.entity-card-v2 {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.entity-card-v2:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.entity-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.entity-type-badge {
  background: #f3f4f6;
  color: #374151;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.entity-name-link {
  font-size: 16px;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
  text-decoration: underline;
  flex: 1;
}

.entity-name-link:hover {
  color: #1d4ed8;
}

.entity-info-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.info-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 14px;
}

.info-label {
  color: #6b7280;
  font-weight: 500;
}

.relevance-text {
  color: #059669;
  font-weight: 500;
}

.countries-list {
  color: #374151;
  line-height: 1.6;
}

.dob-info {
  color: #374151;
}

.match-status {
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 13px;
  display: inline-block;
}

.match-status.high-match {
  background: #d1fae5;
  color: #065f46;
}

.match-status.potential-match {
  background: #fef3c7;
  color: #92400e;
}

.risk-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.risk-badge {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.risk-badge.risk-admedia {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.risk-badge.risk-sanctions {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.risk-badge.risk-warnings {
  background: #fed7aa;
  color: #9a3412;
  border: 1px solid #fdba74;
}

.risk-badge.risk-pep {
  background: #ddd6fe;
  color: #5b21b6;
  border: 1px solid #c4b5fd;
}

.no-data {
  color: #9ca3af;
  font-size: 13px;
  font-style: italic;
}

.btn-view-details {
  width: 100%;
  padding: 10px 16px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-view-details:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
}

.btn-view-details:active {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .info-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .info-label {
    font-weight: 600;
    color: #374151;
  }
}