img {
  vertical-align: middle;
}
/* 입금 */
.green-button3 {
  background-color: #a2ddff;
  border: 1px solid #a2ddff;
  color: #000;
  padding: 1rem 1.2rem;
  border-radius: 0.6rem;
}
.green-button2,
.green-button2:active,
.green-button2:focus,
.green-button2:hover {
  background-color: #179c2d;
  border: 1px solid #179c2d;
}
.green-button3:active,
.green-button3:focus,
.green-button3:hover {
  background-color: #a2ddff;
  border: 1px solid #a2ddff;
  color: #000;
}
.el-button {
  font-weight: 300;
}

/* popup */
@-webkit-keyframes fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-webkit-keyframes popupDimbg {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.4;
  }
}
.scroll-off {
  overflow: hidden;
}
.screen-out {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
  text-indent: -9999px !important;
}
.popup__section {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
}
.popup__section.is-open {
  display: block;
}
.popup__dim {
  background: #000;
  opacity: 0;
}
.is-open .popup__dim {
  opacity: 0.4;
  animation: popupDimbg 0.5s;
}
.popup__inner,
.popup__dim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.popup__inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup__container__group {
  position: relative;
  display: flex;
  flex-direction: column;
  width: calc(100% - 40px);
  max-width: 980px;
  max-height: 60%;
  background-color: rgb(45, 52, 58);
  border-radius: 20px;
  overflow: hidden;
  animation: fade 0.5s;
}
.popup__container__group {
  max-height: 80%;
}
.popup__header__group {
  height: 77px;
  padding: 24px;
  flex-shrink: 0;
}
.popup__header__title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  line-height: 29px;
  letter-spacing: -0.8px;
}
.popup__header__close {
  width: 24px;
  height: 24px;
  background: url(/img/icon_close.png) no-repeat center/contain;
  position: absolute;
  top: 24px;
  right: 24px;
}
.popup__contents__group {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  overflow-y: auto;
  max-height: calc(80vh - 174px);
  margin-bottom: 40px;
}
.popup__button__group {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  flex-shrink: 0;
  height: 56px;
}
.popup__button__group > button + button {
  margin-left: 10px;
}
.alert {
  display: none;
  margin-top: 10px;
  margin-left: 25px;
  color: #f04c23;
  font-size: 18px;
  line-height: 1;
}
.alert.on,
.alert2.on {
  display: block;
}

