#form .container {
  max-width: 534px;
  margin: 0 auto;
  padding: 0;
}

#form .container .row {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

#form .tab-content {
  width: 100%;
  padding: 3.2% 0 2rem;
  margin: 0px auto;
  background: url(../images/bg-form.webp?v=3.3.6) top center no-repeat;
  background-size: 100% 100%;
  -webkit-filter: drop-shadow(0px 0px 20px #e7b046);
  filter: drop-shadow(0px 0px 20px #e7b046);
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: filter;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: fit-content;
  position: relative;
  background-size: 100% 100%;
}

#form .tab-content > .nav-tabs {
  width: 32%;
  border: none !important;
  margin: 8px auto 5.8% !important;
  padding: 0 !important;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-top: 15px !important;
  height: auto;
  position: absolute;
  top: 3.2%;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  flex-shrink: 0;
  flex-grow: 0;
  z-index: 10;
}

#form .tab-content > .nav-tabs > li {
  flex: 0 0 auto;
  text-align: center;
  text-transform: uppercase;
  font-size: 18px;
  margin: 0 auto !important;
  padding: 0 !important;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  align-self: center;
}

#form .tab-content > .nav-tabs > li > a {
  position: relative;
  text-decoration: none;
  width: 100%;
  height: 100%;
  color: #f7dca9;
  display: flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin: 0 auto !important;
  padding: 0 !important;
}

#form .nav-tabs > li > a img,
#form .tab-content > .nav-tabs > li > a img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
  object-fit: contain;
  margin: 0 auto !important;
  padding: 0 !important;
}

form {
  width: 79%;
  margin: 0 auto;
  margin-top: 0;
  padding-top: 0;
}

#form .tab-pane {
  margin-top: 65px;
  padding-top: 0;
}

.form-group {
  position: relative;
  margin-bottom: 20px;
}

/* Error message container - reserve space */
.form-group::after {
  content: '';
  display: block;
  height: 0.5rem;
  width: 100%;
  visibility: hidden;
  margin-top: 1px;
}

.error,
.errors {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0;
  margin-top: 1px;
  color: red;
  width: 100%;
  text-align: center;
  display: none;
  font-size: 12px;
  text-shadow: .5px .5px 0 #fff, .5px -.5px 0 #fff, -.5px .5px 0 #fff, -.5px -.5px 0 #fff, .5px 0px 0 #fff, 0px .5px 0 #fff, -.5px 0px 0 #fff, 0px -.5px 0 #fff;
  z-index: 1;
  min-height: 0.5rem;
}

.error:not(:empty),
.errors:not(:empty) {
  display: block;
}



.captcha-group::after {
  content: '';
  display: block;
  height: 0.5rem;
  width: 100%;
  visibility: hidden;
  margin-top: 1px;
}

.captcha-group .errors {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  text-align: center;
  margin: 0;
  margin-top: 1px;
  clear: both;
  display: none;
  font-size: 12px;
  text-shadow: .5px .5px 0 #fff, .5px -.5px 0 #fff, -.5px .5px 0 #fff, -.5px -.5px 0 #fff, .5px 0px 0 #fff, 0px .5px 0 #fff, -.5px 0px 0 #fff, 0px -.5px 0 #fff;
  z-index: 1;
  min-height: 0.5rem;
}

.captcha-group .errors:not(:empty) {
  display: block;
}

.captcha-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  flex-wrap: nowrap !important;
  justify-content: space-between;
}

.captcha-input-wrapper {
  position: relative;
  flex: 0 0 auto;
  width: 200px;
  min-width: 150px;
  display: inline-block;
}

.captcha-input-wrapper > i {
  position: absolute;
  left: 36px;
  top: 0;
  color: #f6ef9b;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  width: 25px;
  pointer-events: none;
  z-index: 1;
}

.captcha-input {
  width: 100% !important;
  padding: 0 20px 0 80px !important;
  text-transform: uppercase;
  font-size: 18px !important;
  letter-spacing: 2px;
  margin: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
}

.captcha-image-wrapper {
  display: flex !important;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex: 0 0 auto !important;
  white-space: nowrap;
  margin-left: auto;
}

.captcha-img {
  height: 50px;
  width: auto;
  border: 1px solid #e7b046;
  border-radius: 5px;
  cursor: pointer;
  background: #fff;
  padding: 2px;
  transition: opacity 0.2s;
  display: block;
  flex-shrink: 0;
}

.captcha-img:hover {
  opacity: 0.8;
}

.captcha-refresh {
  cursor: pointer;
  color: #f6ef9b;
  font-size: 18px;
  transition: transform 0.3s;
}

