@charset "UTF-8";
/* admin.v3.css — Wave C part 1
 * Dashboard tab styles. Loads AFTER admin.v2.css.
 */

.v3-dash {
  display: grid;
  gap: 18px;
}
.v3-dash-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.v3-dash-toolbar .eyebrow {
  font-size: 0.66rem !important;
  letter-spacing: 0.14em !important;
}

/* ── Stat grid ── */
.v3-dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.v3-stat {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 244, 222, 0.08);
  background: rgba(28, 24, 19, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 244, 222, 0.05) inset, 0 10px 26px -12px rgba(0, 0, 0, 0.55);
  transition: transform 220ms cubic-bezier(.22,1,.36,1), border-color 220ms cubic-bezier(.22,1,.36,1);
}
.v3-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 151, 63, 0.42);
}
.v3-stat span {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(200, 185, 161, 0.78);
}
.v3-stat strong {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.v3-stat-gold strong {
  background: linear-gradient(135deg, #ffe5b3, #ffd99c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.v3-stat-good strong { color: #c9f4dc; }
.v3-stat-warn strong { color: #ffcc9c; }
.v3-stat-warn { border-color: rgba(255, 178, 92, 0.36); }

/* Skeleton placeholder */
.v3-stat-skel span,
.v3-stat-skel strong {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,244,222,0) 0%, rgba(255,244,222,0.07) 50%, rgba(255,244,222,0) 100%),
              rgba(28,24,19,0.55);
  background-size: 480px 100%, 100% 100%;
  background-repeat: no-repeat, no-repeat;
  background-position: -480px 0, 0 0;
  animation: v3DashShimmer 1.4s linear infinite;
  color: transparent;
}
.v3-stat-skel span { height: 10px; width: 70%; }
.v3-stat-skel strong { height: 22px; width: 40%; }
@keyframes v3DashShimmer { 0% { background-position: -480px 0,0 0; } 100% { background-position: 480px 0,0 0; } }

/* ── Cards row (sparkline + top lists) ── */
.v3-dash-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
}
@media (max-width: 1100px) {
  .v3-dash-row { grid-template-columns: 1fr; }
}

.v3-dash-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 244, 222, 0.08);
  background: rgba(28, 24, 19, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 244, 222, 0.05) inset, 0 10px 26px -12px rgba(0, 0, 0, 0.55);
  padding: 16px;
}
.v3-dash-card header {
  margin-bottom: 14px;
}
.v3-dash-card header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}

/* ── Sparkline ── */
.v3-spark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 140px;
  padding: 6px 0;
}
.v3-spark-bar {
  position: relative;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.v3-spark-bar::before {
  content: "";
  display: block;
  width: 100%;
  height: var(--h, 0%);
  min-height: 2px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #ff6685, #d8a04a);
  box-shadow: 0 -4px 18px -4px rgba(216, 74, 99, 0.55);
  transition: height 360ms cubic-bezier(.22,1,.36,1);
}
.v3-spark-n {
  position: absolute;
  bottom: calc(var(--h, 0%) + 6px);
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(200, 185, 161, 0.7);
  pointer-events: none;
}

/* ── Top 10 lists ── */
.v3-toplist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.v3-top-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(14, 12, 9, 0.4);
  border: 1px solid rgba(255, 244, 222, 0.05);
  transition: all 160ms cubic-bezier(.22,1,.36,1);
}
.v3-top-item:hover {
  border-color: rgba(200, 151, 63, 0.32);
  background: rgba(20, 16, 12, 0.55);
}
.v3-top-rank {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(200, 151, 63, 0.22);
  color: #ffe5b3;
  font-size: 0.7rem;
  font-weight: 800;
}
.v3-top-title {
  color: var(--text, #f6efe2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v3-top-title:hover { color: #ffd99c; }
.v3-top-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.78rem;
}
.v3-top-meta strong {
  background: linear-gradient(135deg, #ffe5b3, #ffd99c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
.v3-top-meta span {
  color: rgba(200, 185, 161, 0.62);
}
.v3-top-empty {
  padding: 14px;
  color: rgba(200, 185, 161, 0.7);
  text-align: center;
  border-radius: 10px;
  border: 1px dashed rgba(255, 244, 222, 0.08);
}

/* ── Footer ── */
.v3-dash-footer {
  margin: 4px 0 0;
  color: rgba(200, 185, 161, 0.62);
  font-size: 0.74rem;
  text-align: right;
}
