/* ==========================================================================
   AgenticProfessionals.Net - Component Styles
   Header, Navigation, Dropdown, Iframes, Cards & Footers
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header & Navigation (Exact Visual Match to Attached User Screenshot)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* Brand Logo / Text */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #334155; /* Refined slate tone as in screenshot */
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-logo:hover {
  color: #0f172a;
}

.brand-icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

/* Nav Menu Items */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #4b5563; /* Refined neutral gray */
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0.35rem;
  cursor: pointer;
  transition: color var(--transition-fast), background-color var(--transition-fast);
  text-decoration: none;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
}

.nav-link:hover,
.nav-link.active {
  color: #0f172a;
  font-weight: 600;
}

.nav-link.active:not(.nav-link-login)::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0.35rem;
  right: 0.35rem;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.nav-link-login {
  background-color: #f1f5f9;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid #cbd5e1;
  font-weight: 600;
  color: #1e293b;
  margin-left: 0.25rem;
}

.nav-link-login:hover {
  background-color: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-icon {
  font-size: 0.7rem;
  transition: transform var(--transition-fast);
  color: #64748b;
  margin-left: 0.15rem;
}

.dropdown-open .dropdown-icon,
.nav-item-dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.nav-item-dropdown {
  position: relative;
  padding-bottom: 6px;
  margin-bottom: -6px;
}

/* --------------------------------------------------------------------------
   Dropdown Menus & Tooltips
   -------------------------------------------------------------------------- */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 215px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 14px 30px -4px rgba(15, 23, 42, 0.12), 0 6px 12px -2px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
  padding: 0.4rem 0;
  z-index: 1100;
  animation: dropdownFade 0.15s ease-out;
}

/* Invisible hover bridge: seamlessly bridges gap between nav button and menu so mouse hover never drops */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
}

.dropdown-menu-end {
  left: auto;
  right: 0;
}

/* Open on tap or hover */
.dropdown-open .dropdown-menu,
.nav-item-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.6rem 1rem;
  color: #334155;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

.dropdown-item i {
  width: 18px;
  text-align: center;
  margin-right: 8px;
  font-size: 0.85rem;
}

.dropdown-item.bold-title {
  font-weight: 600;
  color: #0f172a;
}

.dropdown-item:hover {
  background-color: #f1f5f9;
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   Multi-Column Mega Dropdown (Resolution-Bazaar: RBZ-Harness & RBZ-Agents)
   -------------------------------------------------------------------------- */
.dropdown-mega-menu {
  min-width: 530px;
  padding: 0.75rem;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.mega-menu-col {
  display: flex;
  flex-direction: column;
  background-color: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  padding: 0.5rem 0.4rem;
}

.mega-col-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.55rem 0.45rem 0.55rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #334155;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 0.35rem;
}

.mega-col-header i {
  font-size: 0.85rem;
}

.mega-col-links {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dropdown-mega-menu .dropdown-item {
  display: flex;
  align-items: flex-start;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  white-space: normal;
  transition: all var(--transition-fast);
}

.dropdown-mega-menu .dropdown-item i {
  margin-top: 0.15rem;
  margin-right: 0.55rem;
  font-size: 0.95rem;
  width: 18px;
  flex-shrink: 0;
}

.mega-item-text {
  display: flex;
  flex-direction: column;
}

.mega-item-title {
  font-size: 0.845rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.25;
}

.mega-item-desc {
  font-size: 0.725rem;
  color: #64748b;
  line-height: 1.3;
  margin-top: 0.1rem;
}

.dropdown-mega-menu .dropdown-item:hover {
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.dropdown-mega-menu .dropdown-item:hover .mega-item-title {
  color: var(--primary);
}

.dropdown-mega-menu .dropdown-item:hover .mega-item-desc {
  color: #475569;
}

.dropdown-mega-menu .dropdown-item.active {
  background-color: #ffffff !important;
  box-shadow: 0 1px 4px rgba(30, 64, 175, 0.12);
}

.dropdown-mega-menu .dropdown-item.active .mega-item-title {
  color: #1e40af !important;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Home View Styles
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 4.5rem 0 3.5rem 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  color: #0f172a;
  max-width: 860px;
  margin: 0 auto 1.25rem auto;
  line-height: 1.2;
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #475569;
  max-width: 720px;
  margin: 0 auto 2.25rem auto;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* Metric Counter Ticker */
.metrics-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.metric-item {
  padding: 0.5rem 1rem;
}

.metric-number {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

/* Feature Pillars Grid */
.pillars-section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1rem;
  color: #64748b;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.pillar-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: #eff6ff;
  color: #1e40af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #0f172a;
}

.pillar-desc {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* --------------------------------------------------------------------------
   Iframe Views (APNET-Chats & APNET-Forums)
   -------------------------------------------------------------------------- */
.iframe-view-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-height));
  background-color: #ffffff;
}

.iframe-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.75rem;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.iframe-toolbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.iframe-title {
  font-weight: 600;
  color: #0f172a;
}

.iframe-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  background-color: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #16a34a;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.iframe-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.iframe-wrapper {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #f8fafc;
}

.app-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* --------------------------------------------------------------------------
   Directory View (APNET-Listing with Leaflet Map)
   -------------------------------------------------------------------------- */
.directory-container {
  display: flex;
  height: calc(100vh - var(--header-height));
  overflow: hidden;
  background-color: #ffffff;
}

.directory-sidebar {
  width: 440px;
  min-width: 380px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-color);
  background-color: #ffffff;
  z-index: 10;
}

