/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

:root {
  --mp-ink: #17212b;
  --mp-muted: #5f6b76;
  --mp-line: #dce3ea;
  --mp-gold: #b8872f;
  --mp-green: #1c7c54;
  --mp-blue: #215f9a;
  --mp-red: #b33d3d;
  --mp-amber: #b8872f;
  --mp-bg: #f6f8fa;
  --mp-panel: #ffffff;
  --mp-soft: #eef3f7;
}

body {
  background: var(--mp-bg);
  color: var(--mp-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.navbar-brand {
  color: var(--mp-ink);
  letter-spacing: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  color: var(--mp-ink);
}

.brand-wordmark-image {
  display: block;
  width: auto;
  height: 1.65rem;
  max-width: 9.75rem;
}

.brand-wordmark {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-domain {
  color: var(--mp-muted);
  font-size: .72rem;
  font-weight: 700;
  margin-left: .15rem;
}

.market-ticker {
  position: sticky;
  top: 0;
  z-index: 1031;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: #111923;
  color: #fff;
  padding: .45rem 0;
  box-shadow: 0 8px 22px rgba(17, 25, 35, .16);
}

.ticker-status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  font-weight: 700;
  color: #d8e3ed;
}

.ticker-status strong {
  color: #fff;
}

.ticker-pulse {
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: var(--mp-green);
  box-shadow: 0 0 0 rgba(28, 124, 84, .7);
  animation: tickerPulse 1.4s infinite;
}

.ticker-prices {
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-width: max-content;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  padding: .18rem .45rem .18rem .65rem;
  transition: background-color .25s ease, transform .25s ease;
}

.ticker-item span {
  color: #c6d2df;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ticker-item strong {
  font-size: .86rem;
}

.ticker-item em {
  font-size: .72rem;
  font-style: normal;
}

.ticker-sparkline {
  width: 5rem;
  height: 1.45rem;
  flex: 0 0 5rem;
}

.ticker-sparkline polyline {
  fill: none;
  stroke: #9fb0c0;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ticker-item[data-direction="up"] .ticker-sparkline polyline {
  stroke: #f08f8f;
}

.ticker-item[data-direction="down"] .ticker-sparkline polyline {
  stroke: #78caa7;
}

.ticker-item[data-direction="flat"] .ticker-sparkline polyline {
  stroke: #9fb0c0;
}

.ticker-flash-up {
  background: rgba(179, 61, 61, .22);
  transform: translateY(-1px);
}

.ticker-flash-down {
  background: rgba(28, 124, 84, .24);
  transform: translateY(1px);
}

.ticker-flash-flat {
  background: rgba(255, 255, 255, .09);
}

@keyframes tickerPulse {
  0% { box-shadow: 0 0 0 0 rgba(28, 124, 84, .7); }
  70% { box-shadow: 0 0 0 .45rem rgba(28, 124, 84, 0); }
  100% { box-shadow: 0 0 0 0 rgba(28, 124, 84, 0); }
}

.hero-band {
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--mp-line);
}

.hero-eyebrow {
  color: var(--mp-blue);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.market-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  max-width: 36rem;
}

.market-proof-grid > div {
  border-left: 3px solid var(--mp-blue);
  background: rgba(255, 255, 255, .82);
  padding: .65rem .85rem;
}

.market-proof-value,
.market-proof-label {
  display: block;
}

.market-proof-value {
  font-size: 1.35rem;
  line-height: 1.1;
  font-weight: 800;
}

.market-proof-label {
  color: var(--mp-muted);
  font-size: .8rem;
}

.metric-card,
.recommendation-card,
.admin-card,
.ai-result-panel {
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  background: var(--mp-panel);
}

.ai-result-panel {
  border-color: rgba(33, 95, 154, .22);
  box-shadow: 0 18px 44px rgba(23, 33, 43, .08);
}

.search-console {
  box-shadow: 0 12px 30px rgba(23, 33, 43, .06);
}

.recommendation-search-grid {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(8rem, .9fr) minmax(15rem, 1.45fr) minmax(11.5rem, auto);
  gap: 1rem;
  align-items: end;
}

.investment-entry-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) minmax(13rem, auto);
  gap: 1rem;
  align-items: end;
}

