
          :root {
  --primary-color: #6055cd;
  --secondary-color: #6055cd;
  --light-blue: #ceceff;
  --accent-color: #6055cd;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #818cf8;
  --primary-bg: #eef2ff;
  --secondary: #64748b;
  --success: #10b981;
  --info: #06b6d4;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #1e293b;
  --light: #f8fafc;
  --body-bg: #f8fafc;
  --card-bg: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s ease;
        }
        

        .card-header {
            font-weight: 600;
            padding: 0.75rem 1.25rem;
            border-bottom: none;
        }
        
        .table {
            margin-bottom: 0;
         
        }
           .table th {
            font-weight: 600;
            color: var(--primary-color);
            background-color: rgba(232, 240, 254, 0.5);
        }
 
        .table-striped tbody tr:nth-of-type(odd) {
            background-color: rgba(232, 240, 254, 0.3);
        }

        .strength-item, .weakness-item {
            padding: 1rem;
            margin-bottom: 1rem;
            border-radius: 8px;
            display: flex;
            align-items: flex-start;
        }
        
        /* .strength-item {
            background-color: rgba(40, 167, 69, 0.1); */
            /* border-left: 4px solid var(--success-color);
        }
        
        .weakness-item {
            background-color: rgba(220, 53, 69, 0.1);
            border-left: 4px solid var(--danger-color);
        } */
        
        .strength-item i, .weakness-item i {
            margin-right: 10px;
            margin-top: 3px;
        }
        
        .strength-item i {
            color: var(--success-color);
        }
        
        .weakness-item i {
            color: var(--danger-color);
        }
        .contact-info {
            padding: 1rem;
            background-color: white;
            border-radius: 8px;
            height: 100%;
      
        }
             .contact-info i {
            color: var(--primary-color);
            margin-right: 0.5rem;
            width: 20px;
        }
       .contact-info h5 {
            color: var(--primary-color);
            font-weight: 600;
            margin-bottom: 1rem;
        }
       .contact-info p {
            margin-bottom: 0.5rem;
        }
         .chart-container {
            height: 300px;
            margin-bottom: 1.5rem;
        }
        
        @media (max-width: 768px) {
           
             .chart-container {
                height: 250px;
            }
        }
        
/* DEPRECATED CSS:         .promoter-card { */
/* DEPRECATED CSS:             text-align: center; */
/* DEPRECATED CSS:             padding: 1.5rem; */
/* DEPRECATED CSS:         } */
        
        .promoter-avatar {
            width: 1.5rem;
            height: 1.5rem;
            border-radius: 50%;
            background-color: var(--light-blue);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 0.5rem;
            color: var(--primary-color);
            font-size: 1rem;
            font-weight: 700;
        }
        
/* DEPRECATED CSS:         .toggle-btn { */
/* DEPRECATED CSS:             background-color: var(--primary-color); */
/* DEPRECATED CSS:             color: white; */
/* DEPRECATED CSS:             border: none; */
/* DEPRECATED CSS:             padding: 0.5rem 1rem; */
/* DEPRECATED CSS:             border-radius: 5px; */
/* DEPRECATED CSS:             margin-bottom: 1rem; */
/* DEPRECATED CSS:             transition: background-color 0.3s ease; */
/* DEPRECATED CSS:         } */
        
/* DEPRECATED CSS:         .toggle-btn:hover { */
/* DEPRECATED CSS:             background-color: var(--secondary-color); */
/* DEPRECATED CSS:         } */
        
/* DEPRECATED CSS:         .hidden-content { */
/* DEPRECATED CSS:             display: none; */
/* DEPRECATED CSS:         }  */
      .num-dot {
            background-color: var(--light-blue);
            border-radius: 8px;
            text-align: center;
            font-weight: 600;
            color:#4a1ec6 !important ;
        }
        
       
        
        .note-text {
            font-size: 0.85rem;
            color: #6c757d;
            margin-top: 1rem;
        }
        
        .note-text ol {
            padding-left: 1.2rem;
        }
        
        .note-text li {
            margin-bottom: 0.5rem;
        }
      
        /* Premium Card */
