* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  line-height: 1.65;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  color: #f8fafc;
  overflow: hidden;
  position: relative;
}

/* Background */

.bg-layer {
  position: fixed;
  inset: 0;
  height: 100vh;
  z-index: -1;
  background: url("/img/bg.webp") center / cover no-repeat;
  transition: all 0.65s cubic-bezier(0.3, 0.95, 0.45, 0.95);
  opacity: 0.7;
}

/* Overlay */

.overlay-wrapper {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Modal */

.modal-card {
  position: relative;
  width: 90%;
  max-width: 520px;
  padding: 2.8rem;
  border-radius: 16px;
  color: #f1f5f9;
  background: linear-gradient(
    135deg,
    rgba(0, 100, 68, 0.4),
    rgba(20, 161, 114, 0.8),
    rgba(0, 102, 68, 0.4)
  );
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.07);
  animation: modalSlideIn 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  filter: blur(6px);
  opacity: 0.4;
  z-index: -1;
}

/* Header */

.modal-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.modal-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 1.2rem;
}

.modal-icon svg {
  width: 100%;
  height: 100%;
  fill: #10b981;
  filter: drop-shadow(0 3px 5px rgba(16, 185, 129, 0.25));
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 700;
}

/* Close */

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Text */

.modal-text {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 2.2rem;
  color: #e2e8f0;
}

.inline-link {
  color: #34d399;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px dashed #34d399;
}

.inline-link:hover {
  color: #10b981;
  border-bottom-style: solid;
}

/* Actions */

.modal-actions {
  display: flex;
  justify-content: center;
}

.primary-btn {
  min-width: 200px;
  text-align: center;
  border: 1px solid #000;
  padding: 0.95rem 2.5rem;
  border-radius: 10px;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(to right, #059669, #10b981);
  box-shadow: 0 10px 15px rgba(5, 150, 105, 0.3);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transform: scale(1) translateY(0px);
  transition: all 0.3s ease;
}

.primary-btn:hover {
  transform: translateY(-3px) scale(1.01);

  box-shadow: 0 15px 25px rgba(5, 150, 105, 0.4);
}

.primary-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 30%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-25deg);
  transition: 0.75s;
}

.primary-btn:hover::after {
  left: 130%;
}

/* Sidebar */

.legal-links {
  position: fixed;
  right: 0;
  bottom: 0;
  padding-right: 16px;
  margin: 10px 0;
  font-size: 1rem;
  font-weight: 500;
  color: #000;
  z-index: 1000;
}

.legal-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: #10b981;
}

/* Accessibility */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Animations */

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