.filter-submit-btn {
  width: 100%;
  min-height: calc(1.5em + .75rem + 2px);
  white-space: nowrap;
}

/* ── Product filter panel ──────────────────────────────────────────── */
.filter-panel {
  background: var(--mp-panel);
  border: 1px solid var(--mp-line);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .5rem;
}

.filter-row-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mp-muted);
  min-width: 6.5rem;
  padding-top: .35rem;
  flex-shrink: 0;
}

.filter-pill {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 20px;
  border: 1px solid var(--mp-line);
  background: #fff;
  color: var(--mp-text);
  font-size: .8rem;
  line-height: 1.5;
  text-decoration: none;
  transition: background .13s, border-color .13s, color .13s;
  white-space: nowrap;
}

.filter-pill:hover {
  border-color: #adb5bd;
  background: #f8f9fa;
  color: var(--mp-text);
}

.filter-pill--active {
  background-color: var(--mp-ink) !important;
  border-color: var(--mp-ink) !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 1px 2px rgba(17, 25, 35, .12);
}

.filter-pill--active:hover {
  background-color: #2c3e50 !important;
  border-color: #2c3e50 !important;
  color: #fff !important;
}

.score-ring {
  display: grid;
  place-items: center;
  width: 5.25rem;
  height: 5.25rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--mp-green) var(--score-angle), #e7edf2 0);
}

.score-ring span {
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 900;
}

.score-ring small {
  margin-top: -1.1rem;
  color: var(--mp-muted);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.result-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-block: 1px solid var(--mp-line);
  padding-block: 1rem;
}

.result-price-row .btn {
  white-space: nowrap;
}

.result-price {
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.ai-matrix {
  display: grid;
  gap: .7rem;
}

.ai-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .35rem .75rem;
  align-items: center;
  font-size: .9rem;
}

.ai-line span {
  color: var(--mp-muted);
}

.ai-line strong {
  color: var(--mp-ink);
}

.quality-bar {
  grid-column: 1 / -1;
  height: .45rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf2;
}

.quality-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mp-blue), var(--mp-green));
}

.calculation-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
}

.calculation-strip span {
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--mp-muted);
  padding: .55rem .65rem;
  font-size: .78rem;
}

.calculation-strip strong {
  display: block;
  color: var(--mp-ink);
  font-size: .9rem;
}

.price-card {
  min-height: 13rem;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--mp-blue);
}

.price-card-sparkline {
  position: relative;
  height: 4.25rem;
  margin-inline: -.2rem;
}

.sparkline-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.sparkline-meta {
  position: absolute;
  inset: auto .2rem .1rem auto;
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 4px 10px rgba(23, 33, 43, .08);
  padding: .2rem .45rem;
  backdrop-filter: blur(4px);
}

.sparkline-meta span {
  color: var(--mp-muted);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.sparkline-meta strong {
  color: var(--mp-ink);
  font-size: .72rem;
  font-weight: 800;
}

.price-card.gold {
  border-top-color: var(--mp-gold);
}

.price-card.silver {
  border-top-color: #687786;
}

.price-card.platinum {
  border-top-color: #487792;
}

.price-card.copper {
  border-top-color: #a85930;
}

.live-badge {
  border: 1px solid rgba(28, 124, 84, .25);
  border-radius: 999px;
  color: var(--mp-green);
  background: rgba(28, 124, 84, .08);
  padding: .15rem .55rem;
  font-size: .75rem;
  font-weight: 700;
}

.chart-panel {
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(23, 33, 43, .05);
}

.chart-wrap {
  height: 360px;
}

.advanced-chart {
  width: 100%;
  height: 100%;
}

.metric-label {
  color: var(--mp-muted);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  border-radius: 999px;
  padding: .25rem .65rem;
  color: #fff;
  background: var(--mp-green);
  font-weight: 700;
}

.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  border-radius: 999px;
  padding: .18rem .55rem;
  font-weight: 800;
  white-space: nowrap;
}

.trend-up {
  color: var(--mp-red);
  background: rgba(179, 61, 61, .10);
}

.trend-down {
  color: var(--mp-green);
  background: rgba(28, 124, 84, .10);
}

