/* ══════════════════════════════════════════════════════════════════
   SUKHEMEVE™ — SELLER FUNDAMENTAL ANALYSIS SECTION
   Institutional Equity-Style Due Diligence & Estate Moat Research
   ══════════════════════════════════════════════════════════════════ */

#fundamentals {
  background: radial-gradient(circle at 50% 0%, #2a1408 0%, #150a04 80%);
  color: var(--cr);
  padding: 80px 24px 90px 24px;
  position: relative;
  border-top: 1px solid rgba(212, 168, 67, 0.2);
  border-bottom: 1px solid rgba(212, 168, 67, 0.2);
}

.fundamentals-container {
  max-width: 1320px;
  margin: 0 auto;
}

/* Section Header */
.fund-hdr {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 40px auto;
}

.fund-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f5cf6d;
  background: rgba(212, 168, 67, 0.12);
  border: 1px solid rgba(212, 168, 67, 0.35);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.fund-hdr h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.fund-hdr p {
  font-size: 1rem;
  color: #c9ab90;
  line-height: 1.65;
  margin: 0 auto;
}

/* Market Terminal CTA Banner */
.fund-terminal-banner {
  background: linear-gradient(135deg, rgba(47, 25, 12, 0.8), rgba(27, 13, 6, 0.9));
  border: 1px solid rgba(212, 168, 67, 0.35);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.fund-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fund-live-pulse {
  width: 10px;
  height: 10px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: fundPulseGlow 1.5s infinite;
}

@keyframes fundPulseGlow {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 16px #22c55e; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.fund-banner-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.fund-banner-desc {
  font-size: 0.82rem;
  color: #a88970;
}

.fund-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #d4a843, #b88628);
  color: #1a0a03;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(212, 168, 67, 0.3);
}

.fund-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 168, 67, 0.5);
}

/* Category Filter Chips */
.fund-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 30px;
  scrollbar-width: none;
}

.fund-filter-bar::-webkit-scrollbar {
  display: none;
}

.fund-chip {
  background: rgba(47, 25, 12, 0.8);
  border: 1px solid rgba(77, 43, 22, 0.9);
  color: #c9ab90;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.fund-chip:hover {
  border-color: rgba(212, 168, 67, 0.6);
  color: #ffffff;
  background: rgba(60, 32, 16, 0.9);
}

.fund-chip.active {
  background: linear-gradient(135deg, #d4a843, #ab7c1c);
  color: #140a04;
  border-color: #d4a843;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(212, 168, 67, 0.35);
}

/* Screener Cards Grid */
.sellers-fundamental-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.seller-fund-card {
  background: linear-gradient(160deg, #271409, #1e0f06);
  border: 1px solid #4d2b16;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.seller-fund-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d4a843, #c8845a);
}

.seller-fund-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 168, 67, 0.6);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 168, 67, 0.15);
}

/* Card Header */
.seller-fund-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.seller-fund-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3a1a08, #1a0a03);
  border: 2px solid #d4a843;
  color: #f5cf6d;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.seller-fund-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.seller-verified-shield {
  color: #38bdf8;
  font-size: 0.92rem;
}

.seller-fund-estate-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: #f5cf6d;
}

.seller-fund-location {
  font-size: 0.75rem;
  color: #a88970;
  margin-top: 2px;
}

/* Tagline Quote */
.seller-fund-tagline {
  font-size: 0.86rem;
  color: #c9ab90;
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.45;
  border-left: 2px solid rgba(212, 168, 67, 0.5);
  padding-left: 10px;
}

/* Estate Moat Tag */
.seller-fund-moat-snippet {
  background: rgba(212, 168, 67, 0.07);
  border: 1px dashed rgba(212, 168, 67, 0.3);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #f0e0c8;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Fundamental Ratios Matrix */
.seller-fund-ratios {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  background: rgba(18, 9, 3, 0.75);
  border: 1px solid #4d2b16;
  border-radius: 10px;
  padding: 12px 8px;
  margin-bottom: 18px;
}

.fund-ratio-box {
  text-align: center;
}

.fund-ratio-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #9b7a60;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.fund-ratio-val {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.fund-ratio-val.green {
  color: #22c55e;
}

