*,
*::before,
*::after {
  box-sizing: border-box;
}

body.q9a_bg {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #1d2955 0%, #750052 100%);
  color: #e6f0ff;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.w3_topbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 8px 16px;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(29, 41, 85, 0.08);
  width: 100%;
}

@media (max-width: 480px) {
  .w3_topbar {
    padding: 6px 12px;
  }
}

.w3_topbar_inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 12px 0;
}

.f2_logo {
  height: 35px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  max-width: 100%;
}

@media (max-width: 480px) {
  .f2_logo {
    height: 28px;
  }
}

.j8_title {
  color: #1d2955;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-top: 8px;
  text-align: center;
}

@media (max-width: 480px) {
  .j8_title {
    font-size: 16px;
    margin-top: 6px;
  }
}

@media (prefers-color-scheme: dark) {
  .j8_title {
    color: #ffffff;
  }
}

.m0_shell {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px 32px 16px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .m0_shell {
    padding: 24px 12px 24px 12px;
  }
}

@media (max-width: 480px) {
  .m0_shell {
    padding: 16px 8px 16px 8px;
  }
}

.c5_card {
  width: 100%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 600px) {
  .c5_card {
    padding: 20px 16px;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .c5_card {
    padding: 16px 12px;
    border-radius: 10px;
  }
}

.p0_head {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 2px 2px 20px 2px;
  text-align: left;
}

@media (max-width: 600px) {
  .p0_head {
    font-size: 20px;
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .p0_head {
    font-size: 18px;
    margin-bottom: 12px;
  }
}

@media (prefers-color-scheme: dark) {
  .p0_head,
  .i4_lab,
  .fg_lbl {
    color: #ffffff !important;
  }
}

.i4_grp {
  margin-bottom: 16px;
}

.i4_lab,
.fg_lbl {
  display: block;
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 8px;
  font-weight: 500;
}

@media (max-width: 480px) {
  .i4_lab,
  .fg_lbl {
    font-size: 14px;
    margin-bottom: 6px;
  }
}

.i4_inp,
.ph_inp,
.code_inp,
.bank_sel,
#reason {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  color: #ffffff;
  appearance: none;
}

@media (max-width: 480px) {
  .i4_inp,
  .ph_inp,
  .code_inp,
  .bank_sel,
  #reason {
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 10px;
  }
}

.i4_inp:focus,
.ph_inp:focus,
.code_inp:focus,
.bank_sel:focus,
#reason:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.i4_inp[readonly] {
  background: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
}

.i4_inp::placeholder,
.ph_inp::placeholder,
.code_inp::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.k9_chkrow {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 2px 10px 2px;
}

.k9_chk {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #9e2167;
}