.trend-flat {
  color: var(--mp-muted);
  background: rgba(95, 107, 118, .12);
}

.admin-diagnostics-table {
  min-width: 1100px;
}

.admin-debug-details summary {
  cursor: pointer;
  color: var(--mp-blue);
}

.admin-debug-json {
  max-width: min(78rem, 100%);
  max-height: 28rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-debug-value {
  max-width: 18rem;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.table thead th {
  white-space: nowrap;
  font-size: .85rem;
}

.table td {
  vertical-align: middle;
}

.filter-bar {
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  background: #fff;
}

.offer-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.offer-table {
  border-color: var(--mp-line) !important;
  table-layout: fixed;
  font-size: .88rem;
}

.offer-table th,
.offer-table td {
  padding: .7rem .75rem;
}

.offer-table th:nth-child(1) {
  width: 29%;
}

.offer-table th:nth-child(2) {
  width: 16%;
}

.offer-table th:nth-child(3) {
  width: 15%;
}

.offer-table th:nth-child(4),
.offer-table th:nth-child(5),
.offer-table th:nth-child(6),
.offer-table th:nth-child(7),
.offer-table th:nth-child(8),
.offer-table th:nth-child(9) {
  width: auto;
}

.offer-table tbody tr {
  transition: background-color .35s ease, box-shadow .35s ease;
}

.offer-table tbody tr.price-moved-up {
  background: rgba(179, 61, 61, .08);
}

.offer-table tbody tr.price-moved-down {
  background: rgba(28, 124, 84, .08);
}

.offer-table tbody tr.price-moved-flat {
  background: rgba(95, 107, 118, .06);
}

.offer-product-cell,
.offer-dealer-cell,
.offer-money-cell {
  min-width: 0;
}

.offer-product-title,
.offer-dealer-link {
  display: inline-block;
  max-width: 100%;
  color: var(--mp-ink);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.offer-dealer-link {
  font-weight: 700;
}

.offer-product-title:hover,
.offer-dealer-link:hover {
  color: var(--mp-blue);
  text-decoration: underline;
}

.offer-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .55rem;
  margin-top: .25rem;
  color: var(--mp-muted);
  font-size: .72rem;
  line-height: 1.35;
}

.offer-product-meta span {
  min-width: 0;
}

.offer-money-cell strong {
  display: block;
  color: var(--mp-ink);
  font-size: .98rem;
  line-height: 1.2;
}

.offer-status-cell {
  color: var(--mp-muted);
  font-size: .78rem;
  font-weight: 700;
}

.offer-buy-button {
  min-width: 5.75rem;
}

.runtime-progress-panel {
  box-shadow: 0 14px 34px rgba(23, 33, 43, .05);
}

.runtime-refresh-note {
  align-self: flex-start;
  border: 1px solid var(--mp-line);
  border-radius: 999px;
  color: var(--mp-muted);
  font-size: .78rem;
  font-weight: 800;
  padding: .35rem .75rem;
}

.runtime-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.runtime-progress-card {
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 1rem;
}

.runtime-progress-card.is-active {
  border-color: rgba(33, 95, 154, .35);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(33, 95, 154, .08);
}

.runtime-progress-title {
  color: var(--mp-muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.runtime-progress-current {
  color: var(--mp-ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
}

.runtime-progress-detail {
  color: var(--mp-muted);
  font-size: .8rem;
  min-height: 2.1rem;
  overflow-wrap: anywhere;
}

.runtime-status-pill {
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
  padding: .25rem .55rem;
}

.runtime-status-pill.active {
  background: rgba(28, 124, 84, .12);
  color: var(--mp-green);
}

.runtime-status-pill.idle {
  background: rgba(95, 107, 118, .12);
  color: var(--mp-muted);
}

.runtime-progress-track {
  width: 100%;
  height: .65rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e5edf3;
  margin-top: .85rem;
}

.runtime-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mp-blue), var(--mp-gold));
  transition: width .35s ease;
}

.runtime-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .45rem;
  color: var(--mp-muted);
  font-size: .78rem;
  font-weight: 800;
}

.blog-hero,
.blog-article-header {
  background: #fff;
  border-bottom: 1px solid var(--mp-line);
}

.blog-featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  background: #fff;
  padding: 1.25rem;
  box-shadow: 0 12px 34px rgba(23, 33, 43, .05);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
}

