/* ============================================================
   IPO Prophet — Bootstrap 5 Dark Theme
   ============================================================ */

:root {
  --ip-bg-base: #000d14;
  --ip-bg-surface: #000d14;
  --ip-bg-card: #01111d;
  --ip-bg-card-hover: #02192b;
  --ip-bg-row-alt: #011622;
  --ip-border: #0d2b40;
  --ip-border-light: #123450;

  --ip-blue: #7ca6e5;
  --ip-blue-hover: #2563eb;
  --ip-blue-glow: rgba(29, 111, 232, 0.35);
  --ip-teal: #06b6d4;
  --ip-cyan-dim: #0e7490;

  --ip-text-primary: #f4f6f9;
  --ip-text-secondary: #e2e8f0;
  --ip-text-muted: #a9b3bf;
  --ip-text-link: #60a5fa;

  --ip-green: #22c55e;
  --ip-red: #ef4444;
  --ip-yellow: #eab308;

  --ip-navbar-height: 60px;
  --ip-sidebar-width: 260px;

  /* Bootstrap overrides */
  --bs-body-bg: var(--ip-bg-base);
  --bs-body-color: var(--ip-text-primary);
  --bs-border-color: var(--ip-border);
  --bs-primary: var(--ip-blue);
  --bs-primary-rgb: 29, 111, 232;
  --bs-secondary-rgb: 17, 29, 48;
  --bs-link-color: var(--ip-text-link);
  --bs-link-hover-color: #93c5fd;
  --bs-table-bg: transparent;
  --bs-table-striped-bg: var(--ip-bg-row-alt);
  --bs-table-hover-bg: var(--ip-bg-card-hover);
  --bs-table-color: var(--ip-text-primary);
  --bs-table-border-color: var(--ip-border);
}

/* ── Base ────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background-color: var(--ip-bg-base);
  color: var(--ip-text-primary);
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: var(--ip-text-link);
  text-decoration: none;
}
a:hover {
  color: #93c5fd;
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--ip-bg-surface);
}
::-webkit-scrollbar-thumb {
  background: var(--ip-border-light);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ip-blue);
}

/* ── Navbar ──────────────────────────────────────────────── */
.ip-navbar {
  height: var(--ip-navbar-height);
  background: var(--ip-bg-base);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.ip-navbar .ip-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.ip-navbar .ip-logo .ip-logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.ip-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 8px;
}
.ip-nav-links::-webkit-scrollbar {
  display: none;
}

.ip-nav-links a {
  color: var(--ip-text-secondary);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  transition:
    color 0.15s,
    background 0.15s;
  text-decoration: none;
}
.ip-nav-links a:hover,
.ip-nav-links a.active {
  color: var(--ip-text-primary);
  background: var(--ip-bg-card);
  text-decoration: none;
}

.ip-nav-search {
  position: relative;
  flex-shrink: 0;
}
.ip-nav-search input {
  background: var(--ip-bg-card);
  border: 1px solid var(--ip-border);
  border-radius: 8px;
  color: var(--ip-text-primary);
  font-size: 13px;
  padding: 6px 12px 6px 32px;
  width: 220px;
  outline: none;
  transition: border-color 0.15s;
}
.ip-nav-search input::placeholder {
  color: var(--ip-text-muted);
}
.ip-nav-search input:focus {
  border-color: var(--ip-blue);
}
.ip-nav-search .ip-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ip-text-muted);
  font-size: 13px;
  pointer-events: none;
}

.ip-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ip-icon-btn {
  background: none;
  border: none;
  color: var(--ip-text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  font-size: 16px;
  padding: 0;
}
.ip-icon-btn:hover {
  background: var(--ip-bg-card);
  color: var(--ip-text-primary);
}

.ip-avatar {
  width: 32px;
  height: 32px;
  background: var(--ip-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.ip-btn-unlock {
  background: linear-gradient(135deg, var(--ip-blue) 0%, #1a56db 100%);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  white-space: nowrap;
  cursor: pointer;
  transition:
    opacity 0.15s,
    box-shadow 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none !important;
}
.ip-btn-unlock:hover {
  opacity: 0.9;
  box-shadow: 0 4px 16px var(--ip-blue-glow);
}

/* ── Offcanvas Side Nav ───────────────────────────────────── */
.ip-offcanvas {
  background: var(--ip-bg-card) !important;
  border-right: 1px solid var(--ip-border) !important;
  width: var(--ip-sidebar-width) !important;
}
.ip-offcanvas .offcanvas-header {
  border-bottom: 1px solid var(--ip-border);
  padding: 16px;
}
.ip-offcanvas .offcanvas-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ip-text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ip-offcanvas .btn-close {
  filter: invert(1) opacity(0.5);
}
.ip-offcanvas .btn-close:hover {
  filter: invert(1) opacity(0.9);
}

.ip-sidenav-section {
  padding: 12px 0 4px;
}
.ip-sidenav-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ip-text-muted);
  padding: 0 16px 6px;
}

.ip-sidenav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: var(--ip-text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.12s,
    color 0.12s;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.ip-sidenav-item:hover {
  background: var(--ip-bg-card);
  color: var(--ip-text-primary);
  text-decoration: none;
}
.ip-sidenav-item.active {
  background: rgba(29, 111, 232, 0.12);
  color: var(--ip-text-link);
  border-left-color: var(--ip-blue);
}
.ip-sidenav-item svg,
.ip-sidenav-item i {
  width: 18px;
  flex-shrink: 0;
  opacity: 0.7;
  font-size: 14px;
  text-align: center;
}
.ip-sidenav-item.active svg,
.ip-sidenav-item.active i {
  opacity: 1;
}

/* ── Layout (CSS Grid) ───────────────────────────────────── */
.ip-page-body {
  display: grid;
  gap: 16px;
  padding: 16px;
  min-height: calc(100vh - var(--ip-navbar-height));
  align-items: start;
  grid-template-columns: 260px 1fr 1fr 320px;
  grid-template-areas:
    'todays calendar calendar desk'
    'todays heat     tape     desk';
}

.ip-area-calendar {
  grid-area: calendar;
}
.ip-area-todays {
  grid-area: todays;
}
.ip-area-heat {
  grid-area: heat;
}
.ip-area-tape {
  grid-area: tape;
}
.ip-area-desk {
  grid-area: desk;
}

.ip-area-todays {
  background: var(--ip-bg-card);
  border: 1px solid var(--ip-border);
  border-radius: 10px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-row: 1 / -1;
  align-self: stretch;
}

.ip-area-desk {
  background: var(--ip-bg-card);
  border: 1px solid var(--ip-border);
  border-radius: 10px;
  padding: 16px 12px;
  position: sticky;
  top: calc(var(--ip-navbar-height) + 16px);
  align-self: start;
}

/* ── Card ────────────────────────────────────────────────── */
.ip-card {
  background: var(--ip-bg-card);
  border: 1px solid var(--ip-border);
  border-radius: 10px;
  padding: 14px;
}
.ip-card-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--ip-text-primary);
  margin-bottom: 2px;
}
.ip-card-subtext {
  font-size: 11px;
  color: var(--ip-text-muted);
  margin-bottom: 12px;
}

/* ── Today's IPOs Sidebar ────────────────────────────────── */
.ip-deal-card {
  background: var(--ip-bg-card);
  border: 1px solid var(--ip-border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s;
}
.ip-deal-card:hover {
  border-color: var(--ip-blue);
}
.ip-deal-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ip-text-primary);
  margin-bottom: 1px;
}
.ip-deal-card-name {
  font-size: 11px;
  color: var(--ip-text-secondary);
  margin-bottom: 4px;
}
.ip-deal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
}
.ip-deal-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ip-text-muted);
}
.ip-deal-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--ip-text-primary);
}
.ip-sentiment-badge {
  font-size: 11px;
  color: var(--ip-text-link);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.ip-sentiment-badge:hover {
  color: #93c5fd;
}

.ip-sidebar-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ip-text-primary);
  padding: 4px 0 6px;
  border-bottom: 1px solid var(--ip-border);
  margin-bottom: 10px;
}

.ip-unlock-cta {
  background: var(--ip-bg-row-alt);
  border: 1px solid var(--ip-border);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  margin-top: auto;
}
.ip-unlock-cta p {
  font-size: 11px;
  color: var(--ip-text-secondary);
  margin: 0 0 8px;
}
.ip-unlock-cta small {
  font-size: 10px;
  color: var(--ip-text-muted);
  display: block;
  margin-top: 6px;
}

/* ── IPO Calendar Table ──────────────────────────────────── */
.ip-table-wrap {
  background: var(--ip-bg-card);
  border: 1px solid var(--ip-border);
  border-radius: 10px;
  overflow-x: auto;
}
.ip-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--ip-border);
  gap: 8px;
  flex-wrap: wrap;
}
.ip-table-title {
  font-size: 14px;
  font-weight: 700;
}
.ip-table-subtitle {
  font-size: 11px;
  color: var(--ip-text-muted);
}

.ip-toggle-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ip-text-secondary);
}
.ip-toggle-group .form-check-input {
  background-color: var(--ip-border-light);
  border-color: var(--ip-border-light);
  cursor: pointer;
  width: 38px;
  height: 20px;
}
.ip-toggle-group .form-check-input:checked {
  background-color: var(--ip-blue);
  border-color: var(--ip-blue);
}
.ip-toggle-label-active {
  color: var(--ip-text-primary);
  font-weight: 600;
}

.ip-table-menu-btn {
  background: none;
  border: none;
  color: var(--ip-text-secondary);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  line-height: 1;
}
.ip-table-menu-btn:hover {
  color: var(--ip-text-primary);
}

