/* ==================================================
   REGISTRATION MODAL – ISOLATED & SAFE
   (No collision with Entry Intent modal)
================================================== */

/* ---------- SHARED OVERLAY ---------- */
.entry-intent {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(6px);
}

.entry-intent.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* ---------- MODAL BOX ---------- */
/* ===============================
   REGISTRATION MODAL CONTAINER
   (MATCHES EARLIER ENTRY MODAL)
================================ */

.reg-box {
  position: relative;
  width: 92%;
  max-width: 1360px;   /* ⬅ Increased width */

  padding: 60px 40px;
  border-radius: 20px;

  background: transparent;  /* ❌ removed background */
  border: none;             /* ❌ removed border */
  box-shadow: none;         /* ❌ removed shadow */

  text-align: center;
  animation: fadeUp 0.8s ease forwards;
}


@keyframes regFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- HEADER ---------- */
.reg-title {
  font-size: 28px;
  margin-bottom: 8px;
}

.reg-sub {
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 28px;
}

/* ---------- CLOSE BUTTON ---------- */
.reg-close {
  position: absolute;
  top: 18px;
  right: 22px;

  width: 42px;
  height: 42px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);

  color: #fff;
  font-size: 26px;
  cursor: pointer;

  transition: all 0.35s cubic-bezier(.25,.8,.25,1);
}

.reg-close:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* ---------- FORM ---------- */
.reg-form {
  display: grid;
   grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.reg-field input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text-light);

  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px;

  outline: none;
  transition: all 0.3s ease;
  grid-row: 1;
}

.reg-field input::placeholder {
  color: var(--text-muted);
}

.reg-field input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(211, 84, 0, 0.25);
}

/* ---------- PRODUCT SELECTION ---------- */
.reg-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0;
  grid-column: 1 / -1;   /* full width */
  grid-row: 2;           /* ⬅ forces new line */
}

.reg-product-card {
  position: relative;
  padding: 18px 14px;
  border-radius: 16px;
  text-align: center;
  cursor: pointer;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);

  transition: all 0.35s cubic-bezier(.25,.8,.25,1);
}

.reg-product-card input {
  position: absolute;
  opacity: 0;
}

.reg-product-card i {
  font-size: 30px;
  color: var(--accent);
  margin-bottom: 10px;
}

.reg-product-card h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.reg-product-card span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Hover */
.reg-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

/* Selected */
.reg-product-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow:
    0 0 0 2px rgba(211, 84, 0, 0.25),
    0 22px 45px rgba(0, 0, 0, 0.5);
}

/* ---------- SUBMIT BUTTON ---------- */
.reg-submit {
  width: 100%;
  margin-top: 10px;
  grid-column: 1 / -1;   /* full width */
  grid-row: 3;           /* ⬅ below product cards */
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
  .reg-box {
    padding: 40px 24px;
  }

  .reg-product-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .reg-form {
    grid-template-columns: 1fr;
  }

  .reg-field,
  .reg-product-grid,
  .reg-submit {
    grid-column: 1;
    grid-row: auto;
  }
}

/* ===============================
   REG PRODUCT CARD – SAME AS ENTRY-INTENT
================================ */

.reg-product-card {
  position: relative;
  padding: 18px 14px;
  border-radius: 20px;
  text-align: center;
  cursor: pointer;

  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);

  color: var(--text-light);
  overflow: hidden;

  transform: translateY(20px) scale(0.96);
  opacity: 1;

  transition: all 0.5s cubic-bezier(.25,.8,.25,1);
}

/* Gradient ring */
.reg-product-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(
    120deg,
    transparent,
    var(--accent),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Hover ring animation */
.reg-product-card:hover::before {
  opacity: 0.6;
  animation: rotateRing 3s linear infinite;
}

/* Icon */
.reg-product-card i {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 10px;
  transition: transform 0.4s ease;
}

/* Icon rotation */
.reg-product-card:hover i {
  transform: rotateY(360deg);
}

/* Text */
.reg-product-card h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.reg-product-card span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Hover lift */
.reg-product-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
}

/* Hide radio */
.reg-product-card input {
  position: absolute;
  opacity: 0;
}

/* Selected state = persistent hover */
.reg-product-card:has(input:checked) {
  border-color: var(--accent);
  transform: translateY(-10px) scale(1.03);
  box-shadow:
    0 0 0 2px rgba(211,84,0,0.25),
    0 30px 60px rgba(0,0,0,0.45);
}