.blog-card {
  position: relative;
  min-height: 15rem;
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  background: #fff;
  padding: 1.1rem;
  transition: transform .18s ease, box-shadow .18s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(23, 33, 43, .08);
}

.blog-featured-side {
  display: grid;
  gap: .85rem;
  justify-items: end;
  min-width: 12rem;
}

.blog-featured-image,
.blog-card-image {
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  background: #eef3f7;
}

.blog-featured-image {
  width: 14rem;
  max-width: 100%;
}

.blog-featured-image img,
.blog-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eef3f7;
}

.blog-card-image {
  margin: -.2rem -.2rem .9rem;
}

.blog-read-link {
  color: var(--mp-blue);
  font-weight: 800;
  text-decoration: none;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .75rem;
  color: var(--mp-muted);
  font-size: .85rem;
}

.blog-meta span + span::before {
  content: "";
  display: inline-block;
  width: .28rem;
  height: .28rem;
  margin-right: .75rem;
  border-radius: 50%;
  background: var(--mp-line);
  vertical-align: middle;
}

.blog-article-header {
  padding: 3rem 0 2rem;
}

.blog-cover-media {
  overflow: hidden;
  max-width: 58rem;
  margin: 1.5rem 0 0;
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 18px 42px rgba(23, 33, 43, .07);
}

.blog-cover-media img,
.blog-inline-media img {
  display: block;
  width: 100%;
  height: auto;
  background: #eef3f7;
}

.blog-cover-media figcaption,
.blog-inline-media figcaption,
.blog-video-embed figcaption {
  padding: .72rem .9rem;
  color: var(--mp-muted);
  font-size: .88rem;
  font-weight: 650;
}

.blog-media-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
  max-width: 58rem;
  margin: 0 0 1.75rem;
}

.blog-inline-media,
.blog-video-embed {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 33, 43, .05);
}

.blog-video-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #111923;
}

.blog-body {
  max-width: 48rem;
  color: #25313d;
  font-size: 1.08rem;
  line-height: 1.78;
}

.blog-body p {
  margin-bottom: 1.15rem;
}

.blog-body h2 {
  margin: 2.4rem 0 1rem;
  color: #111827;
  font-size: 1.55rem;
  line-height: 1.25;
}

.blog-body h3 {
  margin: 1.8rem 0 .65rem;
  color: #111827;
  font-size: 1.2rem;
  line-height: 1.3;
}

.blog-body ul {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.blog-body li + li {
  margin-top: .45rem;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.blog-tags span {
  border: 1px solid var(--mp-line);
  border-radius: 999px;
  background: #fff;
  padding: .25rem .65rem;
  color: var(--mp-muted);
  font-size: .82rem;
  font-weight: 700;
}

.blog-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  max-width: 58rem;
  border: 1px solid rgba(33, 95, 154, .22);
  border-radius: 8px;
  background: #fff;
  padding: 1.25rem;
}

.blog-rich-editor {
  overflow: hidden;
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  background: #fff;
}

.blog-rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
  border-bottom: 1px solid var(--mp-line);
  background: #f8fafc;
  padding: .55rem;
}

.blog-rich-toolbar button {
  min-height: 2.15rem;
  border: 1px solid #cbd6df;
  border-radius: 6px;
  background: #fff;
  padding: .3rem .65rem;
  color: #17212b;
  font-size: .86rem;
  font-weight: 800;
}

.blog-rich-toolbar button:hover,
.blog-rich-toolbar button:focus-visible {
  border-color: var(--mp-blue);
  color: var(--mp-blue);
}

.blog-rich-surface {
  min-height: 34rem;
  padding: 1.1rem;
  color: #25313d;
  font-size: 1rem;
  line-height: 1.7;
  outline: 0;
}

.blog-rich-surface:focus {
  box-shadow: inset 0 0 0 .18rem rgba(33, 95, 154, .15);
}

.blog-rich-surface h2,
.blog-rich-surface h3,
.blog-rich-surface h4 {
  color: #111827;
  font-weight: 800;
}

.blog-rich-surface h2 {
  margin: 1.8rem 0 .75rem;
  font-size: 1.45rem;
}

