:root {
  --header-bg: #e8e8e8;
  --bg-primary: #296EB5;
  --text-light: #ffffff;
  --primary: #296EB5;
  --secondary: #F3C325;
  --glow-color: #F7E5AB;
  --animation-duration: 2s;
}

@keyframes backgroundShift {
  0% {
    transform: translateX(-10px) translateY(-10px);
  }
  100% {
    transform: translateX(10px) translateY(10px);
  }
}
@keyframes slideInFromTop {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes scanLine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}
.icon-container {
  position: relative;
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
@keyframes crossBlink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}
@keyframes fadeInScale {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.decorative-elements {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.pulse-circle {
  position: absolute;
  border: 2px solid var(--secondary);
  border-radius: 50%;
  animation: pulseExpand 4s ease-out infinite;
}

.pulse-1 {
  width: 200px;
  height: 200px;
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.pulse-2 {
  width: 300px;
  height: 300px;
  top: -150px;
  left: -150px;
  animation-delay: 1s;
}

.pulse-3 {
  width: 400px;
  height: 400px;
  top: -200px;
  left: -200px;
  animation-delay: 2s;
}

.particules {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.particule {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--secondary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--secondary);
  animation: particuleFloat 6s linear infinite;
}

.particule-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.particule-2 {
  top: 60%;
  left: 80%;
  animation-delay: 1s;
}

.particule-3 {
  top: 30%;
  left: 70%;
  animation-delay: 2s;
}

.particule-4 {
  top: 80%;
  left: 20%;
  animation-delay: 3s;
}

.particule-5 {
  top: 50%;
  left: 50%;
  animation-delay: 4s;
}

.separateur {
  width: 100%;
  height: 4px;
  background: var(--bg-primary);
}

.animated-line {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, var(--secondary) 50%, transparent 100%);
  animation: lineMove 3s linear infinite;
}

@keyframes textFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulseExpand {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
@keyframes particuleFloat {
  0% {
    transform: translateY(0px) translateX(0px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(50px);
    opacity: 0;
  }
}
@keyframes lineMove {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
.dropdown-toggle.active {
  color: #D7CF06 !important;
  font-weight: bold !important;
}

#speedForm .fade {
  transition: opacity 0.025s ease-in;
}
#speedForm .nav-link {
  border-radius: 1rem 1rem 0 0;
  display: inline-flex;
  color: #c4dadc !important;
}
#speedForm .nav-link.active {
  padding: 0.5rem 1.5rem;
  color: #fff;
  background-color: #1C3B72;
  font-weight: bold;
}
#speedForm .nav-link.active::before {
  content: "\f4f9";
  font-family: bootstrap-icons !important;
  font-weight: 400;
  padding-right: 0.5rem;
}

.modal {
  z-index: 9999999 !important;
}

.bifont::before {
  padding: 1rem 0;
  font-family: bootstrap-icons !important;
  font-weight: 400;
  font-size: small;
  content: "\f151  \f151  \f151  \f151  \f151  \f151";
}

/* LIGHT CSS */
body {
  background-color: #f8fafc !important;
  background-image: none !important;
  color: #334155;
}

header {
  padding: 0 6em;
  padding-bottom: 0;
}
header .menuContent .dropdown-center a {
  color: #c4dadc;
  padding: 0 1em;
}
header .menuContent .dropdown-center a span {
  font-size: 0.7em;
  text-transform: uppercase;
  margin-top: 0.5em;
}
header .menuContent .dropdown-center a:hover, header .menuContent .dropdown-center a.user i {
  color: #D7CF06;
  cursor: pointer;
}
header .menuContent .dropdown-center a::after {
  display: none;
}
header .menuContent .dropdown-center .dropdown-menu.show {
  z-index: 999999999;
}
header .menuContent.ms-auto a.user i {
  font-size: 2em;
}
header .menuContent .dropdown-item {
  text-align: center;
  margin: 15px 0 !important;
  padding: 0 30px !important;
}

.main {
  padding: 0 6em;
  padding-bottom: 0;
  position: relative;
}
.main.rond {
  border-radius: 2em !important;
  padding: 5em 4em !important;
}

.navbar-custom {
  backdrop-filter: blur(10px);
}

.navbar-brand img {
  height: 40px;
}

.nav-link {
  transition: color 0.3s;
}

.pricing-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(41, 110, 181, 0.12);
  box-shadow: 0 10px 30px rgba(0, 7, 45, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden; /* For particles */
}

.pricing-card .card-body {
  position: relative;
  z-index: 2;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 7, 45, 0.08);
  border-color: rgba(41, 110, 181, 0.25);
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 1px;
}

