* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #ffffff;
  overflow-x: hidden;
}

.rally-command-center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Presidential Header */
.presidential-header {
  background: linear-gradient(135deg, #FF0000 0%, #0000FF 100%);
  padding: 30px 40px;
  position: relative;
  border-bottom: 4px solid #FFD700;
}

.flag-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1) 0px,
    rgba(255, 255, 255, 0.1) 10px,
    transparent 10px,
    transparent 20px
  );
  pointer-events: none;
}

.header-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.presidential-seal {
  position: relative;
  width: 100px;
  height: 100px;
}

.seal-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #FFD700;
  position: relative;
  z-index: 2;
}

.seal-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 3px solid rgba(255, 215, 0, 0.6);
  border-radius: 50%;
  animation: sealGlow 3s ease-in-out infinite alternate;
}

@keyframes sealGlow {
  0% { 
    transform: scale(1); 
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); 
  }
  100% { 
    transform: scale(1.1); 
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.8); 
  }
}

.rally-title h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.subtitle {
  font-size: 1.2rem;
  color: #FFD700;
  font-weight: 600;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.rally-status {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.status-badge, .ath-indicator {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid #FFD700;
}

.status-badge.active {
  background: rgba(255, 215, 0, 0.3);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.rally-metrics {
  min-width: 200px;
}

.metric-display {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #FFD700;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
}

.metric-label {
  font-size: 0.9rem;
  color: #FFD700;
  font-weight: 600;
  margin-bottom: 10px;
}

.energy-meter {
  height: 10px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 10px;
}

.energy-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF0000, #FFD700);
  border-radius: 5px;
  animation: energyPulse 2s ease-in-out infinite alternate;
}

@keyframes energyPulse {
  0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
  100% { box-shadow: 0 0 20px rgba(255, 215, 0, 1); }
}

.metric-value {
  font-weight: 700;
  color: #FFFFFF;
  font-size: 1.1rem;
}

/* Dashboard Container */
.dashboard-container {
  flex: 1;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 0;
  min-height: calc(100vh - 200px);
}

/* Analytics Panel */
.analytics-panel {
  background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
  border-right: 4px solid #FFD700;
  padding: 30px;
  overflow-y: auto;
}

.panel-header {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 15px;
}

.momentum-tracker {
  background: rgba(255, 0, 0, 0.1);
  border: 2px solid rgba(255, 0, 0, 0.3);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
}

.tracker-title {
  font-weight: 700;
  color: #FF0000;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.momentum-chart {
  position: relative;
  height: 150px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  overflow: hidden;
}

.chart-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, #FF0000, #FFD700);
  animation: chartGlow 3s ease-in-out infinite alternate;
}

.chart-line:nth-child(1) {
  width: 30%;
  top: 70%;
  left: 10%;
  transform: rotate(15deg);
}

.chart-line:nth-child(2) {
  width: 35%;
  top: 50%;
  left: 30%;
  transform: rotate(20deg);
}

.chart-line:nth-child(3) {
  width: 40%;
  top: 20%;
  left: 50%;
  transform: rotate(25deg);
}

@keyframes chartGlow {
  0% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
  100% { box-shadow: 0 0 15px rgba(255, 215, 0, 1); }
}

.chart-point {
  position: absolute;
  background: #FFD700;
  color: #000;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  transform: translate(-50%, 50%);
}

.chart-point.active {
  background: #00FF00;
}

.chart-point.current {
  background: #FF0000;
  color: #FFFFFF;
  animation: currentPoint 2s ease-in-out infinite;
}

@keyframes currentPoint {
  0%, 100% { transform: translate(-50%, 50%) scale(1); }
  50% { transform: translate(-50%, 50%) scale(1.1); }
}

.trend-arrow {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  color: #00FF00;
  animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.crowd-metrics {
  background: rgba(0, 0, 255, 0.1);
  border: 2px solid rgba(0, 0, 255, 0.3);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
}

.crowd-title {
  font-weight: 700;
  color: #0000FF;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.crowd-stats {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.crowd-stat {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 10px;
  border-left: 4px solid #FFD700;
}

.stat-icon {
  font-size: 1.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #CCCCCC;
  margin-bottom: 5px;
}

.stat-number {
  font-weight: 700;
  color: #FFFFFF;
  font-size: 1.1rem;
}

.stat-number.bullish {
  color: #00FF00;
}

.rally-schedule {
  background: rgba(255, 215, 0, 0.1);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 15px;
  padding: 25px;
}

.schedule-title {
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-item.completed {
  opacity: 0.7;
}

.schedule-item.active {
  background: rgba(255, 215, 0, 0.1);
  border-radius: 8px;
  padding: 12px;
}

.schedule-time {
  font-weight: 600;
  color: #FFD700;
  min-width: 80px;
}

.schedule-event {
  color: #FFFFFF;
  flex: 1;
  text-align: right;
}

/* Operations Panel */
.operations-panel {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 30px;
  overflow-y: auto;
}

.token-operations {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
}

.ops-section-title {
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.ops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.ops-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease;
}

.ops-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 215, 0, 0.1);
}

.ops-label {
  font-size: 0.8rem;
  color: #CCCCCC;
  margin-bottom: 8px;
}

.ops-value {
  font-weight: 700;
  color: #FFFFFF;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.ops-status {
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.ops-status.complete { background: #00FF00; color: #000; }
.ops-status.operational { background: #0000FF; color: #FFFFFF; }
.ops-status.secure { background: #FFD700; color: #000; }
.ops-status.zero { background: #FF0000; color: #FFFFFF; }

.mission-objectives {
  background: rgba(255, 0, 0, 0.1);
  border: 2px solid rgba(255, 0, 0, 0.3);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
}

.mission-title {
  font-weight: 700;
  color: #FF0000;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.objective-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.objective-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.objective-item.completed {
  background: rgba(0, 255, 0, 0.1);
  opacity: 0.8;
}

.objective-item.active {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.objective-marker {
  color: #FFD700;
  font-weight: 700;
  min-width: 20px;
}

.objective-text {
  color: #FFFFFF;
  flex: 1;
}

.command-center {
  background: rgba(0, 0, 255, 0.1);
  border: 2px solid rgba(0, 0, 255, 0.3);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
}

.command-title {
  font-weight: 700;
  color: #0000FF;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.command-buttons {
  display: flex;
  gap: 15px;
}

.command-btn {
  flex: 1;
  background: transparent;
  border: 2px solid #FFD700;
  color: #FFD700;
  padding: 15px 20px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.command-btn:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: translateY(-2px);
}

.command-btn.primary {
  border-color: #00FF00;
  color: #00FF00;
}

.command-btn.primary:hover {
  background: rgba(0, 255, 0, 0.2);
}

.btn-flag {
  font-size: 1.2rem;
}

.presidential-decree {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(0, 0, 255, 0.1));
  border: 3px solid #FFD700;
  border-radius: 15px;
  padding: 25px;
}

.decree-header {
  font-weight: 800;
  color: #FFD700;
  margin-bottom: 20px;
  font-size: 1.2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.decree-content p {
  font-style: italic;
  color: #FFFFFF;
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: center;
}

.decree-signature {
  text-align: right;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 20px;
}

.contract-section {
  border-top: 2px solid rgba(255, 215, 0, 0.3);
  padding-top: 20px;
}

.contract-label {
  color: #FFD700;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.contract-input {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.5);
  padding: 15px;
  border-radius: 10px;
  border: 2px solid #FFD700;
}

.contract-address {
  flex: 1;
  font-family: monospace;
  color: #FFD700;
  font-weight: 600;
}

.copy-decree-btn {
  background: #FFD700;
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-decree-btn:hover {
  background: #FFFFFF;
  transform: scale(1.05);
}

/* Footer */
.command-footer {
  background: linear-gradient(90deg, #FF0000, #0000FF);
  border-top: 4px solid #FFD700;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left, .footer-center, .footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-badge {
  color: #FFD700;
  font-size: 1.2rem;
}

.footer-text {
  color: #FFFFFF;
  font-weight: 600;
}

.live-indicator {
  color: #00FF00;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.rally-time {
  color: #FFD700;
  font-weight: 600;
}

.timestamp {
  color: #CCCCCC;
  font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .header-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  
  .rally-title h1 {
    font-size: 2.5rem;
  }
  
  .dashboard-container {
    grid-template-columns: 1fr;
  }
  
  .analytics-panel {
    border-right: none;
    border-bottom: 4px solid #FFD700;
  }
  
  .ops-grid {
    grid-template-columns: 1fr;
  }
  
  .command-buttons {
    flex-direction: column;
  }
  
  .command-footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}