.popup-sm .popup__container__group {
  max-width: 400px;
}
/* popup 끝 */
@media all and (max-width: 767px) {
  /* popup */
  .popup__container__group {
    width: 100%;
    max-height: 90%;
    border-radius: 20px 20px 0 0;
    animation-name: popupYmove;
  }
  @-webkit-keyframes popupYmove {
    0% {
      opacity: 0;
      transform: translateY(50%);
    }
    100% {
      opacity: 0.4;
      transform: translateY(0);
    }
  }

  .popup__inner {
    align-items: flex-end;
  }
  .popup-sm .popup__container__group {
    max-width: initial;
    animation-name: popupYmove;
    width: calc(100% - 32px);
    border-radius: 20px;
  }
  .popup__inner.popup-sm {
    align-items: center;
  }
  /* popup 끝 */
}
.main-center .alert-info {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}
.main-center .alert-info > div {
  display: flex;
  align-items: center;
  height: 4.5rem;
}
.deposit .red-button1 img {
  height: 80%;
}
.cost-btns {
  display: flex;
  align-items: center;
}
.cost-btns button {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cost-btns > * {
  flex: 1;
}
.main-left .sidebar {
  width: 100%;
  margin-top: 1rem;
  font-size: 1.2rem;
}
a,
a:focus,
a:hover {
  cursor: pointer;
}
.sidebar .sub-menu > li > a.text-theme-orange13 {
  font-weight: 400;
}
.table-coupon-tr > div > div {
  width: 100%;
}
@media all and (max-width: 1500px) {
  .deposit {
    flex-direction: column;
  }
  .deposit > div:nth-child(1) {
    width: 100% !important;
    padding: 0 !important;
  }
  .deposit > div:nth-child(2) {
    width: 100% !important;
  }
  .deposit > div > .el-row {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
  .table-history-orange13 .table-header > div:nth-child(1),
  .table-history-orange13 .table-header > div:nth-child(3),
  .table-history-orange13 .table-history-tr > div:nth-child(1),
  .table-history-orange13 .table-history-tr > div:nth-child(3) {
    width: 8rem !important;
  }
  .table-history-orange13 .only-pc {
    display: none !important;
  }
  .table-history-orange13 .word-keep {
    width: 100%;
  }
  .live-game-cont,
  .slot-game-cont {
    width: 50%;
  }
}
@media all and (max-width: 1300px) {
  .event-wrap .col-md-12 > div:nth-child(1) {
    width: 100%;
  }
  .event-wrap .col-md-12 > div:nth-child(2) {
    display: none;
  }
  .event-wrap .collapse {
    display: block !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
  }

  .collapse.show2 {
    max-height: 1400px;
  }
  /* 출석체크 */
  .attendancew-wrap .position-absolute {
    position: relative;
    text-align: center;
    margin-bottom: 4rem;
  }
}
@media (max-width: 950px) {
  .main-center {
    width: 100%;
  }
  .cost-btns {
    flex-wrap: wrap;
  }
  .cost-btns > * {
    flex: none;
    width: calc(25% - 0.4rem);
  }
  .wallet-type img {
    display: none;
  }
  .casino-banner-orange13 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem 0;
  }
  .casino-banner-text-orange13 {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .game-search {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    border-radius: 0 !important;
  }
}

/* 언어 선택 */
.language-selector {
  display: flex;
  align-items: center;
  margin: 0 1rem;
}

.language-selector .lang-select {
  width: 150px;
  height: 40px;
  padding: 0.8rem 1.2rem;
  background-color: #2a2a2a;
  border: 1px solid #444;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1.4rem;
  padding-right: 3rem;
  line-height: 1.4;
}

.language-selector .lang-select:hover {
  background-color: #333;
  border-color: #555;
}

.language-selector .lang-select:focus {
  background-color: #2a2a2a;
  border-color: #179c2d;
  box-shadow: 0 0 0 2px rgba(23, 156, 45, 0.2);
}

.language-selector .lang-select option {
  background-color: #2a2a2a;
  color: #fff;
  padding: 1rem;
  font-size: 1.4rem;
}

/* 모바일 언어 선택 */
.language-selector.mobile {
  margin: 0 0.5rem;
}

.language-selector.mobile .lang-select {
  width: 80px;
  height: 36px;
  padding: 0.6rem 0.8rem;
  padding-right: 2.2rem;
  font-size: 1.2rem;
  background-size: 1rem;
}

/* 구글 번역 배너 숨기기 */
.goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

.skiptranslate {
  display: none !important;
}

/* 모바일 반응형 */
@media all and (max-width: 767px) {
  .language-selector {
    margin: 0 0.5rem;
  }

  .language-selector .lang-select {
    padding: 0.3rem 0.6rem;
    font-size: 1rem;
  }
}

/* 로그인/회원가입 모달 스타일 - 기존 디자인 따름 */

/* 로그인 모달 */
.login-modal-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #131417;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
  margin: 0 auto;
}

/* 회원가입 모달 */
.signup-modal-container {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #1a1a1a;
  border-radius: 10px;
  padding: 20px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 0 auto;
}

/* 닫기 버튼 */
.login-modal-container .modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: #fff;
  border: none;
  transition: all 0.3s ease;
  z-index: 10;
}

.signup-modal-container .modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  transform: rotate(90deg);
}

.login-modal-container .modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 헤더 */
.login-modal-header,
.signup-modal-header {
  text-align: center;
  margin-bottom: 25px;
}

.signup-modal-header {
  padding: 10px 0 20px;
}

.login-modal-logo,
.signup-modal-logo {
  max-width: 200px;
  height: auto;
}

.signup-modal-logo {
  height: 35px;
  max-width: none;
}

.login-modal-title,
.signup-modal-title {
  display: block;
  color: #fff;
  font-size: 18px;
  margin-top: 10px;
  font-weight: normal;
}

.login-modal-subtitle,
.signup-modal-subtitle {
  display: none;
}

/* 폼 */
.login-modal-form,
.signup-modal-form {
  width: 100%;
}

.login-modal-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Form Group */
.modal-form-group {
  margin-bottom: 12px;
}

.modal-form-group label {
  display: block;
  color: #999;
  font-size: 13px;
  margin-bottom: 6px;
}

/* Input & Select */
.modal-form-input,
.modal-form-select {
  width: 100%;
  height: 40px;
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  color: #fff;
  padding: 0 12px;
  font-size: 13px;
  box-sizing: border-box;
}

.login-modal-form .modal-form-input {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  background: #fff;
  color: #000;
}

.modal-form-input::placeholder {
  color: #666;
}

.login-modal-form .modal-form-input::placeholder {
  color: #999;
}

.modal-form-input:focus,
.modal-form-select:focus {
  outline: none;
  border-color: #8f6855;
}

.modal-form-select {
  cursor: pointer;
}

.modal-form-select option {
  background: #1c1c1c;
  color: #fff;
}

/* Input with Button */
.modal-input-with-button {
  display: flex;
  gap: 6px;
}

.modal-input-with-button .modal-form-input {
  flex: 1;
}

