body {
  margin: 0;
  background: #0a0f1a;
  color: #e9f6ff;
  font-family: "Roboto", sans-serif;
  overflow-x: hidden;
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02) 0,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 2px,
    transparent 4px
  );
  opacity: 0.15;
  z-index: 40;
}

/* Animated background */
.bg-animation {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 20% 80%,
      rgba(107, 76, 255, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(51, 175, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 50% 50%,
      rgba(51, 175, 255, 0.05) 0%,
      transparent 60%
    );
  animation: bgPulse 8s ease-in-out infinite;
  z-index: -1;
}

@keyframes bgPulse {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

/* Stars */
.stars {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, white, transparent),
    radial-gradient(
      2px 2px at 40px 70px,
      rgba(255, 255, 255, 0.8),
      transparent
    ),
    radial-gradient(1px 1px at 90px 40px, white, transparent),
    radial-gradient(
      2px 2px at 130px 80px,
      rgba(255, 255, 255, 0.6),
      transparent
    ),
    radial-gradient(1px 1px at 160px 120px, white, transparent);
  background-size: 200px 200px;
  animation: twinkle 4s ease-in-out infinite;
  z-index: -1;
}

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

.holographic-grid {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(51, 175, 255, 0.03) 0px,
      transparent 2px,
      transparent 40px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(51, 175, 255, 0.03) 0px,
      transparent 2px,
      transparent 40px
    );
  z-index: 1;
  animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  border-bottom: 1px solid rgba(51, 175, 255, 0.25);
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 80;
}

.logo {
  font-family: "Orbitron", sans-serif;
  font-size: 28px;
  color: #33afff;
  text-shadow:
    0 0 12px #33afff,
    0 0 24px rgba(51, 175, 255, 0.5);
  margin: 0;
  letter-spacing: 2px;
}

.boot-button {
  padding: 10px 26px;
  font-family: "Orbitron";
  border: 2px solid #33afff;
  background: rgba(10, 15, 25, 0.7);
  color: #33afff;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.25s;
  box-shadow:
    0 0 8px #33afff inset,
    0 0 12px #33afff;
  backdrop-filter: blur(5px);
}

.boot-button:hover {
  background: #33afff;
  color: #05070d;
  transform: translateY(-2px);
}

.content-wrapper {
  padding: 30px 40px 80px;
  position: relative;
  z-index: 10;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  background: rgba(51, 175, 255, 0.05);
  border: 1px solid rgba(51, 175, 255, 0.3);
  border-radius: 12px;
  margin-bottom: 30px;
  backdrop-filter: blur(8px);
}

.status-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.status-label {
  font-family: "Orbitron";
  font-size: 11px;
  color: #33afff;
  opacity: 0.7;
  letter-spacing: 1px;
}

.status-value {
  font-family: "Orbitron";
  font-size: 16px;
  color: #e9f6ff;
  font-weight: 600;
}

.status-value.available {
  color: #10b981;
  text-shadow: 0 0 8px #10b981;
  animation: pulse 2s ease-in-out infinite;
}

.status-value.online {
  color: #33afff;
  text-shadow: 0 0 8px #33afff;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.page-title {
  font-family: "Orbitron", sans-serif;
  font-size: 38px;
  color: #33afff;
  text-shadow: 0 0 15px #33afff;
  margin: 0 0 10px 0;
  text-align: center;
  letter-spacing: 3px;
}

.subtitle {
  text-align: center;
  font-size: 16px;
  opacity: 0.7;
  margin: 0 0 40px 0;
  color: #33afff;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.program-card {
  background: rgba(10, 15, 26, 0.6);
  border: 1px solid rgba(51, 175, 255, 0.4);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 20px rgba(51, 175, 255, 0.1);
  position: relative;
}

.program-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(51, 175, 255, 0.05) 0%,
    transparent 50%,
    rgba(107, 76, 255, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.program-card:hover {
  transform: translateY(-5px);
  border-color: #33afff;
  box-shadow:
    0 0 40px rgba(51, 175, 255, 0.4),
    inset 0 0 20px rgba(51, 175, 255, 0.1);
}

.program-card:hover::before {
  opacity: 1;
}

.hologram-preview {
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    180deg,
    rgba(51, 175, 255, 0.1) 0%,
    rgba(10, 15, 26, 0.8) 100%
  );
  overflow: hidden;
}

.holo-effect {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(51, 175, 255, 0.1) 0px,
    transparent 2px,
    transparent 4px
  );
  animation: holoScan 3s linear infinite;
}

