/*!
 * IGR Market Dashboard v1.0
 */
:root {
  --igr-bg: #08111e;
  --igr-strip: #0e1829;
  --igr-card: radial-gradient(circle at top, #132238, #08111e);
  --igr-border: rgba(255, 255, 255, 0.08);
  --igr-title: #f8fafc;
  --igr-text: #fff;
  --igr-muted: #9ca3af;
  --igr-gold: #d8b24a;
  --igr-green: #3bcf7c;
  --igr-red: #ef4444;
  --igr-radius: 22px;
  --igr-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  --igr-transition: 0.25s ease;
  --igr-max-width: 1500px;
}
#igr-market-dashboard,
.igr-dashboard {
  position: relative;

  margin-top: -90px;

  z-index: 10;

  padding: 80px 30px;

  width: 100%;
  background: linear-gradient(180deg, #08111e, #0e1829);
  color: var(--igr-text);
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  box-sizing: border-box;
}
.igr-dashboard * {
  box-sizing: border-box;
}
.igr-dashboard__container {
  max-width: var(--igr-max-width);
  margin: 0 auto;
}
.igr-dashboard__header {
  text-align: center;
  margin-bottom: 70px;
}
.igr-dashboard__status {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  padding: 8px 18px;

  border-radius: 30px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.05);

  margin-bottom: 24px;
}
.igr-dashboard__status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--igr-green);
}
.igr-dashboard__title {
  margin: 0;

  font-size: 3rem;

  font-weight: 700;

  letter-spacing: -1px;
}
.igr-dashboard__subtitle {
  margin-top: 16px;

  font-size: 1.05rem;

  color: #97a6bb;
}
.igr-dashboard__grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 34px;
}
.igr-card {
  background: var(--igr-card);
  border: 1px solid var(--igr-border);
  border-radius: var(--igr-radius);
  padding: 38px;
  min-height: 470px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--igr-shadow);
  transition: transform var(--igr-transition);
}
.igr-card:hover {
  transform: translateY(-8px);

  border-color: rgba(216, 178, 74, 0.35);

  background: #172844;
}
.igr-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 45px;
}
.igr-card__icon {
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;
  color: #e8edf5;

  border-radius: 50%;

  flex-shrink: 0;

  background: rgba(255, 255, 255, 0.06);

  overflow: hidden;
}

.igr-card__icon-image {
  width: 22px;
  height: 22px;

  display: block;

  object-fit: contain;
  opacity: 0.95;
}

.igr-card--gold .igr-card__icon {
  background: rgba(216, 178, 74, 0.12);

  border: 1px solid rgba(216, 178, 74, 0.2);
}

.igr-card--intrinsic .igr-card__icon {
  background: rgba(59, 207, 124, 0.1);

  border: 1px solid rgba(59, 207, 124, 0.18);
}

.igr-card--market .igr-card__icon {
  background: rgba(77, 163, 255, 0.1);

  border: 1px solid rgba(77, 163, 255, 0.18);
}
.igr-card__title {
  font-size: 1.2rem;

  font-weight: 600;
}
.igr-card__value {
  font-size: 4.2rem;

  line-height: 1;

  font-weight: 700;

  letter-spacing: -2px;
}
.igr-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;

  gap: 14px;

  margin-bottom: 35px;
}
.igr-card__unit {
  font-size: 0.9rem;

  color: #9ba9bc;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}
.igr-card__chart {
  margin: 30px 0;
  height: 60px;
  border-radius: 8px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
}
.igr-card__info {
  margin-top: 35px;

  background: rgba(255, 255, 255, 0.035);

  border: 1px solid rgba(255, 255, 255, 0.05);

  border-radius: 14px;

  overflow: hidden;
}
.igr-info-row {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 16px 18px;
}

.igr-info-row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.igr-info-label {
  color: #97a6bb;

  font-size: 0.92rem;
}

.igr-info-value {
  color: white;

  font-weight: 600;
}

.igr-loading {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}
.igr-loading:after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  animation: igrShimmer 1.4s infinite;
}

.igr-card__sparkline {
  margin: 28px 0;

  height: 70px;
  min-height: 70px;
}
.igr-sparkline {
  width: 100%;

  height: 90px;

  overflow: visible;
}
.igr-sparkline polyline {
  fill: none;

  stroke-width: 2.4;

  stroke-linejoin: round;

  stroke-linecap: round;
}

.igr-grid line {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

#gold-sparkline {
  fill: none;

  stroke: #d8b24a;
  stroke-width: 2.6;

  stroke-linecap: round;

  stroke-linejoin: round;
}
#market-sparkline {
  fill: none;

  stroke: #4da3ff;
  stroke-width: 2.6;

  stroke-linecap: round;

  stroke-linejoin: round;
}
@keyframes igrShimmer {
  to {
    transform: translateX(100%);
  }
}
@media (max-width: 1200px) {
  .igr-dashboard__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 991px) {
  .igr-dashboard__grid {
    grid-template-columns: 1fr;
  }
  .igr-card {
    min-height: auto;

    padding: 28px;
  }
  .igr-dashboard {
    padding: 40px 12px;
  }
}

@media (max-width: 768px) {
  #igr-market-dashboard,
  .igr-dashboard {
    padding: 40px 12px;
  }
  .igr-dashboard__grid {
    display: grid;

    grid-template-columns: 1fr;

    gap: 24px;
  }

  .igr-card {
    width: 100%;
    padding: 24px;
    min-width: 0;
  }
  .igr-dashboard__title {
    font-size: 2rem;
  }
  .igr-card__value {
    font-size: 3rem;
  }
  .igr-card__price {
    font-size: 3rem;
  }
  .igr-card__sparkline {
    margin: 22px 0;

    height: 80px;
  }

  .igr-sparkline {
    height: 80px;
  }
}

/* ===========================================
   Intrinsic Illustration
=========================================== */

.igr-card__illustration {
  display: flex;

  justify-content: center;

  align-items: center;

  height: 110px;

  margin: 18px 0 22px;

  overflow: hidden;
}

.igr-card__illustration-image {
  max-width: 180px;

  max-height: 95px;

  width: 100%;

  height: auto;

  object-fit: contain;

  opacity: 0.82;

  transition: all 0.3s ease;
}

.igr-card:hover .igr-card__illustration-image {
  transform: scale(1.03);
}
.igr-card__meta {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);

  display: flex;
  justify-content: space-between;
  align-items: center;
}
.igr-card__footer-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
}

.igr-card__footer-value {
  color: #ffffff;
  font-weight: 600;
}

/*=========================================
  Footer Status
=========================================*/

.igr-card__footer-value {
  font-weight: 600;

  transition: color 0.3s ease;
}

.igr-fresh {
  color: #3bcf7c;
}

.igr-recent {
  color: #f6c343;
}

.igr-stale {
  color: #ef4444;
}