.ip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.ip-table th {
  background: var(--ip-bg-row-alt);
  color: var(--ip-text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-bottom: 1px solid var(--ip-border);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.ip-table th:hover {
  color: var(--ip-text-primary);
}
.ip-table th .sort-icon {
  opacity: 0.4;
  font-size: 10px;
  margin-left: 3px;
}

.ip-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--ip-border);
  vertical-align: middle;
  color: var(--ip-text-primary);
  white-space: nowrap;
}
.ip-table tr:last-child td {
  border-bottom: none;
}
.ip-table tr:hover td {
  background: var(--ip-bg-card-hover);
}

.ip-table-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
  background: var(--ip-bg-surface);
  border: 1px solid var(--ip-border);
  padding: 2px;
}
.ip-table-logo-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--ip-bg-surface);
  border: 1px solid var(--ip-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ip-text-secondary);
}

.ip-company-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ip-company-name {
  font-weight: 500;
  color: var(--ip-text-primary);
}
.ip-symbol-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--ip-text-secondary);
  background: var(--ip-bg-row-alt);
  border: 1px solid var(--ip-border);
  border-radius: 4px;
  padding: 2px 6px;
}

.ip-rating-locked {
  color: var(--ip-text-link);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.ip-rating-locked:hover {
  color: #93c5fd;
}
.ip-rating-locked-icon {
  font-size: 10px;
  opacity: 0.7;
}

.ip-prophet-badge {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ip-blue);
  margin-right: 4px;
}
.ip-table-empty {
  padding: 32px;
  text-align: center;
  color: var(--ip-text-muted);
  font-size: 13px;
}

/* ── Heat Index ──────────────────────────────────────────── */
.ip-heat-section {
  background: var(--ip-bg-card);
  border: 1px solid var(--ip-border);
  border-radius: 10px;
  padding: 16px;
}
.ip-heat-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.ip-heat-header .ip-info-icon {
  color: var(--ip-text-muted);
  font-size: 13px;
  cursor: help;
}
.ip-heat-body {
  display: flex;
  justify-content: center;
  align-items: center;
}
.ip-heat-gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#heatGaugeCanvas {
  display: block;
}
.ip-heat-score-label {
  text-align: center;
  margin-top: -30px;
}
.ip-heat-score-value {
  font-size: 42px;
  font-weight: 800;
  color: var(--ip-text-primary);
  line-height: 1;
}
.ip-heat-score-regime {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.ip-heat-description {
  font-size: 11px;
  color: var(--ip-text-muted);
  margin-top: 10px;
  border-top: 1px solid var(--ip-border);
  padding-top: 10px;
}
.ip-heat-unlock-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: linear-gradient(135deg, var(--ip-blue) 0%, #1a56db 100%);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  text-decoration: none !important;
  transition: opacity 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ip-heat-unlock-btn:hover {
  opacity: 0.9;
}

/* ── Regime colors ───────────────────────────────────────── */
.ip-regime-ICE_COLD {
  color: #60a5fa;
}
.ip-regime-LUKE_WARM {
  color: #4ade80;
}
.ip-regime-WARM {
  color: #facc15;
}
.ip-regime-HOT {
  color: #f97316;
}

/* ── On the Tape ────────────────────────────────────────── */
.ip-tape-section {
  background: var(--ip-bg-card);
  border: 1px solid var(--ip-border);
  border-radius: 10px;
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ip-tape-header {
  font-size: 14px;
  font-weight: 700;
  color: var(--ip-text-primary);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ip-border);
  margin-bottom: 12px;
}
.ip-tape-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 360px;
  flex: 1;
}
.ip-tape-item {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ip-border);
  border-radius: 8px;
  transition: background 0.15s;
}
.ip-tape-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
.ip-tape-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ip-text-primary);
  line-height: 1.35;
}
.ip-tape-item-excerpt {
  font-size: 11px;
  color: var(--ip-text-secondary);
  margin-top: 4px;
  line-height: 1.4;
}
.ip-tape-item-date {
  font-size: 10px;
  color: var(--ip-text-muted);
  margin-top: 5px;
  display: flex;
  align-items: center;
}
.ip-tape-empty {
  font-size: 12px;
  color: var(--ip-text-muted);
  padding: 16px 0;
  text-align: center;
}

/* ── News / From the Desk ────────────────────────────────── */
.ip-news-header {
  font-size: 14px;
  font-weight: 700;
  color: var(--ip-text-primary);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ip-border);
  margin-bottom: 12px;
}
.ip-news-featured {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ip-border);
}
.ip-news-featured-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--ip-border);
  background: var(--ip-bg-card);
  flex-shrink: 0;
}
.ip-news-featured-img-placeholder {
  width: 100%;
  height: 140px;
  border-radius: 8px;
  background: var(--ip-bg-card);
  border: 1px solid var(--ip-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ip-text-muted);
  font-size: 24px;
  flex-shrink: 0;
}
.ip-news-featured-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ip-text-primary);
  line-height: 1.35;
  margin-top: 4px;
}
.ip-news-featured-excerpt {
  font-size: 12px;
  color: var(--ip-text-secondary);
  line-height: 1.5;
}
.ip-news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--ip-text-muted);
  margin-top: 2px;
}
.ip-news-meta svg,
.ip-news-meta i {
  font-size: 11px;
}
.ip-news-read-more {
  font-size: 12px;
  font-weight: 600;
  color: var(--ip-text-link);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.ip-news-read-more:hover {
  color: #93c5fd;
}

.ip-news-list-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ip-border);
}
.ip-news-list-item:last-child {
  border-bottom: none;
}
.ip-news-list-title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ip-text-primary);
  line-height: 1.35;
  flex: 1;
}
.ip-news-list-title:hover {
  color: var(--ip-text-link);
}
.ip-news-list-date {
  font-size: 11px;
  color: var(--ip-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Auth pages (login, forgot/reset password) ───────────── */
.ip-auth-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - var(--ip-navbar-height));
  padding: 48px 16px 64px;
  background: var(--ip-bg-base);
}

.ip-auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--ip-bg-card);
  border: 1px solid var(--ip-border);
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.ip-auth-card-header {
  text-align: center;
  margin-bottom: 28px;
}

.ip-auth-card-header h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ip-text-primary);
  letter-spacing: -0.02em;
}

.ip-auth-card-header p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ip-text-secondary);
}

.ip-auth-card-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ip-auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ip-auth-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ip-text-secondary);
}

.ip-auth-field .form-control {
  background: var(--ip-bg-surface);
  border: 1px solid var(--ip-border-light);
  color: var(--ip-text-primary);
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 8px;
}

.ip-auth-field .form-control::placeholder {
  color: var(--ip-text-muted);
}

.ip-auth-field .form-control:focus {
  background: var(--ip-bg-surface);
  border-color: var(--ip-blue);
  color: var(--ip-text-primary);
  box-shadow: 0 0 0 3px var(--ip-blue-glow);
}

.ip-auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -4px;
}

.ip-auth-forgot-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ip-teal);
  text-decoration: none;
  white-space: nowrap;
}

.ip-auth-forgot-link:hover {
  color: #67e8f9;
  text-decoration: underline;
}

.ip-auth-submit {
  width: 100%;
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    #49cae4 0%,
    var(--ip-blue) 55%,
    #0a2b84 100%
  );
  color: #fff;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  margin-top: 4px;
}

.ip-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--ip-blue-glow);
  color: #fff;
}

.ip-auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.ip-auth-alert {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 18px;
}

.ip-auth-alert-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.ip-auth-alert-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.ip-auth-alert-info {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #a5f3fc;
}

.ip-auth-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--ip-border);
  text-align: center;
  font-size: 13px;
  color: var(--ip-text-secondary);
}

.ip-auth-footer a {
  color: var(--ip-teal);
  font-weight: 500;
}

.ip-auth-footer a:hover {
  color: #67e8f9;
}

.ip-auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ip-text-secondary);
  text-decoration: none;
  margin-bottom: 20px;
}

.ip-auth-back:hover {
  color: var(--ip-text-primary);
}

/* ── Admin shell (sidebar + content) ───────────────────── */
.ip-admin-shell {
  display: flex;
  gap: 0;
  min-height: calc(100vh - var(--ip-navbar-height));
  background: var(--ip-bg-base);
}

.ip-admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--ip-bg-card);
  border-right: 1px solid var(--ip-border);
  padding: 20px 0 24px;
  position: sticky;
  top: var(--ip-navbar-height);
  align-self: flex-start;
  min-height: calc(100vh - var(--ip-navbar-height));
}

.ip-admin-sidebar-title {
  margin: 0 16px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ip-text-muted);
}

.ip-admin-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ip-admin-sidebar-link {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ip-text-secondary);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.ip-admin-sidebar-link:hover {
  color: var(--ip-text-primary);
  background: var(--ip-bg-card-hover);
  text-decoration: none;
}

.ip-admin-sidebar-link.active {
  color: var(--ip-text-primary);
  background: rgba(29, 111, 232, 0.12);
  border-left-color: var(--ip-blue);
}

.ip-admin-sidebar-footer {
  margin: 20px 16px 0;
  padding-top: 16px;
  border-top: 1px solid var(--ip-border);
  font-size: 12px;
}

.ip-admin-sidebar-footer a {
  color: var(--ip-text-muted);
  text-decoration: none;
}

.ip-admin-sidebar-footer a:hover {
  color: var(--ip-teal);
}

.ip-admin-content {
  flex: 1;
  min-width: 0;
  padding: 32px 24px 56px;
  max-width: 1100px;
}

