:root {
  --primary: #a855f7;
  --secondary: #f472b6;
  --tertiary: #3b82f6;
  --background: #1f2937;
  --text: #f9fafb;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #374151;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius:.25rem;
}

/* Tab styling */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid #4b5563;
  margin-bottom: 16px;
}

.tab-btn {
  padding: 8px 16px;
  background-color: transparent;
  color: #9ca3af;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block !important;
  opacity: 1 !important;
}

/* Switch styling */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #4b5563;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Activation button */
.activate-btn {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  transform: scale(1);
}

.activate-btn:hover {
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
  transform: scale(1.05);
}

.activate-btn:active {
  transform: scale(0.98);
}

/* Broadcast selected button */
.broadcast-btn {
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  font-size: 0.875rem;
}

.broadcast-btn:disabled {
  background: #4b5563;
  cursor: not-allowed;
  opacity: 0.6;
}

.broadcast-btn:not(:disabled):hover {
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
  transform: scale(1.05);
}

/* Upload button */
.upload-btn {
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  font-size: 0.875rem;
}

.upload-btn:hover {
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
  transform: scale(1.05);
}

.preview-btn {
  background: #4b5563;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  font-size: 0.875rem;
}

.preview-btn:not(:disabled):hover {
  background: #6b7280;
}

.preview-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Current User button */
.user-btn {
  background: linear-gradient(45deg, #8b5cf6, #ec4899);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  font-size: 0.875rem;
}

.user-btn:hover {
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.5);
  transform: scale(1.05);
}

.user-btn:active {
  transform: scale(0.98);
}

/* Field radius visualization */
.field-radius-indicator {
  position: absolute;
  border: 2px dashed rgba(16, 185, 129, 0.5);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  z-index: 7;
  transition: opacity 0.5s ease, width 1s ease, height 1s ease;
}

.field-radius-indicator.active {
  opacity: 0.5;
  animation: pulseRadius 4s infinite alternate;
}

@keyframes pulseRadius {
  0% {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
    transform: translate(-50%, -50%) scale(0.98);
  }
  100% {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
    transform: translate(-50%, -50%) scale(1.02);
  }
}

/* Animation for active word */
@keyframes pulse {
  0% {
    opacity: 0.7;
    text-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.8);
  }
  100% {
    opacity: 0.7;
    text-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
  }
}

#activeWordDisplay {
  animation: fadeIn 0.5s;
  z-index: 25 !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Energy meter */
.energy-meter-container {
  width: 90%;
  height: 14px;
  background-color: rgba(55, 65, 81, 0.8);
  border-radius: 7px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.energy-meter-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #a855f7, #ec4899);
  border-radius: 7px;
  transition: width 0.5s ease;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

.energy-meter-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: bold;
  color: white;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.9);
}

