/*
 * 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-variant-numeric: tabular-nums;
}

.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: var(--mp-text);
  border-color: var(--mp-text);
  color: #fff;
  font-weight: 600;
}

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

.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);
}

.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 {
  border-color: var(--mp-line) !important;
}

.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);
}

.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-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-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-admin-body {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.55;
}

.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);
}

.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;
}

.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;
  }

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

@media (max-width: 991.98px) {
  .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;
  }
}

/* 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%;
  }
}
