/**
 * Phase 4 — market visual elevation
 * Technical premium: dark slate + electric blue + soft green verified.
 * Avoid purple glow / sci-fi clutter.
 */
:root {
  --lvl-elevate-bg: #070b14;
  --lvl-elevate-card: rgba(15, 23, 42, 0.92);
  --lvl-elevate-border: rgba(148, 163, 184, 0.18);
  --lvl-elevate-blue: #3b82f6;
  --lvl-elevate-blue-soft: rgba(59, 130, 246, 0.16);
  --lvl-elevate-green: #4ade80;
  --lvl-elevate-green-soft: rgba(74, 222, 128, 0.14);
  --lvl-elevate-amber: #fbbf24;
  --lvl-elevate-text: #e8eef8;
  --lvl-elevate-muted: #94a3b8;
}

/* Depth badges */
.badge-depth,
.lvl-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--lvl-elevate-border);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  vertical-align: middle;
}
.lvl-badge--deep {
  color: #86efac;
  background: var(--lvl-elevate-green-soft);
  border-color: rgba(74, 222, 128, 0.4);
}
.lvl-badge--standard {
  color: #93c5fd;
  background: var(--lvl-elevate-blue-soft);
  border-color: rgba(59, 130, 246, 0.4);
}
.lvl-badge--outline,
.lvl-badge--outline_only {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.35);
}
.lvl-badge--stub {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.35);
}
.lvl-badge--exec {
  color: #d1fae5;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.2), rgba(59, 130, 246, 0.12));
  border-color: rgba(74, 222, 128, 0.45);
}
.lvl-badge--exec::before {
  content: "✓";
  font-weight: 900;
  color: var(--lvl-elevate-green);
}

/* Elevated skill cards */
.skill-card {
  background: var(--lvl-elevate-card) !important;
  border: 1px solid var(--lvl-elevate-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.skill-card:hover {
  border-color: rgba(59, 130, 246, 0.4) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}
.skill-card::before {
  height: 3px !important;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.55),
    rgba(74, 222, 128, 0.45),
    transparent
  ) !important;
}
.skill-card .price {
  color: var(--lvl-elevate-green) !important;
  font-size: 1rem !important;
}
.skill-card .card-foot .btn-mm {
  background: linear-gradient(135deg, #15803d, #22c55e) !important;
  color: #052e16 !important;
  border: none !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.25);
}
.skill-card--deep {
  border-color: rgba(74, 222, 128, 0.28) !important;
}
.skill-card--exec {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(74, 222, 128, 0.12);
}

/* Marketplace deep shelf elevate */
#featured-deep-shelf {
  background:
    linear-gradient(120deg, rgba(8, 12, 22, 0.55), rgba(8, 12, 22, 0.88)),
    url("/assets/imagine/skill-card-elevate.jpg") center / cover no-repeat !important;
  border-color: rgba(74, 222, 128, 0.35) !important;
}

/* Listing sticky buy bar */
.lvl-sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: rgba(7, 11, 20, 0.94);
  border-top: 1px solid rgba(74, 222, 128, 0.35);
  backdrop-filter: blur(10px);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
}
.lvl-sticky-buy__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
  font-size: 0.88rem;
  color: var(--lvl-elevate-text);
}
.lvl-sticky-buy__meta strong {
  color: var(--lvl-elevate-green);
  font-variant-numeric: tabular-nums;
}
.lvl-sticky-buy__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.lvl-sticky-buy .btn-buy-usdc {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #15803d, #22c55e);
  color: #052e16;
  font-weight: 800;
  text-decoration: none;
  border: none;
  font-size: 0.92rem;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.28);
}
.lvl-sticky-buy .btn-buy-usdc:hover {
  filter: brightness(1.05);
  text-decoration: none;
}
.lvl-sticky-buy .btn-outline {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e8eef8;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}
.lvl-sticky-buy-spacer {
  height: 4.25rem;
}
@media (max-width: 640px) {
  .lvl-sticky-buy {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
  }
  .lvl-sticky-buy__actions {
    justify-content: stretch;
  }
  .lvl-sticky-buy .btn-buy-usdc {
    text-align: center;
    flex: 1;
  }
}

/* Listing page hierarchy */
.lvl-listing-hero {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid var(--lvl-elevate-border);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.8)),
    url("/assets/imagine/skill-card-elevate.jpg") right center / cover no-repeat;
}
.lvl-listing-hero__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.lvl-listing-hero .price {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--lvl-elevate-green);
  margin: 0.15rem 0;
}
.lvl-exec-panel {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.07);
}
.lvl-exec-panel h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: #86efac;
}
.lvl-exec-panel pre {
  margin: 0.65rem 0 0;
  padding: 0.75rem;
  border-radius: 10px;
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.15);
  overflow: auto;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #cbd5e1;
  max-height: 16rem;
}
.lvl-eval-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}
@media (max-width: 700px) {
  .lvl-eval-path {
    grid-template-columns: 1fr;
  }
}
.lvl-eval-step {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--lvl-elevate-border);
  background: rgba(15, 23, 42, 0.85);
  font-size: 0.85rem;
  line-height: 1.4;
}
.lvl-eval-step strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #bfdbfe;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Activity / funnel empty-state art */
.lvl-proof-art {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--lvl-elevate-border);
  margin: 0.75rem 0 1rem;
  opacity: 0.92;
}
.lvl-success-art {
  width: 100%;
  max-width: 520px;
  border-radius: 14px;
  border: 1px solid rgba(74, 222, 128, 0.3);
  display: block;
  margin: 0.75rem auto;
}

/* Funnel public strip */
.lvl-funnel-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}
@media (max-width: 720px) {
  .lvl-funnel-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.lvl-funnel-strip .cell {
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--lvl-elevate-border);
  background: rgba(15, 23, 42, 0.9);
}
.lvl-funnel-strip .cell b {
  display: block;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  color: #93c5fd;
}
.lvl-funnel-strip .cell span {
  font-size: 0.72rem;
  color: var(--lvl-elevate-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