.premium-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.premium-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.premium-card .card-header {
  background-color: transparent;
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.premium-card .card-header h5, .premium-card .card-header h2, .premium-card .card-header h3 {
  margin-bottom: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.premium-card .card-header h5 i, .premium-card .card-header h2 i, .premium-card .card-header h3 i {
  color: var(--primary);
}

.premium-card .card-body {
  padding: 1.5rem;
}
/* Detail List */
.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.detail-list li:last-child {
  border-bottom: none;
}

.detail-list li span:first-child {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.detail-list li span:last-child {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.875rem;
  text-align: right;
}

/* Definition list variant (IPO details — same layout as ul.detail-list li) */
.detail-list .detail-list__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.detail-list .detail-list__row:last-child {
  border-bottom: none;
}

.detail-list dt {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 400;
}

.detail-list dd {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.875rem;
  text-align: right;
}
.with-tooltip {
  position: relative;
}

.with-tooltip i {
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: help;
}
/* .subscription-status {
  margin-bottom: 1.5rem;
} */
/* .gradient-card {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--text-primary);
}

.gradient-card .card-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.gradient-card .card-header h5 {
  color: white;
}

.gradient-card .card-header h5 i {
  color: rgba(255, 255, 255, 0.8);
} */
/* .subscription-status {
  margin-bottom: 1.5rem;
} */

/* DEPRECATED CSS: .status-header { */
/* DEPRECATED CSS:   display: flex; */
/* DEPRECATED CSS:   justify-content: space-between; */
/* DEPRECATED CSS:   align-items: center; */
/* DEPRECATED CSS:   margin-bottom: 1.5rem; */
/* DEPRECATED CSS: } */

/* DEPRECATED CSS: .status-title { */
/* DEPRECATED CSS:   font-size: 0.875rem; */
/* DEPRECATED CSS:   opacity: 0.8; */
/* DEPRECATED CSS: } */

/* DEPRECATED CSS: .status-value { */
/* DEPRECATED CSS:   font-size: 1.5rem; */
/* DEPRECATED CSS:   font-weight: 700; */
/* DEPRECATED CSS: } */

.status-progress {
  margin-bottom: 1rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.custom-progress {
  height: 6px;
  background-color:#f2f4ff;
  border-radius: 3px;
  overflow: hidden;
}

.custom-progress .progress-bar {
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 3px;
}

/* DEPRECATED CSS: .status-footer { */
/* DEPRECATED CSS:   display: flex; */
/* DEPRECATED CSS:   justify-content: space-between; */
/* DEPRECATED CSS:   padding-top: 1.5rem; */
/* DEPRECATED CSS:   border-top: 1px solid rgba(255, 255, 255, 0.1); */
/* DEPRECATED CSS: } */

/* DEPRECATED CSS: .status-metric { */
/* DEPRECATED CSS:   text-align: center; */
/* DEPRECATED CSS: } */

/* DEPRECATED CSS: .status-metric .metric-value { */
  /* color: white; */
/* DEPRECATED CSS:   font-size: 1.25rem; */
/* DEPRECATED CSS:   font-weight: 700; */
/* DEPRECATED CSS:   margin-bottom: 0.25rem; */
/* DEPRECATED CSS: } */

/* DEPRECATED CSS: .status-metric .metric-label { */
  /* color: rgba(255, 255, 255, 0.7); */
/* DEPRECATED CSS:   font-size: 0.75rem; */
/* DEPRECATED CSS: } */
/* GMP Card */
.gmp-container {
  text-align: center;
}

.gmp-value {
  margin-bottom: 1.5rem;
}

.gmp-value .value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--success);
  display: block;
}

.gmp-value .percentage {
  font-size: 1rem;
  color: var(--success);
}

/* DEPRECATED CSS: .gmp-range { */
/* DEPRECATED CSS:   margin-bottom: 1.5rem; */
/* DEPRECATED CSS: } */

/* DEPRECATED CSS: .range-slider { */
/* DEPRECATED CSS:   height: 8px; */
/* DEPRECATED CSS:   background-color: var(--border-color); */
/* DEPRECATED CSS:   border-radius: 4px; */
/* DEPRECATED CSS:   position: relative; */
/* DEPRECATED CSS:   margin-bottom: 0.5rem; */
/* DEPRECATED CSS: } */

/* DEPRECATED CSS: .range-track { */
/* DEPRECATED CSS:   position: absolute; */
/* DEPRECATED CSS:   top: 0; */
/* DEPRECATED CSS:   left: 0; */
/* DEPRECATED CSS:   right: 0; */
/* DEPRECATED CSS:   bottom: 0; */
/* DEPRECATED CSS:   border-radius: 4px; */
/* DEPRECATED CSS: } */

.range-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #4f46e5 0%, #10b981 100%);
  border-radius: 4px;
}

.range-thumb {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  background-color: white;
  border: 2px solid var(--success);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow-sm);
}

