/* --- Modal and Overlay (Minor tweaks for centering) --- */
.modal {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  /* Use flexbox for centering */
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.7); /* Slightly darker overlay */
  visibility: hidden; /* Hide it visually */
  opacity: 0; /* Make it transparent */
  pointer-events: none; /* Makes it not clickable when hidden */
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Class added by JS to show the modal */
.modal.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto; /* Re-enable clicks when visible */
}

/* Optional: Add a subtle content slide-in effect */
.modal-content {
    /* ... existing styles ... */
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}
.modal.is-visible .modal-content {
    transform: translateY(0);
}

/* --- Modal Box (Cleaner, modern design) --- */
.modal-content {
  background: #fff;
  padding: 30px 40px; /* More vertical padding */
  border-radius: 16px; /* Slightly larger border-radius */
  text-align: center;
  max-width: 500px; /* Slightly wider to accommodate three icons */
  width: 90%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Softer, deeper shadow */
  position: relative;
  color: #1A1A2E; /* Darker, modern text color */
}

/* --- Main Popup Text (Better readability) --- */
.modal-content p {
    font-size: 24px; /* Slightly smaller for readability */
    line-height: 1.4;
    font-weight: 600; /* Added weight for emphasis */
    margin-bottom: 30px; /* More space before social icons */
}

/* --- Close button (More visible and cleaner) --- */
.close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 32px; /* Larger */
  color: #999; /* Lighter color */
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.close:hover {
    color: #333; /* Darker on hover */
}

/* --- Social Container (Wider gap for better spacing) --- */
.social-container {
  display: flex;
  gap: 20px; /* Reduced gap size */
  justify-content: center;
  align-items: flex-start;
  margin-top: 20px;
}

/* --- Social Button Wrapper (No change needed) --- */
.social-button-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Social Buttons (Bigger, more impact) --- */
.social-btn-exit.fa {
  width: 55px; /* Slightly larger button */
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px; /* Larger icon */
  color: #fff;
  text-decoration: none;
  margin-bottom: 8px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Subtler default shadow */
}

/* --- Social Button Colors --- */
.social-btn-exit.fa-telegram {
/*  background: #229ED9;*/
	background: #319D9E;
}
.social-btn-exit.fa-facebook {
  /* background: #3B5998; */
  	 background: #319D9E;
}
.social-btn-exit.fa-instagram {
  /* background: #E4405F; */
	 background: #319D9E;
}

/* --- Hover Effect (More pronounced) --- */
.social-btn-exit.fa:hover {
  transform: translateY(-3px); /* Lift the button slightly */
  box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* More visible shadow on hover */
}

/* --- Social Text (Cleaner label) --- */
.social-text {
  font-size: 16px; /* Smaller, cleaner label */
  font-weight: 500;
  margin: 8px 0 8px 0;
  text-align: center;
}