/* === Global Styles === */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: 'Object Sans', sans-serif;
  background: #000 url('/static/images/vitreus-grid-bg.png') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  text-align: center;
}

header { margin-top: 30px; }

.logo-img {
  width: 100px;
  height: auto;
  display: block;
  margin: 0 auto;
}

h1 {
  font-size: 1.8rem;
  margin-top: 10px;
  color: #e0ff72;
  font-family: 'Object Sans', sans-serif;
}

/* === Grid Wrapper === */
.grid-wrapper {
  margin: 30px auto;
  max-width: 1000px;
  padding: 20px 30px;
  border: 2px solid rgba(0, 255, 200, 0.6);
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(0, 255, 200, 0.3);
  background-color: rgba(0, 0, 0, 0.75);
}

/* === Node Chip Image === */
.node-chip-img {
  width: 100%;
  max-width: 100%;
  border-radius: 20px;
  margin-bottom: 20px;
  display: block;
}

/* === Dashboard Cards === */
.dashboard-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  column-gap: 30px;
  row-gap: 20px;
}

/* === Individual Card Styling === */
.card {
  background: rgba(0, 0, 0, 0.78);   /* tiny bit more see-through */
  border: 2px solid #00ffc3;
  border-radius: 20px;
  padding: 20px;
  width: 100%;
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.4);
  transition: all 0.3s ease;
  box-sizing: border-box;
  min-height: 160px;
  backdrop-filter: blur(2px);        /* faint depth */
}
.card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(0, 255, 200, 0.6);
}

.card-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

/* === Node Uptime Time + Dot === */
.uptime-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

/* === Status Dot === */
.status-dot { width: 22px; height: 22px; border-radius: 50%; display: inline-block; }
.online { background-color: #00ffc3; animation: pulse 1s infinite; }
.offline { background-color: #ff0033; position: relative; top: 6px; } 
/* positive = moves down, negative = moves up */


@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 195, 0.70); }
  70% { box-shadow: 0 0 0 15px rgba(0, 255, 195, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 195, 0); }
}

/* === Small pulsing dot for Heartbeat line === */
.dot { width: 16px; height: 16px; border-radius: 50%; display: inline-block; margin-left: 8px; }
.dot-pulse-green { background-color: #00ffc3; animation: pulse-green 1.2s infinite; }
.dot-pulse-red { background-color: #ff0033; animation: pulse-red 1.2s infinite; }

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(0,255,136,0.7); }
  70% { box-shadow: 0 0 0 10px rgba(0,255,136,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,255,136,0); }
}
@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(255,0,51,0.6); }  70% { box-shadow: 0 0 0 10px rgba(255,0,51,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,0,51,0); }
}

/* === Governance Button === */
#gov-btn {
  margin-top: 20px; padding: 12px 24px; border-radius: 10px;
  background-color: #00ffc3; color: black; border: none; font-size: 1rem;
  cursor: pointer; transition: all 0.3s ease;
}
#gov-btn:hover {
  background-color: #00cc99; transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.6);
}

/* === Responsive Fix for Mobile === */
@media (max-width: 768px) {
  .grid-wrapper { padding: 20px 10px; }
  .dashboard-container { grid-template-columns: 1fr !important; gap: 20px; }
  .card { width: 100%; padding: 16px; min-height: 140px; }
  .node-chip-img { width: 100%; }
}

/* === Bottom Node Image === */
.bottom-node-img {
  width: 100%;
  max-width: 500px;
  display: block;
  margin: 40px auto 20px;
  border-radius: 20px;
}

/* === Node Address Input === */
#node-address {
  width: 400px; padding: 12px 16px; font-size: 16px; border-radius: 8px;
  border: 2px solid #00ffc3; background-color: rgba(0, 0, 0, 0.6);
  color: #fff; text-align: center; box-shadow: 0 0 10px rgba(0, 255, 200, 0.6), 0 0 20px rgba(0, 255, 200, 0.4);
  outline: none; margin: 0 auto 16px auto; display: block; transition: all 0.3s ease;
}
#node-address:focus {
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.9), 0 0 30px rgba(0, 255, 200, 0.7);
  border-color: #00ffc3;
}

/* === Submit Button === */
#submitButton {
  background-color: #00ffc3; color: black; border: none; padding: 12px 28px;
  border-radius: 8px; font-size: 1rem; font-weight: bold; cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 255, 200, 0.4); transition: all 0.3s ease;
}
#submitButton:hover {
  background-color: #00cc99; transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.6);
}