/* DEPRECATED CSS: .range-labels { */
/* DEPRECATED CSS:   display: flex; */
/* DEPRECATED CSS:   justify-content: space-between; */
/* DEPRECATED CSS:   font-size: 0.75rem; */
/* DEPRECATED CSS:   color: var(--text-secondary); */
/* DEPRECATED CSS: } */

/* DEPRECATED CSS: .gmp-info { */
/* DEPRECATED CSS:   margin-bottom: 1rem; */
/* DEPRECATED CSS: } */

/* DEPRECATED CSS: .gmp-info p { */
/* DEPRECATED CSS:   margin-bottom: 0.25rem; */
/* DEPRECATED CSS:   font-size: 0.875rem; */
/* DEPRECATED CSS: } */

.gmp-updated {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}
.document-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background-color: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-right: 1rem;
}

/* Document Links */

  .document-link {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  /* border-bottom: 1px solid var(--border-color); */
}
  .document-link:last-child {
  border-bottom: none;
}
.document-link:hover {
  background-color: var(--body-bg);
  color: var(--primary);
}


.document-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background-color: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-right: 1rem;
}

.document-info {
  flex: 1;
}
 .document-info h6 {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}
.document-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0;
}



.document-action {
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: var(--transition);
}

.document-link:hover .document-action {
  color: var(--primary);
}

/* Premium Table */
.premium-table {
  margin-bottom: 0;
   
}
.premium-table thead {
  background-color: var(--body-bg);
}
.premium-table th {
  font-weight: 600;
  color: var(--text-secondary);
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}
.premium-table tbody tr:last-child td {
  border-bottom: none !important;
  padding-bottom: 10px !important;
}

/* Subscription extras: same visual system as premium-table above */
.subscription-table-extras {
  margin-top: 0;
  border-top: 1px solid var(--border-color);
}
.subscription-table-extras .premium-table tbody td {
  vertical-align: middle;
  border-color: var(--border-color);
}