.modal-check-btn {
  min-width: 80px;
  height: 40px;
  background: #8f6855;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  padding: 0 12px;
}

.modal-check-btn:hover {
  filter: brightness(0.85);
}

/* Form Row */
.modal-form-row {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.modal-form-row > * {
  flex: 1;
}

/* Form Options (로그인 상태 유지) */
.modal-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 13px;
}

.modal-remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #999;
  cursor: pointer;
}

.modal-remember-me input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.modal-forgot-password {
  color: #8f6855;
  text-decoration: none;
  font-size: 13px;
}

.modal-forgot-password:hover {
  text-decoration: underline;
}

/* Buttons */
.modal-login-button {
  position: relative;
  padding: 12px;
  text-align: center;
  border-radius: 8px;
  color: #fff;
  border: none;
  cursor: pointer;
  background-color: #8f6855;
  width: 100%;
  font-size: 14px;
  margin-top: 10px;
}

.modal-signup-button {
  width: 100%;
  max-width: 280px;
  height: 42px;
  background: #8f6855;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  display: block;
  margin: 0 auto;
}

.modal-login-button:hover,
.modal-signup-button:hover {
  filter: brightness(0.85);
}

/* Divider */
.modal-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  color: #666;
  font-size: 13px;
}

.modal-divider::before,
.modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #2a2a2a;
}

/* Signup/Login Link */
.modal-signup-link,
.modal-login-link {
  text-align: center;
  font-size: 13px;
  color: #999;
  margin-top: 15px;
}

.modal-signup-link a,
.modal-login-link a {
  color: #8f6855;
  text-decoration: none;
  margin-left: 8px;
}

.modal-signup-link a:hover,
.modal-login-link a:hover {
  text-decoration: underline;
}

/* Footer (회원가입) */
.signup-modal-form .modal-signup-button {
  margin-top: 20px;
}

.modal-login-link {
  display: block;
  padding-top: 20px;
  border-top: 1px solid #2a2a2a;
}

/* Bank Notice */
.modal-bank-notice {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

/* Utility Classes */
.modal-mt-10 {
  margin-top: 6px;
}

.modal-mb-10 {
  margin-bottom: 6px;
}

/* 모달 중앙 정렬 강화 */
#login-modal .popup__inner,
#signup-modal .popup__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  #login-modal .popup__inner,
  #signup-modal .popup__inner {
    padding: 15px;
  }

  .login-modal-container,
  .signup-modal-container {
    width: calc(100% - 30px);
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  #login-modal .popup__inner,
  #signup-modal .popup__inner {
    padding: 10px;
  }

  .login-modal-container,
  .signup-modal-container {
    width: calc(100% - 20px);
    padding: 20px;
    max-width: 100%;
  }

  .login-modal-container .modal-close {
    right: 10px;
    top: 10px;
    width: 25px;
    height: 25px;
    font-size: 14px;
  }

  .modal-form-row {
    flex-direction: column;
    gap: 12px;
  }

  .modal-form-options {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .modal-input-with-button {
    flex-direction: column;
  }

  .modal-check-btn {
    width: 100%;
  }
}

/* 왼쪽 메뉴 텍스트 길이 제한 (베트남어 대응) */
.left-line2 a {
  display: inline-flex;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  transform-origin: center center;
}

/* 왼쪽 메뉴 hover 애니메이션 */
.left-line2 a:hover {
  background: linear-gradient(135deg, #8f6855 0%, #a77e68 100%);
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(143, 104, 85, 0.4);
  z-index: 10;
  border-radius: 0.4rem;
  font-weight: 500;
}

.left-line2 a:active {
  transform: scale(0.99);
  transition: all 0.1s ease;
}

/* 모바일 메뉴 텍스트 길이 제한 (베트남어 대응) */
.mobile-menu__list .left-line2 a {
  display: inline-flex;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  transform-origin: center center;
}

/* 모바일 메뉴 hover 애니메이션 */
.mobile-menu__list .left-line2 a:hover {
  background: linear-gradient(135deg, #8f6855 0%, #a77e68 100%);
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(143, 104, 85, 0.4);
  z-index: 10;
  border-radius: 0.4rem;
  font-weight: 500;
}

.mobile-menu__list .left-line2 a:active {
  transform: scale(0.99);
  transition: all 0.1s ease;
}

/* 로그인/회원가입 버튼 텍스트 길이 제한 (베트남어 대응) */
.login-btn,
.join-btn {
  display: inline-flex;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

/* PC 헤더 버튼 */
.pc-menu .login-btn,
.pc-menu .join-btn {
  max-width: 110px;
}

/* 모바일 헤더 버튼 */
.mobile-menu .login-btn,
.mobile-menu .join-btn {
  max-width: 90px;
}
