/* =====================
   CARD 3D INTERATIVO — showcase
   ===================== */

/* ---- Chips flutuantes ---- */
.fc {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  background: rgba(15,15,15,.88);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 11.5px;
  color: rgba(244,243,239,.7);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  transition: transform .1s ease-out;
  pointer-events: none;
  white-space: nowrap;
  animation: fcIn .5s cubic-bezier(.22,1,.36,1) both;
}
.fc1 {
  top: 28px; right: -16px;
  animation-delay: 1.8s;
}
.fc2 {
  bottom: 52px; left: -20px;
  animation-delay: 2.2s;
  font-size: 11px;
  color: rgba(212,201,180,.65);
  gap: 7px;
}
@keyframes fcIn {
  from { opacity: 0; transform: translateY(10px) scale(.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.fc-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.fc-dot.green { background: #4ade80; box-shadow: 0 0 8px rgba(74,222,128,.5); }
.fc-body { display: flex; flex-direction: column; gap: 1px; }
.fc-label { font-size: 9.5px; color: rgba(255,255,255,.35); letter-spacing: .04em; }
.fc-val { font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700; color: #4ade80; }

/* ---- Card principal ---- */
.card3d {
  position: relative;
  width: 340px;
  background: #0d0d0d;
  border-radius: 18px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .08s ease-out, box-shadow .2s ease;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.07),
    0 24px 64px rgba(0,0,0,.55),
    0 4px 16px rgba(0,0,0,.3);
  cursor: default;
}
.card3d:hover {
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12),
    0 32px 80px rgba(0,0,0,.65),
    0 8px 24px rgba(0,0,0,.4);
}

/* Spotlight glow */
.card3d-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  transition: background .06s;
  border-radius: 18px;
}

/* Borda luminosa */
.card3d-border {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(255,255,255,.1), transparent 60%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

/* ---- Header ---- */
.c3-header {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.c3-dots { display: flex; gap: 5px; }
.c3-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  transition: filter .3s;
}
.c3-dots span:nth-child(1) { background: #ff5f57; }
.c3-dots span:nth-child(2) { background: #febc2e; }
.c3-dots span:nth-child(3) { background: #28c840; }
.card3d:hover .c3-dots span { filter: brightness(1.3); }
.c3-url {
  flex: 1; text-align: center;
  font-size: 10px; color: rgba(255,255,255,.3);
  letter-spacing: .04em;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.c3-live {
  display: flex; align-items: center; gap: 5px;
  font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(74,222,128,.1); color: #4ade80;
  border: 1px solid rgba(74,222,128,.2);
  padding: 2px 8px; border-radius: 100px;
}
.c3-live-dot {
  width: 5px; height: 5px; background: #4ade80; border-radius: 50%;
  animation: livePulse 2s infinite;
}
@keyframes livePulse { 0%,100% { opacity:1; box-shadow:0 0 0 0 rgba(74,222,128,.4); } 50% { opacity:.6; box-shadow:0 0 0 4px rgba(74,222,128,0); } }

/* ---- Métricas ---- */
.c3-metrics {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.c3-metric {
  background: #0d0d0d;
  padding: 14px 10px; text-align: center;
  transition: background .2s;
}
.card3d:hover .c3-metric:hover { background: rgba(255,255,255,.03); }
.c3-mval {
  display: block;
  font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700;
  color: #f4f3ef; letter-spacing: -.02em;
}
.c3-mlab {
  display: block; font-size: 8.5px; color: rgba(255,255,255,.28);
  margin: 3px 0 5px; letter-spacing: .04em;
}
.c3-badge {
  font-size: 8px; padding: 1.5px 6px; border-radius: 100px; font-weight: 500;
}
.c3-badge.up     { background: rgba(74,222,128,.1);  color: #4ade80; }
.c3-badge.stable { background: rgba(212,201,180,.08); color: #d4c9b4; }

/* ---- Gráfico ---- */
.c3-chart-wrap {
  position: relative; z-index: 2;
  padding: 14px 16px 8px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.c3-line {
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: drawC 1.8s .2s cubic-bezier(.22,1,.36,1) forwards;
}
.c3-area     { opacity: 0; animation: fadeC .6s 1.6s forwards; }
.c3-dot-chart{ opacity: 0; animation: fadeC .4s 1.9s forwards; }
@keyframes drawC { to { stroke-dashoffset: 0; } }
@keyframes fadeC { to { opacity: 1; } }
.c3-chart-label {
  font-size: 9px; color: rgba(255,255,255,.2);
  letter-spacing: .04em; margin-top: 5px;
}

/* ---- Feed ---- */
.c3-feed {
  position: relative; z-index: 2;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.c3-feed-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  opacity: 0;
  animation: feedIn .4s ease forwards;
}
.fd1 { animation-delay: .2s; }
.fd2 { animation-delay: .7s; }
.fd3 { animation-delay: 1.2s; }
@keyframes feedIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.c3-fd-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.c3-fd-dot.green { background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,.5); }
.c3-fd-dot.blue  { background: #60a5fa; box-shadow: 0 0 6px rgba(96,165,250,.5); }
.c3-fd-dot.amber { background: #fbbf24; box-shadow: 0 0 6px rgba(251,191,36,.4); }
.c3-fd-text {
  flex: 1; font-size: 9.5px; color: rgba(255,255,255,.38);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.c3-fd-text b { color: rgba(255,255,255,.68); font-weight: 500; }
.c3-fd-time { font-size: 8.5px; color: rgba(255,255,255,.18); flex-shrink: 0; }

/* ---- Bottom ---- */
.c3-bottom {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px;
  background: rgba(255,255,255,.02);
}
.c3-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 9px; color: rgba(255,255,255,.3);
}
.c3-pulse {
  width: 6px; height: 6px; background: #4ade80; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(74,222,128,.4);
  animation: pulseGlow 2.5s infinite;
}
@keyframes pulseGlow {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,.4); }
  70%  { box-shadow: 0 0 0 5px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.c3-stack { font-size: 8.5px; color: rgba(255,255,255,.18); letter-spacing: .04em; }

/* Counters do card */
.sm-mval, .c3-mval { transition: none; }
