/* Investment products */
.products-page {
  flex: 1;
  padding: 36px 24px 64px;
  max-width: 1120px;
}
.products-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.products-top h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.btn-calendar,
.btn-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}
.btn-calendar:hover,
.btn-list:hover { background: #f9fafb; }
.cal-ico { font-size: 14px; }

.products-card {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}
.products-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid #f0f1f3;
  flex-wrap: wrap;
}
.products-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
}
.title-ico {
  color: #3b82f6;
  font-size: 14px;
}
.products-tabs {
  display: inline-flex;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.ptab {
  border: none;
  background: transparent;
  height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #4b5563;
  cursor: pointer;
}
.ptab.active {
  background: #111827;
  color: #fff;
}

.products-table-wrap { overflow-x: auto; }
.products-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}
.products-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f1f3;
  white-space: nowrap;
}
.products-table td {
  padding: 16px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
  color: #111827;
  vertical-align: middle;
}
.products-table tr:last-child td { border-bottom: none; }
.td-strong { font-weight: 700; }
.prod-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.prod-name { font-weight: 800; }
.prod-code {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}
.products-table .stock-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.status-pill.sub {
  color: #ea580c;
  background: #fff7ed;
  border: 1px solid #fdba74;
}
.status-pill.listing {
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #93c5fd;
}
.status-pill.on-dark.sub {
  color: #111827;
  background: #fbbf24;
  border-color: #fbbf24;
}
.status-pill.on-dark.listing {
  color: #111827;
  background: #93c5fd;
  border-color: #93c5fd;
}

.btn-detail {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}
.btn-detail:hover { background: #f9fafb; }

.products-empty {
  padding: 40px 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

.products-pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 18px 16px 22px;
}
.products-pager .pg {
  min-width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.products-pager .pg.active {
  background: #111827;
  color: #fff;
}
.products-pager .pg:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Detail */
.detail-hero {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 55%, #111827 100%);
  border-radius: 16px;
  padding: 28px 28px 22px;
  color: #fff;
  margin-bottom: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
}
.detail-hero-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.detail-hero-left {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
}
.detail-logo .stock-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  font-size: 20px;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.detail-code {
  font-size: 13px;
  color: #94a3b8;
}
.detail-name {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.detail-hero-right {
  text-align: right;
  margin-left: auto;
}
.detail-eval-label {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 6px;
}
.detail-eval-price {
  font-size: 34px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.btn-apply:hover { background: #f3f4f6; }
.apply-ico { font-size: 14px; }

.detail-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
}
.stat-box .k {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 8px;
}
.stat-box .v {
  font-size: 18px;
  font-weight: 800;
}

.detail-info-card {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 14px;
  padding: 22px 24px 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.detail-info-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}
.col-title {
  font-size: 13px;
  font-weight: 800;
  color: #6b7280;
  padding: 10px 0;
  border-bottom: 1px solid #eef0f3;
}
.info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
}
.info-row .k { color: #6b7280; }
.info-row .v { font-weight: 700; color: #111827; }
.status-active { color: #2563eb !important; }

.apply-panel {
  max-width: 460px;
  text-align: center;
  padding: 36px 28px 28px;
}
.apply-msg {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  word-break: keep-all;
  margin-bottom: 28px;
}
.apply-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  background: #111827;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  border: none;
}
.btn-dark:hover { background: #1f2937; }

@media (max-width: 768px) {
  .detail-hero-right { text-align: left; margin-left: 0; width: 100%; }
  .detail-hero-stats { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-name { font-size: 26px; }
  .detail-eval-price { font-size: 28px; }
}