.subscription-apps-extras-table .subscription-extras-label {
  background-color: var(--body-bg, #f8fafc);
  border-color: var(--border-color);
  color: var(--text-secondary, #64748b);
  width: 32%;
  max-width: 18rem;
}
.subscription-apps-extras-table .subscription-extras-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: rgba(96, 85, 205, 0.1);
  color: var(--primary, #6055cd);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.subscription-apps-extras-table .subscription-extras-value {
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
}
.subscription-apps-extras-table .subscription-extras-metric {
  font-variant-numeric: tabular-nums;
  background: #fff;
}
.subscription-apps-extras-table .subscription-extras-metric-total {
  color: var(--primary, #6055cd);
}.subscription-apps-extras-table tr.subscription-extras-apps-head {
  background: var(--body-bg, #f8fafc);

}
.subscription-apps-extras-table tr.subscription-extras-apps-head td {
  color: #6055cd;
  font-size: 0.72rem;
}
.subscription-apps-extras-table tr.subscription-extras-total-row .subscription-extras-value {
  background: #fff;
}

.highlight-row {
  background-color: rgba(79, 70, 229, 0.03);
}

.highlight-row:hover {
  background-color: rgba(79, 70, 229, 0.05);
}

.day-indicator {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background-color: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.75rem;
}

/* Subscription Chart */
.subscription-chart-container {
  height: 250px;
}

.subscription-highlights {
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}
  .highlight-item {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  background-color: var(--body-bg);
  border-radius: var(--radius);
}
  .highlight-label {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.5rem;
}
.highlight-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}








  /* .fade-box{
    opacity: 0;
    transition: opacity 0.5s ease;
    display: none;
   
  }
   .fade-box .visible {
      display: block;
      opacity: 1;
    } */

  .btn-primary-outline {
    color: var(--primary);
    border-color: var(--primary);
      
  }
  .btn-primary-outline:hover {
      background:  var(--primary);
      color: white;
    } 

  .premium-card .card-body a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    
  }
  .premium-card .card-body a:hover {
      text-decoration: underline;

    }
    .premium-card .card-body .faq-accordion {
      box-shadow: none;
      border-radius: 0 !important;
    background-color: #fff;
    border: none !important;
    }
    accordion-item ::first-child{
      border-top: none;
      
    }

    .offer-date {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.875rem;
      color: var(--text-secondary);
      font-weight: 500;
  }
  .company-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
}
.info-section {
  /* background: var(--light-blue); */
  
  padding: 0.5rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 1rem 1rem;
  border-radius: 10px;
  background: #f2f4ff;
  box-shadow: inset 4px 4px 9px #e7e9f3,
              inset -4px -4px 9px #fcfcff;
}

.info-icon {
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-top: 0.1rem;
}

.info-text {
  font-size: 0.85rem;
  color: var(--primary-color);
  margin: 0;
  line-height: 1.4;
}
.update-info {
  /* width: 80%; */
  /* margin-left: 10%; */
  text-align: center;
  /* background: linear-gradient(135deg, rgba(96, 85, 205, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%); */
  border-radius: 10px;
  padding: 0.5rem;

  /* border-left: 4px solid var(--primary); */
  font-size: 0.875rem;
  color: var(--text-muted);
  i{
    color: var(--primary);
    margin-right: 0.5rem;
  }
  
}

/* ── Detail page: unified header ────────────────────────────────────────── */

.ipo-detail-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px 14px;
}

/* Logo */
.ipo-detail-logo-wrap {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ipo-detail-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Name + date */
.ipo-detail-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ipo-detail-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  color: var(--text-base-color, #0f172a);
  white-space: normal;
  overflow-wrap: break-word;
}
.ipo-detail-date {
  font-size: 0.82rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}
.ipo-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
/* On desktop the badges live in the right column; hide inline version */
.ipo-detail-badges--inline  { display: none; }
.ipo-detail-badges--desktop { display: flex;  }

/* Right column */
.ipo-detail-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Price block */
.ipo-detail-price-block {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.ipo-detail-price-amount {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-base-color, #0f172a);
  line-height: 1;
}
.ipo-detail-price-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.ipo-detail-price-shares {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--primary, #4f46e5);
}
.ipo-detail-price-label {
  font-size: 0.72rem;
  color: #9ca3af;
  white-space: nowrap;
}

/* Action buttons */
.ipo-detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ipo-detail-actions .applyBtn {
  font-size: 0.875rem;
  padding: 0.4rem 1.1rem;
  border-radius: 8px;
}

/* ── Mobile ≤ 600px ──────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .ipo-detail-header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 14px 10px;
  }
  .ipo-detail-logo-wrap {
    width: 54px;
    height: 54px;
  }
  .ipo-detail-meta { flex: 1 1 calc(100% - 72px); }

  /* On mobile: badges appear inline under the name */
  .ipo-detail-badges--inline  { display: flex; }
  .ipo-detail-badges--desktop { display: none; }

  /* Right block goes full-width on its own row */
  .ipo-detail-right {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
    border-top: 1px solid #f1f5f9;
  }
  .ipo-detail-price-block { gap: 4px; }
  .ipo-detail-price-amount { font-size: 1.2rem; }
  .ipo-detail-actions { flex-wrap: nowrap; }
  .ipo-detail-actions .applyBtn { font-size: 0.8rem; padding: 0.35rem 0.9rem; }
  .ipo-detail-name { font-size: 1.05rem; }
}

/* ── Lead Manager vertical truncate + inline “Read more” ─────────────────── */
.lm-li { align-items: flex-start !important; }

/* Collapsed: clamped block + link-like control at end of last line */
.lm-text-wrap {
  position: relative;
  display: flex;
  align-items: flex-start;
  flex-direction: row;
  font-size: inherit;
  line-height: 1.55;
}

.lm-body {
  display: inline;
  line-height: 1.55;
  word-break: break-word;
  vertical-align: baseline;
}
.lm-body.lm-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #1e293b !important;
  /* room so last line doesn’t run under the control */
  box-sizing: border-box;
}