.directory-search-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background-color: #ffffff;
}

.search-input-group {
  position: relative;
  margin-bottom: 0.75rem;
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.875rem;
}

.search-input {
  width: 100%;
  padding: 0.625rem 0.875rem 0.625rem 2.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  background-color: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.search-input:focus {
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.filter-row {
  display: flex;
  gap: 0.5rem;
}

.filter-select {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: #334155;
  background-color: #ffffff;
  outline: none;
  cursor: pointer;
}

.filter-select:focus {
  border-color: var(--primary);
}

.directory-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.25rem;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8125rem;
  color: #64748b;
}

.directory-results-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.professional-card {
  padding: 1.1rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.professional-card:hover,
.professional-card.selected {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.08);
  transform: translateY(-1px);
}

.professional-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.professional-name {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.professional-designation {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.designation-ip {
  background-color: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.designation-rv {
  background-color: #f0fdfa;
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.designation-counsel {
  background-color: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.professional-reg {
  font-size: 0.75rem;
  color: #64748b;
  font-family: var(--font-mono);
  margin-bottom: 0.4rem;
}

.professional-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: #475569;
}

.directory-map-container {
  flex: 1;
  height: 100%;
  position: relative;
  background-color: #f1f5f9;
}

#leaflet-map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Vaults, Agents & Models Catalog Pages
   -------------------------------------------------------------------------- */
.catalog-page {
  padding: 3rem 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.catalog-card {
  padding: 1.75rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}

.catalog-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.catalog-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.catalog-card-desc {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}

.catalog-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #64748b;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

/* --------------------------------------------------------------------------
   Footer
/* --------------------------------------------------------------------------
   Agent Filter Tabs
   -------------------------------------------------------------------------- */
.agent-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
  padding: 0.35rem;
  background: #f1f5f9;
  border-radius: var(--radius-md);
  width: fit-content;
}

.agent-filter-btn {
  padding: 0.5rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.agent-filter-btn:hover {
  color: var(--text-primary);
}

.agent-filter-btn.active {
  background: #ffffff;
  color: var(--primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0 1.75rem 0;
  margin-top: auto;
}

body.view-fullscreen-active .site-footer {
  display: none !important;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.footer-link:hover {
  color: var(--primary);
  background: #eff6ff;
  border-color: #bfdbfe;
  transform: translateY(-1px);
}

.footer-link-whatsapp:hover {
  color: #15803d;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.footer-link-msme:hover {
  color: #0f766e;
  background: #f0fdfa;
  border-color: #99f6e4;
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.25rem;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: #64748b;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Login / Account Modal Dialog
   -------------------------------------------------------------------------- */
.app-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease-out;
}

.app-modal-backdrop.active {
  display: flex;
}

.app-modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  width: 100%;
  max-width: 620px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-header-corporate {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.modal-header-corporate h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}

.modal-close-icon {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.modal-close-icon:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.modal-tabs-nav {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  padding: 0 1rem;
}

.modal-tab-btn {
  padding: 0.85rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.modal-tab-btn:hover {
  color: var(--text-primary);
}

.modal-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
  background: #ffffff;
}

.modal-tab-pane {
  display: none;
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-tab-pane.active {
  display: block;
}

.license-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.profile-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-field .field-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   Home View: Personas, Download Gateway & Ecosystem Ladder
   ========================================================================== */

/* Personas Grid */
.personas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.persona-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.persona-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: #bfdbfe;
}

.persona-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.persona-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.persona-desc {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.persona-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.persona-tag {
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: #f1f5f9;
  color: #334155;
}

/* Download Gateway Banner */
.download-gateway-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 2.5rem;
  margin: 2.5rem 0;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.15);
  position: relative;
  overflow: hidden;
}

.download-gateway-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.gateway-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(234, 179, 8, 0.18);
  color: #fef08a;
  border: 1px solid rgba(234, 179, 8, 0.4);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.gateway-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.gateway-step-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
}

.gateway-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.gateway-step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.35rem;
}

.gateway-step-desc {
  font-size: 0.825rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

/* OS Download Buttons */
.os-download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.os-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.os-btn:hover {
  background: #f8fafc;
  border-color: #2563eb;
  color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.os-btn i {
  font-size: 1.25rem;
}

.os-btn-content {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.os-btn-label {
  font-size: 0.725rem;
  color: #64748b;
  font-weight: 500;
}

.os-btn-name {
  font-size: 0.875rem;
  font-weight: 700;
}

/* Ecosystem Ladder */
.ladder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.ladder-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
}

.ladder-card.featured {
  border-color: #2563eb;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.08);
}

.ladder-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -11px;
  left: 2rem;
  background: #2563eb;
  color: #ffffff;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.675rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.ladder-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: 0.75rem;
}

.ladder-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.ladder-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.ladder-desc {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.ladder-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-grow: 1;
}

.ladder-features li {
  font-size: 0.85rem;
  color: #334155;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.ladder-features li i {
  color: #10b981;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

/* Modal Form Specifics */
.modal-form-group {
  margin-bottom: 1rem;
}

.modal-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}

.modal-form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  transition: border-color 0.15s ease;
}

.modal-form-control:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* ==========================================================================
   Wireframe Restructured Header: Two-Line Nav & 3-Column Mega Menus
   ========================================================================== */

/* Brand Identity Block */
.brand-block-wireframe {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
  gap: 1px;
}

.brand-main-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.015em;
  text-decoration: none;
  display: inline-block;
  line-height: 1.15;
}

.brand-main-title:hover {
  color: #2563eb;
}

.brand-sub-url {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  margin-top: 1px;
}

.brand-url-link {
  color: #0284c7;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.brand-url-link:hover {
  color: #0369a1;
}

.brand-url-sep {
  color: #94a3b8;
  font-size: 0.72rem;
  user-select: none;
}

/* Two-Line Nav Links */
.nav-link-wireframe {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1.05;
  gap: 0;
  transition: all 0.15s ease;
}

.nav-link-wireframe .nav-title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.nav-link-wireframe .nav-subtitle-row {
  font-size: 0.73rem;
  font-weight: 500;
  color: #64748b;
  letter-spacing: normal;
  line-height: 1.1;
  margin-top: 0px;
}

.nav-link-wireframe:hover,
.nav-link-wireframe.active {
  background-color: #f1f5f9;
}

.nav-link-wireframe:hover .nav-title-row,
.nav-link-wireframe.active .nav-title-row {
  color: #2563eb;
}

.nav-link-wireframe:hover .nav-subtitle-row,
.nav-link-wireframe.active .nav-subtitle-row {
  color: #1d4ed8;
}

.nav-link-wireframe .dropdown-icon {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-left: 0.2rem;
  transition: transform 0.2s ease;
}

.nav-item-dropdown.dropdown-open .nav-link-wireframe .dropdown-icon {
  transform: rotate(180deg);
  color: #2563eb;
}

.nav-link-wireframe .nav-external-icon {
  font-size: 0.65rem;
  color: #94a3b8;
  margin-left: 0.25rem;
  vertical-align: middle;
  transition: color 0.15s ease;
}

.nav-link-wireframe:hover .nav-external-icon {
  color: #2563eb;
}


/* 2-Column Mega Menu (Marketplace / rbaz) - Impressive Glass & Card Layout */
.mega-menu-2col {
  min-width: 550px;
  max-width: 590px;
  padding: 1.15rem 1.25rem 0.75rem 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.85);
  border-radius: 12px;
  box-shadow: 0 20px 42px -8px rgba(15, 23, 42, 0.16), 0 6px 16px -2px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
  left: -130px;
  position: absolute;
  overflow: hidden;
}

/* Elegant top accent bar */
.mega-menu-2col::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb 0%, #7c3aed 50%, #06b6d4 100%);
}

/* 3-Column Mega Menu (Agents / lexai: Models, Vaults, Agents) - 1 Inch Longer (820px) */
.mega-menu-3col {
  width: 820px;
  max-width: min(820px, calc(100vw - 32px));
  padding: 1.2rem 1.35rem 0.9rem 1.35rem;
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.85);
  border-radius: 12px;
  box-shadow: 0 20px 42px -8px rgba(15, 23, 42, 0.16), 0 6px 16px -2px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
  left: -330px;
  position: absolute;
  overflow: hidden;
  box-sizing: border-box;
}

.mega-menu-3col::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed 0%, #2563eb 50%, #059669 100%);
}

.mega-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.mega-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

/* 3-column items inherit exact Marketplace card styling with spacious layout */
.mega-menu-3col .mega-item-wireframe {
  padding: 0.5rem 0.6rem;
  gap: 0.6rem;
  border-radius: 8px;
}

.mega-menu-3col .mega-item-icon-box {
  width: 32px;
  height: 32px;
  min-width: 32px;
  font-size: 0.85rem;
  border-radius: 7px;
}

.mega-menu-3col .mega-item-wireframe-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
}