/* === Optional Glow Container (if needed elsewhere) === */
.glow-box {
  border: 2px solid #00ffff; border-radius: 12px; padding: 20px; display: inline-block;
  box-shadow: 0 0 12px #00ffff, 0 0 24px #00ffff inset;
  background-color: rgba(0, 0, 0, 0.3); margin-top: 20px;
}

/* === Gradient Text (for future headings/buttons) === */
.gradient-text {
  background: linear-gradient(90deg, #00ccaa, #007f66);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Object Sans', sans-serif;
}

/* === Paywall Section === */
#paywall-wrapper {
  background-color: rgba(0, 0, 0, 0.75);
  border: 2px solid #00ffc3; border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.4);
  max-width: 500px; margin: 50px auto; padding: 30px 20px;
}
#wallet-input {
  width: 100%; max-width: 400px; padding: 12px; font-size: 16px; border-radius: 8px;
  border: 2px solid #00ffc3; background-color: rgba(0, 0, 0, 0.6); color: #fff;
  text-align: center; margin-bottom: 16px; box-shadow: 0 0 10px rgba(0, 255, 200, 0.5);
  transition: all 0.3s ease;
}
#wallet-input:focus { outline: none; box-shadow: 0 0 20px rgba(0, 255, 200, 0.9); }
#wallet-submit-button {
  background-color: #00ffc3; color: black; border: none; padding: 12px 28px;
  font-size: 1rem; font-weight: bold; border-radius: 8px; cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 255, 200, 0.4); transition: all 0.3s ease;
}
#wallet-submit-button:hover {
  background-color: #00cc99; transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.6);
}
#payment-instructions {
  margin-top: 25px; background-color: rgba(0, 0, 0, 0.6);
  border: 2px dashed #00ffc3; border-radius: 12px; padding: 20px; max-width: 400px;
  margin-left: auto; margin-right: auto; box-shadow: 0 0 15px rgba(0, 255, 200, 0.2);
}
#qr-code-img { border-radius: 8px; box-shadow: 0 0 15px rgba(0, 255, 200, 0.3); margin-top: 10px; }
.paywall-title { font-size: 1.5rem; font-weight: bold; margin-bottom: 20px; color: #00ffc3; }
.glow-text { color: #00ffc3; font-family: monospace; font-size: 0.95rem; }

/* Dark overlay on background */
body::before {
  content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.70); z-index: -1;
}

/* === Reputation Progress Bar === */
.progress-bar-container {
  width: 100%; height: 18px; background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px; overflow: hidden; margin-top: 12px;
  box-shadow: inset 0 0 8px rgba(0, 255, 200, 0.5);
}
.progress-bar-fill {
  height: 100%; background: linear-gradient(to right, #00ffc3, #00cc99);
  width: 0%; border-radius: 10px; transition: width 0.5s ease-in-out; position: relative;
}
.progress-bar-fill span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: 12px; font-weight: 700; color: #001a13;
}

/* Make reputation bar visually match staker bar height/feel */
.progress-bar-container {
  width: 100%; height: 18px;            /* same height as staker bar */
  background-color: rgba(255,255,255,0.08);
  border-radius: 10px; overflow: hidden; margin-top: 12px;
  box-shadow: inset 0 0 8px rgba(0, 255, 200, 0.5);
}

/* =========================================================
   STAKER PROGRESS — Left aligned, no overhang (CLEAN)
   Uses fixed-size pills, first two slightly smaller.
   Keeps your glow/angled sheen aesthetic.
   ========================================================= */
/* === Shared bar sizing so both bars match exactly === */
:root{
  --bar-h: 18px;     /* bar height */
  --bar-r: 10px;     /* corner radius */
  --bar-gap: 8px;    /* gap between staker pills */
}

/* === Reputation Progress Bar (kept, but aligned to staker bar) === */
.progress-bar-container{
  width: 100%;
  height: var(--bar-h);
  background-color: rgba(255,255,255,0.08);
  border-radius: var(--bar-r);
  overflow: hidden;
  margin-top: 12px;
  box-shadow: inset 0 0 8px rgba(0, 255, 200, 0.5);
}
.progress-bar-fill{
  height: 100%;
  background: linear-gradient(to right, #00ffc3, #00cc99);
  width: 0%;
  border-radius: var(--bar-r);
  transition: width 0.5s ease-in-out;
  position: relative;
}
.progress-bar-fill span{
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  font-size: 12px; font-weight: 700; color: #001a13;
}

/* === Staker Progress — small→large left-to-right, no overhang === */
.card.staker-card{ display:flex; flex-direction:column; }
.staker-card .staker-bar{ margin-top:auto; }

.staker-next{
  opacity:.8; font-size:.95rem; margin:2px 0 8px 0;
}

/* Grid with progressive fractions fills 100% exactly (no drift) */
.staker-bar{
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.3fr 1.45fr 1.6fr 1.75fr 1.9fr; /* 7 segments, growing */
  gap: var(--bar-gap);
  width: 100%;
  height: var(--bar-h);
  background: rgba(255,255,255,0.08);
  border-radius: var(--bar-r);
  box-shadow: inset 0 0 8px rgba(0,255,200,0.5);
  overflow: hidden; /* clips any pseudo-edge perfectly */
  padding: 0;       /* match reputation bar */
}

.staker-seg{
  position: relative;
  height: 100%;
  border-radius: calc(var(--bar-r) - 2px);
  background: rgba(0,255,200,0.10);
  box-shadow: 0 0 6px rgba(0,255,195,0.08) inset, 0 0 6px rgba(0,255,195,0.08);
  overflow: hidden;
  transform: translateZ(0);
}

/* glossy angled edge */
.staker-seg::after{
  content:"";
  position:absolute;
  right:-6px; top:0;
  width:10px; height:100%;
  transform: skewX(-18deg);
  background: linear-gradient(to right, rgba(0,255,195,0.35), rgba(0,255,195,0));
  pointer-events:none;
}
/* hide sheen on the very last segment so nothing sticks out */
.staker-seg:last-child::after{ display:none; }

/* filled state */
.staker-seg.active{
  background: linear-gradient(to right, #00ffc3, #00cc99);
  box-shadow: 0 0 10px rgba(0,255,195,0.6);
  animation: stakerPulse 1.2s ease-in-out;
}
@keyframes stakerPulse{
  0%{ box-shadow:0 0 0 rgba(0,255,195,0.0);}
  50%{ box-shadow:0 0 14px rgba(0,255,195,0.8);}
  100%{ box-shadow:0 0 0 rgba(0,255,195,0.0);}
}

/* Mobile: even pills (no progressive sizing) to keep it clean */
@media (max-width: 640px){
  .staker-bar{
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    height: 16px;        /* tiny tighten for small screens */
  }
  .progress-bar-container{ height: 16px; }
}

/* --- Transparent Card Background for stat-card variant --- */
.stat-card {
  background-color: rgba(17, 17, 17, 0.82);
  backdrop-filter: blur(6px);
}
/* === Staker card: add top art + perfect bar alignment === */
.card.staker-card{
  /* reserve space for a small logo/art so the bar sits lower */
  padding-top: 72px; /* pushes content down without touching HTML */
  background-image: url('/static/images/Inverse_v_nrg.png');
  background-repeat: no-repeat;
  background-position: center 32px; /* tweak this to raise/lower the art */
  background-size: 140px auto;
}

/* ensure both bars share exactly the same sizing */
:root{
  --bar-h: 18px;
  --bar-r: 10px;
  --bar-gap: 8px;
}
.progress-bar-container{ height: var(--bar-h); border-radius: var(--bar-r); }
.staker-bar{
  height: var(--bar-h);
  border-radius: var(--bar-r);
  gap: var(--bar-gap);
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 0 8px rgba(0,255,200,0.5);
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.3fr 1.45fr 1.6fr 1.75fr 1.9fr; /* small→large, 7 segs */
  width: 100%;
  overflow: hidden;
  padding: 0; /* match reputation bar */
}

/* segments + sheen (unchanged aesthetics) */
.staker-seg{
  position: relative;
  height: 100%;
  border-radius: calc(var(--bar-r) - 2px);
  background: rgba(0,255,200,0.10);
  box-shadow: 0 0 6px rgba(0,255,195,0.08) inset, 0 0 6px rgba(0,255,195,0.08);
  overflow: hidden;
  transform: translateZ(0);
}
.staker-seg::after{
  content:"";
  position:absolute;
  right:-6px; top:0; width:10px; height:100%;
  transform: skewX(-18deg);
  background: linear-gradient(to right, rgba(0,255,195,0.35), rgba(0,255,195,0));
  pointer-events:none;
}
.staker-seg:last-child::after{ display:none; }
.staker-seg.active{
  background: linear-gradient(to right, #00ffc3, #00cc99);
  box-shadow: 0 0 10px rgba(0,255,195,0.6);
  animation: stakerPulse 1.2s ease-in-out;
}

/* mobile: even pills + matched height */
@media (max-width: 640px){
  .card.staker-card{
    padding-top: 56px;
    background-position: center 30px;
    background-size: 100px auto;
  }
  .staker-bar{ grid-template-columns: repeat(7, 1fr); gap: 6px; height: 16px; }
  .progress-bar-container{ height: 16px; }
}
/* --- Staker card logo overlay (guaranteed) --- */
.staker-card {
    position: relative;
    background-image: url("/static/images/Inverse_v_nrg.png");
    background-repeat: no-repeat;
    background-position: center 32px;
    background-size: 140px auto;
}
/* --- Staker card logo overlay (zoomed & centered) --- */
.staker-card {
    position: relative;
    background-image: url("/static/images/Inverse_v_nrg.png");
    background-repeat: no-repeat;
    background-position: center center; /* perfect center both ways */
    background-size: 200px auto; /* zoom in more on the logo */
}

/* Ensure the title stays at the top */
.staker-card .card-title {
    position: relative;
    top: 0;
    margin-bottom: 8px;
}
/* === Staker card: full-background image + dark overlay + proper stacking === */
.card.staker-card{
  position: relative;
  padding-top: 20px;                 /* normal top spacing for title */
  background-image: url("/static/images/Inverse_v_nrg.png");
  background-size: cover;            /* fill entire card */
  background-position: center center;/* perfectly centered */
  background-repeat: no-repeat;
}

/* subtle dark veil so bars/text stay readable */
.card.staker-card::before{
  content:"";
  position:absolute; inset:0;
  background: rgba(0,0,0,0.85);
  pointer-events:none;
}

/* ensure all inner content sits above the overlay */
.card.staker-card > *{ position: relative; z-index: 1; }

/* keep title at the top */
.staker-card .card-title{
  margin-top: 0;
  margin-bottom: 8px;
  position: static;                  /* cancel any earlier positioning */
}
/* === Staker card polish: clip corners, unify font, center metrics === */
.card.staker-card{
  position: relative;
  border-radius: 20px;          /* match other cards */
  overflow: hidden;             /* clip bg/overlay to rounded corners */
  background-image: url("/static/images/Inverse_v_nrg.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding-top: 20px;            /* normal top spacing for title */
}

/* dark veil, clipped to corners */
.card.staker-card::before{
  content:"";
  position:absolute; inset:0;
  background: rgba(0,0,0,0.70);  /* adjust if you want darker/lighter */
  border-radius: inherit;        /* clip overlay to corners */
  pointer-events:none;
  z-index: 0;
}

/* ensure all content sits above overlay and uses same font */
.card.staker-card > *{
  position: relative;
  z-index: 1;
  font-family: 'Object Sans', sans-serif;  /* unify font */
}

/* title at top, consistent spacing */
.staker-card .card-title{
  margin: 0 0 8px 0;
  text-align: center;
}

/* center the metric text block and give it comfy spacing */
#staker-count-label,
#staker-next{
  text-align: center;
  margin: 6px 0;
}

/* keep bars aligned/same height as rep bar */
:root{ --bar-h: 18px; --bar-r: 10px; --bar-gap: 8px; }
.staker-bar{
  height: var(--bar-h);
  border-radius: var(--bar-r);
  margin-top: 8px;              /* nudge bar down a touch */
}
/* === Staker Progress: move milestone text above bar === */
#staker-next {
  display: block;
  margin-top: 10px;         /* keep some gap below staker count */
  margin-bottom: 6px;       /* small gap above the bar */
  text-align: center;
}
/* === Desktop-only fix: Move Next Milestone text above progress bar === */
@media screen and (min-width: 769px) {
  #staker-next {
    display: block;
    margin-top: 10px;      /* space under staker count */
    margin-bottom: 6px;    /* space above progress bar */
    text-align: center;
  }
}
/* === Desktop-only: place "Next milestone" just above the bar === */
@media (min-width: 769px){
  .staker-card{ display:flex; flex-direction:column; }
  /* keep the count near the top */
  #staker-count-label{ margin-top: 6px; }

  /* sink milestone to the bottom of the text block */
  #staker-next{
    margin-top: auto;     /* pushes it down in the flex column */
    margin-bottom: 8px;   /* small gap above the bar */
    text-align: center;
  }

  /* bar sits immediately under the milestone */
  .staker-card .staker-bar{
    margin-top: 0;
  }
}
/* === Mobile Safari input-zoom fix (surgical, no visual change) === */
/* Ensure iOS treats inputs at 16px to avoid auto-zoom; desktop unaffected */
@supports (-webkit-touch-callout: none) {
  #node-address,
  input, select, textarea { font-size: 16px !important; }
  html { -webkit-text-size-adjust: 100%; }
}

/* Keep the dashboard centered during focus/keyboard appearance */
@media (max-width: 768px) {
  .grid-wrapper { margin-left: auto; margin-right: auto; }
}
/* Nudge only the status dot down on desktop + mobile */
.uptime-wrapper .status-dot {
  position: relative;
  transform: translateY(14px);  /* adjust: 2–10px */
  will-change: transform;
}
/* ---- Access Lock input containment (mobile-safe, add-only) ---- */
input.glow-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Keep the lock panel from letting content hang past its glow border */
#access-lock, .access-lock, .lock-card {
  contain: content;
  overflow-x: hidden;
}