/* Text-link control (collapsed: sits on last line, visually after text) */
.lm-text-wrap .lm-toggle-btn {
  position: absolute;
  bottom: -20px;
  right: 0px;
  margin: 0;
  padding: 0 0 0 1.35rem;
  border: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    var(--bs-card-bg, #fff) 28%,
    var(--bs-card-bg, #fff) 100%
  );
  font: inherit;
  font-size: inherit;
  font-weight: 500;
  line-height: 1.55;
  color: var(--primary, #4f46e5) !important;
  text-underline-offset: 2px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  transition: color 0.15s ease;
}
/* Text-link control (collapsed: sits on last line, visually after text) */
.lm-text-wrap .lm-toggle-btn .lm-toggle-label{
  color: var(--primary, #4f46e5) !important;
}

/* Expanded: full text then “Show less” inline */
.lm-text-wrap.lm-expanded .lm-body {
  display: inline;
  padding-right: 0;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
}
/* .lm-text-wrap.lm-expanded .lm-toggle-btn {
  position: static;
  display: inline;
  margin: 0 0 0 0.25em;
  padding: 0;
  background: none;
  vertical-align: baseline;
} */

.lm-toggle-btn:hover {
  color: #4338ca;
}
.lm-toggle-btn:focus-visible {
  outline: none;
  border-radius: 2px;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.35);
}

/* ── Detail page: larger ipo-card header ────────────────────────────────── */
.top_card .ipo-card-header {
  gap: 20px;
  padding: 16px 20px;
  min-height: 82px;
}

.top_card .ipo-card-logo {
  width: 66px;
  height: 66px;
  border-radius: 10px;
  padding: 6px;
}

.top_card .ipo-card-name {
  font-size: 1.25rem;
  font-weight: 600;
  max-height: none;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.35;
}

.top_card .ipo-card-date {
  font-size: 0.875rem;
  margin-top: 2px;
}

.top_card .ipo-card-market-badge,
.top_card .ipo-card-status-badge {
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}

.top_card .ipo-card-status-badge i {
  font-size: 0.55rem;
}

@media (max-width: 768px) {
  .top_card .ipo-card-header {
    gap: 14px;
    padding: 12px 14px;
    min-height: auto;
  }
  .top_card .ipo-card-logo {
    width: 54px;
    height: 54px;
  }
  .top_card .ipo-card-name {
    font-size: 1.05rem;
  }
  .top_card .ipo-card-date {
    font-size: 0.8rem;
  }
  .top_card .ipo-card-market-badge,
  .top_card .ipo-card-status-badge {
    font-size: 0.6875rem;
    padding: 0.25rem 0.6rem;
  }
}

/* IPO top quick summary strip */
.ipo-top-summary-card {
  margin: 0 1rem 0.85rem;
  padding: 0.65rem;
  border-radius: 12px;
  border: 1px solid #e6e8ff;
  background: linear-gradient(140deg, #ffffff 0%, #f6f8ff 100%);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.08);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.ipo-summary-item {
  padding: 0.42rem 0.55rem;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #eef0ff;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.08rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ipo-summary-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(79, 70, 229, 0.12);
}

.ipo-summary-item .label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7c88a3;
  font-weight: 700;
  line-height: 1.1;
}

.ipo-summary-item .value {
  font-size: 0.8rem;
  color: #1f2a44;
  font-weight: 600;
  line-height: 1.2;
  word-break: break-word;
}

@media (max-width: 992px) {
  .ipo-top-summary-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .ipo-top-summary-card {
    margin: 0 0.75rem 0.75rem;
    padding: 0.55rem;
    border-radius: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .ipo-summary-item {
    min-height: 44px;
    padding: 0.38rem 0.42rem;
  }

  .ipo-summary-item .label {
    font-size: 0.58rem;
  }

  .ipo-summary-item .value {
    font-size: 0.74rem;
  }
}
.ipo-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.25rem 0 1rem;
}


.ipo-jump-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ipo-jump-nav a:hover {
  transform: translateY(-1px);
  border-color: rgba(79, 70, 229, 0.28);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

/* Moved from inline <style> in ipoDetailsPage.ejs */
.ps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #e8e5ff;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
}

.ps-metric {
  background: #fff;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  row-gap: 2px;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.18s ease, background 0.18s ease;
}

.ps-metric:hover {
  background: #f8f9ff;
  transform: translateY(-1px);
}

.ps-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0;
}

.ps-value {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.ps-value small {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.85;
}

.date_progress > div {
  flex: 0 0 calc(100% / var(--col, 4));
  width: calc(100% / var(--col, 4));
  overflow: hidden;
  padding-inline: 2px;
  padding-top: 35px;
  position: relative;
}

.icon {
  position: absolute;
  top: 5px;
  color: #888;
}

.end_icon1 {
  left: auto;
  right: 5px;
}

.start_icon1 {
  right: auto;
  left: 5px;
}

.bar1 {
  width: 100%;
  height: 7px;
  background-color: #eee;
}

.bar1.active1 {
  background-color: green;
}

.row > div:first-child .bar1 {
  border-radius: 100vw 0 0 100vw;
}

.row > div:last-child .bar1 {
  border-radius: 0 100vw 100vw 0;
}

.desc {
  color: #888;
}

main.main-container p {
  font-size: clamp(12px, 0.9em, 16px);
}

/* IPO detail page: consistent table typography */
main.main-container table,
main.main-container table th,
main.main-container table td {
  font-size: 14px;
}

#subscriptionModal.modal-content {
  background-color: #f2f4ff;
}

@media (max-width: 991.98px) {
  .ps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #subscriptionModal .modal-xl {
    max-width: 90%;
  }

  #subscriptionModal .modal-body {
    padding: 1rem 0;
  }

  #subscriptionModal .table {
    font-size: 0.875rem;
  }
}

