/* dashboard-v1.css — operator hub layout (M2 V1)
   Hero Q2 framing + Continue + 3 stat cards + heatmap + recent activity */

/* ── Hero V2 ─────────────────────────────────────────────── */
:root {
  --hto-green-brand: #7CBA5F;
}

.dash-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 32px;
  padding: 48px 0 32px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 32px;
}
.dash-hero-left { min-width: 0; }
.dash-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: 280px;
}

/* Contract badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  font-variant-numeric: tabular-nums;
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,.06),
    0 2px 8px -4px rgba(0,0,0,.4);
}
.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  flex-shrink: 0;
}
.hero-badge[data-tone="green"] {
  background: rgba(124,186,95,.08);
  border-color: rgba(124,186,95,.28);
  color: #a8d68a;
}
.hero-badge[data-tone="green"] .hero-badge-dot {
  background: var(--hto-green-brand);
  box-shadow: 0 0 10px rgba(124,186,95,.6);
}
.hero-badge[data-tone="orange"] {
  background: rgba(245,158,66,.08);
  border-color: rgba(245,158,66,.3);
  color: #f5b066;
}
.hero-badge[data-tone="orange"] .hero-badge-dot {
  background: #f59e42;
  box-shadow: 0 0 10px rgba(245,158,66,.5);
}
.hero-badge[data-tone="red"] {
  background: rgba(255,107,107,.08);
  border-color: rgba(255,107,107,.3);
  color: #ff8a8a;
}
.hero-badge[data-tone="red"] .hero-badge-dot {
  background: #ff6b6b;
  box-shadow: 0 0 10px rgba(255,107,107,.5);
}
.hero-badge[data-tone="gray"] {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
  color: rgba(255,255,255,.55);
}
.hero-badge[data-pulse="1"] .hero-badge-dot {
  animation: hero-badge-pulse 2.4s ease-in-out infinite;
}
@keyframes hero-badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.85); }
}

.dash-hero-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
  line-height: 1.18;
  margin: 0 0 8px;
}
.dash-hero-sub {
  font-size: .92rem;
  color: rgba(255,255,255,.6);
  line-height: 1.55;
  margin: 0;
  max-width: 42rem;
}

/* Today chip */
.hero-today {
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  margin-bottom: 2px;
}

/* Continue CTA — clon del .login-btn de hto-sops/internal/login.html */
.btn-continue {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 13px 22px;
  background: linear-gradient(180deg, #0F2818 0%, #0A1A10 100%);
  border: 1px solid rgba(0,255,136,.35);
  border-radius: 11px;
  color: #00FF88;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: -.003em;
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    0 0 24px rgba(0,255,136,.12),
    inset 0 1px 0 rgba(255,255,255,.05);
  transition: border-color .25s ease-out, color .25s ease-out, box-shadow .25s ease-out, transform .25s ease-out;
}
.btn-continue::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.06) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform .6s ease-out;
  pointer-events: none;
}
.btn-continue:hover {
  border-color: rgba(0,255,136,.55);
  color: #A8FFD0;
  box-shadow:
    0 0 32px rgba(0,255,136,.25),
    inset 0 1px 0 rgba(255,255,255,.08);
}
.btn-continue:hover::before { transform: translateX(100%); }
.btn-continue:active { transform: translateY(1px); }
.btn-continue > * { position: relative; z-index: 1; }
.btn-continue svg {
  width: 16px; height: 16px;
  stroke: currentColor; stroke-width: 2.4; fill: none;
}

