.hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 16px;
  border: 1px solid var(--blue-accent);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  background-repeat: no-repeat;
  background-position: 95% 35%;
  background-size: 30%;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.hub-card:hover {
  border-color: var(--neon-bright);
  background-image: var(--gradient-hover);
  box-shadow: 0 0 20px rgba(0, 255, 127, 0.15);
}

.hub-card__title {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--neon-bright);
  text-shadow: var(--shadow-neon);
  margin: 0 0 12px;
  padding-right: 40%;
}

.hub-card__widget {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 100px;
}

.hub-card__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gradient-hover);
  border: 1px solid var(--neon-bright);
  color: #fff;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 11px;
}

.btn-ghost:hover {
  border-color: var(--neon);
  color: var(--neon);
}

/* Widget: Bitcoin chart */
.widget-bitcoin {
  width: 100%;
}

.widget-bitcoin .price {
  color: var(--neon);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  text-shadow: var(--shadow-neon);
  margin-bottom: 8px;
}

.widget-bitcoin canvas {
  width: 100% !important;
  height: 85px !important;
}

/* Widget: Gauge */
.widget-gauge {
  position: relative;
  width: 100px;
  height: 100px;
}

.widget-gauge canvas {
  width: 100px !important;
  height: 100px !important;
}

.widget-gauge .value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--neon);
  text-shadow: var(--shadow-neon);
  pointer-events: none;
}

/* Widget: Store bar */
.widget-store-bar {
  width: 100%;
  max-width: 100%;
}

.widget-store-bar .bar-shell {
  position: relative;
  height: 30px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid var(--neon-dark);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 5px var(--neon-dark);
}

.widget-store-bar .bar-fill {
  height: 100%;
  background: var(--neon);
  box-shadow: 0 0 15px var(--neon);
  animation: neon-flicker 2s ease-in-out infinite alternate;
  transition: width 1.5s ease;
}

.widget-store-bar .bar-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 3px #000;
}

@keyframes neon-flicker {
  0%,
  100% {
    box-shadow: 0 0 5px var(--neon);
  }
  50% {
    box-shadow: 0 0 15px var(--neon);
  }
}

/* Widget: Community counter */
.widget-community .count {
  font-size: 2rem;
  font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 5px var(--neon), 0 0 10px var(--neon), 0 0 20px rgba(0, 255, 127, 0.8);
  font-variant-numeric: tabular-nums;
}

/* Widget: Academy */
.widget-academy {
  position: relative;
  width: 120px;
  height: 120px;
}

.widget-academy canvas {
  width: 120px !important;
  height: 120px !important;
}

.widget-academy .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
}

.widget-academy .overlay .value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--neon);
  text-shadow: var(--shadow-neon);
}

.widget-academy .overlay .status {
  font-size: 0.65rem;
  color: var(--neon);
  margin-top: 2px;
}

/* Widget: Expansion chart */
.widget-expansion {
  width: 100%;
  max-width: 250px;
}

.widget-expansion .title {
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
  text-shadow: 0 0 4px var(--neon);
}

.widget-expansion canvas {
  width: 250px !important;
  height: 150px !important;
}
