/* ================= IPO SECTION ================= */

.ipo-section {
  background: #ffffff;
  padding: 22px;
  border-radius: 12px;
  margin-top: 25px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.ipo-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #111;
}

.ipo-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
}

/* ================= TABLE WRAPPER ================= */

.ipo-table-wrapper {
  border-radius: 10px;
  overflow-x: auto;
  border: 1px solid #e5e7eb;
}

/* ================= TABLE ================= */

.ipo-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  background: #fff;
}

.ipo-table thead th {
  background: linear-gradient(180deg, #f8fafc, #eef3f8);
  color: #111827;
  font-weight: 600;
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.ipo-table tbody td {
  padding: 11px 10px;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
  color: #374151;
  white-space: nowrap;
}

/* ================= ROW HOVER ================= */

.ipo-table tbody tr {
  transition: background 0.25s ease;
}

.ipo-table tbody tr:hover {
  background: #f9fbff;
}

/* ================= IPO NAME ================= */

.ipo-table a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.ipo-table a:hover {
  text-decoration: underline;
}

/* ================= STATUS BADGE ================= */

.ipo-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.ipo-status.hot {
  background: #ffe4e6;
  color: #b91c1c;
}

.ipo-status.normal {
  background: #ecfeff;
  color: #0369a1;
}

/* ================= INLINE DETAILS ROW ================= */

.ipo-detail-row td {
  padding: 0 !important;
  background: #fafafa;
}

/* ================= INLINE DETAILS BOX ================= */

.ipo-inline-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 22px;

  background: linear-gradient(135deg, #fff7e6, #ffffff);
  padding: 18px 22px;
  font-size: 13.5px;

  border-left: 5px solid #f59e0b;
  border-radius: 8px;

  max-width: 540px;
  margin: 12px 0 12px 18px;

  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.ipo-inline-details p {
  margin: 4px 0;
  line-height: 1.5;
  color: #374151;
}

.ipo-inline-details p b {
  color: #111827;
}

/* ================= DISCLAIMER ================= */

.ipo-disclaimer {
  margin-top: 14px;
  font-size: 12.5px;
  color: #92400e;
  background: #fff7ed;
  padding: 9px 12px;
  border-radius: 6px;
  border-left: 4px solid #fb923c;
}

/* ================= MOBILE RESPONSIVE ================= */

@media (max-width: 768px) {

  .ipo-table thead {
    display: none;
  }

  .ipo-table tbody tr {
    display: block;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 0;
  }

  .ipo-table tbody td {
    display: flex;
    justify-content: space-between;
    padding: 6px 12px;
    border: none;
  }

  .ipo-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #6b7280;
  }

  .ipo-inline-details {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 10px;
  }
}

/* ================= IPO HEADER HIGHLIGHT ================= */

.ipo-section {
  position: relative;
  background: #ffffff;
  padding: 28px 24px 24px;
  border-radius: 14px;
  margin-top: 30px;

  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.06);
}

/* Soft top highlight bar */
.ipo-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 6px;
  width: 100%;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(
    90deg,
    #ff9800,
    #ffb74d,
    #ffe0b2
  );
}

/* ================= TITLE ================= */

.ipo-section h2 {
  font-size: 23px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;

  display: flex;
  align-items: center;
  gap: 8px;
}

/* Emoji ko thoda soft look */
.ipo-section h2 span,
.ipo-section h2::first-letter {
  filter: saturate(0.9);
}

/* ================= SUBTITLE ================= */

.ipo-subtitle {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 18px;

  padding-left: 2px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .ipo-section {
    padding: 22px 16px;
  }

  .ipo-section h2 {
    font-size: 19px;
  }
}

.ipo-subtitle::after {
  content: "";
  display: block;
  margin-top: 10px;
  width: 60px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #ff9800, #ffd54f);
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #dc2626;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: #dc2626;
  border-radius: 50%;
  animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

#ipoUpdatedText {
  margin-left: 6px;
  font-size: 12px;
  color: #64748b;
}