/* Module preview */
.hero-mp {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.02) 0%, rgba(255,255,255,.005) 100%),
    #0A0A0A;
  border: 1px solid transparent;
  border-radius: 12px;
  max-width: 320px;
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,.04),
    0 4px 24px -8px rgba(0,0,0,.5),
    0 1px 2px 0 rgba(0,0,0,.4);
}
.hero-mp::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.02) 50%, rgba(255,255,255,.04) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.hero-mp > * { position: relative; z-index: 1; }
.hero-mp .mp-thumb {
  width: 40px; height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124,186,95,.4), rgba(91,143,185,.3));
  border: 1px solid rgba(255,255,255,.06);
}
.hero-mp .mp-thumb-fallback svg {
  width: 16px; height: 16px;
  fill: rgba(255,255,255,.85);
}
.hero-mp-meta { min-width: 0; text-align: right; }
.hero-mp-title {
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-mp-sub {
  font-size: .7rem;
  color: rgba(255,255,255,.5);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .dash-hero {
    grid-template-columns: 1fr;
    padding: 32px 0 24px;
    gap: 20px;
  }
  .dash-hero-right {
    min-width: 0;
    align-items: stretch;
  }
  .hero-today { align-self: flex-start; }
  .btn-continue { justify-content: center; width: 100%; }
  .hero-mp { max-width: none; }
  .hero-mp-meta { text-align: left; }
  .dash-hero-title { font-size: 1.5rem; }
}

/* ── Stat Cards ──────────────────────────────────────────── */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.stat-card {
  position: relative;
  padding: 22px 22px 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.01) 100%),
    #131313;
  border: 1px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,.09),
    0 1px 2px 0 rgba(0,0,0,.6),
    0 12px 32px -8px rgba(0,0,0,.7);
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 140px; height: 140px;
  background: radial-gradient(circle at top right, var(--accent, rgba(0,255,136,.18)), transparent 65%);
  pointer-events: none;
  opacity: .55;
  z-index: 1;
}
.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.04) 50%, rgba(255,255,255,.08) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}
.stat-card:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 100%),
    #181818;
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,.12),
    0 2px 4px 0 rgba(0,0,0,.7),
    0 16px 40px -8px rgba(0,0,0,.85);
}
.stat-card:hover::after {
  background: linear-gradient(180deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.06) 100%);
}
.stat-card[data-tone="green"]    { --accent: rgba(0,255,136,.22); }
.stat-card[data-tone="blue"]     { --accent: rgba(91,143,185,.28); }
.stat-card[data-tone="gold"]     { --accent: rgba(212,168,67,.26); }