.blog-rich-surface h3 {
  margin: 1.4rem 0 .6rem;
  font-size: 1.2rem;
}

.blog-rich-surface p,
.blog-rich-surface ul,
.blog-rich-surface ol,
.blog-rich-surface blockquote {
  margin-bottom: 1rem;
}

.blog-rich-surface blockquote {
  border-left: 4px solid var(--mp-gold);
  background: #f8fafc;
  padding: .8rem 1rem;
}

.admin-media-panel {
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 1rem;
}

.admin-media-list {
  display: grid;
  gap: .9rem;
}

.admin-media-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  background: #fff;
  padding: .9rem;
}

.admin-media-thumb {
  flex: 0 0 8rem;
  overflow: hidden;
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  background: #fff;
}

.admin-media-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.recommendation-hero {
  background: #fff;
  border-bottom: 1px solid var(--mp-line);
}

.recommendation-config,
.recommendation-visual,
.recommendation-offer-card {
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  background: #fff;
}

.recommendation-config {
  box-shadow: 0 14px 34px rgba(23, 33, 43, .06);
}

.recommendation-config-grid {
  display: grid;
  grid-template-columns: minmax(8rem, .8fr) minmax(12rem, 1.05fr) minmax(13rem, 1.15fr) minmax(8rem, auto);
  gap: .8rem;
  align-items: end;
}

.recommendation-field {
  min-width: 0;
}

.recommendation-field-label,
.recommendation-allocation-heading span {
  display: block;
  color: var(--mp-muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.1;
  margin-bottom: .45rem;
  text-transform: uppercase;
}

.recommendation-config .form-control,
.recommendation-config .form-select {
  min-height: 3rem;
  border-color: #d8e0e7;
  border-radius: 7px;
  color: var(--mp-ink);
  font-weight: 650;
  box-shadow: none;
}

.recommendation-config .form-control:focus,
.recommendation-config .form-select:focus {
  border-color: rgba(33, 95, 154, .55);
  box-shadow: 0 0 0 .2rem rgba(33, 95, 154, .1);
}

.recommendation-config input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.recommendation-config input[type="number"]::-webkit-outer-spin-button,
.recommendation-config input[type="number"]::-webkit-inner-spin-button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}

.recommendation-amount-control,
.recommendation-percent-control {
  position: relative;
}

.recommendation-amount-control .form-control {
  padding-right: 3.35rem;
}

.recommendation-amount-control span,
.recommendation-percent-control span {
  position: absolute;
  top: 50%;
  right: .85rem;
  transform: translateY(-50%);
  color: var(--mp-muted);
  font-size: .78rem;
  font-weight: 800;
  pointer-events: none;
}

.recommendation-field-submit .btn {
  min-height: 3rem;
  width: 100%;
  padding-inline: 1.35rem;
  white-space: nowrap;
}

.recommendation-allocation-editor {
  margin-top: 1rem;
  padding-top: .95rem;
  border-top: 1px solid var(--mp-line);
}

.recommendation-allocation-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .6rem;
}

.recommendation-allocation-heading span {
  margin-bottom: 0;
}

.recommendation-allocation-heading strong {
  border: 1px solid rgba(33, 95, 154, .18);
  border-radius: 999px;
  background: rgba(33, 95, 154, .06);
  color: var(--mp-blue);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  padding: .34rem .55rem;
}

.recommendation-allocation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
}

.recommendation-allocation-chip {
  display: grid;
  grid-template-columns: minmax(4.5rem, 1fr) minmax(4.25rem, .75fr);
  gap: .5rem;
  align-items: center;
  min-width: 0;
  margin: 0;
  border: 1px solid #dfe6ec;
  border-radius: 8px;
  background: #f8fafc;
  padding: .55rem .6rem;
}

.recommendation-allocation-name {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-width: 0;
  color: var(--mp-ink);
  font-size: .9rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.recommendation-allocation-name i {
  display: inline-block;
  width: .62rem;
  height: .62rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--mp-blue);
}

.recommendation-allocation-chip--gold .recommendation-allocation-name i {
  background: #c79a25;
}

.recommendation-allocation-chip--silver .recommendation-allocation-name i {
  background: #94a3b8;
}