.features-list {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-top: 20px;
}

.features-list li {
  margin-bottom: 12px;
  color: white;
  font-weight: 500;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.features-list li:last-child {
  border-bottom: none;
}

.order-card {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent; /* Default border */
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
}

.order-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

/* Active state for the selected card */
.order-card.selected {
  border-color: #D7CF06; /* Use theme primary color */
  background: rgba(28, 59, 114, 0.1); /* Subtle primary tint */
  box-shadow: 0 0 20px rgba(215, 207, 6, 0.2);
}

.order-card .card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Hide the actual radio buttons */
.domain-option-input {
  display: none;
}

/* RESPONSIVE */
@media (min-width: 768px) {
  #solde {
    transform: translate(-50%, -50%) !important;
    left: 50% !important;
    top: 0 !important;
    position: absolute !important;
    width: 70%;
  }
}
@media (min-width: 992px) {
  #solde {
    width: 50%;
  }
}
@media (min-width: 1200px) {
  #solde {
    width: 40%;
  }
}
@media (max-width: 1199px) {
  .main:not(.rond) {
    border-radius: 3em 3em 0 0;
    padding: 2em;
  }
}
@media (max-width: 991px) {
  #stats .day span {
    font-size: 0.7em;
  }
  header .dropdown-center a {
    padding: 0 0.2em;
    margin-bottom: 3em;
  }
  .ms-auto header .dropdown-center a.user {
    padding-left: 1.5em;
  }
  .ms-auto header .dropdown-center a.user i {
    font-size: 3.7em;
  }
  header .dropdown-center a i {
    font-size: 2.7em;
  }
}
@media (max-width: 767px) {
  header .dropdown-center a {
    padding: 0 0.2em;
  }
  header .dropdown-center a.user {
    padding-left: 1.5em;
  }
  header .dropdown-center a.user i {
    font-size: 4em;
  }
  header .dropdown-center a i {
    font-size: 2em;
  }
  header .dropdown-center a span {
    font-size: 0.6em;
  }
  header .dropdown-center a .dropdown-item {
    margin: 10px 0 !important;
  }
  #solde {
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 575px) {
  header {
    zoom: 0.7;
  }
  header .menuContent .dropdown-center a {
    padding: 0 0.2em;
  }
  header .menuContent .dropdown-center a span {
    display: none;
  }
  #stats .day {
    width: 13%;
  }
  #stats .rounded-4 {
    border-radius: 0.5rem !important;
  }
  #speedForm .nav-link {
    padding: 0.5rem;
  }
  #speedForm .nav-link.active {
    padding: 0.5rem 1rem;
  }
}
@media (max-width: 420px) {
  #stats .day span {
    font-size: 0.4em;
  }
  .main:not(.rond) {
    border-radius: 3.5em 3.5em 0 0;
    padding: 1em;
  }
}
body.layout-auth, body.layout-user {
  padding-top: 0 !important;
}

/* ---- AUTH PAGES (Login, Register, Forget) ---- */
.auth-page-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  background: radial-gradient(circle at 10% 20%, rgba(41, 110, 181, 0.06) 0%, transparent 50%), radial-gradient(circle at 90% 80%, rgba(215, 207, 6, 0.06) 0%, transparent 50%), #f1f5f9;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid rgba(41, 110, 181, 0.18);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: 0 15px 35px rgba(0, 7, 45, 0.08);
  transition: all 0.3s ease;
  margin: auto;
}
.auth-card:hover {
  box-shadow: 0 20px 45px rgba(0, 7, 45, 0.12);
  border-color: rgba(41, 110, 181, 0.3);
}