.stat-card .stat-icon {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  margin-bottom: 14px;
  position: relative; z-index: 2;
}
.stat-card .stat-icon svg { width: 18px; height: 18px; stroke-width: 1.7; fill: none; }
.stat-card[data-tone="green"] .stat-icon svg { stroke: var(--green, #00FF88); }
.stat-card[data-tone="blue"]  .stat-icon svg { stroke: var(--blue-steel, #5B8FB9); }
.stat-card[data-tone="gold"]  .stat-icon svg { stroke: var(--copper, #CD7F32); }

.stat-card .stat-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 6px;
  position: relative; z-index: 2;
}
.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -.015em;
  margin-bottom: 4px;
  position: relative; z-index: 2;
  font-variant-numeric: tabular-nums;
}
.stat-card .stat-value-sub {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,.4);
  margin-left: 4px;
}
.stat-card .stat-meta {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  position: relative; z-index: 2;
  margin-top: 8px;
}
.stat-card .stat-meta strong { color: #fff; font-weight: 600; }
.stat-card .stat-progress {
  height: 6px;
  background: rgba(255,255,255,.05);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 14px;
  position: relative; z-index: 2;
}
.stat-card .stat-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green, #00FF88), var(--green-light, #33FFaa));
  border-radius: 3px;
  transition: width .6s cubic-bezier(.25,1.1,.4,1);
}
.stat-card[data-tone="blue"] .stat-progress-fill {
  background: linear-gradient(90deg, var(--blue-steel, #5B8FB9), #7eaee0);
}
.stat-card[data-tone="gold"] .stat-progress-fill {
  background: linear-gradient(90deg, var(--copper, #CD7F32), #e3a55a);
}

/* ── Section Headings ────────────────────────────────────── */
.dash-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 30px 0 14px;
  gap: 18px;
}
.dash-section-head h2 {
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin: 0;
}
.dash-section-head .dash-section-meta {
  font-size: .76rem;
  color: rgba(255,255,255,.4);
}

/* ── Activity Heatmap ────────────────────────────────────── */
.dash-heatmap-wrap {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.01) 100%),
    #131313;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 28px;
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,.09),
    0 1px 2px 0 rgba(0,0,0,.6),
    0 12px 32px -8px rgba(0,0,0,.7);
}
.dash-heatmap-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.04) 50%, rgba(255,255,255,.08) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.dash-heatmap {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
}
.heatmap-day-labels {
  display: grid;
  grid-template-rows: repeat(7, 14px);
  gap: 3px;
  font-size: .62rem;
  color: rgba(255,255,255,.35);
  padding-top: 18px;
}
.heatmap-day-labels span:nth-child(2),
.heatmap-day-labels span:nth-child(4),
.heatmap-day-labels span:nth-child(6) { visibility: visible; }
.heatmap-day-labels span { visibility: hidden; }
.heatmap-day-labels span:nth-child(2),
.heatmap-day-labels span:nth-child(4),
.heatmap-day-labels span:nth-child(6) { visibility: visible; }

.heatmap-grid-wrap { overflow-x: auto; }
.heatmap-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 14px);
  gap: 3px;
  padding: 18px 0 6px;
  min-width: max-content;
}
.heatmap-cell {
  width: 14px; height: 14px;
  border-radius: 3px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.02);
  cursor: default;
  transition: outline .15s ease;
}
.heatmap-cell:hover { outline: 1px solid rgba(255,255,255,.4); outline-offset: 1px; }
.heatmap-cell[data-level="1"] { background: rgba(0,255,136,.18); border-color: rgba(0,255,136,.12); }
.heatmap-cell[data-level="2"] { background: rgba(0,255,136,.38); border-color: rgba(0,255,136,.22); }
.heatmap-cell[data-level="3"] { background: rgba(0,255,136,.65); border-color: rgba(0,255,136,.4); }
.heatmap-cell[data-level="4"] { background: var(--green, #00FF88); border-color: rgba(0,255,136,.7); box-shadow: 0 0 6px rgba(0,255,136,.35); }

.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 14px;
  font-size: .68rem;
  color: rgba(255,255,255,.4);
}
.heatmap-legend-cells {
  display: inline-flex; gap: 3px; margin: 0 6px;
}
.heatmap-legend-cells .heatmap-cell { cursor: default; }
.heatmap-legend-cells .heatmap-cell:hover { outline: none; }

.heatmap-tooltip {
  position: fixed;
  pointer-events: none;
  background: #000;
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: .72rem;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 100;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .12s ease, transform .12s ease;
}
.heatmap-tooltip.visible { opacity: 1; transform: translateY(0); }

/* ── Recent Activity Feed ────────────────────────────────── */
.dash-activity {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.01) 100%),
    #131313;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 8px 0;
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,.09),
    0 1px 2px 0 rgba(0,0,0,.6),
    0 12px 32px -8px rgba(0,0,0,.7);
}
.dash-activity::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.04) 50%, rgba(255,255,255,.08) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.dash-activity > .activity-row { position: relative; z-index: 1; }
.activity-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .15s ease;
}
.activity-row:last-child { border-bottom: none; }
.activity-row:hover { background: rgba(255,255,255,.02); }
.activity-icon {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.05);
  flex-shrink: 0;
}
.activity-icon svg { width: 14px; height: 14px; stroke-width: 1.8; fill: none; }
.activity-icon[data-type="lesson"] { background: rgba(0,255,136,.08); border-color: rgba(0,255,136,.18); }
.activity-icon[data-type="lesson"] svg { stroke: var(--green-light, #33FFaa); }
.activity-icon[data-type="win"] { background: rgba(212,168,67,.1); border-color: rgba(212,168,67,.22); }
.activity-icon[data-type="win"] svg { stroke: var(--copper, #CD7F32); }
.activity-icon[data-type="impl"] { background: rgba(91,143,185,.1); border-color: rgba(91,143,185,.22); }
.activity-icon[data-type="impl"] svg { stroke: var(--blue-steel, #5B8FB9); }
.activity-icon[data-type="session"] { background: rgba(255,255,255,.04); }
.activity-icon[data-type="session"] svg { stroke: rgba(255,255,255,.5); }

.activity-body { flex: 1; min-width: 0; }
.activity-title {
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
  margin: 0 0 2px;
  line-height: 1.4;
}
.activity-title strong { font-weight: 600; }
.activity-title a { color: var(--green-light, #33FFaa); text-decoration: none; }
.activity-title a:hover { text-decoration: underline; }
.activity-meta {
  font-size: .76rem;
  color: rgba(255,255,255,.4);
}
.activity-time {
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.activity-empty {
  padding: 32px 22px;
  text-align: center;
  color: rgba(255,255,255,.4);
  font-size: .85rem;
}

/* ── Banner contrato vencido ─────────────────────────────── */
.dash-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,107,107,.08) 0%, rgba(255,107,107,.03) 100%),
    #0A0A0A;
  border: 1px solid rgba(255,107,107,.28);
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,.04),
    0 4px 20px -8px rgba(255,107,107,.18);
}
.dash-banner-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 7px;
  background: #ff6b6b;
  box-shadow: 0 0 12px rgba(255,107,107,.6);
  flex-shrink: 0;
}
.dash-banner-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: .85rem;
  line-height: 1.45;
}
.dash-banner-body strong {
  color: #ff8a8a;
  font-weight: 600;
  letter-spacing: -.005em;
}
.dash-banner-body span {
  color: rgba(255,255,255,.62);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 880px) {
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .dash-hero-title { font-size: 1.5rem; }
}
@media (max-width: 560px) {
  .dash-stats { grid-template-columns: 1fr; }
  .dash-hero { padding: 24px 0 20px; }
  .dash-hero-right { width: 100%; align-items: flex-start; }
}

/* ───────────────────────────────────────────────────────────
   Atmospheric Depth Layer (added 2026-04-27)
   Solo profundidad/atmósfera — no toca layout, copy ni datos.
   ─────────────────────────────────────────────────────────── */

/* 1 + 2 + 5 — Hero: ambient glow + lateral accent + green divider */
.dash-hero {
  position: relative;
  isolation: isolate;
  border-bottom: none;
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(55, 254, 170, 0.18) 20%,
    rgba(55, 254, 170, 0.32) 50%,
    rgba(55, 254, 170, 0.18) 80%,
    transparent 100%
  );
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
}
.dash-hero::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(55, 254, 170, 0.08) 0%,
    rgba(55, 254, 170, 0.03) 30%,
    transparent 70%
  );
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
}
.dash-hero::after {
  content: "";
  position: absolute;
  top: 48px;
  bottom: 32px;
  left: -16px;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(55, 254, 170, 0.45) 20%,
    rgba(55, 254, 170, 0.55) 50%,
    rgba(55, 254, 170, 0.25) 85%,
    transparent 100%
  );
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(55, 254, 170, 0.35);
  pointer-events: none;
  z-index: 1;
}