@media (max-width: 768px) {
  .ip-admin-shell {
    flex-direction: column;
  }
  .ip-admin-sidebar {
    width: 100%;
    position: static;
    min-height: 0;
    border-right: none;
    border-bottom: 1px solid var(--ip-border);
  }
  .ip-admin-sidebar-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 8px 8px;
  }
  .ip-admin-sidebar-link {
    border-left: none;
    border-radius: 6px;
    padding: 8px 12px;
  }
  .ip-admin-sidebar-footer {
    display: none;
  }
}

/* ── Admin dashboard ─────────────────────────────────────── */
.ip-admin-page {
  display: block;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 56px;
  min-height: calc(100vh - var(--ip-navbar-height));
  background: var(--ip-bg-base);
}

.ip-admin-header {
  margin-bottom: 28px;
}

.ip-admin-header h1 {
  margin: 0 0 10px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ip-text-primary);
  letter-spacing: -0.02em;
}

.ip-admin-header p {
  margin: 0;
  max-width: 52rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ip-text-secondary);
}

.ip-admin-alert {
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.ip-admin-alert-warning {
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #fde047;
}

.ip-admin-alert-info {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #a5f3fc;
}

.ip-admin-alert-info code {
  color: #e0f2fe;
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.ip-admin-alert-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

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

@media (max-width: 768px) {
  .ip-admin-stats {
    grid-template-columns: 1fr;
  }
}

.ip-admin-stat-card {
  background: var(--ip-bg-card);
  border: 1px solid var(--ip-border);
  border-radius: 10px;
  padding: 20px 18px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
}

.ip-admin-stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ip-text-secondary);
  margin-bottom: 8px;
}

.ip-admin-stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ip-text-primary);
  letter-spacing: -0.02em;
  margin-bottom: auto;
}

.ip-admin-stat-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ip-text-muted);
}

.ip-admin-footer {
  margin-top: 28px;
  font-size: 13px;
}

.ip-admin-footer a {
  color: var(--ip-teal);
  font-weight: 500;
  text-decoration: none;
}

.ip-admin-footer a:hover {
  color: #67e8f9;
  text-decoration: underline;
}

.ip-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.ip-admin-toolbar h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ip-text-primary);
}

.ip-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--ip-border-light);
  background: var(--ip-bg-card);
  color: var(--ip-text-primary);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.ip-admin-btn:hover {
  background: var(--ip-bg-card-hover);
  color: var(--ip-text-primary);
  border-color: var(--ip-blue);
}

.ip-admin-btn-primary {
  background: linear-gradient(
    135deg,
    #49cae4 0%,
    var(--ip-blue) 55%,
    #0a2b84 100%
  );
  border: none;
  color: #fff;
}

.ip-admin-btn-primary:hover {
  color: #fff;
  box-shadow: 0 4px 16px var(--ip-blue-glow);
}

.ip-admin-btn-danger {
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

.ip-admin-btn-danger:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: #ef4444;
  color: #fecaca;
}

.ip-admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ip-border);
  border-radius: 10px;
  background: var(--ip-bg-card);
}

.ip-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ip-admin-table th,
.ip-admin-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--ip-border);
  color: var(--ip-text-primary);
}

.ip-admin-table th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ip-text-secondary);
  background: var(--ip-bg-row-alt);
}

.ip-admin-table tbody tr:hover {
  background: var(--ip-bg-card-hover);
}

.ip-admin-table .ip-muted {
  color: var(--ip-text-muted);
}

.ip-admin-table-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ip-admin-table-filter {
  flex: 1 1 280px;
  max-width: 420px;
  margin: 0;
}

.ip-admin-table-filter input {
  width: 100%;
  background: var(--ip-bg-card);
  border: 1px solid var(--ip-border-light);
  color: var(--ip-text-primary);
  padding: 9px 12px;
  font-size: 14px;
  border-radius: 8px;
}

.ip-admin-table-filter input:focus {
  outline: none;
  border-color: var(--ip-blue);
  box-shadow: 0 0 0 3px var(--ip-blue-glow);
}

.ip-admin-table-filter input::placeholder {
  color: var(--ip-text-muted);
}

.ip-admin-table-count {
  font-size: 13px;
  color: var(--ip-text-secondary);
  white-space: nowrap;
}

.ip-admin-sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.ip-admin-sortable:hover {
  color: var(--ip-text-primary);
}

.ip-admin-sortable.is-sorted {
  color: var(--ip-blue);
}

.ip-admin-sortable::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  opacity: 0.35;
}

.ip-admin-sortable.is-sorted::after {
  opacity: 1;
  border-top-color: currentColor;
  border-bottom-color: transparent;
}

.ip-admin-sortable.is-sorted.is-sorted-desc::after {
  border-top-color: transparent;
  border-bottom-color: currentColor;
}

.ip-admin-deals-no-match td {
  text-align: center;
  font-style: italic;
}

.ip-admin-form-card {
  background: var(--ip-bg-card);
  border: 1px solid var(--ip-border);
  border-radius: 10px;
  padding: 24px 20px;
  margin-bottom: 24px;
}

.ip-admin-form-card h2 {
  margin: 0 0 6px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ip-text-primary);
}

.ip-admin-form-card .ip-form-hint {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--ip-text-secondary);
}

.ip-admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 20px;
}

@media (max-width: 768px) {
  .ip-admin-form-grid {
    grid-template-columns: 1fr;
  }
}

.ip-admin-form-grid .span-2 {
  grid-column: 1 / -1;
}

.ip-admin-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ip-text-secondary);
}

.ip-admin-field input,
.ip-admin-field textarea {
  width: 100%;
  background: var(--ip-bg-surface);
  border: 1px solid var(--ip-border-light);
  color: var(--ip-text-primary);
  padding: 9px 11px;
  font-size: 14px;
  border-radius: 8px;
}

.ip-admin-field input:focus,
.ip-admin-field textarea:focus {
  outline: none;
  border-color: var(--ip-blue);
  box-shadow: 0 0 0 3px var(--ip-blue-glow);
}

.ip-admin-field input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.ip-admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--ip-border);
}

.ip-admin-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.ip-admin-table-actions .ip-admin-btn {
    padding: 3px 8px;
    font-size: 12px;
}

.ip-admin-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--ip-border);
}

.ip-admin-badge.is-active {
    color: #86efac;
    border-color: rgba(134, 239, 172, 0.35);
}

.ip-admin-badge.is-warning {
    color: #fde047;
    border-color: rgba(253, 224, 71, 0.35);
}

.ip-admin-badge.is-danger {
    color: #fca5a5;
    border-color: rgba(252, 165, 165, 0.35);
}

.ip-admin-audit-block {
    margin-bottom: 28px;
}

.ip-admin-audit-block h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px;
}

/* ── Legal pages (terms, privacy) ─────────────────────────── */
.ip-legal-page {
  min-height: calc(100vh - var(--ip-navbar-height));
  padding: 24px 20px 48px;
  background: var(--ip-bg-base);
}

.ip-legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 32px 36px;
  background: #0a2b84;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius-lg);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 1.45;
}

.ip-legal-content h1 {
  font-family: Inter, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.3;
}

.ip-legal-reg {
  font-weight: 400;
  font-size: 18px;
  line-height: 30px;
  vertical-align: top;
}

.ip-legal-content p {
  margin: 0 0 0.75em;
}

.ip-legal-h2 {
  font-size: 12px;
  font-weight: 600;
  margin: 1em 0 0.35em;
}

.ip-legal-h3 {
  font-size: 12px;
  font-weight: 600;
  margin: 0.75em 0 0.25em;
  text-decoration: underline;
}

.ip-legal-content a {
  color: #fff;
  text-decoration: underline;
}

.ip-legal-content a:hover {
  color: var(--ip-teal);
}

.ip-legal-content ul {
  margin: 0 0 0.75em;
  padding-left: 1.5em;
}

.ip-legal-content li {
  margin-bottom: 0.35em;
}

.ip-legal-address {
  margin-left: 2em;
}

.ip-legal-indent {
  text-indent: 2em;
}

.ip-legal-table {
  width: 100%;
  border: 3px solid #ddd;
  border-collapse: collapse;
  margin: 0.75em 0 1em;
  font-size: 11px;
}

.ip-legal-table th,
.ip-legal-table td {
  border: 1px solid #ddd;
  padding: 8px 10px;
  vertical-align: top;
}

.ip-legal-table th {
  font-weight: 600;
  text-align: left;
}

@media (max-width: 600px) {
  .ip-legal-page {
    padding: 16px 12px 32px;
  }

  .ip-legal-content {
    padding: 20px 16px 28px;
  }

  .ip-legal-table {
    display: block;
    overflow-x: auto;
  }
}

/* ── FAQ page ─────────────────────────────────────────────── */
.ip-faq-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 8px;
}

.ip-faq-header h1 {
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
}

.ip-faq-header-accent {
  background: linear-gradient(to bottom right, #beedf5, #49cae4, #0a2b84);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ip-faq-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin: 0 auto;
}

.ip-faq-accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: rgba(255, 255, 255, 0.12);
  --bs-accordion-btn-bg: rgba(255, 255, 255, 0.06);
  --bs-accordion-active-bg: rgba(255, 255, 255, 0.1);
  --bs-accordion-btn-color: #fff;
  --bs-accordion-active-color: #fff;
  --bs-accordion-body-padding-x: 1.25rem;
  --bs-accordion-body-padding-y: 1rem;
}