.auth-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0d1e3d;
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 2rem;
  text-align: center;
}

.form-group-custom {
  position: relative;
  margin-bottom: 1.5rem;
}
.form-group-custom .form-control {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem; /* Space for icon */
  background: #ffffff !important;
  border: 1.5px solid rgba(41, 110, 181, 0.25) !important;
  border-width: 1.5px !important;
  border-radius: 12px;
  color: #0d1e3d !important;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.form-group-custom .form-control::placeholder {
  color: rgba(13, 30, 61, 0.45) !important;
}
.form-group-custom .form-control:focus {
  background: #ffffff !important;
  border-color: #296EB5 !important;
  border-width: 1.5px !important;
  box-shadow: 0 0 0 4px rgba(41, 110, 181, 0.15) !important;
  outline: none;
}
.form-group-custom .form-control:focus + .input-icon {
  color: #296EB5;
}
.form-group-custom .input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(41, 110, 181, 0.65);
  font-size: 1.1rem;
  pointer-events: none;
  transition: color 0.3s ease;
}
.form-group-custom .password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(108, 117, 125, 0.6);
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  z-index: 10;
}
.form-group-custom .password-toggle:hover {
  color: #0d1e3d;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
}
.auth-links a {
  color: #296EB5;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
.auth-links a:hover {
  color: #0363A7;
}

/* ---- ORDER CHECKOUT PAGE ---- */
.order-page-container {
  padding-top: 2rem;
  padding-bottom: 5rem;
}

/* Step indicator styling */
.checkout-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
  position: relative;
}
.checkout-steps::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
}

.step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.step-item .step-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e2e8f0;
  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  font-weight: 800;
  color: #64748b;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
.step-item.completed .step-circle {
  background: #1C3B72;
  color: #ffffff;
}
.step-item.active {
  color: #1C3B72;
}
.step-item.active .step-circle {
  background: #D7CF06;
  color: #00072d;
  box-shadow: 0 0 15px rgba(215, 207, 6, 0.4);
}

/* Checkout Card layout */
.checkout-card {
  background: #ffffff;
  border: 1px solid rgba(28, 59, 114, 0.12);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 7, 45, 0.04);
  transition: box-shadow 0.3s ease;
}
.checkout-card:hover {
  box-shadow: 0 15px 40px rgba(0, 7, 45, 0.08);
}

/* Custom Radio Cards */
.order-option-card {
  position: relative;
  cursor: pointer;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.order-option-card:hover {
  transform: translateY(-4px);
  border-color: rgba(28, 59, 114, 0.3);
  box-shadow: 0 10px 20px rgba(0, 7, 45, 0.05);
}
.order-option-card:hover .card-icon-wrap {
  background: #1C3B72;
  color: #ffffff;
  transform: scale(1.05);
}
.order-option-card .card-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(28, 59, 114, 0.06);
  color: #1C3B72;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}
.order-option-card {
  /* Selected state */
}
.order-option-card.selected {
  border-color: #1C3B72;
  background: rgba(28, 59, 114, 0.02);
}
.order-option-card.selected .card-icon-wrap {
  background: #1C3B72;
  color: #ffffff;
}
.order-option-card.selected .selection-indicator {
  border-color: #1C3B72;
  background: #1C3B72;
}
.order-option-card.selected .selection-indicator::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
}
.order-option-card .selection-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

/* Form domain input */
.domain-input-group {
  margin-top: 2rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.35s ease;
}
.domain-input-group label {
  font-weight: 700;
  color: #1C3B72;
  margin-bottom: 0.75rem;
}

