/* Auth Modal - ใช้ prefix .gs-auth- เพื่อไม่กระทบ CSS อื่น */
 
/* Trigger Buttons Container */
/*.gs-auth-buttons {*/
/*  display: inline-flex;*/
/*  gap: 0;*/
/*  border-radius: 8px;*/
/*  overflow: hidden;*/
/*  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);*/
/*}*/

/* Base Button Style */
.gs-auth-btn {
  border: none;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
}
  

/* Modal Container */
.gs-auth-modal[aria-hidden="true"] {
  display: none;
}
.gs-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 999999 !important; /* สูงมากเพื่อให้ทับ header mobile */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Overlay */
.gs-auth-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  animation: gsAuthFadeIn 0.3s ease;
}

/* Dialog */
.gs-auth-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: linear-gradient(180deg, #2d1517 0%, #1a0a0c 100%);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: gsAuthSlideUp 0.3s ease;
}

/* Close Button */
.gs-auth-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gs-auth-modal__close:hover {
  background: #DC2626;
  transform: rotate(90deg);
}

/* Banner */
.gs-auth-modal__banner {  
  background: linear-gradient(135deg, #DC2626, #B91C1C);
  position: relative;
}
.gs-auth-modal__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gs-auth-modal__banner-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 50%, #DC2626 100%);
  position: relative;
}
.gs-auth-modal__banner-gradient::before {
  content: 'OC CASINO';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 4px;
}

/* Tabs */
.gs-auth-modal__tabs {
  display: flex;
  gap: 8px;
  padding: 16px 20px 0;
  background: transparent;
}
.gs-auth-tab {
  flex: 1;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px 8px 0 0;
  color: #999;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: none;
}
.gs-auth-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
}
.gs-auth-tab.active {
  background: rgba(220, 38, 38, 0.2);
  border-color: #DC2626;
  color: #fff;
}

/* Panel */
.gs-auth-panel {
  display: none;
  padding: 24px 20px;
  background: rgba(0, 0, 0, 0.2);
}
.gs-auth-panel.active {
  display: block;
}

/* Note */
.gs-auth-note {
  text-align: center;
  color: #999;
  font-size: 13px;
  margin: 0 0 20px;
}

/* Form */
.gs-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Field */
.gs-auth-field {
  position: relative;
}
.gs-auth-field input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  transition: all 0.3s ease;
}
.gs-auth-field input:focus {
  outline: none;
  border-color: #DC2626;
  background: rgba(0, 0, 0, 0.4);
}
.gs-auth-field input::placeholder {
  color: #666;
}

/* Forgot Password */
.gs-auth-forgot {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #DC2626;
  font-size: 12px;
  text-decoration: none;
  font-weight: 600;
}
.gs-auth-forgot:hover {
  text-decoration: underline;
}

/* Submit Button */
.gs-auth-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #A47B5C 0%, #DBC3B1 53%, #A47B5C 100%);
  border: none;
  border-radius: 8px;
  color: #1a0a0c;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}
.gs-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(164, 123, 92, 0.4);
}

/* Animations */
@keyframes gsAuthFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes gsAuthSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 480px) {
  /*.gs-auth-buttons {*/
  /*  display: flex;*/
  /*  width: 100%;*/
  /*}*/
  .gs-auth-btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 13px;
  }
  .gs-auth-modal__dialog {
    max-width: 100%;
  }
  .gs-auth-modal__banner {
    height: 120px;
  }
  .gs-auth-panel {
    padding: 20px 16px;
  }
}
 
.gs-auth-panel {
    display: none;
    padding: 24px 20px;
    background: rgba(0, 0, 0, 0.2);
    margin: 20px;
    background:#341313;
    border-radius: 8px;
}

.header-bar{
	background-image: linear-gradient(90deg, #230909 0%, #561919 100%);
	margin-bottom:0px;
	height:50px;
}

.gs-auth-modal__banner img {
    width: 90%;
    height: 100%;
    object-fit: cover;
	margin: 20px;
}

.gs-auth-modal__banner {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe9e900, #b91c3500);
    position: relative;
}

.gs-auth-tab {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px 8px 8px 8px;
    color: #999;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s 
ease;
  
}



@media (max-width: 480px) {
    .gs-auth-btn {
        flex: 1;
        padding: 1px 10px;
        font-size: 10px;
    }
 
 
	
	
}


.gs-auth-tab {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px 8px 8px 8px;
    color: #999;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s 
ease;
    height: 50px;
}

.gs-auth-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #A47B5C 0%, #DBC3B1 53%, #A47B5C 100%);
    border: none;
    border-radius: 8px;
    color: #1a0a0c;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s 
ease;
    margin-top: 8px;
    height: 50px;
}

 
.gs-auth-btn-register {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    color: #fff;
    border-radius: 8px 8px 8px 8px;
    font-family: 'Kanit';
    font-weight: 500;
}