/* 3 — Subtle grid texture: uniforme en TODA la página, fijo (no scrollea) */
body {
  background-color: #050505;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px;
  background-attachment: fixed;
}

/* 4 — Directional glow por card según tone (intensifica el accent existente) */
.stat-card[data-tone="green"] {
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, .09),
    inset 0 0 0 1px rgba(0, 255, 136, .04),
    0 1px 2px 0 rgba(0, 0, 0, .6),
    0 12px 32px -8px rgba(0, 0, 0, .7),
    0 8px 28px -12px rgba(0, 255, 136, .18);
}
.stat-card[data-tone="blue"] {
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, .09),
    inset 0 0 0 1px rgba(91, 143, 185, .05),
    0 1px 2px 0 rgba(0, 0, 0, .6),
    0 12px 32px -8px rgba(0, 0, 0, .7),
    0 8px 28px -12px rgba(91, 143, 185, .22);
}
.stat-card[data-tone="gold"] {
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, .09),
    inset 0 0 0 1px rgba(212, 168, 67, .04),
    0 1px 2px 0 rgba(0, 0, 0, .6),
    0 12px 32px -8px rgba(0, 0, 0, .7),
    0 8px 28px -12px rgba(212, 168, 67, .20);
}
.stat-card[data-tone="green"]:hover {
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, .12),
    inset 0 0 0 1px rgba(0, 255, 136, .07),
    0 2px 4px 0 rgba(0, 0, 0, .7),
    0 16px 40px -8px rgba(0, 0, 0, .85),
    0 12px 36px -10px rgba(0, 255, 136, .28);
}
.stat-card[data-tone="blue"]:hover {
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, .12),
    inset 0 0 0 1px rgba(91, 143, 185, .08),
    0 2px 4px 0 rgba(0, 0, 0, .7),
    0 16px 40px -8px rgba(0, 0, 0, .85),
    0 12px 36px -10px rgba(91, 143, 185, .32);
}
.stat-card[data-tone="gold"]:hover {
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, .12),
    inset 0 0 0 1px rgba(212, 168, 67, .07),
    0 2px 4px 0 rgba(0, 0, 0, .7),
    0 16px 40px -8px rgba(0, 0, 0, .85),
    0 12px 36px -10px rgba(212, 168, 67, .28);
}

