/* Member Command Center — dashboard styling
   Built on the Temple's live homepage palette (mega24-global.css --ht24-* vars)
   so this page carries the same energy as the homepage. */

.command {
  max-width: var(--ht24-max, 1400px);
  margin: 0 auto;
  padding: 48px 24px 96px;
  color: var(--ht24-white, #f5f5f2);
}

.command .hero {
  padding: 24px 0 40px;
  border-bottom: 1px solid var(--ht24-border, rgba(255,255,255,.10));
  margin-bottom: 40px;
}

.command .eyebrow {
  color: var(--ht24-gold, #f5b900);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.command h1 {
  margin: 10px 0 4px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: .9;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: -.04em;
}

.command .member-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--ht24-gold, #f5b900);
  margin-bottom: 16px;
}

.command .subtitle {
  max-width: 560px;
  color: var(--ht24-muted, #a7a7a7);
  font-size: 16px;
  line-height: 1.6;
}

.command .links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.command .links a {
  display: inline-flex;
  padding: 12px 20px;
  border: 1px solid var(--ht24-border, rgba(255,255,255,.10));
  border-radius: 999px;
  color: var(--ht24-white, #f5f5f2);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: border-color .15s ease, color .15s ease;
}

.command .links a:hover {
  border-color: var(--ht24-gold, #f5b900);
  color: var(--ht24-gold, #f5b900);
}

#login-message {
  display: none;
  max-width: 480px;
  margin: 0 auto 40px;
  padding: 40px 32px;
  text-align: center;
  background: var(--ht24-panel, #111111);
  border: 1px solid var(--ht24-border, rgba(255,255,255,.10));
  border-radius: var(--ht24-radius, 14px);
  font-size: 16px;
  color: var(--ht24-muted, #a7a7a7);
}

.command .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.command .card {
  background: var(--ht24-panel, #111111);
  border: 1px solid var(--ht24-border, rgba(255,255,255,.10));
  border-radius: var(--ht24-radius, 14px);
  padding: 24px;
  transition: border-color .2s ease, transform .2s ease;
}

.command .card:hover {
  border-color: var(--ht24-border-strong, rgba(245,185,0,.35));
  transform: translateY(-2px);
}

.command .card.wide { grid-column: span 2; }

.command .card .label {
  color: var(--ht24-gold, #f5b900);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
}

.command .card .icon {
  font-size: 22px;
  margin-bottom: 8px;
  display: block;
}

.command .card .value {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  color: var(--ht24-white, #f5f5f2);
  font-variant-numeric: proportional-nums;
}

.command .card .small {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ht24-muted, #a7a7a7);
  line-height: 1.5;
}

.card-hero-meter {
  text-align: center;
}

.meter-ring {
  --pct: 0;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  margin: 4px auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: conic-gradient(
    var(--ht24-gold, #f5b900) calc(var(--pct) * 1%),
    rgba(245,185,0,.14) 0
  );
  transition: background 1s ease;
}

.meter-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--ht24-panel, #111111);
}

.meter-ring .value {
  position: relative;
  z-index: 1;
  font-size: 28px;
}

.progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(245,185,0,.14);
  overflow: hidden;
  margin-top: 4px;
}

.progress > div {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ht24-gold, #f5b900), var(--ht24-gold-bright, #ffc928));
  transition: width 1s ease;
}

.card[data-metric="streak"].is-active .icon {
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: .85; }
}

.command .actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.command .action {
  padding: 14px 16px;
  background: var(--ht24-deep, #0b0b0b);
  border: 1px solid var(--ht24-border, rgba(255,255,255,.10));
  border-radius: 10px;
  font-size: 14px;
}

.command .action-cta {
  display: inline-flex;
  margin-top: 8px;
  padding: 14px 24px;
  background: var(--ht24-gold, #f5b900);
  color: #050505;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-radius: 999px;
  font-size: 13px;
}

.command .action-cta:hover {
  background: var(--ht24-gold-bright, #ffc928);
}

@media (max-width: 900px) {
  .command .grid { grid-template-columns: repeat(2, 1fr); }
  .command .card.wide { grid-column: span 2; }
}

@media (max-width: 560px) {
  .command .grid { grid-template-columns: 1fr; }
  .command .card.wide { grid-column: span 1; }
}


.command a.card {
  display: block;
  color: inherit;
  text-decoration: none;
}