@media (max-width: 768px) {
  #subscriptionModal .modal-xl {
    max-width: 100%;
    margin: 0;
  }

  #subscriptionModal .modal-body {
    padding: 1rem 0;
  }

  #subscriptionModal .table {
    font-size: 0.875rem;
  }
}

@media (max-width: 575.98px) {
  .ps-metric {
    padding: 12px 10px;
  }

  .ps-value {
    font-size: 0.95rem;
  }
}

/* top card  */

.ipo-top-card { position: relative; width: 100%; border-radius: 16px; border: 1px solid #e2e8f0; background: #fff; box-shadow: 0 4px 24px rgba(0,0,0,0.06); overflow: hidden; animation: floatIn .5s ease-out; }
.ipo-top-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.ipo-top-card .ipo-logo,
.ipo-top-card .image-container-ipo-top-card { width: auto; height: 56px;  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; color: #6352d2; transition: transform .2s; }
.ipo-top-card .image-container-ipo-top-card {  padding: 3px !important;background: #fff;border-radius: 6px;box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; color: #6352d2; transition: transform .2s; }
.ipo-top-card .ipo-logo { max-height: 50px; width: auto; object-fit: contain; }

.ipo-top-card .ipo-logo:hover  { transform: scale(1.1); }
.ipo-top-card .badge-board { background: rgba(99,82,210,0.1); color: #6352d2; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 50px; }
.ipo-top-card .badge-live { background: rgba(34,197,94,0.1); color: #16a34a; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 50px; display: inline-flex; align-items: center; gap: 5px; }
.ipo-top-card .badge-live .dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; animation: pulseDot 2s infinite; }
.ipo-top-card .badge-status { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 50px; display: inline-flex; align-items: center; gap: 5px; }
.ipo-top-card .price-value { font-size: 1.5rem; font-weight: 600; color: #22c55e; letter-spacing: -0.5px; }
.ipo-top-card .price-value span { font-size: 12px; font-weight: 400; color: #94a3b8; margin-left: 4px; }
.ipo-top-card .price-label { font-size: 11px; color: #94a3b8; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.ipo-top-card .btn-allotment { background: #6352d2; color: #fff; border: none; padding: 6px 16px; border-radius: 8px; font-size: 12px; font-weight: 600; transition: all .15s; box-shadow: 0 4px 12px rgba(99,82,210,0.3); text-decoration: none;  text-align: center; }
.ipo-top-card .btn-allotment:hover { filter: brightness(1.1); box-shadow: 0 6px 16px rgba(99,82,210,0.4); color: #fff; }
.ipo-top-card .btn-allotment:active { transform: scale(0.95); }
.ipo-top-card .desc-text { font-size: 12px; color: #64748b; line-height: 1.6; }
.ipo-top-card .facts-row {  border-top: 1px solid #e2e8f0; }
.ipo-top-card .fact-item { padding: 12px; border-right: 1px solid #e2e8f0; transition: background .2s; cursor: default; }
.ipo-top-card .fact-item:last-child { border-right: none; }
.ipo-top-card .fact-item:hover { background: rgba(99,82,210,0.04); }
.ipo-top-card .fact-label { font-size: 10px; font-weight: 600; color: #6352d2; text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 4px; margin-bottom: 2px; }
.ipo-top-card .fact-label i { transition: transform .2s; }
.ipo-top-card .fact-item:hover .fact-label i { transform: scale(1.15); }
.ipo-top-card .fact-value { font-size: 13px; font-weight: 700; color: #1e293b; }
.ipo-top-card dd.fact-value { margin: 0; }
.ipo-top-card .ipo-top-card-heading { font-size: min(calc(1em + 1.5vw), 24px); }
@keyframes pulseDot { 0%,100%{opacity:1} 50%{opacity:.4} }
@keyframes floatIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
.ipo-top-card .fact-anim-1 { animation: floatIn .4s ease-out 0ms both; }
.ipo-top-card .fact-anim-2 { animation: floatIn .4s ease-out 50ms both; }
.ipo-top-card .fact-anim-3 { animation: floatIn .4s ease-out 100ms both; }
.ipo-top-card .fact-anim-4 { animation: floatIn .4s ease-out 150ms both; }
.ipo-top-card .fact-anim-5 { animation: floatIn .4s ease-out 200ms both; }
@media (max-width: 575.98px) {
  .ipo-top-card .facts-row .row { flex-wrap: wrap; }
  .ipo-top-card .facts-row .fact-item {flex: 0 0 50%;max-width: 50%;border-bottom: 1px solid #e2e8f0;}
  .ipo-top-card .facts-row .fact-item:nth-child(2n) { border-right: none; }
}

/* valuations */
.v-group { padding: 14px 20px; border-bottom: 1px solid #e5e7ee; }
.v-group:last-of-type { border-bottom: none; }
.v-group-title { font-size: 13px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; display: flex; align-items: center; gap: 6px; }
.v-group-title i { font-size: 15px; color: #6055cd; }
.v-dl { margin: 0; }
.v-pair { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed rgba(0,0,0,.06); }
.v-pair:last-child { border-bottom: none; }
.v-dt { font-size: 14px; color: #64748b; margin: 0; flex: 0 0 auto; max-width: 55%; }
.v-dt abbr { cursor: help; border-bottom: 1px dotted rgba(100,116,139,.45); text-decoration: none; }
.v-dt abbr:focus { outline: 2px solid rgba(96,85,205,.35); outline-offset: 2px; border-radius: 2px;}
.v-dd { font-size: 14px;  color: #1e293b; margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.v-footer { padding: 10px 20px; border-top: 1px solid #e5e7ee; background: rgba(0,0,0,.015); }
.v-footer p { font-size: 11px; color: #94a3b8; text-align: center; margin: 0; letter-spacing: .03em; }
.ipo-valuation-tooltip { --bs-tooltip-bg: #ffffff; --bs-tooltip-color: #1e293b; }
.ipo-valuation-tooltip .tooltip-inner { border: 1px solid #e2e8f0; box-shadow: 0 4px 14px rgba(15,23,42,.08); }
.v-dl .v-dt{font-weight: 500 !important;}




:root {--card: #ffffff;--card-fg: #1e2236;--muted: #e4e6ed;--muted-fg: #7a7f94;--accent-time-line: #6055cd;--accent-fg-time-line: #ffffff;}

.timeline-track {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 4px;
}

.timeline-track .track-bg {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  height: 3px;
  border-radius: 3px;
  background: var(--muted);
}


.timeline-track .track-glow {
  position: absolute;
  right: -4px;
  top: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-time-line);
  box-shadow: 0 0 10px 2px rgba(96,85,205,.5);
  opacity: 0;
  animation: glowIn 0.6s ease 1.5s forwards;
}

@keyframes glowIn {
  0% { opacity: 0; }
  40% { opacity: 1; }
  70% { opacity: 0.6; }
  100% { opacity: 1; }
}

.timeline-track .timeline-steps-list {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  z-index: 2;
}

.timeline-track .step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 150px;
}

.timeline-track .step-node {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: default;
  position: relative;
  transform: scale(0) rotate(-90deg);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.timeline-track .step-node.done {
  background: var(--accent-time-line);
  color: var(--accent-fg-time-line);
  box-shadow: 0 0 0 3px rgba(26,171,138,.15);
}

.timeline-track .step-node.active {
  border: 2px solid var(--accent-time-line);
  background: var(--card);
  color: var(--accent-time-line);
  box-shadow: 0 0 0 3px rgba(26,171,138,.1);
}

.timeline-track .step-node.pending {
  border: 2px solid var(--muted);
  background: var(--card);
  color: var(--muted-fg);
}

.timeline-track .step-node:hover {
  transform: scale(1.2) rotate(5deg) !important;
}

.timeline-track .step-node:active {
  transform: scale(0.9) !important;
}

.timeline-track .step-node.active::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--accent-time-line);
  animation: ripple 1.8s ease-out infinite;
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

.timeline-track .step-tooltip {
  position: absolute;
  top: -30px;
  background: rgba(30,34,54,.9);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.timeline-track .step-node:hover .step-tooltip {
  opacity: 1;
}

.timeline-track .step-date {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(8px);
  margin-bottom: 0px;
}

.timeline-track .step-date.done-label { color: var(--card-fg); }
.timeline-track .step-date.active-label { color: var(--accent-time-line); }
.timeline-track .step-date.pending-label { color: var(--muted-fg); }

.timeline-track .step-label {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-fg);
  opacity: 0;
  margin-bottom: 2px;
}

.timeline-track .step-status {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0;
  margin-bottom: 5px;
}
.timeline-track .track-fill {position: absolute;left: 14px;top: 14px;height: 3px;border-radius: 3px;background: var(--accent-time-line);width: 0;animation: fillTrack 1s cubic-bezier(0.22,1,0.36,1) 0.6s forwards;}

.timeline-track .step-status.done-label { color: #16a34a; }
.timeline-track .step-status.active-label { color: var(--accent-time-line); }
.timeline-track .step-status.pending-label { color: var(--muted-fg); }

@keyframes nodeIn {
  to { transform: scale(1) rotate(0deg); }
}

@keyframes labelFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes labelFade {
  to { opacity: 1; }
}

@media (max-width: 400px) {
  .timeline-track .step {
    width: 100px;
    font-size: 10px;
  }
  .timeline-track .step-label {
    font-size: 12px;
    font-weight: 400;
  }
  .timeline-track .step-date {
    font-size: 12px;
    font-weight: 400;
  }
  .timeline-track .step-status {
    font-size: 10px;
  }
 
}
@media (max-width: 575.98px) {
  .Minimum-Investment-Container{
    width: 100% !important;
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    justify-content: space-between;
  }
}
