#pdf-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
}

#pdf-modal-overlay.active {
  display: block;
}

.pdf-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pdf-modal-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1000px;
  height: 85vh;
  background: #1a1a2e;
  border-radius: 16px;
  border: 1px solid rgba(146, 39, 143, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(222, 137, 122, 0.15);
  overflow: hidden;
}

.pdf-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.pdf-modal-close:hover {
  background: rgba(222, 137, 122, 0.3);
  border-color: rgba(222, 137, 122, 0.5);
  transform: rotate(90deg);
}

.pdf-modal-close svg {
  width: 20px;
  height: 20px;
}

.pdf-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: white;
}

#mandate-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
}

#mandate-modal-overlay.active {
  display: block;
}

.mandate-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 12, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mandate-modal-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(920px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  background: radial-gradient(circle at top left, rgba(222, 137, 122, 0.15), rgba(146, 39, 143, 0.1) 40%, #12101d 80%);
  border: 1px solid rgba(222, 137, 122, 0.35);
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 0 50px rgba(146, 39, 143, 0.22);
}

.mandate-modal-content {
  padding: 34px 32px 28px;
  color: #f6edf3;
}

.mandate-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #de897a;
}

.mandate-modal-content h3 {
  margin: 0 0 12px;
  font-family: 'Anybody', sans-serif;
  font-size: clamp(1.5rem, 1.8vw, 2rem);
  color: #ffffff;
}

.mandate-intro {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.mandate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mandate-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px 16px 14px;
}

.mandate-card h4 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  color: #ffd7cd;
}

.mandate-card ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.mandate-card li + li {
  margin-top: 8px;
}

.mandate-footer {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
}

.mandate-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 2;
}

.mandate-modal-close:hover {
  background: rgba(222, 137, 122, 0.3);
  border-color: rgba(222, 137, 122, 0.45);
  transform: rotate(90deg);
}

.mandate-modal-close svg {
  width: 20px;
  height: 20px;
}

#safety-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
}

#safety-modal-overlay.active {
  display: block;
}

.safety-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 12, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.safety-modal-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  background: radial-gradient(circle at top left, rgba(222, 137, 122, 0.14), rgba(146, 39, 143, 0.1) 42%, #12101d 80%);
  border: 1px solid rgba(222, 137, 122, 0.35);
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 0 50px rgba(146, 39, 143, 0.2);
}

.safety-modal-content {
  padding: 34px 32px 28px;
  color: #f6edf3;
}

.safety-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #de897a;
}

.safety-modal-content h3 {
  margin: 0 0 12px;
  font-family: 'Anybody', sans-serif;
  font-size: clamp(1.5rem, 1.8vw, 2rem);
  color: #ffffff;
}

.safety-intro {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.safety-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px 16px 14px;
}

.safety-card h4 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  color: #ffd7cd;
}

.safety-card ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.safety-card li + li {
  margin-top: 8px;
}

.safety-footer {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.safety-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 2;
}

.safety-modal-close:hover {
  background: rgba(222, 137, 122, 0.3);
  border-color: rgba(222, 137, 122, 0.45);
  transform: rotate(90deg);
}

.safety-modal-close svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .pdf-modal-container {
    width: 95%;
    height: 90vh;
    border-radius: 12px;
  }
  
  .pdf-modal-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }

  .mandate-modal-container {
    width: 95%;
    max-height: 90vh;
    border-radius: 14px;
  }

  .mandate-modal-content {
    padding: 26px 18px 20px;
  }

  .mandate-grid {
    grid-template-columns: 1fr;
  }

  .safety-modal-container {
    width: 95%;
    max-height: 90vh;
    border-radius: 14px;
  }

  .safety-modal-content {
    padding: 26px 18px 20px;
  }

  .safety-grid {
    grid-template-columns: 1fr;
  }
}

.about-heading-fixed {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3em;
  flex-wrap: wrap;
}

.about-ai-habib-text {
  display: inline-flex;
  align-items: baseline;
  font-family: 'Anybody', sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  position: relative;
}

.about-ai {
  color: #d4a8a0;
  font-style: italic;
  font-weight: 400;
}

.about-habib {
  color: #e8d4cf;
  font-weight: 500;
  margin-left: 0.15em;
}

.about-ai-habib-text::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #de897a 0%, #92278f 100%);
  border-radius: 2px;
}