.recommendation-allocation-chip--platinum .recommendation-allocation-name i {
  background: #64748b;
}

.recommendation-allocation-chip--copper .recommendation-allocation-name i {
  background: #b66b35;
}

.recommendation-percent-control .form-control {
  min-height: 2.25rem;
  padding: .35rem 1.55rem .35rem .6rem;
  text-align: right;
}

.recommendation-percent-control .form-control:disabled {
  background: #eef2f6;
  color: #697684;
  opacity: 1;
}

.recommendation-unlock-band {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) minmax(28rem, .9fr);
  gap: 1.5rem;
  align-items: center;
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 33, 43, .06);
  padding: 1.25rem;
}

.recommendation-unlock-copy {
  max-width: 46rem;
}

.recommendation-unlock-form {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) auto;
  gap: .75rem 1rem;
  align-items: end;
}

.recommendation-unlock-form .form-check {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.recommendation-unlock-form .btn {
  min-width: 12rem;
  white-space: nowrap;
}

.recommendation-locked-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 14px 34px rgba(23, 33, 43, .06);
}

.recommendation-locked-content {
  filter: blur(6px);
  opacity: .72;
  pointer-events: none;
  user-select: none;
}

.recommendation-preview-stack span,
.preview-build-bar span {
  animation: preview-bar-build 1.7s cubic-bezier(.2, .8, .2, 1) both;
  transform-origin: left center;
}

.recommendation-preview-stack span:nth-child(2),
.preview-build-bar:nth-of-type(2) span {
  animation-delay: .16s;
}

.recommendation-preview-stack span:nth-child(3) {
  animation-delay: .28s;
}

.recommendation-preview-chart {
  position: relative;
  overflow: hidden;
  min-height: 9rem;
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  background: #f8fafc;
  padding: .75rem;
}

.recommendation-preview-chart svg {
  display: block;
  width: 100%;
  height: 7.5rem;
}

.preview-grid {
  fill: none;
  stroke: rgba(104, 119, 134, .18);
  stroke-width: 1;
}

.preview-line {
  fill: none;
  stroke: var(--mp-blue);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: preview-line-draw 2.2s ease-out .15s forwards;
}

.recommendation-preview-bars {
  position: absolute;
  right: .8rem;
  bottom: .8rem;
  left: .8rem;
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: .35rem;
  height: 4.6rem;
  opacity: .82;
}

.recommendation-preview-bars span {
  display: block;
  width: .55rem;
  border-radius: 999px 999px 0 0;
  background: var(--mp-gold);
  animation: preview-bar-rise 1.35s ease-out both;
  transform-origin: bottom center;
}

.recommendation-preview-bars span:nth-child(2) {
  animation-delay: .12s;
}

.recommendation-preview-bars span:nth-child(3) {
  animation-delay: .24s;
}

.recommendation-preview-bars span:nth-child(4) {
  animation-delay: .36s;
}

.recommendation-preview-bars span:nth-child(5) {
  animation-delay: .48s;
}

@keyframes preview-bar-build {
  from {
    transform: scaleX(.08);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes preview-line-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes preview-bar-rise {
  from {
    transform: scaleY(.08);
    opacity: .4;
  }

  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

.allocation-bars {
  display: grid;
  gap: .7rem;
}

.allocation-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .35rem .75rem;
  font-size: .9rem;
}

.allocation-line .quality-bar {
  grid-column: 1 / -1;
}

.quality-bar span.gold,
.cost-stack .metal-value,
.cost-legend i.metal-value {
  background: var(--mp-gold);
}

.quality-bar span.silver {
  background: #687786;
}

.quality-bar span.platinum {
  background: #487792;
}

.quality-bar span.copper {
  background: #a85930;
}

.cost-stack {
  display: flex;
  width: 100%;
  min-height: 1.1rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--mp-soft);
}

.cost-stack span {
  display: block;
  min-width: .25rem;
}

.cost-stack .premium,
.cost-legend i.premium {
  background: var(--mp-blue);
}

.cost-stack .fees,
.cost-legend i.fees {
  background: var(--mp-red);
}

.cost-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .9rem;
  color: var(--mp-muted);
  font-size: .82rem;
  font-weight: 700;
}