.ip-faq-item {
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px !important;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.ip-faq-item .accordion-button {
  font-size: 15px;
  font-weight: 600;
  box-shadow: none !important;
}

.ip-faq-item .accordion-button:not(.collapsed) {
  background: rgba(73, 202, 228, 0.15);
}

.ip-faq-item .accordion-button::after {
  filter: invert(1);
}

.ip-faq-answer {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

.ip-faq-answer p {
  margin-bottom: 0.75em;
}

.ip-faq-answer p:last-child {
  margin-bottom: 0;
}

.ip-faq-answer a {
  color: var(--ip-teal);
}

.ip-faq-alert {
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
  font-size: 13px;
}

.ip-faq-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.ip-faq-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.ip-faq-footer a {
  color: var(--ip-teal);
  text-decoration: none;
}

.ip-faq-footer a:hover {
  text-decoration: underline;
}

/* ── Register / free trial ───────────────────────────────── */
.ip-register-page {
  min-height: calc(100vh - var(--ip-navbar-height));
  padding: 40px 20px 64px;
  background: var(--ip-bg-base);
}

.ip-register-inner {
  max-width: 520px;
  margin: 0 auto;
}

.ip-register-header {
  text-align: center;
  margin-bottom: 28px;
}

.ip-register-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--ip-text-primary);
  letter-spacing: -0.02em;
}

.ip-register-tagline {
  margin: 0;
  font-size: 15px;
  color: var(--ip-text-secondary);
}

.ip-register-plan-card {
  text-align: center;
  padding: 22px 24px;
  margin-bottom: 20px;
  background: var(--ip-bg-card);
  border: 1px solid var(--ip-border);
  border-radius: 14px;
}

.ip-register-plan-badge {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #49cae4, #1d6fe8);
  border-radius: 999px;
}

.ip-register-plan-price {
  margin: 0 0 10px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ip-text-primary);
  line-height: 1.2;
}

.ip-register-plan-period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ip-text-secondary);
}

.ip-register-plan-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ip-text-secondary);
}

.ip-register-form-card {
  padding: 28px 26px 24px;
  background: var(--ip-bg-card);
  border: 1px solid var(--ip-border);
  border-radius: 14px;
}

.ip-register-form-title {
  margin: 0 0 22px;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  color: var(--ip-text-primary);
}

.ip-register-alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
}

.ip-register-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ip-register-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ip-register-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ip-text-secondary);
}

.ip-register-required {
  color: var(--ip-teal);
}

.ip-register-field .form-control {
  background: var(--ip-bg-surface);
  border: 1px solid var(--ip-border-light);
  color: var(--ip-text-primary);
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 8px;
}

.ip-register-field .form-control::placeholder {
  color: var(--ip-text-muted);
}

.ip-register-field .form-control:focus {
  background: var(--ip-bg-surface);
  border-color: var(--ip-blue);
  color: var(--ip-text-primary);
  box-shadow: 0 0 0 3px var(--ip-blue-glow);
}

.ip-register-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.ip-register-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ip-text-secondary);
  cursor: pointer;
}

.ip-register-check input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--ip-teal);
}

.ip-register-check a {
  color: var(--ip-teal);
  font-weight: 600;
  text-decoration: none;
}

.ip-register-check a:hover {
  text-decoration: underline;
}

.ip-register-submit {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #49cae4 0%, #1d6fe8 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition:
    opacity 0.15s,
    transform 0.15s;
}

.ip-register-submit:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  color: #fff;
}

.ip-register-submit-inline {
  text-decoration: none;
}

.ip-register-signin {
  margin: 22px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--ip-text-secondary);
}

.ip-register-signin a {
  color: var(--ip-teal);
  font-weight: 600;
  text-decoration: none;
}

.ip-register-signin a:hover {
  text-decoration: underline;
}

.ip-register-success-card {
  text-align: center;
}

.ip-register-success-text {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ip-text-secondary);
}

.ip-register-success-text strong {
  color: var(--ip-text-primary);
}

@media (max-width: 560px) {
  .ip-register-name-row,
  .ip-register-checkboxes {
    grid-template-columns: 1fr;
  }

  .ip-register-form-card {
    padding: 22px 18px 20px;
  }
}

/* ── Content pages (about, etc.) ─────────────────────────── */
.ip-content-page {
  min-height: calc(100vh - var(--ip-navbar-height));
  padding: 32px 24px 56px;
  background: var(--ip-bg-base);
}

.ip-about {
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero */
.ip-about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 48px;
}

.ip-about-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px;
  color: var(--ip-text-primary);
}

.ip-about-reg {
  font-weight: 400;
  font-size: 0.55em;
  vertical-align: super;
  line-height: 0;
}

.ip-about-lead {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ip-text-secondary);
  margin: 0;
  max-width: 520px;
}

.ip-about-quote {
  margin: 0;
  padding: 28px 32px;
  border-radius: 16px;
  border: 1px solid var(--ip-border);
  background:
    linear-gradient(
      145deg,
      rgba(0, 13, 20, 0.88) 0%,
      rgba(10, 43, 132, 0.75) 100%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(73, 202, 228, 0.15),
      transparent 55%
    ),
    var(--ip-bg-card);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.ip-about-quote-mark {
  display: block;
  font-size: 3rem;
  line-height: 1;
  font-weight: 700;
  color: var(--ip-blue);
  margin-bottom: 8px;
}

.ip-about-quote-text {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ip-text-primary);
  margin: 0 0 16px;
}

.ip-about-quote-attribution {
  font-size: 14px;
  font-weight: 500;
  color: var(--ip-blue);
  margin: 0;
}

/* Sections */
.ip-about-section {
  margin-bottom: 44px;
}

.ip-about-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ip-blue);
  margin: 0 0 20px;
}

.ip-about-card-grid {
  display: grid;
  gap: 16px;
}

.ip-about-card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.ip-about-card {
  background: var(--ip-bg-card);
  border: 1px solid var(--ip-border);
  border-radius: 14px;
  padding: 22px 20px;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.ip-about-card:hover {
  background: var(--ip-bg-card-hover);
  border-color: var(--ip-border-light);
}

.ip-about-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(29, 111, 232, 0.2);
  color: var(--ip-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.ip-about-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ip-text-primary);
  margin: 0 0 10px;
  line-height: 1.35;
}

.ip-about-card-body {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ip-text-secondary);
  margin: 0;
}

/* Values */
.ip-about-values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px 16px;
}

.ip-about-value {
  text-align: center;
}

.ip-about-value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  color: var(--ip-blue);
}

.ip-about-value-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ip-text-primary);
  margin: 0 0 8px;
}

.ip-about-value-body {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ip-text-secondary);
  margin: 0;
}

/* CTA banner */
.ip-about-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 28px;
  background: var(--ip-bg-card);
  border: 1px solid var(--ip-border);
  border-radius: 14px;
  margin-top: 8px;
}

.ip-about-cta-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(29, 111, 232, 0.2);
  color: var(--ip-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ip-about-cta-copy {
  flex: 1;
  min-width: 200px;
}

.ip-about-cta-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ip-text-primary);
  margin: 0 0 6px;
}

.ip-about-cta-text {
  font-size: 13px;
  color: var(--ip-text-secondary);
  margin: 0;
  line-height: 1.5;
}

.ip-about-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--ip-blue) 0%, #1a56db 100%);
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}

.ip-about-cta-btn:hover {
  background: var(--ip-blue-hover);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .ip-about-card-grid-3 {
    grid-template-columns: 1fr;
  }

  .ip-about-values {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .ip-content-page {
    padding: 20px 16px 40px;
  }

  .ip-about-hero {
    grid-template-columns: 1fr;
  }

  .ip-about-values {
    grid-template-columns: repeat(2, 1fr);
  }

  .ip-about-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .ip-about-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .ip-about-values {
    grid-template-columns: 1fr;
  }
}

/* ── Heat Index page ─────────────────────────────────────── */
.ip-hi-page {
  max-width: 1200px;
  margin: 0 auto;
}

.ip-hi-hero {
  margin-bottom: 28px;
}

.ip-hi-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--ip-text-primary);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.ip-hi-reg {
  font-size: 0.45em;
  vertical-align: super;
  font-weight: 600;
}

.ip-hi-lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ip-text-muted);
  max-width: 820px;
  margin: 0;
}

.ip-hi-controls-card {
  background: var(--ip-bg-card);
  border: 1px solid var(--ip-border);
  border-radius: 12px;
  padding: 20px 24px 24px;
  margin-bottom: 28px;
}

.ip-hi-controls-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.ip-hi-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ip-text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ip-hi-field input[type='date'],
.ip-hi-field input[type='text'],
.ip-hi-field input[type='number'] {
  width: 100%;
  background: var(--ip-bg-base);
  border: 1px solid var(--ip-border);
  border-radius: 8px;
  color: var(--ip-text-primary);
  padding: 8px 12px;
  font-size: 0.9rem;
}

.ip-hi-field input:focus {
  outline: none;
  border-color: var(--ip-blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.ip-hi-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 18px;
}

.ip-hi-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--ip-text-secondary);
  cursor: pointer;
  margin: 0;
}

.ip-hi-check input {
  accent-color: var(--ip-blue);
  width: 16px;
  height: 16px;
}

.ip-hi-refresh-btn {
  background: linear-gradient(135deg, var(--ip-blue) 0%, #1a56db 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ip-hi-refresh-btn:hover {
  background: #2563eb;
}

.ip-hi-alert {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.ip-hi-explainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}

.ip-hi-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ip-blue);
  margin: 0 0 14px;
}