@keyframes holoScan {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

.preview-icon {
  font-size: 70px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(51, 175, 255, 0.8));
  animation:
    float 3s ease-in-out infinite,
    holoFlicker 0.15s infinite;
  opacity: 0.9;
}

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

@keyframes holoFlicker {
  0%,
  100% {
    opacity: 0.9;
  }
  50% {
    opacity: 0.95;
  }
}

.program-info {
  padding: 20px;
}

.program-title {
  font-family: "Orbitron", sans-serif;
  font-size: 20px;
  color: #33afff;
  text-shadow: 0 0 8px #33afff;
  margin: 0 0 5px 0;
  letter-spacing: 1px;
}

.program-code {
  font-family: "Orbitron";
  font-size: 11px;
  color: #6b4cff;
  opacity: 0.8;
  margin: 0 0 12px 0;
  letter-spacing: 1px;
}

.program-desc {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.85;
  margin: 0 0 15px 0;
  color: #e9f6ff;
}

.program-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 5px 12px;
  background: rgba(51, 175, 255, 0.15);
  border: 1px solid rgba(51, 175, 255, 0.4);
  border-radius: 8px;
  font-size: 11px;
  color: #33afff;
  font-family: "Orbitron";
  letter-spacing: 0.5px;
}

.tag.difficulty-low {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #10b981;
}

.tag.difficulty-mid {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}

.tag.difficulty-high {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 15, 26, 0.95);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: rgba(20, 30, 50, 0.95);
  border: 2px solid rgba(51, 175, 255, 0.6);
  border-radius: 20px;
  padding: 40px;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 60px rgba(51, 175, 255, 0.4);
  backdrop-filter: blur(10px);
  animation: slideUp 0.3s ease;
}

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

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(51, 175, 255, 0.2);
  border: 1px solid #33afff;
  color: #33afff;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Orbitron";
}

.close-btn:hover {
  background: #33afff;
  color: #0a0f1a;
  transform: rotate(90deg);
}

.modal-title {
  font-family: "Orbitron", sans-serif;
  font-size: 32px;
  color: #33afff;
  text-shadow: 0 0 12px #33afff;
  margin: 0 0 10px 0;
  letter-spacing: 2px;
}

.modal-code {
  font-family: "Orbitron";
  font-size: 12px;
  color: #6b4cff;
  opacity: 0.9;
  margin: 0 0 20px 0;
  letter-spacing: 1px;
}

.modal-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 25px;
}

.info-badge {
  padding: 12px;
  background: rgba(51, 175, 255, 0.1);
  border: 1px solid rgba(51, 175, 255, 0.3);
  border-radius: 8px;
  text-align: center;
}

.info-label {
  font-family: "Orbitron";
  font-size: 10px;
  color: #33afff;
  opacity: 0.7;
  display: block;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.info-value {
  font-family: "Orbitron";
  font-size: 14px;
  color: #e9f6ff;
  font-weight: 600;
}

.modal-description {
  line-height: 1.8;
  font-size: 15px;
  margin-bottom: 25px;
  color: #e9f6ff;
  opacity: 0.9;
}

.features-section {
  margin: 25px 0;
}

.section-title {
  font-family: "Orbitron";
  font-size: 16px;
  color: #33afff;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  padding: 10px 12px;
  background: rgba(51, 175, 255, 0.05);
  border-left: 3px solid #33afff;
  margin-bottom: 8px;
  font-size: 14px;
  transition: 0.2s;
}

.features-list li:hover {
  background: rgba(51, 175, 255, 0.1);
  padding-left: 16px;
}

.load-button {
  width: 100%;
  padding: 16px 30px;
  font-family: "Orbitron";
  font-size: 18px;
  border: 2px solid #33afff;
  background: rgba(51, 175, 255, 0.2);
  color: #33afff;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.25s;
  box-shadow: 0 0 15px rgba(51, 175, 255, 0.3);
  margin-top: 25px;
  letter-spacing: 2px;
}

.load-button:hover {
  background: #33afff;
  color: #0a0f1a;
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(51, 175, 255, 0.6);
}

.warning-box {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
  font-size: 13px;
  color: #fbbf24;
}

.warning-box strong {
  font-family: "Orbitron";
  display: block;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .status-bar {
    flex-direction: column;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 28px;
  }

  .modal-content {
    margin: 20px;
    padding: 30px 20px;
    max-height: 90vh;
  }

  .modal-title {
    font-size: 24px;
    margin-right: 40px;
  }

  .modal-info {
    grid-template-columns: 1fr;
  }
}