/* Stats boxes */
.stat-box {
  background-color: rgba(75, 85, 99, 0.7);
  border-radius: 8px;
  padding: 10px;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-box:hover {
  background-color: rgba(75, 85, 99, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--tertiary);
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.stat-label {
  font-size: 0.75rem;
  color: #d1d5db;
  font-weight: 500;
}

/* Power metrics */
.power-metrics {
  background-color: rgba(31, 41, 55, 0.5);
  border-radius: 8px;
  padding: 10px;
}

.power-metric {
  margin-bottom: 6px;
}

.power-label {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 3px;
}

.power-bar {
  height: 6px;
  background-color: #374151;
  border-radius: 3px;
  overflow: hidden;
}

.power-fill {
  height: 100%;
  background-color: var(--tertiary);
  border-radius: 3px;
  transition: width 0.5s ease, background-color 0.5s ease;
}

/* Glow effects */
.glow-effect {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 11;
  transition: opacity 0.5s;
}

/* Selection checkbox */
.selection-checkbox {
  display: inline-block;
  position: relative;
  cursor: pointer;
  width: 20px;
  height: 20px;
}

.selection-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #374151;
  border-radius: 4px;
  transition: all 0.2s;
}

.selection-checkbox:hover input ~ .checkmark {
  background-color: #4b5563;
}

.selection-checkbox input:checked ~ .checkmark {
  background-color: var(--primary);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.selection-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.selection-checkbox .checkmark:after {
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Selected activation item */
.selected-activation {
  position: relative;
}

.remove-selection {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 5px;
  transition: all 0.2s;
}

.remove-selection:hover {
  color: var(--danger);
}

/* Broadcast rings indicator in active word display */
.broadcast-rings-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.ring-indicator {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #4b5563;
  transition: all 0.3s;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.ring-indicator.low {
  background-color: var(--tertiary);
  animation: pulseBroadcast 1.5s infinite;
  box-shadow: 0 0 8px var(--tertiary);
}

.ring-indicator.medium {
  background-color: var(--secondary);
  animation: pulseBroadcast 1.2s infinite;
  box-shadow: 0 0 10px var(--secondary);
}

.ring-indicator.high {
  background-color: var(--primary);
  animation: pulseBroadcast 0.8s infinite;
  box-shadow: 0 0 15px var(--primary);
}

@keyframes pulseBroadcast {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.7;
  }
}

/* Fixed Broadcast Panel */
.fixed-broadcast-panel {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.5s;
  pointer-events: auto;
}

.fixed-broadcast-panel.minimized {
  width: auto;
  max-width: none;
  top: 10px;
  left: auto;
  right: 10px;
  transform: none;
  animation: slideIn 0.3s ease-out;
}

.fixed-broadcast-panel.minimized > div {
  padding: 8px 12px !important;
}

.fixed-broadcast-panel.minimized .mt-4,
.fixed-broadcast-panel.minimized .mt-6,
.fixed-broadcast-panel.minimized .broadcast-rings-indicator {
  display: none;
}

.fixed-broadcast-panel.minimized #activeWord {
  font-size: 1rem !important;
  margin-top: 2px;
}

@media (max-width: 640px) {
  .fixed-broadcast-panel {
    width: 95%;
    top: 10px;
  }
}

.fixed-broadcast-panel .energy-meter-container,
.fixed-broadcast-panel .stat-box,
.fixed-broadcast-panel .broadcast-rings-indicator {
  position: relative;
  z-index: 1001;
}

.fixed-broadcast-panel > div {
  backdrop-filter: blur(12px) !important;
  border: 2px solid rgba(139, 92, 246, 0.5) !important;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4), inset 0 0 10px rgba(59, 130, 246, 0.2) !important;
}

/* Hide broadcast button styling */
#hideBroadcastBtn {
  transition: all 0.2s;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(75, 85, 99, 0.5);
}

#hideBroadcastBtn:hover {
  background-color: rgba(239, 68, 68, 0.7);
  transform: scale(1.1);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Concentric circles for broadcasting visualization */
.concentric-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(168, 85, 247, 0.4);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 6;
}

.concentric-circle.broadcasting {
  animation: broadcastWave 5s cubic-bezier(0.1, 0.7, 0.3, 1) infinite;
}

/* Enhanced Sacred Geometry Broadcast Visualization */
.sacred-pattern {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 8;
}

.sacred-pattern.active {
  opacity: 0.7;
  animation: rotateSacredPattern 30s linear infinite;
}

.flower-of-life {
  background-image: url('flower_of_life.png');
}

.metatron-cube {
  background-image: url('metatron_cube.png');
}

.sri-yantra {
  background-image: url('sri_yantra.png');
}

.golden-ratio {
  background-image: url('golden_ratio.png');
}

@keyframes rotateSacredPattern {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.8);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) rotate(180deg) scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg) scale(0.8);
    opacity: 0.3;
  }
}

@keyframes broadcastWave {
  0% {
    width: 0;
    height: 0;
    opacity: 0.9;
    border-width: 8px;
    border-color: rgba(168, 85, 247, 0.8);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5), inset 0 0 10px rgba(168, 85, 247, 0.5);
  }
  30% {
    border-color: rgba(244, 114, 182, 0.7);
    box-shadow: 0 0 30px rgba(244, 114, 182, 0.4), inset 0 0 15px rgba(244, 114, 182, 0.4);
    border-width: 6px;
  }
  60% {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.3), inset 0 0 20px rgba(59, 130, 246, 0.3);
    border-width: 4px;
  }
  100% {
    width: 200%;
    height: 200%;
    opacity: 0;
    border-width: 1px;
    border-color: rgba(59, 130, 246, 0);
    box-shadow: 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* Enhanced energy beam with sacred geometry */
.energy-beam {
  position: absolute;
  background: linear-gradient(to top, 
    rgba(168, 85, 247, 0.1), 
    rgba(168, 85, 247, 0.4), 
    rgba(244, 114, 182, 0.6));
  transform-origin: bottom center;
  border-radius: 50% 50% 0 0;
  z-index: 13;
  opacity: 0;
  transition: height 0.5s ease, opacity 0.5s ease;
  overflow: hidden;
}

.energy-beam::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(244, 114, 182, 0.1),
    rgba(168, 85, 247, 0.2) 10px,
    rgba(59, 130, 246, 0.1) 10px,
    rgba(244, 114, 182, 0.2) 20px
  );
  mask-image: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
  animation: scrollBeamPattern 3s linear infinite;
}