/* Small screens: prevent horizontal nudge */
@media (max-width: 768px) {
  html, body { max-width: 100%; overflow-x: hidden; }
}

/* --- iOS safe-area horizontal padding fix (16 Pro Max clipping) --- */
@supports (padding: env(safe-area-inset-left)) {
  body {
    padding-left: max(env(safe-area-inset-left), 8px);
    padding-right: max(env(safe-area-inset-right), 8px);
  }
  #grid-wrapper, .grid-wrapper, #cards-grid, .cards-grid {
    padding-left: max(env(safe-area-inset-left), 8px);
    padding-right: max(env(safe-area-inset-right), 8px);
    box-sizing: border-box;
  }
}
/* Layout helpers */
.grid { display:grid; gap:20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.span-2 { grid-column: span 2; }

/* Cards */
.card { background:#0b1214; border-radius:16px; padding:16px 18px; box-shadow:0 0 0 1px rgba(0,255,195,.15) inset; }
.card.neon { box-shadow: 0 0 0 1px rgba(0,255,195,.2) inset, 0 0 20px rgba(0,255,195,.08); }
.card-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; font-weight:700; letter-spacing:.3px; }

.row { display:flex; align-items:center; justify-content:space-between; margin:8px 0; }
.row-stack { flex-direction:column; align-items:stretch; gap:8px; }
.label { color:#a8ffef; opacity:.8; font-size:.95rem; }
.label.with-bolt { display:flex; align-items:center; gap:8px; }
.value { color:#eafffb; font-weight:700; font-variant-numeric: tabular-nums; }

/* Progress bars */
.progress { width:100%; height:12px; background:rgba(0,255,195,0.08); border-radius:999px; overflow:hidden; box-shadow: inset 0 0 0 1px rgba(0,255,195,.12); }
.progress.thin { height:8px; }
.bar { height:100%; width:0%; background: linear-gradient(90deg, rgba(0,255,195,0.2), rgba(0,255,195,0.85)); box-shadow: 0 0 16px rgba(0,255,195,0.35); transition: width .7s ease; }
.bar.pulsing { animation: pulseGlow 2.2s ease-in-out infinite; }
@keyframes pulseGlow {
  0%,100% { box-shadow:0 0 10px rgba(0,255,195,.25), 0 0 30px rgba(0,255,195,.16); }
  50% { box-shadow:0 0 20px rgba(0,255,195,.45), 0 0 50px rgba(0,255,195,.28); }
}

/* Lightning bolt */
.bolt, .bolt-inline { color:#00ffc3; text-shadow: 0 0 12px rgba(0,255,195,.6); }
.bolt { animation: boltBlink 1.25s steps(2,end) infinite; }
@keyframes boltBlink {
  0% { opacity: .25; transform: translateY(-1px); }
  50% { opacity: 1;  transform: translateY(0); }
  100% { opacity: .25; transform: translateY(-1px); }
}

/* Badge for Value/Day */
.badge { background: rgba(0,255,195,.08); padding:4px 10px; border-radius:10px; box-shadow:inset 0 0 0 1px rgba(0,255,195,.2); }

/* Tabs */
.tabbar {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 18px 0 10px;
}
.tab-btn {
  background: transparent;
  border: 1px solid rgba(0,255,195,.35);
  color: #00ffc3;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: .3px;
  box-shadow: 0 0 12px rgba(0,255,195,.15) inset;
}
.tab-btn.active {
  background: rgba(0,255,195,.12);
  box-shadow: 0 0 18px rgba(0,255,195,.25) inset;
}
.card-subgap { height: 8px; }

/* place bolt on the left of the metric; uses your neon anim color */
.metric-with-bolt { display: flex; align-items: center; gap: 8px; }

.bolt {
  color: #00ffc3;
  text-shadow: 0 0 8px rgba(0,255,195,.6), 0 0 18px rgba(0,255,195,.25);
  animation: boltFlash 1.2s infinite ease-in-out;
  font-weight: 800;
}
@keyframes boltFlash {
  0%, 100% { opacity: .35; filter: drop-shadow(0 0 0 rgba(0,255,195,0)); }
  45%     { opacity: 1;   filter: drop-shadow(0 0 8px rgba(0,255,195,.9)); }
}
.card-subgap { height: 8px; }

/* Keep bolt fixed at the left edge of the metric line */
.metric-with-bolt {
  position: relative;
  display: block;
  padding-left: 22px;      /* space reserved for bolt */
  min-height: 20px;        /* avoids layout jump on load */
  line-height: 20px;
}
.metric-with-bolt .bolt {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #00ffc3;
  text-shadow: 0 0 8px rgba(0,255,195,.6), 0 0 18px rgba(0,255,195,.25);
  font-weight: 800;
  animation: boltFlash 1.2s infinite ease-in-out;
}

/* Optional wrapper if you want to style the text independently later */
.metric-with-bolt .metric-line { display: inline-block; }

/* Flash animation (matches your neon aesthetic) */
@keyframes boltFlash {
  0%, 100% { opacity: .35; filter: drop-shadow(0 0 0 rgba(0,255,195,0)); }
  45%     { opacity: 1;   filter: drop-shadow(0 0 8px rgba(0,255,195,.9)); }
}
/* your bar has position:relative; use a data-label bubble on the right */
.v-bar::after{
  content: attr(data-label);
  position:absolute; right:8px; top:50%; transform:translateY(-50%);
  font-weight:600; opacity:.9;
}
/* ---------- Unified progress labels (match Reputation style) ---------- */
.progress-bar-container { position: relative; overflow: visible; }
.progress-bar-fill { position: relative; overflow: visible; }
.progress-bar-fill > span,
.bar-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  color: #0a0a0a !important;          /* black text like the rep bar */
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
  pointer-events: none;
  white-space: nowrap;
}

/* Ensure any previous white label overrides don’t win */
.vbars .progress-bar-fill > span,
.vbars .bar-label { color:#0a0a0a !important; }

/* ---------- Lightning “zap” animation ---------- */
.bolt, .bolt-icon {
  display:inline-block;
  filter: drop-shadow(0 0 6px rgba(80,255,170,.55));
}
.bolt.zap, .bolt-icon.zap {
  animation: boltZap 1.6s steps(2,end) infinite;
  animation-delay: var(--zap-delay, 0ms);
}
@keyframes boltZap {
  0%   { opacity:.35; transform: translateY(0) scale(1);   filter: drop-shadow(0 0 4px rgba(80,255,170,.4)); }
  7%   { opacity:1;   transform: translateY(-1px) scale(1.06); filter: drop-shadow(0 0 14px rgba(80,255,170,.95)); }
  12%  { opacity:.45; transform: translateY(0) scale(1); }
  18%  { opacity:1;   transform: translateY(-.5px) scale(1.03); filter: drop-shadow(0 0 10px rgba(80,255,170,.85)); }
  28%  { opacity:.55; }
  100% { opacity:.35; }
}

/* =======================================================================
   🆕 Live Proposals — top 3/4 background image with dark overlay
   Mirrors Staker card overlay, does NOT change layout/positions.
   ======================================================================= */
.card.live-proposals-card{
  position: relative;
  overflow: hidden;              /* clip bg to rounded corners */
  border-radius: 20px;           /* match other cards */
}
/* Image layer */
.card.live-proposals-card::before{
  content:"";
  position:absolute; left:0; top:0; width:100%; height:75%;
  background-image: url("/static/images/xVitreus.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  z-index: 0;
}
/* Dark veil layer (same brightness feel as staker card) */
.card.live-proposals-card::after{
  content:"";
  position:absolute; left:0; top:0; width:100%; height:75%;
  background: rgba(0,0,0,0.70);
  z-index: 0;
}
/* Keep all children above the overlays */
.card.live-proposals-card > *{
  position: relative;
  z-index: 1;
}