.more-details-btn {
  margin-top: 10px;
  padding: 6px 14px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

.more-details-btn:hover {
  background: #1d4ed8;
}

.ipo-more-details {
  margin-top: 18px;
  background: #ffffff;
  padding: 22px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.financial-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin: 15px 0;
}

.financial-grid div {
  background: #f8fafc;
  padding: 12px;
  border-radius: 8px;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.pros-cons ul {
  padding-left: 18px;
}

.apply-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 18px;
  background: #0f9d58;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

body {
  font-family: system-ui, sans-serif;
  background: #f8fafc;
}

.ipo-detail-page {
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
}

h1 {
  font-size: 28px;
  margin-bottom: 15px;
}

.card {
  background: #fff;
  padding: 18px;
  border-radius: 10px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.apply-btn {
  display: inline-block;
  padding: 12px 22px;
  background: #0f9d58;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

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

/* ===============================
   IPO GMP SECTION – CLEAN UI
================================ */

.ipo-section {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 22px 16px;
  margin: 30px auto;
  max-width: 1200px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  position: relative;
}

/* top highlight line */
.ipo-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ff9800, #ffcc80);
  border-radius: 14px 14px 0 0;
}

/* heading */
.ipo-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

/* live indicator */
.live-indicator {
  font-size: 13px;
  font-weight: 600;
  color: #d32f2f;
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #e53935;
  border-radius: 50%;
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: .4; }
  100% { opacity: 1; }
}

/* subtitle */
.ipo-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
}

/* ===============================
   TABLE WRAPPER
================================ */

.ipo-table-wrapper {
  overflow-x: auto;
}

/* table */
.ipo-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

/* head */
.ipo-table thead th {
  background: #f3f6fb;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  padding: 14px 12px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

/* body */
.ipo-table tbody td {
  padding: 14px 12px;
  font-size: 14px;
  color: #111827;
  text-align: center;
  border-bottom: 1px solid #eef2f7;
  white-space: nowrap;
}

/* hover row */
.ipo-table tbody tr:hover {
  background: #f9fbff;
}

/* IPO name link */
.ipo-table a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.ipo-table a:hover {
  text-decoration: underline;
}

/* ===============================
   STATUS BADGES
================================ */

.ipo-status {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.ipo-status.hot {
  background: #ffe4e4;
  color: #c62828;
}

.ipo-status.normal {
  background: #e3f2fd;
  color: #0277bd;
}

/* ===============================
   DISCLAIMER
================================ */

.ipo-disclaimer {
  margin-top: 14px;
  background: #fff4e5;
  border-left: 4px solid #fb8c00;
  padding: 10px 14px;
  font-size: 13px;
  color: #6b4f1d;
  border-radius: 6px;
}

/* ===============================
   MOBILE
================================ */

@media (max-width: 768px) {
  .ipo-section {
    padding: 18px 14px;
  }

  .ipo-section h2 {
    font-size: 18px;
  }

  .ipo-table thead th,
  .ipo-table tbody td {
    padding: 10px 8px;
    font-size: 13px;
  }
}

/* ===============================
   INLINE IPO DETAILS – PREMIUM CARD
================================ */

.ipo-detail-row td {
  background: #fafcff;
  padding: 18px 16px;
}

/* container */
.ipo-inline-details {
  max-width: 520px;
  background: #fff8ed;
  border-left: 5px solid #ff9800;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  text-align: left;
}

/* grid layout */
.ipo-inline-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}

/* text */
.ipo-inline-details p {
  margin: 0;
  font-size: 13.5px;
  color: #2c2c2c;
  line-height: 1.5;
}

.ipo-inline-details b {
  color: #111827;
  font-weight: 600;
}

/* GMP trend highlight */
.ipo-inline-details p b:contains("GMP Trend") {
  color: #0d47a1;
}

/* Apply button */
.more-details-btn,
.ipo-inline-details .more-details-btn {
  grid-column: 1 / -1;
  margin-top: 10px;
  display: inline-block;
  background: linear-gradient(90deg, #2563eb, #1e40af);
  color: #fff;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  width: fit-content;
}

.more-details-btn:hover {
  opacity: 0.9;
}

/* mobile */
@media (max-width: 768px) {
  .ipo-inline-details {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

.gmp-trend-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
}

.gmp-point {
  background: #e3f2fd;
  color: #0d47a1;
  padding: 2px 6px;
  border-radius: 4px;
}

.gmp-arrow {
  color: #ff9800;
  font-size: 14px;
}

/* ================= IPO GMP SECTION ================= */

.ipo-section {
  background: linear-gradient(180deg, #eef7ff 0%, #ffffff 55%);
  border-radius: 18px;
  padding: 28px 24px 22px;
  margin: 30px auto;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

/* ---------- Title ---------- */
.ipo-section h2 {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Subtitle */
.ipo-subtitle {
  font-size: 15px;
  color: #475569;
  margin-bottom: 18px;
}

/* ---------- Live Indicator ---------- */
.live-indicator {
  font-size: 13px;
  color: #dc2626;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #dc2626;
  border-radius: 50%;
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(220,38,38,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(220,38,38,0); }
  100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}

/* ================= IPO TABLE ================= */

.ipo-table-wrapper {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5eff8;
}

.ipo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.ipo-table thead th {
  background: #f0f8ff;
  color: #0f172a;
  font-weight: 700;
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #dbeafe;
}

.ipo-table tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid #eef2f7;
  color: #1f2937;
  vertical-align: middle;
}

.ipo-table tbody tr:hover {
  background: #f8fbff;
}

/* IPO Name */
.ipo-table a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.ipo-table a:hover {
  text-decoration: underline;
}

/* ---------- Status Badge ---------- */
.ipo-status {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-block;
}

.ipo-status.hot {
  background: #fee2e2;
  color: #b91c1c;
}

.ipo-status.normal {
  background: #e0f2fe;
  color: #0369a1;
}

/* ================= INLINE DETAILS CARD ================= */

.ipo-detail-row td {
  background: #ffffff;
  padding: 0;
  border-bottom: none;
}

.ipo-inline-details {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  border-left: 5px solid #fb923c;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 12px 18px 18px;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);

  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
  row-gap: 10px;
}

.ipo-inline-details p {
  margin: 0;
  color: #1f2937;
  line-height: 1.5;
}

.ipo-inline-details b {
  color: #0f172a;
}

/* ================= GMP TREND MINI ================= */

.gmp-trend {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-weight: 600;
}

.gmp-trend span {
  background: #e0f2fe;
  color: #0369a1;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 13px;
}

/* ================= CTA BUTTONS ================= */

.more-details-btn {
  grid-column: 1 / -1;
  margin-top: 10px;
  display: inline-block;
  background: #2563eb;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
}

.more-details-btn:hover {
  background: #1e40af;
}

.zerodha-cta {
  grid-column: 1 / -1;
  margin-top: 6px;
  display: inline-block;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #ffffff;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  box-shadow: 0 6px 18px rgba(34,197,94,0.35);
}

.zerodha-cta:hover {
  background: linear-gradient(135deg, #15803d, #16a34a);
}

/* ================= DISCLAIMER ================= */

.ipo-disclaimer {
  margin-top: 18px;
  background: #fff7ed;
  border-left: 4px solid #fb923c;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: #7c2d12;
}

/* IPO table header spacing fix */
.ipo-table thead th {
  padding-left: 20px;   /* ← yahi main shift */
  padding-right: 12px;
  text-align: left;
}

.ipo-table thead th {
  text-align: center;
}

.ipo-table tbody td {
  text-align: center;
}

.ipo-table thead th:first-child,
.ipo-table tbody td:first-child {
  text-align: left;
  padding-left: 24px;
}

/* ================= STICKY IPO TABLE HEADER ================= */

.ipo-table-wrapper {
  max-height: 520px;          /* scroll area */
  overflow-y: auto;
  position: relative;
}

/* Sticky header */
.ipo-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;

  background: linear-gradient(180deg, #eef7ff, #f8fbff);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);

  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.ipo-table thead th {
  border-bottom: 1px solid #dbeafe;
}