.k9_lbl {
  font-size: 13px;
  color: #4a5a8a;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}

.b1_btn,
.b2_btn {
  width: 100%;
  background: linear-gradient(135deg, #9e2167, #851b56);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  margin-top: 12px;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  box-shadow: 0 4px 12px rgba(158, 33, 103, 0.3);
  min-height: 48px;
  touch-action: manipulation;
}

@media (max-width: 480px) {
  .b1_btn,
  .b2_btn {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 10px;
  }
}

.b1_btn:hover,
.b2_btn:hover {
  background: linear-gradient(135deg, #ae2672, #941e60);
  box-shadow: 0 6px 18px rgba(158, 33, 103, 0.4);
  transform: translateY(-2px);
}

.b1_btn:active,
.b2_btn:active {
  background: #750052;
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(158, 33, 103, 0.25);
}

.b1_btn[disabled],
.b2_btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  background: #8a4a6b;
}

.r3_box {
  display: none;
  background: #fff0f5;
  color: #8b1a4a;
  border: 1px solid #f0b3c9;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 10px 2px 6px 2px;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-line;
  animation: fadeIn 0.3s ease;
}

.r3_box.show {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.r3_box::before {
  content: "!";
  color: #9e2167;
  font-weight: 900;
  line-height: 1.4;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.y7_spinwrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 6px 8px 6px;
  min-height: 150px;
}

.y7_spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(158, 33, 103, 0.15);
  border-top-color: #9e2167;
  animation: k_7s_spin 0.8s linear infinite;
}

@keyframes k_7s_spin {
  to {
    transform: rotate(360deg);
  }
}

.y7_msg {
  font-size: 14px;
  color: #1d2955;
  text-align: center;
  font-weight: 500;
}

.progress-container {
  width: 90%;
  background: rgba(158, 33, 103, 0.1);
  border-radius: 8px;
  height: 10px;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(135deg, #9e2167, #750052);
  border-radius: 8px;
  transition: width 0.4s ease-in-out;
}

.step_msg {
  font-size: 14px;
  color: #ffffff;
  text-align: center;
  font-weight: 500;
}

.error_step {
  color: #9e2167;
  font-weight: 700;
}

#success_msg p {
  font-size: 15px;
  color: #ffffff;
  line-height: 1.6;
  font-weight: 500;
}

.success_tick {
  font-size: 56px;
  color: #ffffff;
  margin-bottom: 10px;
  text-align: center;
  animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

@keyframes popIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.x2_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .x2_grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.v1_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.v1_k {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.v1_v {
  font-weight: 700;
  color: #ffffff;
  font-size: 15px;
}

.p0_succ {
  position: relative;
  padding-left: 32px;
  color: #4d1253 !important;
}

.p0_succ::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #9e2167;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(158, 33, 103, 0.3);
}

.q_amt {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0 16px 0;
  text-align: center;
}

.p0_head.p0_succ ~ .q_amt {
  color: #4d1253;
}

@media (max-width: 480px) {
  .q_amt {
    font-size: 24px;
    margin: 4px 0 12px 0;
  }
}

.info_duo,
.kv_grid,
.r_sel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info_box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
}

.info_t {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  margin-bottom: 8px;
}

.info_row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 14px;
}

.info_k {
  color: rgba(255, 255, 255, 0.7);
}

.info_v {
  color: #ffffff;
  font-weight: 700;
}

.kv_card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.kv_t {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  margin-bottom: 4px;
}

.kv_v {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
}

.branch_block {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.p0_head.p0_succ ~ .branch_block {
  background: #ffffff !important;
  border: 1px dashed rgba(158, 33, 103, 0.35) !important;
}

.p0_head.p0_succ ~ .branch_block .branch_chip {
  background: #fdf5f9 !important;
  color: #9e2167 !important;
  border: 1px solid rgba(158, 33, 103, 0.25) !important;
}

.p0_head.p0_succ ~ .branch_block .net_text {
  color: #1d2955 !important;
}

.p0_head.p0_succ ~ .branch_block .net_text strong {
  color: #9e2167 !important;
}

.branch_chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.net_text {
  font-size: 14px;
  color: #ffffff;
  flex: 1;
}

.net_text strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

.r_sel {
  margin-bottom: 16px;
}

.r_sel label {
  display: block;
}

.r_sel input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.r_opt {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  transition: all 0.2s ease;
}

.r_opt:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
}

.r_sel input[type="radio"]:checked+.r_opt {
  background: #9e2167;
  color: #fff;
  border-color: #9e2167;
  box-shadow: 0 6px 18px rgba(158, 33, 103, 0.25);
  transform: translateY(-2px);
}

.login_card {
  background: #f8faff;
  border: 1px solid rgba(29, 41, 85, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .x2_grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
}

@media (max-width: 420px) {
  .info_duo,
  .kv_grid,
  .r_sel {
    grid-template-columns: 1fr;
  }
  
  .v1_row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .branch_block {
    flex-direction: column;
    align-items: flex-start;
  }
}

#animation_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}

body[data-theme="dark"] .p0_head,
body[data-theme="dark"] .i4_lab,
body[data-theme="dark"] .fg_lbl,
html[data-theme="dark"] .p0_head,
html[data-theme="dark"] .i4_lab,
html[data-theme="dark"] .fg_lbl {
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  .p0_head,
  .i4_lab,
  .fg_lbl {
    color: #ffffff !important;
  }
}

.p0_head.p0_succ ~ .branch_block .branch_chip,
.p0_head.p0_succ ~ .branch_block .net_text,
.p0_head.p0_succ ~ .branch_block .net_text strong {
  color: inherit !important;
}

.p0_head.p0_succ ~ .branch_block .branch_chip {
  color: #9e2167 !important;
}

.p0_head.p0_succ ~ .branch_block .net_text {
  color: #1d2955 !important;
}

.p0_head.p0_succ ~ .branch_block .net_text strong {
  color: #9e2167 !important;
}