.captcha-refresh:hover {
  transform: rotate(180deg);
  color: #e7b046;
}

.form-group>i {
  background: none;
  position: absolute;
  left: 36px;
  top: 0;
  color: #f6ef9b;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  height: 50px;
  width: 25px;
}

.form-group > i.icon-prepend {
  right: 25px;
  left: auto;
}

.instyle {
  overflow: hidden;
}

.form-control {
  background: #101010 !important;
  height: 50px;
  border: 1px solid #e7b046 !important;
  outline: none !important;
  margin: 0 auto;
  font-size: 20px;
  color: #fff !important;
  border-radius: 5px;
  padding: 0 52px 0 80px;
}

.btn_form {
  text-align: center;
  padding-top: .8rem;
  /* margin-top: 0.5rem !important; */
  position: relative;
  z-index: 2;
}

.btn_form button {
  background: none;
  border: none;
  outline: none;
  padding: 0;
  display: inline-block;
  width: 95%;
  position: relative;
  z-index: 2;
}

input::-webkit-input-placeholder {
  color: #fff !important;
}

input:-moz-placeholder {

  /* Firefox 18- */
  color: #fff !important;
}

input::-moz-placeholder {

  /* Firefox 19+ */
  color: #fff !important;
}

input:-ms-input-placeholder {
  color: #fff !important;
}

button,
textarea:focus,
textarea.form-control:focus,
input.form-control:focus,
input[type=text]:focus,
input[type=password]:focus,
input[type=email]:focus,
input[type=number]:focus,
[type=text].form-control:focus,
[type=password].form-control:focus,
[type=email].form-control:focus,
[type=tel].form-control:focus,
[contenteditable].form-control:focus,
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  box-shadow: inset 0 -1px 0 transparent !important;
  -webkit-box-shadow: 0 -1px 0 transparent !important;
  outline: none !important;
}

@-webkit-keyframes btnAnimation {
  0% {
    transform: scale(1.04);
    -webkit-filter: brightness(1.6);
    filter: brightness(1.6);
  }

  50% {
    transform: scale(1);
    -webkit-filter: brightness(1);
    filter: brightness(1);
  }

  100% {
    transform: scale(1.04);
    -webkit-filter: brightness(1.6);
    filter: brightness(1.6);
  }

}
@media screen and (max-height:780px) and (max-width:1500px) {
  

}

@media (max-width:1400px) {
  

}

@media (max-height:780px) {
  #form .container {
    max-width: 520px;
  }
}

@media screen and (max-width:1300px) {
  #form .container {
    max-width: 520px;
  }
  
}

@media (max-width: 991px) {
  

}
@media (max-width: 640px) {
  #form {
    padding: 0 15px;
  }
  #form .tab-content {
    padding: 3.5% 0 1rem;
    /* Softer multi-layer glow for mobile */
    -webkit-filter: drop-shadow(0 0 6px rgba(231, 176, 70, 0.65)) drop-shadow(0 0 14px rgba(231, 176, 70, 0.35));
    filter: drop-shadow(0 0 6px rgba(231, 176, 70, 0.65)) drop-shadow(0 0 14px rgba(231, 176, 70, 0.35));
  }
  .form-control,
  .form-group>i {
    height: 40px;
  }
  .form-group>i {
    font-size: 14px;
    left: 12px;
  }
  .form-group>i.icon-prepend {
    right: 12px;
  }
  .form-control {
    padding: 0 35px 0 40px;
  }
  .form-group {
    margin-bottom: .7rem;
  }
  .form-group::after {
    height: 1rem;
    margin-top: 1px;
  }
  .error, .errors {
    top: 100%;
    margin-top: -10px;
    font-size: 10px;
    min-height: 1rem;
  }
  .captcha-wrapper {
    flex-wrap: nowrap !important;
    gap: 8px;
    justify-content: space-between;
  }
  .captcha-input-wrapper {
    width: 150px;
    min-width: 120px;
    flex: 0 0 auto !important;
    display: inline-block;
  }
  .captcha-input-wrapper > i {
    left: 12px;
    font-size: 14px;
    height: 40px;
  }
  .captcha-input {
    padding: 0 15px 0 40px !important;
    font-size: 16px !important; /* Minimum 16px to prevent iOS zoom */
    display: block !important;
  }
  .captcha-image-wrapper {
    flex: 0 0 auto !important;
    display: flex !important;
    margin-left: auto;
  }
  .captcha-img {
    height: 40px;
    flex-shrink: 0;
  }
  .captcha-refresh {
    font-size: 16px;
    flex-shrink: 0;
  }

}

@media (max-width:480px) {
  

}

@media (max-width:400px) {
  .form-control {
    font-size: 16px; /* Minimum 16px to prevent iOS zoom */
  }

}