.ip-hi-explainer-copy p {
  color: var(--ip-text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.ip-hi-numbered {
  padding-left: 1.25rem;
  margin: 16px 0;
  color: var(--ip-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.ip-hi-numbered li {
  margin-bottom: 12px;
}

.ip-hi-numbered strong {
  color: var(--ip-text-primary);
}

.ip-hi-chart-panel {
  background: var(--ip-bg-card);
  border: 1px solid var(--ip-border);
  border-radius: 12px;
  padding: 16px;
  min-height: 320px;
}

.ip-hi-chart-panel-title {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ip-text-primary);
  margin: 0 0 12px;
}

.ip-hi-chart-live {
  position: relative;
  height: 360px;
}

.ip-hi-chart-live canvas {
  width: 100% !important;
  height: 100% !important;
}

.ip-hi-chart-locked {
  position: relative;
  height: 320px;
  border-radius: 8px;
  overflow: hidden;
}

.ip-hi-chart-locked-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(239, 68, 68, 0.45) 0%,
    rgba(249, 115, 22, 0.4) 22%,
    rgba(234, 179, 8, 0.35) 45%,
    rgba(59, 130, 246, 0.5) 100%
  );
  filter: blur(6px);
  transform: scale(1.05);
}

.ip-hi-chart-locked-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200'%3E%3Cpath fill='none' stroke='rgba(255,255,255,0.15)' stroke-width='2' d='M0,150 Q50,80 100,120 T200,60 T300,100 T400,40'/%3E%3C/svg%3E")
    center / cover no-repeat;
  opacity: 0.6;
}

.ip-hi-chart-locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  text-align: center;
  padding: 24px;
}

.ip-hi-lock-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  filter: grayscale(1) brightness(2);
}

.ip-hi-lock-text {
  color: var(--ip-text-primary);
  font-size: 0.95rem;
  max-width: 320px;
  margin: 0;
  line-height: 1.5;
}

.ip-hi-lock-text a {
  color: var(--ip-blue);
  font-weight: 600;
  text-decoration: none;
}

.ip-hi-lock-text a:hover {
  text-decoration: underline;
}

.ip-hi-works {
  margin-bottom: 32px;
}

.ip-hi-works-grid {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 28px;
  align-items: start;
}

.ip-hi-works-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ip-text-primary);
  margin: 0 0 10px;
}

.ip-hi-works-intro p {
  color: var(--ip-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.ip-hi-regime-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ip-hi-regime-card {
  border-radius: 10px;
  padding: 16px 14px;
  border: 1px solid var(--ip-border);
  background: var(--ip-bg-card);
}

.ip-hi-regime-card-icon {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.ip-hi-regime-card h4 {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}

.ip-hi-regime-card p {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ip-text-muted);
  margin: 0;
}

.ip-hi-regime-card-ice {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.08);
}
.ip-hi-regime-card-ice h4 {
  color: #60a5fa;
}

.ip-hi-regime-card-luke {
  border-color: rgba(234, 179, 8, 0.4);
  background: rgba(234, 179, 8, 0.08);
}
.ip-hi-regime-card-luke h4 {
  color: #facc15;
}

.ip-hi-regime-card-warm {
  border-color: rgba(249, 115, 22, 0.4);
  background: rgba(249, 115, 22, 0.08);
}
.ip-hi-regime-card-warm h4 {
  color: #fb923c;
}

.ip-hi-regime-card-hot {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
}
.ip-hi-regime-card-hot h4 {
  color: #f87171;
}

.ip-hi-status-bar {
  text-align: center;
  background: var(--ip-bg-card);
  border: 1px solid var(--ip-border);
  border-radius: 10px;
  padding: 16px 24px;
  font-size: 1rem;
  color: var(--ip-text-secondary);
}

.ip-hi-status-bar strong {
  font-weight: 700;
}

@media (max-width: 1024px) {
  .ip-hi-controls-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ip-hi-explainer {
    grid-template-columns: 1fr;
  }

  .ip-hi-works-grid {
    grid-template-columns: 1fr;
  }

  .ip-hi-regime-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ip-hi-controls-grid {
    grid-template-columns: 1fr;
  }

  .ip-hi-regime-cards {
    grid-template-columns: 1fr;
  }

  .ip-content-page {
    padding: 20px 16px 40px;
  }
}

/* ── Pre-Offering Ratings page ─────────────────────────── */
.ip-ipo-ratings-page {
  max-width: 1350px;
  margin: 0 auto;
}

.ip-ipo-ratings-hero {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  min-height: 200px;
  display: flex;
  align-items: center;
  padding: 48px clamp(24px, 12vw, 150px);
  background-image: url('/assets/images/IPOProphet-Imagery.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.ip-ipo-ratings-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 13, 20, 0.88) 0%,
    rgba(0, 13, 20, 0.45) 55%,
    rgba(0, 13, 20, 0.25) 100%
  );
}

.ip-ipo-ratings-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.ip-ipo-ratings-reg {
  font-size: 0.4em;
  vertical-align: super;
}

.ip-ipo-ratings-intro {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 18px;
  line-height: 1.45;
  color: var(--ip-text-secondary);
  font-size: 0.95rem;
}

.ip-ipo-ratings-alert {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 18px;
}

.ip-ipo-ratings-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 12px;
}

.ip-ipo-ratings-search {
  flex: 1 1 280px;
  max-width: 360px;
  position: relative;
  margin: 0;
}

.ip-ipo-ratings-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ip-text-muted);
  pointer-events: none;
}

.ip-ipo-ratings-search input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--ip-text-primary);
  font-size: 14px;
}

.ip-ipo-ratings-search input:focus {
  outline: none;
  border-color: #49cae4;
  box-shadow: 0 0 0 2px rgba(73, 202, 228, 0.25);
}

.ip-ipo-ratings-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  font-size: 13px;
}

.ip-ipo-ratings-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ip-ipo-ratings-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
  outline: 1px solid rgba(255, 255, 255, 0.35);
}

.ip-ipo-ratings-swatch-green {
  background: #20c997;
}
.ip-ipo-ratings-swatch-orange {
  background: #ffb347;
}
.ip-ipo-ratings-swatch-red {
  background: #f06a6a;
}
.ip-ipo-ratings-swatch-red-dark {
  background: #c53030;
}

.ip-ipo-ratings-legend-label {
  font-weight: 700;
  color: #fff;
}

.ip-ipo-ratings-legend-range {
  color: var(--ip-text-secondary);
}

.ip-ipo-ratings-count {
  min-height: 1.25rem;
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--ip-text-secondary);
}

.ip-ipo-ratings-table-panel {
  position: relative;
  border: 1px solid var(--ip-border);
  border-radius: 10px;
  background: var(--ip-bg-card);
  overflow: hidden;
}

.ip-ipo-ratings-table-scroll {
  max-height: min(60vh, 640px);
  overflow: auto;
}

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

.ip-ipo-ratings-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--ip-blue);
  color: white;
  font-weight: 700;
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.ip-ipo-ratings-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--ip-text-primary);
}

.ip-ipo-ratings-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.04);
}

.ip-ipo-ratings-table tbody tr:hover {
  background: var(--ip-bg-card-hover);
}

.ip-ipo-sortable {
  cursor: pointer;
  user-select: none;
}

.ip-ipo-sortable.is-sorted {
  text-decoration: underline;
}

.ip-ipo-sortable::after {
  content: ' ↕';
  opacity: 0.5;
  font-size: 0.85em;
}

.ip-ipo-sortable.is-sorted::after {
  content: ' ↑';
  opacity: 1;
}

.ip-ipo-sortable.is-sorted.is-sorted-desc::after {
  content: ' ↓';
}

.ip-ipo-info {
  display: inline-block;
  margin-left: 2px;
  font-size: 0.85em;
  opacity: 0.85;
  cursor: help;
}

.ip-ipo-ratings-table tbody td.ip-rating-score-green {
  color: #20c997 !important;
  font-weight: 700;
  text-align: center;
}

.ip-ipo-ratings-table tbody td.ip-rating-score-orange {
  color: #ffb347 !important;
  font-weight: 700;
  text-align: center;
}

.ip-ipo-ratings-table tbody td.ip-rating-score-red {
  color: #f06a6a !important;
  font-weight: 700;
  text-align: center;
}

.ip-ipo-ratings-table tbody td.ip-ipo-pct {
  text-align: center;
  font-weight: 600;
}

.ip-ipo-ratings-empty {
  text-align: center;
  padding: 24px;
  color: var(--ip-text-muted);
}

/* Locked: blur rating columns */
.ip-ipo-ratings-table-panel.is-locked .ip-ipo-col-rated,
.ip-ipo-ratings-table-panel.is-locked thead .ip-ipo-col-rated {
  filter: blur(6px);
  user-select: none;
}

.ip-ipo-ratings-table-panel.is-locked tbody tr:hover {
  background: inherit;
}

.ip-ipo-ratings-lock-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 72%;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: rgba(0, 13, 20, 0.35);
  pointer-events: none;
  z-index: 5;
}

.ip-ipo-ratings-lock-overlay a {
  pointer-events: auto;
}

.ip-ipo-ratings-lock-icon {
  font-size: 2.75rem;
  margin-bottom: 12px;
  filter: grayscale(1) brightness(2);
}

.ip-ipo-ratings-lock-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.ip-ipo-ratings-lock-text {
  margin: 0;
  max-width: 360px;
  font-size: 0.95rem;
  color: var(--ip-text-secondary);
  line-height: 1.5;
}

.ip-ipo-ratings-lock-text a {
  color: #49cae4;
  font-weight: 600;
  text-decoration: none;
}

.ip-ipo-ratings-lock-text a:hover {
  text-decoration: underline;
}

/* ── Research page ─────────────────────────────────────────── */
.ip-research-page {
  max-width: 1200px;
  margin: 0 auto;
}

