.close {
  float: right;
  display: flex;
  gap: 6px; /* ระยะห่างระหว่างปุ่ม */
  align-items: center;
  padding-top: 3px;
}
.close a {
  text-decoration: none;
}
.close a img {
  display: inline-block;
  vertical-align: middle;
  width: 28px;
  height: auto;
  margin: 0 1px;
}

/* ปุ่มวงกลมใสพร้อม X */
.bubble {
    width:28px;
    height:28px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.35);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    position: relative;
}
.bubble::before,
.bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 2px;
  background: rgba(255,255,255,.9);
  transform-origin: center;
}
.bubble::before { transform: translate(-50%,-50%) rotate(45deg); }
.bubble::after  { transform: translate(-50%,-50%) rotate(-45deg); }

.modal-open {
    overflow: hidden
}

.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: none;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    outline: 0;
}

.modal.fade .modal-dialog {
    -webkit-transform: translate(0,-25%);
    -ms-transform: translate(0,-25%);
    -o-transform: translate(0,-25%);
    transform: translate(0,-25%);
    -webkit-transition: -webkit-transform .3s ease-out;
    -o-transition: -o-transform .3s ease-out;
    transition: -webkit-transform .3s ease-out;
    transition: transform .3s ease-out;
    transition: transform .3s ease-out,-webkit-transform .3s ease-out,-o-transform .3s ease-out
}

.modal.in .modal-dialog {
    -webkit-transform: translate(0,0);
    -ms-transform: translate(0,0);
    -o-transform: translate(0,0);
    transform: translate(0,0)
}

.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 10px;
}

.modal-content {
  position: relative;
  background: rgba(255, 255, 255, 0.1); /* โปร่งใสแบบบาง */
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%); /* รองรับ Safari */
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255);
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.modal-content h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 2px;

  /* เงาดำฟุ้ง */
  text-shadow: 
    0 0px 10px rgba(0, 0, 0, 0.2),
    0 0px 10px rgba(0, 0, 0, 0.2);
}

.modal-content p{
    margin: 0 0 10px 0;
	font-size: 18px;
    line-height: 25px;
    letter-spacing: 1.5px;

    /* เงาดำฟุ้ง */
    text-shadow: 
        0 0px 10px rgba(0, 0, 0, 0.2),
        0 0px 10px rgba(0, 0, 0, 0.2);
}

.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000
}

.modal-backdrop.fade {
    filter: alpha(opacity=0);
    opacity: 0
}

.modal-backdrop.in {
    filter: alpha(opacity=50);
    opacity: .5
}

.modal-header {
    padding: 15px 15px;
    border-bottom: 1px solid #e5e5e5
}

.modal-header .close {
    margin-top: -5px;
}

.modal-title {
    margin: 0;
    line-height: 1.42857143
}

.modal-body {
    position: relative;
    padding: 15px
}

.modal-footer {
    padding: 15px;
    text-align: right;
    border-top: 1px solid #e5e5e5
}

.modal-footer .btn+.btn {
    margin-bottom: 0;
    margin-left: 5px
}

.modal-footer .btn-group .btn+.btn {
    margin-left: -1px
}

.modal-footer .btn-block+.btn-block {
    margin-left: 0
}

.modal-scrollbar-measure {
    position: absolute;
    top: -9999px;
    width: 50px;
    height: 50px;
    overflow: scroll
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 16px;
  padding: 6px 6px;
  
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);

  
  border-radius: 7px;
  
  line-height: 1;
  margin: 2.5px 0px;
  white-space: nowrap;
  letter-spacing: 1.5px;
}

.line-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* อนุญาตให้ขึ้นบรรทัดใหม่ */

  /* เงาดำฟุ้ง */
  text-shadow: 
    0 0px 10px rgba(0, 0, 0, 0.2),
    0 0px 10px rgba(0, 0, 0, 0.2);
}

.line-text span {
  font-weight: bold;
  font-size: 20px;
  margin-right: 10px;
  letter-spacing: 2px;
  /* เอา white-space: nowrap ออก */
}

.line-text .line {
  flex: 1;
  height: 1px;
  /*background: linear-gradient(to right, #FFF, #00c6ff);*/
  background: #FFF;
}


@media(max-width:575.98px){
    .modal-content h1{
        font-size: 18px;
        font-weight: 650;
        letter-spacing: 1px;
    }
    .modal-content p{
        font-size: 16px;
        line-height: 20px;
        letter-spacing: 0.5px;
    }  
    .line-text span {
      font-weight: bold;
      font-size: 16px;
      margin-right: 10px;
      letter-spacing: 0.5px;
    }
    .chip {
      font-size: 14px;
    }
}

@media (min-width: 768px) {
    .modal-dialog {
        width:600px;
        margin: 30px auto
    }

    .modal-content {
        -webkit-box-shadow: 0 5px 15px rgba(0,0,0,.5);
        box-shadow: 0 5px 15px rgba(0,0,0,.5);
    }

    .modal-sm {
        width: 300px
    }
}

@media (min-width: 992px) {
    .modal-lg {
        width:900px
    }
}