/* 6 — Pulse glow en la celda "hoy" del heatmap (último cell con actividad) */
@keyframes htoTodayPulse {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(0, 255, 136, .55),
      0 0 8px rgba(0, 255, 136, .45);
  }
  50% {
    box-shadow:
      0 0 0 4px rgba(0, 255, 136, 0),
      0 0 14px rgba(0, 255, 136, .65);
  }
}
.heatmap-grid .heatmap-cell:last-child {
  animation: htoTodayPulse 2.4s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

/* 7 — Activity card: lift atmosférico + separadores más visibles */
.dash-activity {
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, .09),
    0 1px 2px 0 rgba(0, 0, 0, .6),
    0 12px 32px -8px rgba(0, 0, 0, .7),
    0 8px 28px -12px rgba(255, 255, 255, .04);
}
.activity-row {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.activity-row:last-child { border-bottom: none; }

/* 8 — Iconos del activity feed: todos en verde HTO #37FEAA */
.activity-icon,
.activity-icon[data-type="lesson"],
.activity-icon[data-type="win"],
.activity-icon[data-type="impl"],
.activity-icon[data-type="session"] {
  background: rgba(55, 254, 170, 0.08);
  border: 1px solid rgba(55, 254, 170, 0.22);
}
.activity-icon svg,
.activity-icon[data-type="lesson"] svg,
.activity-icon[data-type="win"] svg,
.activity-icon[data-type="impl"] svg,
.activity-icon[data-type="session"] svg {
  stroke: #37FEAA;
}

/* 9 — Tipografía del activity feed: más legible y refinada */
.activity-title {
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: -.005em;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}
.activity-title strong { font-weight: 600; color: #fff; }
.activity-meta,
.activity-time {
  font-size: .74rem;
  letter-spacing: .01em;
  color: rgba(255, 255, 255, 0.45);
}

/* 10 — Borde verde #37FEAA en cards principales (stat-cards + activity + heatmap) */
.stat-card::after,
.dash-activity::before,
.dash-heatmap-wrap::before {
  background: linear-gradient(
    180deg,
    rgba(55, 254, 170, 0.45) 0%,
    rgba(55, 254, 170, 0.18) 50%,
    rgba(55, 254, 170, 0.30) 100%
  );
}
.stat-card[data-tone="green"]:hover::after,
.stat-card[data-tone="blue"]:hover::after,
.stat-card[data-tone="gold"]:hover::after {
  background: linear-gradient(
    180deg,
    rgba(55, 254, 170, 0.65) 0%,
    rgba(55, 254, 170, 0.28) 50%,
    rgba(55, 254, 170, 0.50) 100%
  );
}
