/* ================================================================
   Investment Platform Pro — Public Styles
   ================================================================ */

:root {
  --ip-primary:   #2563eb;
  --ip-primary-dark: #1d4ed8;
  --ip-success:   #15803d;
  --ip-danger:    #dc2626;
  --ip-warning:   #b45309;
  --ip-dark:      #0f172a;
  --ip-ink:       #172033;
  --ip-muted:     #526176;
  --ip-bg:        #f5f7fb;
  --ip-surface:   #ffffff;
  --ip-border:    #e2e8f0;
  --ip-radius:    14px;
  --ip-shadow:    0 8px 30px rgba(15,23,42,.07);
}

/* ── Product shell ───────────────────────────────────────────── */
.ip-platform-page {
  background: var(--ip-bg);
  overflow-x: hidden;
}
.ip-platform-page .site-main,
.ip-platform-page .entry-content {
  overflow: visible;
}
.ip-platform-page .ip-wrap {
  color: var(--ip-ink);
}
.ip-platform-page .text-muted,
.ip-platform-page .form-text {
  color: var(--ip-muted) !important;
}
.ip-platform-page .form-control,
.ip-platform-page .form-select,
.ip-platform-page .input-group-text {
  min-height: 46px;
  border-color: #d7dfeb;
  color: var(--ip-ink);
  background-color: #fff;
}
.ip-platform-page .form-control:focus,
.ip-platform-page .form-select:focus {
  border-color: var(--ip-primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.ip-platform-page .btn {
  min-height: 42px;
  font-weight: 700;
  border-radius: 10px;
}
.ip-platform-page .btn-lg {
  min-height: 50px;
}
.ip-platform-page .badge {
  font-weight: 700;
  letter-spacing: .01em;
}

/* A compact, branded header replaces the inconsistent theme header. */
.ip-platform-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: -1.5rem -1rem 1.75rem;
  padding: .9rem 1rem;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid #e5eaf2;
  box-shadow: 0 4px 18px rgba(15,23,42,.05);
  backdrop-filter: blur(14px);
}
.ip-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--ip-ink) !important;
  text-decoration: none !important;
  flex: 0 0 auto;
}
.ip-brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-block;
  border-radius: 11px;
  background: linear-gradient(135deg, #15213c, #263d6b);
  transform: skew(-8deg);
}
.ip-brand-mark::before,
.ip-brand-mark::after,
.ip-brand-mark span {
  content: "";
  position: absolute;
  display: block;
  height: 5px;
  border-radius: 9px;
  transform: skew(8deg);
}
.ip-brand-mark::before { width: 20px; top: 11px; left: 8px; background: #fff; }
.ip-brand-mark::after { width: 13px; top: 21px; left: 8px; background: #fff; }
.ip-brand-mark span { width: 12px; top: 16px; left: 20px; background: #a3e635; }
.ip-brand-copy { display: grid; line-height: 1.05; }
.ip-brand-copy strong { font-size: 1.18rem; letter-spacing: -.03em; }
.ip-brand-copy strong span { color: #84cc16; }
.ip-brand-copy small { margin-top: .25rem; font-size: .63rem; color: var(--ip-muted); }
.ip-platform-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ip-nav-links,
.ip-header-actions { display: flex; align-items: center; gap: .35rem; }
.ip-nav-link,
.ip-language-switcher {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem .7rem;
  border-radius: 9px;
  color: #526176 !important;
  text-decoration: none !important;
  font-size: .84rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s, color .2s, transform .2s;
}
.ip-nav-link:hover,
.ip-nav-link.is-active {
  color: var(--ip-primary) !important;
  background: #eff6ff;
}
.ip-nav-link.is-active { box-shadow: inset 0 -2px 0 var(--ip-primary); }
.ip-language-switcher {
  color: var(--ip-primary) !important;
  border: 1px solid #bfdbfe;
  background: #f8fbff;
}
.ip-account-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem .7rem;
  border-radius: 999px;
  color: #536176;
  background: #f6f8fb;
  font-size: .75rem;
  white-space: nowrap;
}
.ip-account-chip i { color: #16a34a; }
.ip-mobile-menu-toggle { display: none; }

/* ── Wrapper ──────────────────────────────────────────────────── */
.ip-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  font-family: Inter, "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.55;
}

/* ── Cards ────────────────────────────────────────────────────── */
.ip-card {
  background: var(--ip-surface);
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
  padding: 1.5rem;
  box-shadow: var(--ip-shadow);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ip-card:hover { border-color: #d2dceb; }
.ip-card h1,
.ip-card h2,
.ip-card h3,
.ip-card h4,
.ip-card h5,
.ip-card h6 { color: var(--ip-ink); }

/* ── Stat Cards ───────────────────────────────────────────────── */
.ip-stat-card {
  text-align: center;
  padding: 1.25rem 1rem;
  transition: transform .2s, box-shadow .2s;
}
.ip-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.ip-stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin: 0 auto .75rem;
}
.ip-stat-label {
  font-size: .75rem;
  color: #64748b;
  margin-bottom: .25rem;
}
.ip-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

/* ── Live Investment Card ─────────────────────────────────────── */
.ip-live-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff;
  border: none;
  position: relative;
  overflow: hidden;
}
.ip-live-card::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(59,130,246,.3) 0%, transparent 70%);
  pointer-events: none;
}
.ip-live-card .text-muted {
  color: #d6e0ef !important;
}
.ip-live-card table td {
  color: #fff;
  background: transparent !important;
  border-color: rgba(255,255,255,.1);
}
.ip-live-card table td.text-muted { color: #d6e0ef !important; }
.ip-live-card table tr { background: rgba(2, 6, 23, .2); }
.ip-live-card table .text-success { color: #86efac !important; }
.ip-live-card table .text-warning { color: #fde047 !important; }
.ip-live-card .badge {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Keep labels and values readable inside the dark live-investment card. */
.ip-live-card .ip-detail-table {
  border-collapse: separate;
  border-spacing: 0 .45rem;
  margin-top: .25rem;
}
.ip-live-card .ip-detail-table tr {
  background: rgba(2, 6, 23, .38);
  border: 1px solid rgba(255,255,255,.14);
}
.ip-live-card .ip-detail-table td {
  padding: .72rem .8rem;
  color: #f8fafc !important;
  background: transparent !important;
  border: 0 !important;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.ip-live-card .ip-detail-table td:first-child {
  color: #e2e8f0 !important;
  font-weight: 600;
}
.ip-live-card .ip-detail-table td:last-child { color: #fff !important; }
.ip-live-card .ip-detail-table td.text-success { color: #86efac !important; }
.ip-live-card .ip-detail-table td.text-warning { color: #fde047 !important; }
.ip-live-card .ip-detail-table tr td:first-child { border-radius: 10px 0 0 10px; }
.ip-live-card .ip-detail-table tr td:last-child { border-radius: 0 10px 10px 0; }

.ip-live-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-bottom: .5rem;
}
.ip-pulse {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: ip-pulse 1.4s ease-in-out infinite;
}
@keyframes ip-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.6); }
}

.ip-live-counter {
  font-size: 2.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  color: #4ade80;
  text-shadow: 0 0 20px rgba(74,222,128,.4);
  line-height: 1.1;
}
@media (max-width: 576px) {
  .ip-live-counter { font-size: 1.5rem; }
}

/* ── Progress bar ─────────────────────────────────────────────── */
.ip-counter-bar {
  height: 6px;
  background: rgba(255,255,255,.2);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 4px;
}
.ip-counter-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  border-radius: 99px;
  transition: width 1s linear;
}

/* ── Calc result ──────────────────────────────────────────────── */
.ip-calc-result {
  background: #f8fafc;
  border: 1px solid var(--ip-border);
}

/* ── Page title ───────────────────────────────────────────────── */
.ip-page-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ip-ink);
}

/* ── Auth notice ──────────────────────────────────────────────── */
.ip-auth-notice {
  max-width: 500px;
  margin: 3rem auto;
}

/* ── Buttons – extra small ────────────────────────────────────── */
.btn-xs {
  padding: .2rem .45rem;
  font-size: .75rem;
  line-height: 1.4;
  border-radius: .35rem;
}

/* ── Direction and table adjustments ──────────────────────────── */
[dir="rtl"] .table th,
[dir="rtl"] .table td {
  text-align: right;
}
[dir="rtl"] .me-1 { margin-right: .25rem !important; margin-left: 0 !important; }
[dir="rtl"] .me-2 { margin-right: .5rem !important;  margin-left: 0 !important; }
[dir="rtl"] .ms-1 { margin-left: .25rem !important;  margin-right: 0 !important; }
[dir="rtl"] .ms-2 { margin-left: .5rem !important;   margin-right: 0 !important; }

/* ── Plan Cards ───────────────────────────────────────────────── */
.ip-plan-card {
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.ip-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,.13);
}
.ip-plan-card.selected {
  outline: 3px solid var(--ip-primary);
  box-shadow: 0 0 0 6px rgba(37,99,235,.12);
}
.ip-network-card {
  min-height: 92px;
  border-color: #d8e0eb !important;
  background: #fff !important;
  color: var(--ip-ink);
}
.ip-network-card:hover,
.ip-network-card.active {
  border-color: var(--ip-primary) !important;
  box-shadow: 0 8px 24px rgba(37,99,235,.14);
}
.ip-network-card .text-muted { color: var(--ip-muted) !important; }
.ip-data-table { min-width: 720px; }
.ip-table-shell { overflow-x: auto; }
.ip-table-shell::-webkit-scrollbar { height: 7px; }
.ip-table-shell::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
.ip-table-shell table td,
.ip-table-shell table th { vertical-align: middle; }
.font-monospace { overflow-wrap: anywhere; }
.ip-data-table td,
.ip-data-table th,
.ip-detail-table td {
  overflow-wrap: anywhere;
}
.ip-data-table td > *,
.ip-detail-table td > * {
  min-width: 0;
  max-width: 100%;
}
.ip-data-table td > * { overflow-wrap: anywhere; }
.ip-breakable-cell span {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.ip-wallet-address {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1200px) {
  .ip-platform-header {
    flex-wrap: wrap;
    gap: .35rem .8rem;
  }
  .ip-platform-nav {
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: .5rem;
  }
  .ip-nav-links {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: .2rem;
  }
  .ip-nav-link {
    padding: .48rem .55rem;
    font-size: .76rem;
  }
  .ip-header-actions {
    flex: 1 1 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 767px) {
  .ip-card { padding: 1rem; }
  .ip-page-title { font-size: 1.3rem; }
  .ip-platform-header {
    margin: -1.5rem -.75rem 1.25rem;
    padding: .75rem;
    flex-wrap: wrap;
  }
  .ip-brand-mark { width: 34px; height: 34px; }
  .ip-brand-copy strong { font-size: 1.05rem; }
  .ip-brand-copy small,
  .ip-account-chip { display: none; }
  .ip-mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-inline-start: auto;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    color: var(--ip-ink);
    background: #fff;
  }
  .ip-platform-nav {
    display: none;
    flex-basis: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: .75rem;
    padding-top: .75rem;
    border-top: 1px solid #edf1f6;
  }
  .ip-platform-header.is-open .ip-platform-nav { display: flex; }
  .ip-nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; }
  .ip-header-actions { justify-content: space-between; }
  .ip-nav-link { padding: .7rem .65rem; background: #f8fafc; }
  .ip-language-switcher { justify-content: center; flex: 1; }
  .ip-data-table { min-width: 0; }
  .ip-table-shell { overflow: visible; }
  .ip-data-table,
  .ip-data-table tbody,
  .ip-data-table tr,
  .ip-data-table td { display: block; width: 100%; }
  .ip-data-table thead { display: none; }
  .ip-data-table tr {
    margin-bottom: .75rem;
    padding: .55rem .7rem;
    border: 1px solid #e3e9f2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(15,23,42,.045);
  }
  .ip-data-table td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .8rem;
    min-height: 34px;
    padding: .45rem 0 !important;
    border: 0 !important;
    text-align: end !important;
    white-space: normal;
  }
  .ip-data-table td::before {
    content: attr(data-label);
    flex: 0 0 42%;
    color: var(--ip-muted);
    font-size: .75rem;
    font-weight: 700;
    text-align: start;
  }
  [dir="rtl"] .ip-data-table td { text-align: left !important; }
  [dir="rtl"] .ip-data-table td::before { text-align: right; }
  .ip-data-table td.font-monospace { word-break: break-all; }
  .ip-data-table td > *,
  .ip-detail-table td > * { min-width: 0; }
  .ip-live-card table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ip-live-card table td { display: block; width: auto; }
  .ip-live-card table td.text-muted { text-align: start !important; }
  .ip-live-card table td.text-end { text-align: end !important; }
  .ip-live-card table td::before { display: none; }
  .ip-live-card .table { min-width: 0; }
  .ip-live-card .table tr { display: block; border-bottom: 1px solid rgba(255,255,255,.12); }
  .ip-live-card .table td { border: 0; }
  .ip-live-card .ip-detail-table,
  .ip-live-card .ip-detail-table tbody,
  .ip-live-card .ip-detail-table tr { display: block !important; width: 100%; }
  .ip-live-card .ip-detail-table tr {
    margin-bottom: .55rem;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 11px;
  }
  .ip-live-card .ip-detail-table td {
    display: block !important;
    width: 100% !important;
    min-width: 0;
    padding: .58rem .7rem;
    text-align: start !important;
  }
  .ip-live-card .ip-detail-table tr td:first-child,
  .ip-live-card .ip-detail-table tr td:last-child { border-radius: 0; }
  .ip-live-card .ip-detail-table td::before { display: none; }
  .ip-network-card { text-align: start !important; }
  .ip-network-card .small { white-space: normal; }
  .ip-stat-value { font-size: .95rem; overflow-wrap: anywhere; }
  .ip-header { align-items: flex-start !important; }
  .ip-header .btn { flex: 1; }
}

@media (max-width: 420px) {
  .ip-wrap { padding-inline: .75rem; }
  .ip-nav-links { grid-template-columns: 1fr 1fr; }
  .ip-page-title { font-size: 1.2rem; }
  .ip-stat-label { min-height: 2.5em; }
  .ip-card { border-radius: 12px; }
  .ip-live-card { padding: .8rem; }
  .ip-live-card .ip-detail-table td { font-size: .84rem; }
}

/* ── Public platform statistics ───────────────────────────────── */
.ip-statistics-page { max-width: 1180px; }
.ip-statistics-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  overflow: hidden;
  min-height: 210px;
  margin-bottom: 1.1rem;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(147,197,253,.26), transparent 14rem),
    linear-gradient(120deg, #142344 0%, #1f3e75 55%, #2563eb 100%);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(22,49,97,.18);
}
.ip-statistics-hero::after {
  content: "";
  position: absolute;
  width: 270px;
  height: 270px;
  inset-inline-end: 12%;
  bottom: -205px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 50%;
  box-shadow: 0 0 0 25px rgba(255,255,255,.035), 0 0 0 50px rgba(255,255,255,.025);
}
.ip-statistics-hero-content { position: relative; z-index: 1; }
.ip-statistics-eyebrow,
.ip-statistics-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #bfdbfe;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.ip-statistics-hero h1 {
  margin: .75rem 0 .45rem;
  color: #fff;
  font-size: clamp(1.65rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.035em;
}
.ip-statistics-hero p { margin: 0; color: rgba(239,246,255,.82); font-size: 1rem; }
.ip-statistics-hero-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 102px;
  height: 102px;
  color: #dbeafe;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 28px;
  font-size: 2.3rem;
  backdrop-filter: blur(10px);
}
.ip-statistics-privacy {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.15rem;
  padding: .75rem 1rem;
  color: #526176;
  background: rgba(255,255,255,.78);
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  font-size: .82rem;
}
.ip-statistics-privacy i { color: #16a34a; }
.ip-statistics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.ip-statistics-card {
  min-width: 0;
  padding: 1.25rem;
  background: rgba(255,255,255,.96);
  border: 1px solid #e2e8f0;
  border-radius: 17px;
  box-shadow: 0 7px 24px rgba(15,23,42,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ip-statistics-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15,23,42,.09); }
.ip-statistics-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.05rem; }
.ip-statistics-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 1.1rem;
}
.ip-statistics-icon.tone-blue { color: #2563eb; background: #eff6ff; }
.ip-statistics-icon.tone-violet { color: #7c3aed; background: #f5f3ff; }
.ip-statistics-icon.tone-green { color: #15803d; background: #f0fdf4; }
.ip-statistics-icon.tone-amber { color: #b45309; background: #fffbeb; }
.ip-statistics-card-mark { color: #16a34a; font-size: .9rem; }
.ip-statistics-label { color: #64748b; font-size: .82rem; font-weight: 700; }
.ip-statistics-value {
  margin: .35rem 0 .45rem;
  color: #172033;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.ip-statistics-note { color: #7b8798; font-size: .75rem; }
.ip-statistics-recent { padding: clamp(1rem, 3vw, 1.5rem); }
.ip-statistics-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.ip-statistics-section-heading h2 { margin: .25rem 0 0; color: #172033; font-size: 1.12rem; font-weight: 800; }
.ip-statistics-section-kicker { color: #7b8798; font-size: .62rem; }
.ip-statistics-live,
.ip-statistics-status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
}
.ip-statistics-live { padding: .38rem .7rem; }
.ip-statistics-live > span { width: 7px; height: 7px; background: #22c55e; border-radius: 50%; }
.ip-statistics-table-wrap { overflow-x: auto; }
.ip-statistics-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.ip-statistics-table th {
  padding: .75rem .8rem;
  color: #778397;
  background: #f8fafc;
  border-bottom: 1px solid #e7ecf3;
  font-size: .72rem;
  font-weight: 800;
  text-align: start;
  white-space: nowrap;
}
.ip-statistics-table th:first-child { border-radius: 10px 0 0 0; }
.ip-statistics-table th:last-child { border-radius: 0 10px 0 0; }
.ip-statistics-table td {
  padding: .9rem .8rem;
  color: #334155;
  border-bottom: 1px solid #eef1f6;
  font-size: .82rem;
  white-space: nowrap;
}
.ip-statistics-table tbody tr:last-child td { border-bottom: 0; }
.ip-statistics-payment-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-inline-end: .45rem;
  color: #15803d;
  background: #f0fdf4;
  border-radius: 9px;
}
.ip-statistics-network { padding: .25rem .5rem; color: #475569; background: #f1f5f9; border-radius: 6px; font-size: .73rem; }
.ip-statistics-amount { color: #172033 !important; font-weight: 800; font-variant-numeric: tabular-nums; }
.ip-statistics-date { color: #64748b !important; }
.ip-statistics-status { padding: .3rem .55rem; }
.ip-statistics-status i { font-size: .68rem; }
.ip-statistics-empty { padding: 2.5rem 1rem; color: #64748b; text-align: center; }
.ip-statistics-empty i { margin-bottom: .6rem; color: #94a3b8; font-size: 1.7rem; }
.ip-statistics-empty p { margin: 0; }

@media (max-width: 600px) {
  .ip-statistics-hero { min-height: 170px; border-radius: 17px; }
  .ip-statistics-hero-icon { width: 62px; height: 62px; border-radius: 18px; font-size: 1.5rem; }
  .ip-statistics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .ip-statistics-card { padding: .95rem .8rem; border-radius: 14px; }
  .ip-statistics-value { font-size: 1.12rem; }
  .ip-statistics-table { min-width: 520px; }
  .ip-statistics-section-heading { align-items: flex-start; }
  .ip-statistics-privacy { align-items: flex-start; font-size: .75rem; }
}

/* ── 1.3.3 mobile shell safety net ──────────────────────────────
   These rules intentionally live in the original stylesheet as well as
   mobile-app.css. Some WordPress themes load their own navigation rules
   after plugin stylesheets; the mobile app bar must remain deterministic. */
@media (max-width: 767px) {
  body.ip-platform-page {
    padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important;
  }

  body.ip-platform-page .ip-mobile-bottom-nav {
    position: fixed !important;
    inset-inline: 0 !important;
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 1100 !important;
    display: grid !important;
    grid-template-columns: repeat(var(--ip-mobile-nav-count, 5), minmax(0, 1fr)) !important;
    width: 100% !important;
    min-height: 66px !important;
    margin: 0 !important;
    padding: .4rem .35rem max(.4rem, env(safe-area-inset-bottom)) !important;
    background: rgba(255,255,255,.97) !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -8px 24px rgba(15,23,42,.1) !important;
  }

  body.ip-platform-page .ip-mobile-bottom-link {
    display: flex !important;
    min-width: 0 !important;
    min-height: 56px !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: .2rem !important;
    padding: .25rem .1rem !important;
    border-radius: 12px !important;
    color: #64748b !important;
    font-size: .66rem !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  body.ip-platform-page .ip-mobile-bottom-link.is-active {
    color: #2563eb !important;
    background: #edf3ff !important;
  }

  /* The hamburger drawer remains available, but never appears by default. */
  body.ip-platform-page .ip-platform-header:not(.is-open) .ip-platform-nav {
    display: none !important;
  }

  body.ip-platform-page .ip-platform-header.is-open .ip-platform-nav {
    display: flex !important;
    position: absolute !important;
    top: 100% !important;
    inset-inline: .75rem !important;
    z-index: 1200 !important;
    padding: .75rem !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0 0 16px 16px !important;
    box-shadow: 0 12px 28px rgba(15,23,42,.12) !important;
  }

  /* Keep action buttons useful on a phone instead of inheriting btn-lg. */
  body.ip-platform-page #btn-start-investment,
  body.ip-platform-page #btn-stop-investment,
  body.ip-platform-page #btn-deposit-submit,
  body.ip-platform-page #btn-withdraw-submit {
    display: block !important;
    width: min(100%, 420px) !important;
    min-height: 48px !important;
    margin-inline: auto !important;
    padding: .7rem 1rem !important;
    font-size: .94rem !important;
    line-height: 1.35 !important;
    white-space: normal !important;
  }

  body.ip-platform-page .ip-page-title i {
    flex: 0 0 auto;
  }

  body.ip-platform-page .fa,
  body.ip-platform-page .fas,
  body.ip-platform-page .fa-solid {
    font-family: "Font Awesome 6 Free", "FontAwesome", sans-serif !important;
    font-weight: 900 !important;
  }
}