@media only screen and (max-height: 480px) and (orientation: landscape) {
  #form .container {
    max-width: 300px;
  }
  #form .tab-content {
    padding: 3.2% 0 1rem;
  }
  #form .nav-tabs {
    margin-bottom: 4%;
  }
  .form-control,
  .form-group>i {
    height: 28px;
  }
  .form-group>i {
    font-size: 14px;
    left: 12px;
  }
  .form-group>i.icon-prepend {
    right: 12px;
  }
  .form-control {
    padding: 0 35px 0 40px;
    font-size: 16px !important; /* Minimum 16px to prevent iOS zoom */
  }
  .form-group {
    margin-bottom: .5rem;
  }
  .form-group::after {
    height: 0.9rem;
    margin-top: 1px;
  }
  .error, .errors {
    top: 100%;
    margin-top: -10px;
    font-size: 9px;
    min-height: 0.9rem;
  }
  .captcha-wrapper {
    flex-wrap: nowrap !important;
    gap: 5px;
    justify-content: space-between;
  }
  .captcha-input-wrapper {
    width: 120px;
    min-width: 100px;
    flex: 0 0 auto !important;
    display: inline-block;
  }
  .captcha-input-wrapper > i {
    left: 12px;
    font-size: 12px;
    height: 28px;
  }
  .captcha-input {
    padding: 0 10px 0 35px !important;
    font-size: 16px !important; /* Minimum 16px to prevent iOS zoom */
    display: block !important;
  }
  .captcha-image-wrapper {
    flex: 0 0 auto !important;
    display: flex !important;
    margin-left: auto;
  }
  .captcha-img {
    height: 28px;
    flex-shrink: 0;
  }
  .captcha-refresh {
    font-size: 12px;
    flex-shrink: 0;
  }

  /* Keep SVG icons centered after orientation change on mobile landscape */
  .icon-prepend {
    left: 12px !important;
    top: 4px !important;
    width: 18px !important;
    height: 18px !important;
    font-size: 14px !important;
  }

  .icon-eye {
    right: 10px !important;
    top: 4px !important;
    width: 18px !important;
    height: 18px !important;
    font-size: 14px !important;
  }
}

/* ===== SẢN PHẨM CHÍNH HÃNG KHÁC ===== */
.doitac_wrap {
  padding: 15px 0 15px;
}

.doitac_wrap .container {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 15px;
}

.listsub_ttl {
  text-align: center;
  margin-bottom: 30px;
}

.listsub_ttl span {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(359deg, #8C421D -27.49%, #FBE67B 16.85%, #FCFBE7 45.5%, #F7D14E 77.45%, #D4A041 108.82%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  padding: 0 30px;
}

.listsub_ttl span::before {
  left: -40px;
  background: linear-gradient(90deg, transparent, #E3AE1C);
}

.listsub_ttl span::after {
  right: -40px;
  background: linear-gradient(90deg, #E3AE1C, transparent);
}

.listsub_list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 4px;
}

.listsub_box {
  flex: 1 1 0;
  min-width: 0;
}

.listsub_item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all 0.3s ease;
  background: linear-gradient(180deg, #2a2218 0%, #1a1410 100%);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
}

.listsub_item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(45deg, #8B6914 0%, #3d2e1e 50%, #8B6914 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.listsub_item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(139, 105, 20, 0.3);
}

.listsub_item:hover::before {
  background: linear-gradient(45deg, #d4a017 0%, #5a4520 50%, #d4a017 100%);
}

.listsub_item:hover .listsub_lg img {
  transform: scale(1.05);
}

.listsub_lg {
  margin: 0;
  height: 75%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
}

.listsub_lg img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.listsub_name {
  margin: 0;
  height: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: #FFA508;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #0f0d0a;
  text-decoration: none;
}

.listsub_item:hover .listsub_name {
  text-decoration: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .doitac_wrap {
    padding: 10px 0px 30px;
  }
  
  .listsub_ttl span {
    font-size: 14px;
    padding: 0 20px;
  }
  
  .listsub_ttl span::before,
  .listsub_ttl span::after {
    width: 30px;
  }
  
  .listsub_ttl span::before {
    left: -20px;
  }
  
  .listsub_ttl span::after {
    right: -20px;
  }
  
  .listsub_list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 8px;
  }
  
  .listsub_box {
    flex: 0 0 calc(33.333% - 8px);
  }
  
  .listsub_item {
    border-radius: 8px;
  }
  
  .listsub_lg {
    padding: 6px;
  }
  
  .listsub_name {
    font-size: 6px;
  }

  .doitac_vpn {
    margin-top: 10px;
  }

  .doitac_vpn_text {
    font-size: clamp(10px, 2.8vw, 12px);
  }
}

#main {
  margin-top: 0;
  
}

#main .playonweb-pc.btn1111 {
  padding-top: 0 !important;
  margin-top: -10px !important;
  padding-bottom: 0 !important;
}