.ip-research-hero {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 240px);
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
  color: var(--ip-blue);
}

.ip-research-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ip-blue);
  background: rgba(73, 202, 228, 0.12);
  border: 1px solid rgba(73, 202, 228, 0.35);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

.ip-research-title {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ip-blue);
  letter-spacing: -0.02em;
}

.ip-research-title-accent {
  color: var(--ip-blue);
}

.ip-research-lead,
.ip-research-lead-secondary {
  margin: 0 0 12px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ip-text-secondary);
  max-width: 640px;
}

.ip-research-hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ip-research-hero-svg {
  width: 100%;
  max-width: 200px;
  height: auto;
  opacity: 0.9;
}

.ip-research-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
}

.ip-research-feature {
  display: flex;
  gap: 12px;
  padding: 16px 14px;
  background: var(--ip-bg-card);
  border: 1px solid var(--ip-border);
  border-radius: 10px;
}

.ip-research-feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(73, 202, 228, 0.12);
  color: var(--ip-blue);
}

.ip-research-feature-title {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ip-blue);
}

.ip-research-feature p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ip-text-muted);
}

.ip-research-section {
  margin-bottom: 40px;
}

.ip-research-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ip-blue);
  margin: 0 0 18px;
}

.ip-research-covers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.ip-research-cover-card {
  padding: 18px 16px;
  border: 1px solid rgba(73, 202, 228, 0.35);
  border-radius: 10px;
  background: var(--ip-bg-card);
}

.ip-research-cover-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: rgba(73, 202, 228, 0.12);
  color: var(--ip-blue);
}

.ip-research-cover-card h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ip-text-primary);
}

.ip-research-cover-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ip-text-muted);
}

.ip-research-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(10, 43, 132, 0.65);
  border: 1px solid rgba(73, 202, 228, 0.25);
  border-radius: 10px;
}

.ip-research-info-banner p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ip-text-secondary);
}

.ip-research-info-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--ip-blue);
}

.ip-research-alert {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
}

.ip-research-article {
  border: 1px solid var(--ip-border);
  border-radius: 12px;
  background: var(--ip-bg-card);
  overflow: hidden;
}

.ip-research-article-header {
  display: flex;
  gap: 18px;
  padding: 20px 22px;
  align-items: flex-start;
}

.ip-research-article-logo {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ip-research-article-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ip-research-article-logo.is-placeholder {
  background: var(--ip-bg-row-alt);
  color: var(--ip-text-muted);
}

.ip-research-article-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ip-text-primary);
}

.ip-research-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--ip-text-muted);
  margin-bottom: 10px;
}

.ip-research-article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ip-research-article-summary {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ip-text-secondary);
  font-style: italic;
}

.ip-research-article-figure {
  margin: 0;
  border-top: 1px solid var(--ip-border);
  border-bottom: 1px solid var(--ip-border);
}

.ip-research-article-figure img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.ip-research-article-body-wrap {
  position: relative;
  padding: 22px;
}

.ip-research-article-body {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ip-text-secondary);
}

.ip-research-article-body p {
  margin: 0 0 14px;
}

.ip-research-article-body h1,
.ip-research-article-body h2,
.ip-research-article-body h3 {
  color: var(--ip-text-primary);
  margin: 20px 0 10px;
}

.ip-research-article-body a {
  color: var(--ip-blue);
}

.ip-research-article-teaser {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ip-blue);
}

.ip-research-article-body-wrap.is-locked .ip-research-article-teaser {
  filter: blur(5px);
  user-select: none;
}

.ip-research-article-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: rgba(0, 13, 20, 0.55);
}

.ip-research-lock-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  filter: grayscale(1) brightness(2);
}

.ip-research-lock-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.ip-research-lock-text {
  margin: 0;
  max-width: 340px;
  font-size: 0.92rem;
  color: var(--ip-blue);
}

.ip-research-lock-text a {
  color: var(--ip-blue);
  font-weight: 600;
  text-decoration: none;
}

.ip-research-lock-text a:hover {
  text-decoration: underline;
}

.ip-research-article-more {
  margin: 0;
  padding: 0 22px 20px;
}

.ip-research-link {
  color: var(--ip-blue);
  font-weight: 600;
  text-decoration: none;
}

.ip-research-link:hover {
  text-decoration: underline;
}

.ip-research-empty {
  color: var(--ip-text-muted);
  font-size: 0.95rem;
}

.ip-research-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 24px 22px;
  border: 1px solid var(--ip-border);
  border-radius: 12px;
  background: var(--ip-bg-card);
}

.ip-research-cta-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(73, 202, 228, 0.12);
  color: var(--ip-blue);
}

.ip-research-cta-copy {
  flex: 1 1 280px;
}

.ip-research-cta-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ip-text-primary);
}

.ip-research-cta-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ip-text-secondary);
  line-height: 1.5;
}

.ip-research-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    #49cae4 0%,
    var(--ip-blue) 55%,
    #0a2b84 100%
  );
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.ip-research-cta-btn:hover {
  color: #fff;
  box-shadow: 0 4px 16px var(--ip-blue-glow);
}

@media (max-width: 1024px) {
  .ip-research-hero {
    grid-template-columns: 1fr;
  }

  .ip-research-hero-art {
    order: -1;
    justify-content: flex-start;
  }

  .ip-research-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .ip-research-covers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ip-research-features {
    grid-template-columns: 1fr;
  }

  .ip-research-covers-grid {
    grid-template-columns: 1fr;
  }

  .ip-research-article-header {
    flex-direction: column;
  }

  .ip-research-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .ip-research-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .ip-ipo-ratings-controls {
    flex-direction: column;
  }

  .ip-ipo-ratings-legend {
    width: 100%;
  }

  .ip-ipo-ratings-lock-overlay {
    width: 100%;
    left: 0;
    background: rgba(0, 13, 20, 0.55);
  }

  .ip-ipo-ratings-table-panel.is-locked .ip-ipo-ratings-table tbody td,
  .ip-ipo-ratings-table-panel.is-locked .ip-ipo-ratings-table thead th {
    filter: blur(4px);
  }

  .ip-ipo-ratings-table-panel.is-locked tbody td:first-child,
  .ip-ipo-ratings-table-panel.is-locked tbody td:nth-child(2),
  .ip-ipo-ratings-table-panel.is-locked tbody td:nth-child(3),
  .ip-ipo-ratings-table-panel.is-locked thead th:first-child,
  .ip-ipo-ratings-table-panel.is-locked thead th:nth-child(2),
  .ip-ipo-ratings-table-panel.is-locked thead th:nth-child(3) {
    filter: none;
  }
}

/* ── Notifications page ──────────────────────────────────── */
.ip-notify-page {
  max-width: 1200px;
  margin: 0 auto;
}

.ip-notify-hero {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 460px);
  gap: 36px;
  align-items: start;
  margin-bottom: 44px;
}

.ip-notify-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--ip-text-primary);
  letter-spacing: -0.02em;
}

.ip-notify-lead {
  margin: 0 0 14px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ip-text-secondary);
  max-width: 560px;
}

.ip-notify-tagline {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7ca6e5;
}

.ip-notify-lead-secondary {
  margin: 0 0 24px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ip-text-secondary);
  max-width: 560px;
}

.ip-notify-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ip-notify-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ip-notify-feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(73, 202, 228, 0.5);
  background: rgba(73, 202, 228, 0.1);
  color: #7ca6e5;
}

.ip-notify-feature h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ip-text-primary);
}

.ip-notify-feature p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ip-text-muted);
}

.ip-notify-phones-wrap {
  position: relative;
  padding: 28px 20px;
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      rgba(10, 43, 132, 0.35) 0%,
      rgba(0, 0, 0, 0.2) 100%
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 18px,
      rgba(73, 202, 228, 0.04) 18px,
      rgba(73, 202, 228, 0.04) 19px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 18px,
      rgba(73, 202, 228, 0.04) 18px,
      rgba(73, 202, 228, 0.04) 19px
    );
  border: 1px solid rgba(73, 202, 228, 0.15);
  overflow: hidden;
}

.ip-notify-phones-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 70% 40%,
    rgba(73, 202, 228, 0.12) 0%,
    transparent 55%
  );
  pointer-events: none;
}

.ip-notify-phones {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.ip-notify-phone {
  width: 210px;
  background: #0f1419;
  border-radius: 32px;
  border: 3px solid #2a3544;
  padding: 14px 11px 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.ip-notify-phone-notch {
  width: 56px;
  height: 5px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #1f2937;
}

.ip-notify-phone-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.65rem;
  color: #7ca6e5;
}

.ip-notify-phone-back {
  font-size: 1rem;
  line-height: 1;
}

.ip-notify-phone-contact {
  font-weight: 600;
}

.ip-notify-phone-label {
  text-align: center;
  font-size: 0.6rem;
  color: var(--ip-text-muted);
  margin-bottom: 8px;
}

.ip-notify-bubble {
  background: #1e293b;
  border-radius: 14px;
  padding: 10px 10px 12px;
  font-size: 0.58rem;
  line-height: 1.45;
  color: #e2e8f0;
  max-height: 280px;
  overflow-y: auto;
}

.ip-notify-bubble strong {
  color: #fff;
  font-size: 0.62rem;
}

.ip-notify-rating {
  color: #facc15;
  font-weight: 700;
}

.ip-notify-bubble-link {
  color: #49cae4;
  font-weight: 600;
}

.ip-notify-section {
  margin-bottom: 32px;
}

.ip-notify-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ip-blue);
  margin: 0 0 18px;
}

