#rubickModal .modal-dialog {
  max-width: 900px;
}

#rubickModal .modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: url('../images/rubick.webp') center center / cover no-repeat;
  min-height: 520px;
  position: relative;
  box-shadow:
    0 0 30px rgba(19, 76, 140, 0.5),
    0 0 60px rgba(19, 76, 140, 0.3),
    0 0 100px rgba(55, 67, 99, 0.2);
  animation: rubickGlow 2s ease-in-out infinite alternate;
}

@keyframes rubickGlow {
  0% {
    box-shadow:
      0 0 30px rgba(19, 76, 140, 0.5),
      0 0 60px rgba(19, 76, 140, 0.3),
      0 0 100px rgba(55, 67, 99, 0.2);
  }
  100% {
    box-shadow:
      0 0 40px rgba(19, 76, 140, 0.7),
      0 0 80px rgba(19, 76, 140, 0.45),
      0 0 120px rgba(55, 67, 99, 0.3);
  }
}

#rubickModal .modal-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(9, 41, 78, 0.82) 0%,
    rgba(55, 67, 99, 0.55) 50%,
    rgba(19, 76, 140, 0.4) 100%
  );
  z-index: 1;
}

#rubickModal .modal-header {
  position: relative;
  z-index: 2;
  border-bottom: none;
  padding: 1.5rem 1.5rem 0;
}

#rubickModal .modal-header .btn-close {
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  opacity: 1;
  padding: 0.6rem;
  transition: transform 0.3s ease;
}

#rubickModal .modal-header .btn-close:hover {
  transform: scale(1.15);
}

#rubickModal .modal-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 3rem 3rem;
  color: #fff;
}

#rubickModal .rubick-badge {
  display: inline-block;
  background: linear-gradient(135deg, #134c8c, #374363);
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 1rem;
  animation: rubickPulse 1.5s ease-in-out infinite;
  border: 1px solid rgba(185, 195, 223, 0.4);
}

@keyframes rubickPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

#rubickModal .rubick-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

#rubickModal .rubick-title span {
  background: linear-gradient(90deg, #b9c3df, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#rubickModal .rubick-tagline {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: #b9c3df;
  max-width: 600px;
}

#rubickModal .rubick-subtitle {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  opacity: 0.92;
  max-width: 580px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

#rubickModal .rubick-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

#rubickModal .rubick-feature {
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #fff;
  color: #09294e;
  transition: all 0.3s ease;
  cursor: default;
}

#rubickModal .rubick-feature:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

#rubickModal .rubick-cta {
  display: inline-block;
  background: linear-gradient(135deg, #134c8c, #09294e);
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 44px;
  border-radius: 50px;
  border: 2px solid rgba(185, 195, 223, 0.4);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(19, 76, 140, 0.4);
}

#rubickModal .rubick-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(19, 76, 140, 0.6);
  background: linear-gradient(135deg, #09294e, #134c8c);
  border-color: #b9c3df;
  color: #fff;
}

.modal-backdrop.show {
  opacity: 0.75 !important;
}

@media (max-width: 575.98px) {
  #rubickModal .modal-dialog {
    margin: 1rem;
  }

  #rubickModal .modal-content {
    min-height: 400px;
  }

  #rubickModal .rubick-title {
    font-size: 1.7rem;
  }

  #rubickModal .rubick-tagline {
    font-size: 1rem;
  }

  #rubickModal .rubick-subtitle {
    font-size: 0.9rem;
  }

  #rubickModal .modal-body {
    padding: 1.5rem 1.25rem 2rem;
  }

  #rubickModal .rubick-features {
    gap: 6px 10px;
  }

  #rubickModal .rubick-feature {
    font-size: 0.7rem;
    padding: 3px 10px;
  }
}