.mega-menu-3col .mega-item-wireframe-desc {
  font-size: 0.71rem;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mega-menu-3col .mega-col-wireframe-header {
  padding-bottom: 0.55rem;
  margin-bottom: 0.65rem;
  border-bottom: 1.5px solid #e2e8f0;
}

.mega-menu-3col .mega-col-wireframe-title {
  font-size: 0.80rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mega-menu-3col .mega-col-icon-pill {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 0.68rem;
}

.mega-col-wireframe {
  display: flex;
  flex-direction: column;
}

.mega-col-wireframe-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.55rem;
  margin-bottom: 0.65rem;
  border-bottom: 1.5px solid #e2e8f0;
}

.mega-col-header-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.mega-col-icon-pill {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
}

.pill-blue {
  background-color: #eff6ff;
  color: #2563eb;
}

.pill-emerald {
  background-color: #ecfdf5;
  color: #059669;
}

.pill-purple {
  background-color: #f5f3ff;
  color: #7c3aed;
}

.pill-amber {
  background-color: #fffbeb;
  color: #d97706;
}

.icon-emerald {
  background-color: #ecfdf5;
  color: #059669;
  border: 1px solid #d1fae5;
}

.mega-col-wireframe-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mega-col-badge {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  background-color: #f1f5f9;
  color: #475569;
}

.mega-col-wireframe-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mega-item-wireframe {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.mega-item-wireframe:hover {
  background-color: #f8fafc;
  border-color: #e2e8f0;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.mega-item-icon-box {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: transform 0.18s ease;
}

.mega-item-wireframe:hover .mega-item-icon-box {
  transform: scale(1.08);
}

.icon-blue {
  background-color: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
}

.icon-purple {
  background-color: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ede9fe;
}

.icon-teal {
  background-color: #f0fdfa;
  color: #0d9488;
  border: 1px solid #ccfbf1;
}

.icon-sky {
  background-color: #f0f9ff;
  color: #0284c7;
  border: 1px solid #e0f2fe;
}

.icon-amber {
  background-color: #fffbeb;
  color: #d97706;
  border: 1px solid #fef3c7;
}

.icon-rose {
  background-color: #fff1f2;
  color: #e11d48;
  border: 1px solid #ffe4e6;
}

.mega-item-text-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.mega-item-wireframe-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.15s ease;
}

.mega-item-wireframe:hover .mega-item-wireframe-name {
  color: #2563eb;
}

.mini-ext-icon {
  font-size: 0.65rem;
  color: #94a3b8;
}

.mega-item-wireframe-desc {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mega-item-arrow {
  font-size: 0.72rem;
  color: #2563eb;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.18s ease;
  margin-left: auto;
}

.mega-item-wireframe:hover .mega-item-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Mega Menu Footer Banner */
.mega-menu-footer {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
}

.mega-footer-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #64748b;
  font-weight: 500;
}

.mega-footer-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.mega-footer-text {
  font-size: 0.72rem;
  letter-spacing: -0.01em;
}

.mega-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  font-size: 0.74rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.mega-footer-link:hover {
  background-color: #eff6ff;
  color: #1d4ed8;
}

/* Directory Wireframe Dropdown Box (Exact visual match to sketch) */
.dropdown-wireframe-box {
  min-width: 175px;
  padding: 0.45rem;
  background: #ffffff;
  border: 1.5px solid #1e293b;
  border-radius: 6px;
  box-shadow: 0 14px 30px -4px rgba(15, 23, 42, 0.16);
}

.dropdown-wireframe-item {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.25;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.dropdown-wireframe-item:hover,
.dropdown-wireframe-item.active {
  background-color: #f1f5f9;
  color: #2563eb;
}

/* Nav Icon Button & Home Link */
.nav-icon-wireframe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0.35rem 0.55rem;
  height: 38px;
  min-width: 38px;
  border-radius: 6px;
  cursor: pointer;
  color: #1e293b;
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1;
}

.nav-home-icon {
  font-size: 1.05rem;
  color: #334155;
  transition: color 0.15s ease, transform 0.15s ease;
}

.nav-icon-wireframe .nav-v-svg {
  display: block;
  stroke: #1e293b;
  transition: transform 0.2s ease, stroke 0.15s ease;
}

.nav-icon-wireframe:hover,
.nav-icon-wireframe.active,
.nav-item-dropdown.dropdown-open .nav-icon-wireframe {
  background-color: #f1f5f9;
}

.nav-icon-wireframe:hover .nav-home-icon,
.nav-icon-wireframe.active .nav-home-icon {
  color: #2563eb;
  transform: scale(1.08);
}

.nav-icon-wireframe:hover .nav-v-svg,
.nav-icon-wireframe.active .nav-v-svg,
.nav-item-dropdown.dropdown-open .nav-icon-wireframe .nav-v-svg {
  stroke: #2563eb;
}

.nav-item-dropdown.dropdown-open .nav-icon-wireframe .nav-v-svg {
  transform: rotate(180deg);
}