.energy-beam::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('sacred_beam_pattern.png');
  background-size: 100% 300%;
  background-position: center;
  opacity: 0.4;
  animation: scrollBeamPattern 5s linear infinite reverse;
}

@keyframes scrollBeamPattern {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

.energy-beam.active {
  opacity: 0.8;
  animation: beamPulse 2s infinite alternate;
}

@keyframes beamPulse {
  0% {
    opacity: 0.6;
    filter: blur(8px) hue-rotate(0deg);
  }
  100% {
    opacity: 0.9;
    filter: blur(4px) hue-rotate(30deg);
  }
}

/* Enhanced broadcast waves with sacred geometry */
.broadcast-wave {
  position: absolute;
  border-radius: 50%;
  border: 4px solid;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 14;
}

.broadcast-wave::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border-radius: 50%;
  border: 2px dashed rgba(168, 85, 247, 0.3);
  animation: rotateBroadcastPattern 10s linear infinite;
}

.broadcast-wave::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  border: 1px solid rgba(244, 114, 182, 0.3);
  animation: rotateBroadcastPattern 7s linear infinite reverse;
}

@keyframes rotateBroadcastPattern {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.broadcast-wave.broadcasting {
  animation: expandingWave 6s cubic-bezier(0.1, 0.7, 0.4, 1) forwards;
}

@keyframes expandingWave {
  0% {
    width: 50px;
    height: 50px;
    border-color: rgba(244, 114, 182, 0.8);
    box-shadow: 0 0 20px rgba(244, 114, 182, 0.4), inset 0 0 30px rgba(244, 114, 182, 0.3);
    opacity: 0.9;
  }
  40% {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.3), inset 0 0 20px rgba(168, 85, 247, 0.2);
    opacity: 0.7;
  }
  70% {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.2), inset 0 0 10px rgba(59, 130, 246, 0.1);
    opacity: 0.5;
  }
  100% {
    width: 2000px;
    height: 2000px;
    border-color: rgba(59, 130, 246, 0);
    box-shadow: 0 0 0 rgba(59, 130, 246, 0);
    opacity: 0;
  }
}

/* Golden ratio spiral particles */
.spiral-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.9) 0%, rgba(168, 85, 247, 0.4) 70%);
  filter: blur(1px);
  opacity: 0.8;
  z-index: 16;
  pointer-events: none;
  box-shadow: 0 0 5px rgba(168, 85, 247, 0.5);
}

/* Vesica Piscis animation */
.vesica-piscis {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 12;
  pointer-events: none;
}

.vesica-piscis.active {
  opacity: 1;
}

.vesica-circle {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid rgba(168, 85, 247, 0.5);
  box-shadow: inset 0 0 30px rgba(168, 85, 247, 0.3);
  transition: all 0.5s ease;
}

.vesica-circle:nth-child(1) {
  left: -50px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.2) 0%, rgba(244, 114, 182, 0) 70%);
  animation: pulseVesica 3s infinite alternate;
}

.vesica-circle:nth-child(2) {
  left: 50px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 70%);
  animation: pulseVesica 3s infinite alternate-reverse;
}

@keyframes pulseVesica {
  0% {
    transform: scale(0.9);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Platonic solid visualizations */
.platonic-solid {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  width: 100px;
  height: 100px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  z-index: 12;
  pointer-events: none;
}

.platonic-solid.active {
  opacity: 1;
  animation: rotatePlatonic 20s linear infinite;
}

@keyframes rotatePlatonic {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.8);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) rotateY(180deg) scale(1.2);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg) scale(0.8);
    opacity: 0.3;
  }
}

/* Enhanced quantum emitter */
.quantum-emitter {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 150px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.quantum-emitter.active {
  opacity: 1;
  animation: emitterPulse 3s infinite alternate;
  filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.7));
}

@keyframes emitterPulse {
  0% {
    transform: translateX(-50%) scale(0.95);
    filter: brightness(0.9) drop-shadow(0 0 10px rgba(168, 85, 247, 0.6)) hue-rotate(0deg);
  }
  50% {
    transform: translateX(-50%) scale(1.0);
    filter: brightness(1.1) drop-shadow(0 0 25px rgba(244, 114, 182, 0.8)) hue-rotate(15deg);
  }
  100% {
    transform: translateX(-50%) scale(1.05);
    filter: brightness(1.2) drop-shadow(0 0 30px rgba(59, 130, 246, 0.9)) hue-rotate(30deg);
  }
}

