.card {
  background: transparent !important;
  border: 1.5px solid var(--border-subtle) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.06), inset 0 0 20px rgba(124, 58, 237, 0.02);
  transition: var(--transition);
  color: var(--text-primary);
}
.card:hover {
  border-color: var(--border-hover) !important;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.12), inset 0 0 25px rgba(124, 58, 237, 0.04);
}

.card-body { padding: 1.25rem; }
.card-title { color: var(--text-primary) !important; font-weight: 600; margin-bottom: 0.75rem; }
.card-text, .card p { color: var(--text-secondary) !important; }

.card-header {
  background: transparent !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  color: var(--text-primary) !important;
  font-weight: 600;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}
.card-footer {
  background: transparent !important;
  border-top: 1px solid var(--border-subtle) !important;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
}

.character-card {
  background: transparent !important;
  border: 1.5px solid rgba(139, 92, 246, 0.25) !important;
  border-radius: var(--radius-lg) !important;
  padding: 1.25rem;
  transition: var(--transition);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.06), inset 0 0 20px rgba(124, 58, 237, 0.02);
}
.character-card:hover {
  transform: translateY(-2px);
}

.character-card:not(.is-resting) {
  border-color: var(--working-border) !important;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.08), inset 0 0 20px rgba(6, 182, 212, 0.03);
}
.character-card:not(.is-resting):hover {
  border-color: rgba(6, 182, 212, 0.6) !important;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.12), inset 0 0 25px rgba(6, 182, 212, 0.04);
}

.character-card.is-resting {
  border-color: var(--resting-border) !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.08), inset 0 0 20px rgba(16, 185, 129, 0.03);
  animation: neonPulseGreen 3s ease-in-out infinite;
}
.character-card.is-resting:hover {
  border-color: rgba(16, 185, 129, 0.6) !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.12), inset 0 0 25px rgba(16, 185, 129, 0.04);
}
.character-card.is-resting .card-title { color: var(--resting-glow) !important; }

@keyframes neonPulseGreen {
  0%, 100% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.08), inset 0 0 20px rgba(16, 185, 129, 0.03); }
  50% { box-shadow: 0 0 25px rgba(16, 185, 129, 0.15), inset 0 0 30px rgba(16, 185, 129, 0.05); }
}

/* Card Fade Toggle - FIXED VERSION */
.card-flip-container {
  position: relative;
  min-height: 350px;  /* Give it a height */
  height: 100%;
}

.card-flip-front,
.card-flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transition: opacity 0.3s ease-in-out;
}

.card-flip-front {
  opacity: 1;
  z-index: 2;
}

.card-flip-back {
  opacity: 0;
  z-index: 1;
}

/* When flipped */
.card-flip-container.flipped .card-flip-front {
  opacity: 0;
  z-index: 1;
}

.card-flip-container.flipped .card-flip-back {
  opacity: 1;
  z-index: 2;
}