.fund-ratio-val.cyan {
  color: #38bdf8;
}

.fund-ratio-val.gold {
  color: #f5cf6d;
}

.fund-ratio-sub {
  font-size: 0.65rem;
  color: #8b6e56;
  margin-top: 2px;
}

/* Card Footer */
.seller-fund-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #4d2b16;
  padding-top: 14px;
  margin-top: auto;
  flex-wrap: wrap;
  gap: 8px;
}

.fund-fssai-pill {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.72rem;
  color: #9b7a60;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.fund-actions-flex {
  display: flex;
  gap: 8px;
}

.btn-fund-dive {
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.22), rgba(212, 168, 67, 0.08));
  border: 1px solid #d4a843;
  color: #f5cf6d;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-fund-dive:hover {
  background: #d4a843;
  color: #140a04;
  box-shadow: 0 0 12px rgba(212, 168, 67, 0.4);
}

.btn-fund-shop {
  background: linear-gradient(135deg, #c8845a, #9b5d2e);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-fund-shop:hover {
  background: linear-gradient(135deg, #d8946a, #ab6d3e);
  box-shadow: 0 0 12px rgba(200, 132, 90, 0.4);
}

/* ──────────────────────────────────────────────────────────────────
   Interactive Modal Window (Exact Port from Market Terminal)
   ────────────────────────────────────────────────────────────────── */
.fundamental-modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 4, 2, 0.88);
  backdrop-filter: blur(8px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

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

.fundamental-modal-window {
  background: #271409;
  border: 1px solid rgba(212, 168, 67, 0.5);
  border-radius: 16px;
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(212, 168, 67, 0.25);
  animation: fundModalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fundModalScaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header-banner {
  background: linear-gradient(145deg, #2f190c, #140a04);
  border-bottom: 1px solid #4d2b16;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.fund-modal-badge {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.25), rgba(212, 168, 67, 0.08));
  border: 1px solid #d4a843;
  color: #f5cf6d;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 6px;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #4d2b16;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
}

.modal-body-content {
  padding: 24px;
}

/* Modal Inner Table */
.fund-products-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.fund-products-table th {
  background: #1e0f06;
  color: #a88970;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 10px 14px;
  border-bottom: 1px solid #4d2b16;
  text-align: left;
}

.fund-products-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(77, 43, 22, 0.5);
  color: #fdf5ec;
}

.fund-spread-pill {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.fund-spread-pill.below {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #22c55e;
}

.fund-spread-pill.above {
  background: rgba(212, 168, 67, 0.15);
  border: 1px solid rgba(212, 168, 67, 0.35);
  color: #f5cf6d;
}

/* Mobile Responsiveness */
.modal-body-content {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fund-products-table {
  min-width: 500px;
}

@media (max-width: 768px) {
  #fundamentals {
    padding: 60px 16px 70px 16px;
  }
  
  .fund-hdr h2 {
    font-size: 1.85rem;
  }

  .fund-terminal-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .fund-banner-btn {
    justify-content: center;
  }

  .sellers-fundamental-grid {
    grid-template-columns: 1fr;
  }

  .modal-body-content {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  #fundamentals {
    padding: 50px 12px 60px 12px;
  }

  .fund-tag {
    font-size: 0.66rem;
    padding: 4px 10px;
  }

  .fund-hdr h2 {
    font-size: 1.6rem;
  }

  .fund-hdr p {
    font-size: 0.88rem;
  }

  .fund-terminal-banner {
    padding: 12px 14px;
  }

  .fund-banner-title {
    font-size: 0.85rem;
  }

  .fund-banner-desc {
    font-size: 0.76rem;
  }

  .seller-fund-card {
    padding: 18px 14px;
  }

  .fundamental-modal-backdrop {
    padding: 8px;
  }

  .fundamental-modal-window {
    border-radius: 12px;
    max-height: 94vh;
  }

  .modal-header-banner {
    padding: 14px 16px;
  }

  .modal-body-content {
    padding: 12px;
  }

  .fund-terminal-member-gate {
    padding: 24px 14px;
    margin-top: 24px;
    border-radius: 12px;
  }

  .fund-gate-perks {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .fund-gate-perks span {
    text-align: center;
    font-size: 0.78rem;
  }

  .btn-terminal-unlock-lg {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.88rem;
  }
}

/* ══════════════════════════════════════════════════════════════════
   INSTITUTIONAL MEMBER DUE DILIGENCE GATE STYLES
   ══════════════════════════════════════════════════════════════════ */

.seller-fund-card--gated {
  position: relative;
  overflow: hidden;
}

.seller-fund-card--gated > div {
  filter: blur(4px) grayscale(0.2);
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

.seller-fund-card--gated .seller-fund-footer {
  filter: blur(2px);
  opacity: 0.6;
}

.fund-card-gate-curtain {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(18, 8, 3, 0.75);
  backdrop-filter: blur(3px);
  padding: 16px;
  text-align: center;
}

.fund-gate-mini-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 10px rgba(212, 168, 67, 0.4));
}

.fund-gate-mini-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f5cf6d;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.btn-fund-gate-unlock {
  background: #1a0c04 !important;
  color: #ffffff !important;
  border: 1.5px solid #d4a843 !important;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-fund-gate-unlock:hover {
  background: #2a1408 !important;
  color: #f5cf6d !important;
  border-color: #f5cf6d !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

/* Big Terminal Member Gate Banner */
.fund-terminal-member-gate {
  position: relative;
  margin-top: 36px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 0%, #2f190c 0%, #170903 80%);
  border: 1.5px solid rgba(212, 168, 67, 0.45);
  padding: 36px 30px;
  text-align: center;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(212, 168, 67, 0.08);
  overflow: hidden;
}

.fund-gate-glow {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 100px;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.fund-gate-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.fund-gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #f5cf6d;
  background: rgba(212, 168, 67, 0.15);
  border: 1px solid rgba(212, 168, 67, 0.35);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.fund-gate-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.25;
}

.fund-gate-content p {
  font-size: 0.95rem;
  color: #c9ab90;
  line-height: 1.65;
  margin-bottom: 22px;
}

.fund-gate-perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-bottom: 28px;
}

.fund-gate-perks span {
  font-size: 0.84rem;
  color: #fdf5ec;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 168, 67, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 500;
}

.fund-gate-action-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-terminal-unlock-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f5cf6d 0%, #d4a843 60%, #c49632 100%);
  color: #1a0f07 !important;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 13px 32px;
  border-radius: 8px;
  text-decoration: none !important;
  box-shadow: 0 6px 24px rgba(212, 168, 67, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-terminal-unlock-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(212, 168, 67, 0.65);
}

.btn-terminal-login-link {
  font-size: 0.85rem;
  color: rgba(253, 245, 236, 0.7);
  text-decoration: underline;
  transition: color 0.2s;
}

.btn-terminal-login-link:hover {
  color: #f5cf6d;
}

/* ── Mobile Landscape Orientation Responsiveness ── */
@media (orientation: landscape) and (max-height: 520px) {
  .fundamental-modal-backdrop {
    padding: 6px;
  }
  .fundamental-modal-window {
    max-height: 96vh;
    border-radius: 10px;
  }
  .modal-header-banner {
    padding: 10px 14px;
  }
  .modal-body-content {
    padding: 10px 14px;
    max-height: calc(96vh - 65px);
    overflow-y: auto;
  }
  .fund-metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
}


