/* ==============================
   GET REPPED BUTTON
   ==============================*/
.get-repped-button {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: rgb(226, 254, 169);
  color: #0b0b0c;
  font-family: 'Vinila', sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: color 0.4s ease;
  text-decoration: none;
}

/* Black glow ripple */
.get-repped-button::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -50%;
  width: 200%;
  height: 200%;
  background-color: #000;
  border-radius: 45%;
  transform: translateX(-50%) scale(0);
  transform-origin: center bottom;
  filter: blur(20px);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}
.get-repped-button:hover::before {
  transform: translateX(-50%) scale(1);
}

/* Hover text colour */
.get-repped-button:hover {
  color: rgb(226, 254, 169);
}
/* ============================================
   404 Page
   ============================================*/

.error-404-wrapper {
  flex: 1 0 auto;
  margin: 8rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

.error-404-title {
  font-size: 8rem;
  font-weight: 700;
  color: #000;
  margin: 0;
}

.error-404-message {
  font-size: 1.5rem;
  color: #666;
  margin: 1rem 0 2rem;
}

.error-404-link {
  margin-top: 0.5rem;
  text-decoration: none;
}

/* ============================================
              Cookies Banner
   ============================================*/
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 350px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  font-family: 'Poppins', sans-serif;
  z-index: 10000;
}
.cookie-banner.hidden {
  display: none;
}
.cookie-content {
  padding: 1.5rem;
  position: relative;
}
.cookie-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: none;
  border: none;
  color: #ccc;
  font-size: 1.2rem;
  cursor: pointer;
}
.cookie-title {
  margin: 0 0 .5rem;
  font-size: 1.25rem;
  color: #fff;
}
.cookie-desc {
  font-size: .875rem;
  line-height: 1.4;
  color: #ddd;
  margin-bottom: 1rem;
}
.cookie-actions {
  display: flex;
  gap: .5rem;
}
.btn-accept-all,
.btn-decline-all {
  flex: 1;
  padding: .6rem 0;
  border-radius: 6px;
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s;
}
.btn-accept-all {
  background: #4f64ff;
  color: #fff;
  border: none;
}
.btn-accept-all:hover {
  background: #3c50e6;
}
.btn-decline-all {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}
.btn-decline-all:hover {
  background: rgba(255,255,255,0.1);
}

/* ── Modal overlay ───────────────────────────────────────────── */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}
.cookie-modal.hidden {
  display: none;
}

/* ── Modal panel ─────────────────────────────────────────────── */
.modal-panel {
  background: #fff;
  color: #000;
  border-radius: 16px;
  width: 600px;
  max-width: 90%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

/* ── Tabs bar ────────────────────────────────────────────────── */
.modal-tabs {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #ddd;
}
.modal-tabs .tab-btn {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #555;
  cursor: pointer;
  transition: color .2s, border-bottom-color .2s;
  border-bottom: 2px solid transparent;
}
.modal-tabs .tab-btn.active {
  color: #000;
  border-bottom-color: #4f64ff;
}
.modal-tabs .modal-close {
  margin-left: auto;
  padding: 1rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #666;
  cursor: pointer;
}

/* ── Tab panels ─────────────────────────────────────────────── */
.tab-content {
  padding: 2rem 2.5rem;
}
.tab-content.hidden {
  display: none;
}

/* ── Toggle rows ────────────────────────────────────────────── */
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
}
.toggle-row.disabled {
  opacity: .5;
}
.toggle-row label {
  font-weight: 700;
  color: #000;
  font-size: 1rem;
}
.toggle-row input {
  width: 40px;
  height: 20px;
  appearance: none;
  background: #ccc;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: background .3s;
}
.toggle-row input:checked {
  background: #4f64ff;
}
.toggle-row input::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .3s;
}
.toggle-row input:checked::before {
  transform: translateX(20px);
}
.toggle-desc {
  color: #666;
  font-size: .875rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}

/* ── Modal footer buttons ───────────────────────────────────── */
.modal-footer {
  padding: 1rem 1.5rem;
  background: #f9f9f9;
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
}
.btn-save,
.btn-accept-all--modal {
  padding: .6rem 1rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s;
}
.btn-save {
  background: transparent;
  color: #000;
  border: 1px solid #000;
}
.btn-save:hover {
  background: #eee;
}
.btn-accept-all--modal {
  background: #4f64ff;
  color: #fff;
  border: none;
}
.btn-accept-all--modal:hover {
  background: #3c50e6;
}

/* ── Prevent background scroll when modal open ──────────────── */
body.has-cookie-modal {
  overflow: hidden;
}

/* ---- Moblile Optimisation --- */
@media (max-width: 599px) {
  /* Banner full width with smaller padding */
  .cookie-banner {
    width: calc(100% - 1rem);
    right: 0.5rem;
    bottom: 0.5rem;
  }
  .cookie-content {
    padding: 1rem;
  }
  .cookie-title {
    font-size: 1rem;
  }
  .cookie-desc {
    font-size: 0.75rem;
  }
  .cookie-actions button {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }

  /* Modal panel full‐screen on mobile */
  .modal-panel {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    height: 100%;
    overflow-y: auto;
  }
  .modal-intro,
  .tab-content {
    padding: 1rem;
  }
  .modal-tabs .tab-btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
  .modal-close {
    padding: 0.5rem;
    font-size: 1rem;
  }
  .toggle-row label {
    font-size: 0.9rem;
  }
  .toggle-desc {
    font-size: 0.75rem;
  }
  .modal-footer {
    padding: 0.75rem;
  }
  .btn-save,
  .btn-accept-all--modal {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }
}