.ip-notify-types-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ip-notify-type-card {
  padding: 16px 14px;
  background: var(--ip-bg-card);
  border: 1px solid var(--ip-border);
  border-radius: 10px;
  text-align: center;
}

.ip-notify-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  border-radius: 50%;
  border: 1px solid rgba(73, 202, 228, 0.35);
  background: rgba(73, 202, 228, 0.1);
  color: var(--ip-blue);
}

.ip-notify-type-card h3 {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ip-text-primary);
}

.ip-notify-type-card p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--ip-text-muted);
}

.ip-notify-cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background: rgba(10, 43, 132, 0.55);
  border: 1px solid rgba(73, 202, 228, 0.25);
  border-radius: 12px;
  margin-bottom: 24px;
}

.ip-notify-cta-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(73, 202, 228, 0.12);
  color: var(--ip-blue);
}

.ip-notify-cta-copy {
  flex: 1 1 260px;
}

.ip-notify-cta-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ip-text-primary);
}

.ip-notify-cta-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ip-text-secondary);
  line-height: 1.5;
}

.ip-notify-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    #49cae4 0%,
    var(--ip-blue) 55%,
    #0a2b84 100%
  );
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.ip-notify-cta-btn:hover {
  color: #fff;
  box-shadow: 0 4px 16px var(--ip-blue-glow);
}

@media (max-width: 1100px) {
  .ip-notify-hero {
    grid-template-columns: 1fr;
  }

  .ip-notify-phones {
    justify-content: flex-start;
  }

  .ip-notify-types-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .ip-notify-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ip-notify-cta-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .ip-notify-cta-btn {
    width: 100%;
    justify-content: center;
  }

  .ip-notify-phones {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .ip-notify-types-grid {
    grid-template-columns: 1fr;
  }
}

/* ── HubSpot blog detail ───────────────────────────────── */
.ip-blog-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 8px 48px;
}

.ip-blog-back {
  margin: 0 0 20px;
  font-size: 0.88rem;
}
.ip-blog-back a {
  color: var(--ip-blue);
  text-decoration: none;
}
.ip-blog-back a:hover {
  text-decoration: underline;
}
.ip-blog-back-sep {
  margin: 0 10px;
  color: var(--ip-text-muted);
}

.ip-blog-alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.ip-blog-alert--error {
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.35);
  color: #f5a5ad;
}
.ip-blog-alert--warn {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.35);
  color: #ffc107;
}

.ip-blog-empty {
  text-align: center;
  padding: 40px 20px;
}

.ip-blog-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.ip-blog-btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid rgba(73, 202, 228, 0.5);
  color: var(--ip-blue);
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.ip-blog-btn-outline:hover {
  background: rgba(73, 202, 228, 0.1);
  color: #93c5fd;
}

.ip-blog-header-card {
  background: var(--ip-surface-2, #141414);
  border: 1px solid var(--ip-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 28px;
}

.ip-blog-hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.ip-blog-header-body {
  padding: 24px 28px;
}

.ip-blog-availability {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.ip-blog-availability--public {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.35);
}
.ip-blog-availability--partial {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.ip-blog-availability--private {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.ip-blog-title {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ip-text-primary, #fff);
}

.ip-blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.ip-blog-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ip-text-muted);
}
.ip-blog-meta-chip--tag {
  background: rgba(73, 202, 228, 0.1);
  color: var(--ip-blue);
}

.ip-blog-author-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.ip-blog-excerpt {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--ip-text-secondary);
}

.ip-blog-body.prose {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
}
.ip-blog-body.prose h1,
.ip-blog-body.prose h2,
.ip-blog-body.prose h3,
.ip-blog-body.prose h4 {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  margin: 1.5em 0 0.75em;
}
.ip-blog-body.prose p {
  margin-bottom: 1em;
}
.ip-blog-body.prose ul,
.ip-blog-body.prose ol {
  margin-bottom: 1em;
  padding-left: 1.5em;
}
.ip-blog-body.prose blockquote {
  border-left: 4px solid #49cae4;
  padding-left: 1em;
  margin-left: 0;
  font-style: italic;
  background: rgba(124, 58, 237, 0.1);
  padding: 1em;
  border-radius: 0 4px 4px 0;
}
.ip-blog-body.prose a {
  color: #49cae4;
}
.ip-blog-body.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.ip-blog-body.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
}
.ip-blog-body.prose th,
.ip-blog-body.prose td {
  border: 1px solid var(--ip-border);
  padding: 8px 12px;
}
.ip-blog-body.prose th {
  background: rgba(255, 255, 255, 0.08);
}

.ip-blog-paywall {
  margin-top: 32px;
  padding: 32px 24px;
  text-align: center;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 12px;
}
.ip-blog-paywall-icon {
  color: #49cae4;
  margin-bottom: 12px;
}
.ip-blog-paywall h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 600;
}
.ip-blog-paywall p {
  margin: 0 0 20px;
  color: var(--ip-text-muted);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.ip-blog-related {
  margin-top: 48px;
}
.ip-blog-related-title {
  margin: 0 0 20px;
  font-size: 1.35rem;
  font-weight: 600;
}
.ip-blog-related-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ip-blog-related-card {
  display: block;
  background: var(--ip-surface-2, #141414);
  border: 1px solid var(--ip-border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}
.ip-blog-related-card:hover {
  transform: translateY(-2px);
  border-color: var(--ip-blue);
}
.ip-blog-related-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.ip-blog-related-card-body {
  padding: 14px;
}
.ip-blog-related-card h3 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ip-text-primary);
}
.ip-blog-related-card time {
  font-size: 0.75rem;
  color: var(--ip-text-muted);
}

.ip-blog-newsletter {
  margin-top: 48px;
  padding: 32px 24px;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.12) 0%,
    rgba(73, 202, 228, 0.08) 100%
  );
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 12px;
}
.ip-blog-newsletter h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}
.ip-blog-newsletter p {
  margin: 0 0 20px;
  color: var(--ip-text-muted);
}

@media (max-width: 768px) {
  .ip-blog-related-grid {
    grid-template-columns: 1fr;
  }
  .ip-blog-header-body {
    padding: 18px;
  }
}

/* ── Account profile ───────────────────────────────────── */
.ip-avatar--img {
  padding: 0;
  overflow: hidden;
}
.ip-avatar--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ip-profile-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 8px 48px;
}

.ip-profile-header {
  margin-bottom: 28px;
}

.ip-profile-title {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 600;
}

.ip-profile-lead {
  margin: 0;
  color: var(--ip-text-muted);
  max-width: 640px;
  line-height: 1.6;
}

.ip-profile-alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.ip-profile-alert--success {
  background: rgba(40, 167, 69, 0.15);
  border: 1px solid rgba(40, 167, 69, 0.4);
  color: #7dcea0;
}
.ip-profile-alert--error {
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.35);
  color: #f5a5ad;
}

.ip-profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--ip-border);
  padding-bottom: 0;
}

.ip-profile-tab {
  padding: 12px 18px;
  color: var(--ip-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.ip-profile-tab:hover {
  color: var(--ip-text);
}
.ip-profile-tab.is-active {
  color: var(--ip-blue);
  border-bottom-color: var(--ip-blue);
}

.ip-profile-card {
  background: var(--ip-surface-2, #141414);
  border: 1px solid var(--ip-border);
  border-radius: 12px;
  padding: 24px;
}

.ip-profile-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.ip-profile-card-head h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 600;
}
.ip-profile-card-head p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ip-text-muted);
}

.ip-profile-btn-edit {
  background: var(--ip-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.ip-profile-btn-edit:hover {
  filter: brightness(1.1);
}

.ip-profile-personal-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
}

.ip-profile-avatar-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid var(--ip-blue);
  overflow: hidden;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ip-bg);
}
.ip-profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ip-profile-avatar-fallback {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.ip-profile-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.ip-profile-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ip-border);
  color: var(--ip-text-muted);
}
.ip-profile-badge--pro {
  background: rgba(40, 167, 69, 0.2);
  color: #7dcea0;
}
.ip-profile-badge--muted {
  background: rgba(73, 202, 228, 0.12);
  color: var(--ip-blue);
}

.ip-profile-avatar-actions {
  text-align: center;
  font-size: 0.8rem;
}
.ip-profile-avatar-upload {
  display: block;
  cursor: pointer;
  color: var(--ip-blue);
  margin-bottom: 6px;
}
.ip-profile-avatar-upload input {
  display: none;
}

.ip-profile-link-btn {
  background: none;
  border: none;
  color: var(--ip-blue);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.ip-profile-section-label {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 20px 0 12px;
  color: var(--ip-text);
}
.ip-profile-section-label:first-child {
  margin-top: 0;
}

.ip-profile-label {
  display: block;
  font-size: 0.75rem;
  color: var(--ip-text-muted);
  margin-bottom: 4px;
}

.ip-profile-input {
  width: 100%;
  background: var(--ip-bg);
  border: 1px solid var(--ip-border);
  border-radius: 8px;
  color: var(--ip-text);
  padding: 10px 12px;
  font-size: 0.9rem;
}
.ip-profile-input:read-only,
.ip-profile-input:disabled {
  opacity: 0.85;
}
.ip-profile-panel.is-editing
  .ip-profile-input[data-profile-field]:not([type='checkbox']) {
  border-color: var(--ip-blue);
}

.ip-profile-notify-box {
  background: var(--ip-bg);
  border: 1px solid var(--ip-border);
  border-radius: 10px;
  padding: 16px;
}
.ip-profile-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 10px;
  cursor: pointer;
}
.ip-profile-check input {
  margin-top: 3px;
}
.ip-profile-divider {
  border-color: var(--ip-border);
  margin: 16px 0;
}
.ip-profile-hint {
  font-size: 0.82rem;
  color: var(--ip-text-muted);
  margin: 8px 0 0;
}