.doitac_wrap {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.doitac_wrap .listsub_ttl {
  margin-bottom: 5px !important;
}

.doitac_vpn {
  margin-top: 12px;
  text-align: center;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.doitac_vpn_text {
  margin: 0;
  font-size: 12px;
  color: #fff;
  line-height: 1.3;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
}

.doitac_vpn_logo {
  width: auto;
  height: 1.15em;
  max-height: 18px;
  object-fit: contain;
  margin: 0;
  display: block;
  flex-shrink: 0;
}

.doitac_vpn_icon {
  width: auto;
  height: 1.15em;
  max-height: 18px;
  object-fit: contain;
  margin: 0;
  display: block;
  flex-shrink: 0;
  animation: appInstallDownloadFloat 1s ease-in-out infinite;
}

@keyframes appInstallDownloadFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

/* Desktop: dòng 1.1.1.1 nằm TRÊN dòng gạch vàng */
@media (min-width: 992px) {
  #main > .container {
    display: flex;
    flex-direction: column;
  }

  #main > .container > .playonweb-pc.btn1111 {
    order: 1;
  }

  #main > .container > .pt-ssm[data-layer*="Cài APP"] {
    order: 2;
    display: block !important;
    width: 100%;
    padding-top: 8px;
    padding-bottom: 4px;
  }

  #main > .container > .divider-footer.mb-hidden {
    order: 3;
    margin-top: 6px;
    margin-bottom: 14px !important;
  }

  #main > .container > .doitac_wrap {
    order: 4;
  }

  #main > .container > .scroll-seocontent {
    order: 5;
  }

  #main > .container > #huongdan {
    order: 6;
  }

  .app-install-container {
    display: flex !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: transparent !important;
    padding: 4px 0;
  }

  .app-install-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2em;
    font-size: 12px;
    color: #fff;
  }

  .app-install-content img {
    margin: 0;
    display: block;
    flex-shrink: 0;
  }

  .app-install-logo,
  .app-install-icon {
    width: auto;
    height: 1.15em;
    max-height: 18px;
    object-fit: contain;
  }
}

@media (max-width: 991px) {
  #ios,
  #android {
    margin-bottom: 0 !important;
  }

  #ios .btn-store,
  #android .btn-store {
    margin-top: 0.5rem !important;
    margin-bottom: 0.25rem !important;
  }

  .pt-ssm[data-layer*="Cài APP"] {
    padding-top: 6px;
    padding-bottom: 12px;
  }

  .app-install-container {
    background: rgba(37, 24, 13, 0.8) !important;
    padding: 7px 4px;
    border-radius: 8px;
  }

  .app-install-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2em;
  }

  .app-install-content img {
    margin: 0;
    display: block;
    flex-shrink: 0;
  }

  .app-install-logo,
  .app-install-icon {
    width: auto;
    height: 1.15em;
    max-height: 18px;
    object-fit: contain;
  }
}

.listsub_ttl span {
  font-size: 14px;
  font-weight: bold;
  background: linear-gradient(359deg, #8C421D -27.49%, #FBE67B 16.85%, #FCFBE7 45.5%, #F7D14E 77.45%, #D4A041 108.82%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-align: center;
  leading-trim: both;
  text-edge: cap;
  font-family: "Open Sans";
}
.form-group.captcha-group {
  margin-bottom: 0px !important;
}
.icon-prepend {
  position: absolute;
  left: 36px;
  top: 0;
  color: #f6ef9b;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  height: 50px;
  width: 25px;
}

@media screen and (max-width: 640px) {
  .icon-prepend { left: 12px !important; 
    width: 20px !important;
    height: 20px !important;
    font-size: 16px !important;
    top: 12px !important;
  }
  .icon-eye {
    top: 10px !important;
  }
}
.scroll-seocontent {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: 100%;
}
.icon-eye {
  position: absolute;
  right: 12px;
  top: 14px;
  width: 20px;
  height: 20px;
  font-size: 16px;
}
@media screen and (max-width: 640px) {
  .mb-hidden {
    display: none !important;
  }
  .btn-store {
    margin: 0.2rem auto !important;
  }
  .listsub_list {
    margin-top: 10px !important;
    width: 80% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
@media screen and (min-width: 639px) {
  .dt-hidden {
    display: none !important;
  }
}

#registerForm {
  width: 81% !important;
}