/* Power source modal */
.power-source-modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.power-source-modal-content {
  background-color: rgba(31, 41, 55, 0.9);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #4b5563;
  max-width: 90%;
  max-height: 90%;
  position: relative;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
}

.power-source-close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #9ca3af;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.power-source-close:hover {
  color: #f472b6;
}

.power-source-modal-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid #4b5563;
}

/* User info styling */
.user-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.user-info-item {
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: 6px;
  padding: 10px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.user-info-label {
  font-size: 0.75rem;
  color: #9ca3af;
  display: block;
  margin-bottom: 2px;
}

.user-info-value {
  font-size: 0.875rem;
  color: #f9fafb;
  font-weight: 500;
}

/* Broadcast visualization */
.broadcast-visualization {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9;
}

.beam-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.9) 0%, rgba(168, 85, 247, 0.4) 70%);
  filter: blur(1px);
  opacity: 0.8;
  z-index: 16;
  pointer-events: none;
  box-shadow: 0 0 5px rgba(168, 85, 247, 0.5);
}

.broadcast-wave {
  position: absolute;
  border-radius: 50%;
  border: 4px solid;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 14;
}

.broadcast-wave.broadcasting {
  animation: expandingWave 4s cubic-bezier(0.1, 0.7, 0.4, 1) forwards;
}

@keyframes expandingWave {
  0% {
    width: 50px;
    height: 50px;
    border-color: rgba(244, 114, 182, 0.8);
    box-shadow: 0 0 20px rgba(244, 114, 182, 0.4);
    opacity: 0.8;
  }
  100% {
    width: 2000px;
    height: 2000px;
    border-color: rgba(59, 130, 246, 0);
    box-shadow: 0 0 0 rgba(59, 130, 246, 0);
    opacity: 0;
  }
}

.energy-beam {
  position: absolute;
  background: linear-gradient(to top, 
    rgba(168, 85, 247, 0.1), 
    rgba(168, 85, 247, 0.4), 
    rgba(244, 114, 182, 0.6));
  transform-origin: bottom center;
  border-radius: 50% 50% 0 0;
  z-index: 13;
  opacity: 0;
  transition: height 0.5s ease, opacity 0.5s ease;
}

.energy-beam.active {
  opacity: 0.6;
  animation: beamPulse 2s infinite alternate;
}

@keyframes beamPulse {
  0% {
    opacity: 0.4;
    filter: blur(8px);
  }
  100% {
    opacity: 0.7;
    filter: blur(4px);
  }
}

/* Animation toggle button */
.animation-toggle-btn {
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 30;
}

.animation-toggle-btn:hover {
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
  transform: scale(1.05);
}

.animation-toggle-btn.paused {
  background: linear-gradient(45deg, #4b5563, #374151);
}

.animation-toggle-btn .play-icon {
  display: none;
}

.animation-toggle-btn .pause-icon {
  display: inline;
}

.animation-toggle-btn.paused .play-icon {
  display: inline;
}

.animation-toggle-btn.paused .pause-icon {
  display: none;
}

/* Make animation toggle visible on mobile */
@media (max-width: 640px) {
  .animation-toggle-btn {
    position: fixed;
    top: 10px;
    right: 10px;
  }
  
  .animation-toggle-btn .toggle-text {
    display: none;
  }
}

/* Hidden element */
.hidden {
  display: none !important;
}

#particles-js {
  z-index: 0 !important;
  opacity: 0.7;
}

#visualization {
  z-index: 5 !important;
  opacity: 0.6;
}

.bg-gray-800.bg-opacity-70 {
  background-color: rgba(31, 41, 55, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(75, 85, 99, 0.5) !important;
}

#activationCards .bg-gray-700,
#selectedActivationsList .bg-gray-700,
#masterActivationContent .bg-gray-700 {
  background-color: rgba(55, 65, 81, 0.9) !important;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(75, 85, 99, 0.6);
  transition: transform 0.2s, box-shadow 0.2s;
}

#activationCards .bg-gray-700:hover,
#selectedActivationsList .bg-gray-700:hover,
#masterActivationContent .bg-gray-700:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.text-gray-300 {
  color: rgba(209, 213, 219, 0.95) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

input, select, textarea {
  background-color: rgba(55, 65, 81, 0.95) !important;
  border: 1px solid rgba(75, 85, 99, 0.7) !important;
}