
/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.65);
  z-index: 999;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 520px;
  border-radius: 24px;
  background: #0b1220;
  color: #fff;
  border: 1px solid rgba(158, 197, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.modal-close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 1.5rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.65);
  z-index: 999;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 1200px;
  border-radius: 24px;
  background: #0b1220;
  color: #fff;
  border: 1px solid rgba(158, 197, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.modal-close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 1.5rem;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 9998;
}

.modal-box {
  position: fixed;
  z-index: 9999;
  background: #06142b;
}


    /* Modal */
    /* ******************************************************* */
    #countryModal{
      position:fixed;
      inset:0;
      display:none
    }
    #countryModal.open{
      display:block
    }
    .modal-backdrop{
      position:absolute;
      inset:0;
      background:rgba(0,0,0,.55)
    }
    .modal{
      position:absolute;
      left:50%;
      top:4%;
      transform:translateX(-50%);
      width:min(960px,92vw);

      /* NEW: keep the dialog inside the viewport */
      max-height:92vh;
      display:flex;
      flex-direction:column;

      background:var(--card);
      border:1px solid var(--border);
      border-radius:16px;
      box-shadow:var(--shadow);
      padding:16px 16px 20px;
    }
    #modalBody{
      margin-top:4px;
      overflow-y:auto;      /* show scrollbar when needed */
      padding-right:4px;    /* little space so the scrollbar doesn't sit on text */
    }

    .modal-head{
      display:flex;
      align-items:center;
      justify-content:space-between;
      margin-bottom:8px
    }
    .modal-close{
      background:transparent;
      color:var(--text);
      font-size:24px;
      border:0;
      cursor:pointer
    }
    
    /* WebKit — Chrome, Edge, Safari */
    /* ******************************************************* */
    #modalBody::-webkit-scrollbar {
      width: 8px;
    }

    #modalBody::-webkit-scrollbar-track {
      background: #0b0e13;         /* same as your --bg */
    }

    #modalBody::-webkit-scrollbar-thumb {
      background: #1e2533;         /* dark muted blue-grey */
      border-radius: 8px;
      border: 2px solid #0b0e13;   /* blends cleanly into track */
    }

    #modalBody::-webkit-scrollbar-thumb:hover {
      background: #2c3547;         /* slightly brighter on hover */
    }

    /* Firefox */
    /* ******************************************************* */
    #modalBody {
      scrollbar-width: thin;
      scrollbar-color: #1e2533 #0b0e13;
    }
.modal-kicker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