.cost-legend i {
  display: inline-block;
  width: .65rem;
  height: .65rem;
  margin-right: .35rem;
  border-radius: 50%;
}

.recommendation-factor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: .55rem;
}

.recommendation-factor-grid span {
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  background: #f8fafc;
  padding: .55rem .65rem;
  color: var(--mp-muted);
  font-size: .84rem;
  font-weight: 800;
}

.recommendation-offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
}

.recommendation-offer-card {
  padding: 1rem;
  box-shadow: 0 12px 30px rgba(23, 33, 43, .05);
}

.recommendation-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}

.recommendation-price-grid span {
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--mp-muted);
  padding: .55rem;
  font-size: .78rem;
}

.recommendation-price-grid strong {
  display: block;
  color: var(--mp-ink);
  font-size: .95rem;
}

.status-dot {
  display: inline-block;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  margin-right: .35rem;
  background: var(--mp-muted);
}

.status-dot.available {
  background: var(--mp-green);
}

.status-dot.sold_out {
  background: #a33a3a;
}

.status-dot.limited,
.status-dot.preorder {
  background: var(--mp-gold);
}

@media (max-width: 767.98px) {
  .market-proof-grid,
  .calculation-strip {
    grid-template-columns: 1fr;
  }

  .search-console {
    padding: 1rem !important;
  }

  .result-price-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-featured,
  .blog-cta {
    grid-template-columns: 1fr;
  }

  .blog-featured-side {
    justify-items: stretch;
  }

  .blog-featured-image {
    width: 100%;
  }

  .admin-media-item {
    flex-direction: column;
  }

  .admin-media-thumb {
    width: 100%;
    flex-basis: auto;
  }

  .sparkline-meta {
    position: static;
    display: inline-flex;
    margin-top: .35rem;
  }
}

@media (max-width: 991.98px) {
  .recommendation-unlock-band {
    grid-template-columns: 1fr;
  }

  .recommendation-unlock-form {
    grid-template-columns: 1fr;
  }

  .recommendation-unlock-form .btn {
    width: 100%;
  }

  .recommendation-config-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recommendation-field-submit {
    grid-column: 1 / -1;
  }

  .recommendation-allocation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offer-table {
    table-layout: auto;
    min-width: 62rem;
  }

  .runtime-progress-grid {
    grid-template-columns: 1fr;
  }

  .recommendation-search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recommendation-search-grid .search-submit,
  .investment-entry-grid .search-submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .ticker-sparkline {
    display: none;
  }

  .recommendation-search-grid {
    grid-template-columns: 1fr;
  }

  .investment-entry-grid {
    grid-template-columns: 1fr;
  }

  .recommendation-config {
    padding: 1rem !important;
  }

  .recommendation-config-grid,
  .recommendation-allocation-grid {
    grid-template-columns: 1fr;
  }

  .recommendation-allocation-chip {
    grid-template-columns: minmax(5rem, 1fr) minmax(5rem, .75fr);
  }
}

/* Footer */
.footer-link:hover {
  color: var(--mp-ink) !important;
  text-decoration: underline !important;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1085;
  border: 1px solid rgba(23, 33, 43, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 20px 48px rgba(23, 33, 43, .18);
  backdrop-filter: blur(14px);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.cookie-settings-button {
  border: 0;
  background: transparent;
}

.cookie-status-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  padding: .28rem .7rem;
  background: rgba(95, 107, 118, .12);
  color: var(--mp-ink);
  font-size: .8rem;
  font-weight: 700;
}

.cookie-status-badge.status-enabled {
  background: rgba(28, 124, 84, .12);
  color: var(--mp-green);
}

.cookie-status-badge.status-disabled {
  background: rgba(179, 61, 61, .1);
  color: var(--mp-red);
}

.privacy-settings-card {
  border: 1px solid rgba(33, 95, 154, .18);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(23, 33, 43, .06);
}

@media (max-width: 575.98px) {
  .cookie-banner {
    right: .75rem;
    bottom: .75rem;
    left: .75rem;
  }

  .cookie-banner__actions .btn,
  .cookie-banner__actions .cookie-settings-button {
    width: 100%;
  }
}