.domain-input-wrapper {
  position: relative;
}
.domain-input-wrapper .form-control-lg {
  padding-left: 3rem;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  font-size: 1rem;
  font-weight: 500;
  color: #00072d;
}
.domain-input-wrapper .form-control-lg:focus {
  border-color: #1C3B72;
  box-shadow: 0 0 0 4px rgba(28, 59, 114, 0.12);
}
.domain-input-wrapper .input-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.25rem;
  pointer-events: none;
}

/* Sidebar summary styling */
.summary-card {
  background: linear-gradient(135deg, #1C3B72 0%, #00072d 100%);
  border: none;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(0, 7, 45, 0.15);
  position: sticky;
  top: 100px;
}

.summary-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.summary-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #D7CF06;
  margin-bottom: 0.75rem;
}

.summary-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
}

.summary-price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 0.5rem;
}

.summary-price-val {
  font-size: 2rem;
  font-weight: 800;
  color: #D7CF06;
}

.summary-price-period {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.summary-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.summary-features li {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.summary-features li:last-child {
  border-bottom: none;
}
.summary-features li i {
  color: #D7CF06;
  flex-shrink: 0;
}

.total-box {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

.total-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.total-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

/* Buttons */
.btn-checkout-primary {
  background: linear-gradient(135deg, #D7CF06 0%, rgb(175.3076923077, 168.7846153846, 4.8923076923) 100%);
  border: none;
  color: #00072d !important;
  font-weight: 700;
  border-radius: 12px;
  padding: 0.8rem 1.75rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-checkout-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(215, 207, 6, 0.3);
}

.btn-checkout-outline {
  border: 1.5px solid #1C3B72;
  background: transparent;
  color: #1C3B72 !important;
  font-weight: 700;
  border-radius: 12px;
  padding: 0.8rem 1.75rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-checkout-outline:hover {
  background: rgba(28, 59, 114, 0.05);
  transform: translateY(-2px);
}

/* ---- DOMAIN SEARCH PAGE ---- */
.domain-search-card {
  background: #ffffff;
  border: 1px solid rgba(28, 59, 114, 0.12);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 7, 45, 0.04);
  transition: all 0.3s ease;
}
.domain-search-card:hover {
  box-shadow: 0 15px 40px rgba(0, 7, 45, 0.08);
}

.domain-search-input-group {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f1f5f9;
  padding: 8px 8px 8px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 16px;
  transition: all 0.3s ease;
}
.domain-search-input-group:focus-within {
  border-color: #1C3B72;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(28, 59, 114, 0.12);
}
.domain-search-input-group .search-icon {
  font-size: 1.25rem;
  color: #64748b;
}
.domain-search-input-group .form-control {
  border: none;
  background: transparent;
  padding: 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: #00072d;
  box-shadow: none !important;
}
.domain-search-input-group .form-control::placeholder {
  color: #94a3b8;
}
.domain-search-input-group .btn-search {
  background: linear-gradient(135deg, #1C3B72 0%, #00072d 100%);
  color: #ffffff !important;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 0.8rem 2rem;
  transition: all 0.3s ease;
}
.domain-search-input-group .btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(28, 59, 114, 0.3);
}

.domain-result-card {
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 7, 45, 0.03);
}
.domain-result-card.available {
  background: rgba(0, 188, 41, 0.06);
  border-color: rgba(0, 188, 41, 0.2);
}
.domain-result-card.available .domain-title {
  color: #00072d !important;
}
.domain-result-card.available .badge-status {
  background: #00BC29;
  color: #ffffff;
}
.domain-result-card.unavailable {
  background: rgba(204, 51, 44, 0.06);
  border-color: rgba(204, 51, 44, 0.2);
}
.domain-result-card.unavailable .domain-title {
  color: #00072d !important;
}
.domain-result-card.unavailable .badge-status {
  background: #CC332C;
  color: #ffffff;
}
.domain-result-card .domain-title {
  font-size: 1.5rem;
  font-weight: 800;
}
.domain-result-card .badge-status {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 8px;
}
.domain-result-card .price-text {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1C3B72;
}