.ip-profile-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}
.ip-profile-btn-cancel {
  background: transparent;
  border: 1px solid var(--ip-border);
  color: var(--ip-text-muted);
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
}

.is-editing-only {
  display: none;
}
.ip-profile-panel.is-editing .is-editing-only {
  display: block;
}
.ip-profile-panel.is-editing .ip-profile-bulk-actions.is-editing-only {
  display: flex;
}

.ip-profile-dl dt {
  font-size: 0.75rem;
  color: var(--ip-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 12px;
}
.ip-profile-dl dd {
  margin: 4px 0 0;
  font-size: 1rem;
}

.ip-profile-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.ip-profile-status--active {
  background: rgba(40, 167, 69, 0.2);
  color: #7dcea0;
}
.ip-profile-status--paused {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}
.ip-profile-status--inactive {
  background: var(--ip-border);
  color: var(--ip-text-muted);
}

.ip-profile-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.ip-profile-btn-outline {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--ip-border);
  background: transparent;
  color: var(--ip-text);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
}
.ip-profile-btn-outline--warn {
  border-color: #ffc107;
  color: #ffc107;
}
.ip-profile-btn-outline--success {
  border-color: #28a745;
  color: #7dcea0;
}
.ip-profile-btn-outline--danger {
  border-color: #dc3545;
  color: #f5a5ad;
}

.ip-profile-bulk-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.ip-profile-template-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ip-profile-template-item {
  background: var(--ip-bg);
  border: 1px solid var(--ip-border);
  border-radius: 10px;
  padding: 16px;
}
.ip-profile-template-head strong {
  display: block;
  margin-bottom: 4px;
}
.ip-profile-template-head span {
  font-size: 0.82rem;
  color: var(--ip-text-muted);
}
.ip-profile-template-channels {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}

.ip-profile-modal {
  background: var(--ip-surface-2, #141414);
  color: var(--ip-text);
  border: 1px solid var(--ip-border);
}
.ip-profile-billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}
.ip-profile-plan-card {
  position: relative;
  background: var(--ip-bg);
  border: 1px solid var(--ip-border);
  border-radius: 10px;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ip-profile-plan-card.is-featured {
  border-color: var(--ip-blue);
}
.ip-profile-plan-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--ip-blue);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
}
.ip-profile-plan-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.ip-profile-plan-desc {
  font-size: 0.8rem;
  color: var(--ip-text-muted);
  margin-bottom: 12px;
}
.ip-profile-plan-price {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.ip-profile-plan-period {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ip-text-muted);
}
.ip-profile-plan-savings {
  font-size: 0.75rem;
  color: #ffc107;
  font-weight: 600;
}
.ip-profile-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 0.78rem;
  color: var(--ip-text-muted);
  flex: 1;
}
.ip-profile-plan-features li {
  padding: 4px 0 4px 16px;
  position: relative;
}
.ip-profile-plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ip-blue);
}
.ip-profile-checkout-msg {
  margin-top: 16px;
  text-align: center;
  color: var(--ip-text-muted);
}

@media (max-width: 768px) {
  .ip-profile-personal-grid {
    grid-template-columns: 1fr;
  }
  .ip-profile-tabs {
    flex-direction: column;
  }
}

/* ── IPO Sentiment page ──────────────────────────────────── */
.ip-sentiment-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4px 32px;
}

.ip-sentiment-hero {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 340px);
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
}

.ip-sentiment-title {
  margin: 0 0 16px;
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--ip-text);
  letter-spacing: -0.02em;
}

.ip-sentiment-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ip-text-muted);
  max-width: 520px;
}

.ip-sentiment-hero-chart {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.ip-sentiment-chart-svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}

.ip-sentiment-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 40px;
  align-items: start;
}

.ip-sentiment-kicker {
  margin: 0 0 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ip-blue);
}

.ip-sentiment-intro {
  margin: 0 0 24px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ip-text-muted);
}

.ip-sentiment-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px;
  padding: 24px;
  background: var(--ip-surface-2, #141414);
  border: 1px solid var(--ip-border);
  border-radius: 12px;
}

.ip-sentiment-sample-wrap {
  min-width: 0;
}

.ip-sentiment-sample-card {
  background: #0a0a0a;
  border: 1px solid var(--ip-border);
  border-radius: 10px;
  padding: 16px;
}

.ip-sentiment-sample-head {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ip-text-muted);
}

.ip-sentiment-sample-ticker {
  margin-bottom: 14px;
}

.ip-sentiment-sample-symbol {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ip-text);
  line-height: 1.2;
}

.ip-sentiment-sample-company {
  display: block;
  font-size: 0.8rem;
  color: var(--ip-text-muted);
  margin-top: 2px;
}

.ip-sentiment-sample-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 0 0 14px;
}

.ip-sentiment-sample-grid dt {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ip-text-muted);
}

.ip-sentiment-sample-grid dd {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--ip-text);
}

.ip-sentiment-sample-span {
  grid-column: 1 / -1;
}

.ip-sentiment-sample-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--ip-border);
  position: relative;
}

.ip-sentiment-sample-foot--locked .ip-sentiment-sample-value {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

.ip-sentiment-sample-lock {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -20%);
  z-index: 2;
  color: var(--ip-blue);
  background: rgba(0, 0, 0, 0.75);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ip-sentiment-sample-foot-label {
  font-size: 0.8rem;
  color: var(--ip-text-muted);
}

.ip-sentiment-sample-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.ip-sentiment-icon {
  flex-shrink: 0;
}

.ip-sentiment-bullish {
  color: #28a745;
}
.ip-sentiment-neutral {
  color: #ffc107;
}
.ip-sentiment-bearish {
  color: #dc3545;
}
.ip-sentiment-unknown {
  color: var(--ip-text-muted);
}

.ip-sentiment-sample-unlock {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--ip-blue);
  text-decoration: none;
}

.ip-sentiment-sample-unlock:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.ip-sentiment-panel-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ip-sentiment-panel-notes li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.ip-sentiment-note-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(73, 202, 228, 0.12);
  color: var(--ip-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ip-sentiment-panel-notes p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ip-text-muted);
}

.ip-sentiment-signals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ip-sentiment-signal {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--ip-surface-2, #141414);
  border: 1px solid var(--ip-border);
  border-radius: 10px;
  border-left-width: 4px;
}

.ip-sentiment-signal--bullish {
  border-left-color: #28a745;
}

.ip-sentiment-signal--neutral {
  border-left-color: #ffc107;
}

.ip-sentiment-signal--bearish {
  border-left-color: #dc3545;
}

.ip-sentiment-signal-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.ip-sentiment-signal--bullish .ip-sentiment-signal-icon {
  background: #28a745;
}

.ip-sentiment-signal--neutral .ip-sentiment-signal-icon {
  background: #ffc107;
  color: #1a1a1a;
}

.ip-sentiment-signal--bearish .ip-sentiment-signal-icon {
  background: #dc3545;
}

.ip-sentiment-signal h3 {
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ip-sentiment-signal--bullish h3 {
  color: #28a745;
}
.ip-sentiment-signal--neutral h3 {
  color: #ffc107;
}
.ip-sentiment-signal--bearish h3 {
  color: #dc3545;
}

.ip-sentiment-signal p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ip-text-muted);
}

.ip-sentiment-footer-bar {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 36px;
  padding: 16px 20px;
  background: var(--ip-surface-2, #141414);
  border: 1px solid var(--ip-border);
  border-radius: 10px;
}

.ip-sentiment-footer-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(73, 202, 228, 0.12);
  color: var(--ip-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ip-sentiment-footer-bar p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ip-text-muted);
}

.ip-sentiment-cta {
  margin-top: 32px;
  text-align: center;
  padding: 24px;
  border: 1px dashed var(--ip-border);
  border-radius: 10px;
}

.ip-sentiment-cta p {
  margin: 0 0 14px;
  color: var(--ip-text-muted);
}

.ip-sentiment-cta small {
  display: block;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--ip-text-muted);
}

@media (max-width: 1000px) {
  .ip-sentiment-hero {
    grid-template-columns: 1fr;
  }

  .ip-sentiment-hero-chart {
    justify-content: flex-start;
  }

  .ip-sentiment-main {
    grid-template-columns: 1fr;
  }

  .ip-sentiment-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .ip-sentiment-title {
    font-size: 1.75rem;
  }

  .ip-sentiment-sample-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Responsive ──────────────────────────────────────────── */

/* Medium: 2 columns — no left sidebar, desk moves below heat/tape */
@media (max-width: 1200px) {
  .ip-page-body {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'calendar calendar'
      'heat     tape'
      'desk     desk';
  }
  .ip-area-todays {
    display: none;
  }
  .ip-area-desk {
    position: static;
  }
}

/* Small: single column, all stacked */
@media (max-width: 900px) {
  .ip-page-body {
    grid-template-columns: 1fr;
    grid-template-areas:
      'calendar'
      'todays'
      'heat'
      'desk'
      'tape';
    max-width: 100vw;
    overflow-x: hidden;
  }
  .ip-area-calendar {
    overflow-x: auto;
    max-width: 100%;
  }
  .ip-area-todays {
    display: flex;
    position: static;
  }
  .ip-area-desk {
    position: static;
  }
  .ip-nav-links {
    display: none;
  }
  .ip-nav-search input {
    width: 160px;
  }
}

@media (max-width: 600px) {
  .ip-nav-search {
    display: none;
  }
  .ip-page-body {
    padding: 10px;
  }
}
