
    :root{
      --purple:#4c2a86;
      --purple-dark:#24113f;
      --purple-soft:#f7f2ff;
      --gold:#fdb821;
      --text:#21152f;
      --muted:#746987;
      --line:rgba(76,42,134,.13);
      --shadow:0 28px 80px rgba(36,17,63,.16);
      --blue:#1997d4;
      --green:#22c55e;
      --white:#fff;
    }

    *{box-sizing:border-box}

    body{
      margin:0;
      min-height:100vh;
      font-family:'Sarabun',sans-serif;
      color:var(--text);
      background:
        radial-gradient(circle at 12% 10%,rgba(253,184,33,.20),transparent 24%),
        radial-gradient(circle at 88% 15%,rgba(109,63,209,.18),transparent 28%),
        linear-gradient(135deg,#fbf8ff 0%,#ffffff 44%,#f5efff 100%);
      display:grid;
      place-items:center;
      padding:28px 0;
      overflow-x:hidden;
    }

    a{text-decoration:none;color:inherit}

    .signup-shell{
      width:min(1080px,calc(100% - 32px));
      display:grid;
      grid-template-columns:.82fr 1.18fr;
      background:rgba(255,255,255,.78);
      border:1px solid rgba(255,255,255,.82);
      border-radius:32px;
      box-shadow:var(--shadow);
      overflow:hidden;
      backdrop-filter:blur(18px);
      position:relative;
    }

    .signup-shell:before{
      content:'';
      position:absolute;
      inset:0;
      background:
        linear-gradient(rgba(76,42,134,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(76,42,134,.025) 1px, transparent 1px);
      background-size:42px 42px;
      pointer-events:none;
      opacity:.65;
    }

    .brand-side,
    .form-side{
      position:relative;
      z-index:1;
    }

    .brand-side{
      padding:34px;
      background:
        radial-gradient(circle at 15% 15%,rgba(253,184,33,.25),transparent 26%),
        linear-gradient(145deg,#180b2e 0%,#321766 58%,#120821 100%);
      color:#fff;
      display:flex;
      flex-direction:column;
      justify-content:space-between;
      overflow:hidden;
    }

    .brand-side:after{
      content:'';
      position:absolute;
      right:-150px;
      bottom:-160px;
      width:400px;
      height:400px;
      border-radius:50%;
      background:radial-gradient(circle,rgba(253,184,33,.22),transparent 70%);
      pointer-events:none;
    }

    .brand{
      display:flex;
      align-items:center;
      gap:13px;
      position:relative;
      z-index:2;
    }

    .brand-mark{
      width:48px;
      height:48px;
      border-radius:17px;
      overflow:hidden;
      box-shadow:0 18px 40px rgba(0,0,0,.24);
      flex:0 0 auto;
    }

    .brand-mark img{
      width:48px;
      height:48px;
      display:block;
    }

    .brand-name strong{
      display:block;
      font-size:23px;
      font-weight:700;
      letter-spacing:-.4px;
    }

    .brand-name span{
      display:block;
      font-size:12px;
      color:rgba(255,255,255,.68);
      font-weight:600;
      text-transform:uppercase;
      letter-spacing:.9px;
      margin-top:2px;
    }

    .brand-copy{
      position:relative;
      z-index:2;
      margin-top:46px;
    }

    .brand-copy .badge{
      display:inline-flex;
      padding:8px 14px;
      border-radius:999px;
      background:rgba(253,184,33,.14);
      border:1px solid rgba(253,184,33,.28);
      color:#ffd56f;
      font-size:13px;
      font-weight:700;
      margin-bottom:16px;
    }

    .brand-copy h1{
      font-size:clamp(30px,3.2vw,42px);
      line-height:1.28;
      margin:0 0 14px;
      letter-spacing:-.7px;
    }

    .brand-copy p{
      margin:0;
      color:rgba(255,255,255,.76);
      line-height:1.85;
      font-size:14px;
    }

    .benefits{
      position:relative;
      z-index:2;
      display:grid;
      gap:11px;
      margin-top:28px;
    }

    .benefit{
      display:flex;
      gap:11px;
      align-items:flex-start;
      padding:13px;
      border-radius:18px;
      background:rgba(255,255,255,.07);
      border:1px solid rgba(255,255,255,.10);
      backdrop-filter:blur(10px);
    }

    .benefit-icon{
      width:34px;
      height:34px;
      border-radius:13px;
      display:grid;
      place-items:center;
      color:#24113f;
      background:linear-gradient(135deg,#ffd86b,#fdb821);
      flex:0 0 auto;
    }

    .benefit b{
      display:block;
      font-size:14px;
      color:#fff;
      margin-bottom:2px;
    }

    .benefit span{
      display:block;
      font-size:12px;
      color:rgba(255,255,255,.66);
      line-height:1.55;
    }

    .side-footer{
      position:relative;
      z-index:2;
      display:flex;
      gap:9px;
      flex-wrap:wrap;
      margin-top:36px;
    }

    .side-footer span{
      padding:8px 12px;
      border-radius:999px;
      background:rgba(255,255,255,.08);
      border:1px solid rgba(255,255,255,.10);
      color:rgba(255,255,255,.72);
      font-size:12px;
      font-weight:600;
    }

    .form-side{
      padding:36px 42px;
      background:rgba(255,255,255,.92);
    }

    .form-header{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:18px;
      margin-bottom:24px;
    }

    .form-title .mini{
      display:inline-flex;
      padding:7px 13px;
      border-radius:999px;
      background:rgba(76,42,134,.08);
      color:var(--purple);
      font-size:13px;
      font-weight:700;
      margin-bottom:11px;
    }

    .form-title h2{
      font-size:31px;
      line-height:1.25;
      margin:0 0 6px;
      color:var(--purple-dark);
      letter-spacing:-.6px;
    }

    .form-title p{
      margin:0;
      color:var(--muted);
      line-height:1.7;
      font-size:14px;
    }

    .login-link{
      white-space:nowrap;
      color:var(--muted);
      font-size:13px;
      padding-top:8px;
    }

    .login-link a{
      color:var(--purple);
      font-weight:700;
    }

    .steps{
      display:grid;
      grid-template-columns:1fr 1fr 1fr;
      gap:12px;
      margin-bottom:24px;
    }

    .step-card{
      display:flex;
      align-items:center;
      gap:12px;
      padding:13px;
      border-radius:18px;
      background:#fff;
      border:1px solid rgba(76,42,134,.10);
      transition:.25s;
    }

    .step-card.active{
      border-color:rgba(76,42,134,.32);
      background:linear-gradient(135deg,#fff,#fbf8ff);
      box-shadow:0 12px 30px rgba(76,42,134,.08);
    }

    .step-number{
      width:34px;
      height:34px;
      border-radius:14px;
      display:grid;
      place-items:center;
      background:#f4efff;
      color:var(--purple);
      font-weight:700;
      flex:0 0 auto;
    }

    .step-card.active .step-number{
      background:linear-gradient(135deg,var(--purple),var(--purple-dark));
      color:#fff;
    }

    .step-text b{
      display:block;
      font-size:13px;
      color:#24113f;
    }

    .step-text span{
      display:block;
      font-size:12px;
      color:var(--muted);
      margin-top:1px;
    }

    .step-panel{
      display:none;
    }

    .step-panel.active{
      display:block;
      animation:panelIn .22s ease both;
    }

    @keyframes panelIn{
      from{opacity:0;transform:translateY(10px)}
      to{opacity:1;transform:translateY(0)}
    }

    .social-row{
      display:grid;
      grid-template-columns:repeat(3,1fr);
      gap:10px;
      margin-bottom:18px;
    }

    .social-btn{
      height:46px;
      border-radius:15px;
      border:1px solid rgba(76,42,134,.13);
      background:#fff;
      display:flex;
      align-items:center;
      justify-content:center;
      gap:8px;
      font-family:inherit;
      font-size:13px;
      font-weight:700;
      cursor:pointer;
      color:#332544;
      transition:.22s;
      box-shadow:0 10px 24px rgba(36,17,63,.04);
    }

    .social-btn:hover{
      transform:translateY(-2px);
      box-shadow:0 16px 34px rgba(36,17,63,.09);
    }

    .social-btn.facebook{
      color:#fff;
      background:#1877f2;
      border-color:#1877f2;
    }

    .social-btn.line{
      color:#fff;
      background:#06c755;
      border-color:#06c755;
    }

    .social-btn svg{
      width:19px;
      height:19px;
    }

    .divider{
      display:flex;
      align-items:center;
      gap:12px;
      color:#9b92aa;
      font-size:13px;
      margin:18px 0;
    }

    .divider:before,
    .divider:after{
      content:'';
      height:1px;
      flex:1;
      background:rgba(76,42,134,.12);
    }

    .form-grid{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:14px;
    }

    .field.full{
      grid-column:1/-1;
    }

    .field label{
      display:block;
      margin-bottom:7px;
      color:#4d415f;
      font-size:13px;
      font-weight:700;
    }

    .field input,
    .field select,
    .field textarea{
      width:100%;
      height:46px;
      border:1px solid rgba(76,42,134,.14);
      background:#fff;
      border-radius:14px;
      padding:0 14px;
      font-family:inherit;
      font-size:14px;
      color:#24113f;
      outline:none;
      transition:.2s;
    }

    .field textarea{
      height:92px;
      padding-top:12px;
      resize:vertical;
    }

    .field input:focus,
    .field select:focus,
    .field textarea:focus{
      border-color:rgba(76,42,134,.44);
      box-shadow:0 0 0 4px rgba(76,42,134,.08);
    }

    .role-grid{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:12px;
      margin-bottom:24px;
    }

    .role-card{
      position:relative;
      display:flex;
      align-items:center;
      gap:13px;
      min-height:70px;
      padding:14px 14px 14px 44px;
      border:1px solid rgba(76,42,134,.13);
      border-radius:15px;
      background:#fff;
      cursor:pointer;
      transition:.22s;
    }

    .role-card input{
      position:absolute;
      left:14px;
      top:50%;
      transform:translateY(-50%);
      accent-color:var(--purple);
    }

    .role-card:hover,
    .role-card:has(input:checked){
      border-color:rgba(76,42,134,.40);
      background:#fbf8ff;
      box-shadow:0 12px 28px rgba(76,42,134,.08);
    }

    .role-icon{
      width:40px;
      height:40px;
      border-radius:15px;
      display:grid;
      place-items:center;
      background:linear-gradient(135deg,#eef8ff,#f6f1ff);
      color:#1997d4;
      flex:0 0 auto;
    }

    .role-card b{
      display:block;
      color:#1997d4;
      font-size:13px;
    }

    .section-label{
      margin:4px 0 14px;
      color:var(--blue);
      font-size:22px;
      font-weight:700;
    }

    .actions{
      display:flex;
      justify-content:space-between;
      gap:12px;
      margin-top:24px;
    }

    .btn{
      height:48px;
      border:0;
      border-radius:16px;
      padding:0 22px;
      font-family:inherit;
      font-weight:700;
      cursor:pointer;
      transition:.22s;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:8px;
    }

    .btn-primary{
      color:#fff;
      background:linear-gradient(135deg,var(--purple),var(--purple-dark));
      box-shadow:0 16px 34px rgba(76,42,134,.24);
    }

    .btn-primary:hover,
    .btn-outline:hover{
      transform:translateY(-2px);
    }

    .btn-outline{
      background:#fff;
      border:1px solid rgba(76,42,134,.15);
      color:var(--purple);
    }

    .terms{
      margin-top:16px;
      color:var(--muted);
      font-size:12px;
      line-height:1.7;
    }

    .terms a{
      color:var(--purple);
      font-weight:700;
    }

    .success-note{
      display:none;
      margin-top:16px;
      padding:13px 15px;
      border-radius:15px;
      background:rgba(34,197,94,.09);
      border:1px solid rgba(34,197,94,.18);
      color:#167a3a;
      font-size:13px;
      font-weight:600;
    }

    .success-note.show{
      display:block;
    }

    @media(max-width:980px){
      body{
        display:block;
      }

      .signup-shell{
        grid-template-columns:1fr;
        width:min(740px,calc(100% - 28px));
        margin:auto;
      }

      .brand-side{
        padding:28px;
      }

      .form-side{
        padding:30px 26px;
      }

      .form-header{
        flex-direction:column;
      }
    }

    @media(max-width:640px){
      .signup-shell{
        width:calc(100% - 20px);
        border-radius:24px;
      }

      .brand-side{
        padding:22px;
      }

      .form-side{
        padding:24px 18px;
      }

      .form-title h2{
        font-size:27px;
      }

      .steps,
      .social-row,
      .form-grid,
      .role-grid{
        grid-template-columns:1fr;
      }

      .actions{
        flex-direction:column-reverse;
      }

      .btn{
        width:100%;
      }
    }
  
.terms-check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:16px;
  padding:13px 14px;
  border-radius:15px;
  background:#fbf8ff;
  border:1px solid rgba(76,42,134,.10);
  color:var(--muted);
  font-size:12px;
  line-height:1.7;
  cursor:pointer;
}

.terms-check input{
  margin-top:4px;
  accent-color:var(--purple);
  flex:0 0 auto;
}

.terms-check a{
  color:var(--purple);
  font-weight:700;
}

.btn:disabled{
  opacity:.45;
  cursor:not-allowed;
  transform:none !important;
  box-shadow:none;
  filter:grayscale(.15);
}


.field label::after{
  content:' *';
  color:#ef4444;
  font-weight:700;
}


/* ===== Password Toggle ===== */
.password-field{
  position:relative;
}

.password-field input{
  padding-right:52px;
}

.toggle-password{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  width:34px;
  height:34px;
  border:0;
  background:transparent;
  display:grid;
  place-items:center;
  cursor:pointer;
  color:#8d839c;
  border-radius:10px;
  transition:.22s ease;
}

.toggle-password:hover{
  background:rgba(76,42,134,.08);
  color:#4c2a86;
}

.toggle-password svg{
  width:20px;
  height:20px;
}

.toggle-password .eye-close{
  display:none;
}

.toggle-password.show .eye-open{
  display:none;
}

.toggle-password.show .eye-close{
  display:block;
}


/* ===== Fixed Left Card + Scrollable Signup Form ===== */
.signup-shell{
  max-height:calc(100vh - 56px);
}

.brand-side{
  position:sticky;
  top:0;
  height:calc(100vh - 56px);
  overflow:hidden;
}

.form-side{
  max-height:calc(100vh - 56px);
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:rgba(76,42,134,.28) transparent;
}

.form-side::-webkit-scrollbar{
  width:8px;
}

.form-side::-webkit-scrollbar-track{
  background:transparent;
}

.form-side::-webkit-scrollbar-thumb{
  background:rgba(76,42,134,.22);
  border-radius:999px;
}

.business-type-field,
.employee-count-field{
  grid-column:auto;
}

@media(max-width:980px){
  .signup-shell{
    max-height:none;
  }

  .brand-side{
    position:relative;
    height:auto;
  }

  .form-side{
    max-height:none;
    overflow:visible;
  }
}

@media(max-width:640px){
  .business-type-field,
  .employee-count-field{
    grid-column:1/-1;
  }
}


/* ===== Business Row: Employee Count + Business Type ===== */
.business-row{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.business-row .field{
  min-width:0;
}

@media(max-width:640px){
  .business-row{
    grid-template-columns:1fr;
  }
}


/* ===== Floating Help Center ===== */
.help-floating{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:80;
  font-family:'Sarabun',sans-serif;
}

.help-toggle{
  width:58px;
  height:58px;
  border:0;
  border-radius:22px;
  cursor:pointer;
  color:#24113f;
  background:linear-gradient(135deg,#ffd86b,#fdb821);
  box-shadow:0 18px 42px rgba(253,184,33,.36);
  display:grid;
  place-items:center;
  transition:.25s;
}

.help-toggle:hover{
  transform:translateY(-3px);
  box-shadow:0 24px 52px rgba(253,184,33,.44);
}

.help-toggle svg{
  width:26px;
  height:26px;
}

.help-menu{
  position:absolute;
  right:0;
  bottom:74px;
  width:270px;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(76,42,134,.12);
  border-radius:24px;
  box-shadow:0 24px 70px rgba(36,17,63,.18);
  backdrop-filter:blur(16px);
  padding:12px;
  display:none;
}

.help-floating.open .help-menu{
  display:block;
  animation:helpIn .2s ease both;
}

@keyframes helpIn{
  from{opacity:0;transform:translateY(10px) scale(.96)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

.help-menu-head{
  padding:12px 12px 10px;
  border-bottom:1px solid rgba(76,42,134,.08);
  margin-bottom:8px;
}

.help-menu-head b{
  display:block;
  color:#24113f;
  font-size:15px;
  margin-bottom:3px;
}

.help-menu-head span{
  display:block;
  color:#746987;
  font-size:12px;
  line-height:1.5;
}

.help-link{
  display:flex;
  align-items:center;
  gap:11px;
  padding:12px;
  border-radius:16px;
  color:#332544;
  transition:.2s;
}

.help-link:hover{
  background:#f7f2ff;
  transform:translateX(-2px);
}

.help-link-icon{
  width:36px;
  height:36px;
  border-radius:14px;
  display:grid;
  place-items:center;
  color:#fff;
  background:linear-gradient(135deg,#6d3fd1,#24113f);
  flex:0 0 auto;
}

.help-link-icon.gold{
  background:linear-gradient(135deg,#ffd86b,#fdb821);
  color:#24113f;
}

.help-link-icon.green{
  background:linear-gradient(135deg,#20d86b,#06c755);
  color:#fff;
}

.help-link-text b{
  display:block;
  font-size:13px;
  color:#24113f;
}

.help-link-text span{
  display:block;
  font-size:12px;
  color:#746987;
  margin-top:1px;
}

.support-modal{
  position:fixed;
  inset:0;
  z-index:120;
  display:none;
}

.support-modal.active{
  display:block;
}

.support-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,8,28,.62);
  backdrop-filter:blur(6px);
}

.support-dialog{
  position:relative;
  width:min(560px,calc(100% - 28px));
  margin:5vh auto;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(76,42,134,.10);
  border-radius:28px;
  padding:28px;
  box-shadow:0 40px 100px rgba(0,0,0,.28);
  backdrop-filter:blur(18px);
  animation:supportIn .22s ease;
}

@keyframes supportIn{
  from{opacity:0;transform:translateY(14px) scale(.96)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

.support-close{
  position:absolute;
  top:14px;
  right:14px;
  width:38px;
  height:38px;
  border:0;
  border-radius:14px;
  background:#f5efff;
  color:#4c2a86;
  font-size:16px;
  cursor:pointer;
  transition:.2s;
}

.support-close:hover{
  background:#4c2a86;
  color:#fff;
}

.support-head{
  margin-bottom:20px;
}

.support-badge{
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(76,42,134,.08);
  color:#4c2a86;
  font-size:12px;
  font-weight:700;
  margin-bottom:12px;
}

.support-head h3{
  margin:0 0 8px;
  font-size:28px;
  color:#24113f;
}

.support-head p{
  margin:0;
  color:#746987;
  line-height:1.7;
  font-size:14px;
}

.support-form{
  display:grid;
  gap:14px;
}

.support-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.support-field label{
  display:block;
  margin-bottom:7px;
  color:#4d415f;
  font-size:13px;
  font-weight:700;
}

.support-field input,
.support-field select,
.support-field textarea{
  width:100%;
  border:1px solid rgba(76,42,134,.12);
  background:#fff;
  border-radius:15px;
  padding:13px 14px;
  font-family:'Sarabun',sans-serif;
  font-size:14px;
  color:#24113f;
  outline:none;
  transition:.2s;
}

.support-field textarea{
  min-height:120px;
  resize:vertical;
}

.support-field input:focus,
.support-field select:focus,
.support-field textarea:focus{
  border-color:rgba(76,42,134,.38);
  box-shadow:0 0 0 4px rgba(76,42,134,.08);
}

.support-submit{
  height:50px;
  border:0;
  border-radius:16px;
  background:linear-gradient(135deg,#4c2a86,#24113f);
  color:#fff;
  font-family:'Sarabun',sans-serif;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 16px 36px rgba(76,42,134,.24);
  transition:.22s;
}

.support-submit:hover{
  transform:translateY(-2px);
  box-shadow:0 24px 50px rgba(76,42,134,.30);
}

@media(max-width:640px){
  .help-floating{
    right:14px;
    bottom:14px;
  }

  .help-menu{
    width:calc(100vw - 28px);
    right:0;
  }

  .support-dialog{
    padding:22px;
    border-radius:24px;
  }

  .support-grid{
    grid-template-columns:1fr;
  }

  .support-head h3{
    font-size:24px;
  }
}


/* ===== Purchase Section ===== */
.purchase-section{
  margin-top:18px;
}

.purchase-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.purchase-card{
  position:relative;
  display:flex;
  gap:14px;
  padding:18px;
  border-radius:22px;
  border:1px solid rgba(76,42,134,.14);
  background:#fff;
  cursor:pointer;
  transition:.24s ease;
  overflow:hidden;
}

.purchase-card:hover,
.purchase-card:has(input:checked){
  border-color:rgba(76,42,134,.38);
  background:linear-gradient(135deg,#fff,#faf7ff);
  box-shadow:0 18px 40px rgba(76,42,134,.10);
  transform:translateY(-2px);
}

.purchase-card input{
  position:absolute;
  top:16px;
  right:16px;
  accent-color:#4c2a86;
}

.purchase-badge{
  min-width:58px;
  height:58px;
  border-radius:18px;
  display:grid;
  place-items:center;
  font-size:13px;
  font-weight:800;
  letter-spacing:.5px;
  flex:0 0 auto;
}

.purchase-badge.free{
  background:linear-gradient(135deg,#d9fff0,#b5ffd8);
  color:#0c8b4c;
}

.purchase-badge.pro{
  background:linear-gradient(135deg,#f7e3ff,#e9d1ff);
  color:#5c2fb2;
}

.purchase-content{
  flex:1;
}

.purchase-content b{
  display:block;
  font-size:16px;
  color:#24113f;
  margin-bottom:6px;
}

.purchase-content span{
  display:block;
  color:#746987;
  font-size:13px;
  line-height:1.7;
}

.purchase-price{
  margin-top:14px;
  font-size:22px;
  font-weight:800;
  color:#16a34a;
}

.package-box{
  margin-top:14px;
  padding:14px;
  border-radius:16px;
  background:#f7f2ff;
  border:1px solid rgba(76,42,134,.10);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.package-box strong{
  display:block;
  color:#24113f;
  font-size:15px;
  margin-bottom:3px;
}

.package-box small{
  color:#746987;
  font-size:12px;
}

.package-price{
  text-align:right;
  color:#4c2a86;
  font-size:22px;
  font-weight:800;
  line-height:1;
}

.package-price small{
  display:block;
  margin-top:5px;
  font-size:11px;
}

/* ===== Summary Step ===== */
.summary-card{
  border:1px solid rgba(76,42,134,.12);
  background:linear-gradient(135deg,#fff,#fbf8ff);
  border-radius:24px;
  padding:22px;
  box-shadow:0 16px 38px rgba(76,42,134,.08);
}

.summary-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
  padding-bottom:16px;
  border-bottom:1px solid rgba(76,42,134,.10);
}

.summary-head h3{
  margin:0 0 6px;
  color:#24113f;
  font-size:24px;
}

.summary-head p{
  margin:0;
  color:#746987;
  line-height:1.65;
  font-size:14px;
}

.summary-status{
  padding:8px 13px;
  border-radius:999px;
  background:rgba(34,197,94,.10);
  color:#16803d;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}

.summary-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.summary-box{
  padding:16px;
  border-radius:18px;
  background:#fff;
  border:1px solid rgba(76,42,134,.10);
}

.summary-box.full{
  grid-column:1/-1;
}

.summary-box h4{
  margin:0 0 12px;
  color:#4c2a86;
  font-size:15px;
}

.summary-list{
  display:grid;
  gap:10px;
}

.summary-item{
  display:flex;
  justify-content:space-between;
  gap:14px;
  color:#746987;
  font-size:13px;
  line-height:1.55;
}

.summary-item strong{
  color:#24113f;
  font-weight:700;
  text-align:right;
}

.order-total{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  margin-top:14px;
  padding-top:14px;
  border-top:1px dashed rgba(76,42,134,.18);
}

.order-total span{
  color:#746987;
  font-size:13px;
}

.order-total strong{
  color:#4c2a86;
  font-size:24px;
  font-weight:800;
}

@media(max-width:640px){
  .purchase-grid,
  .summary-grid{
    grid-template-columns:1fr;
  }

  .package-box{
    flex-direction:column;
    align-items:flex-start;
  }

  .package-price{
    text-align:left;
  }

  .summary-head{
    flex-direction:column;
  }

  .summary-item{
    flex-direction:column;
    gap:2px;
  }

  .summary-item strong{
    text-align:left;
  }
}


/* ===== Other Role Input ===== */
.role-card.other-role{
  grid-column:1/-1;
  align-items:center;
}

.role-other-input{
  display:none;
  flex:1;
  margin-left:auto;
}

.role-card.other-role:has(input:checked) .role-other-input{
  display:block;
}

.role-other-input label{
  display:block;
  color:#4d415f;
  font-size:12px;
  font-weight:700;
  margin-bottom:6px;
}

.role-other-input input{
  width:100%;
  height:44px;
  border:1px solid rgba(76,42,134,.18);
  background:#fff;
  border-radius:12px;
  padding:0 13px;
  font-family:inherit;
  font-size:13px;
  color:#24113f;
  outline:none;
}

.role-other-input input:focus{
  border-color:rgba(76,42,134,.44);
  box-shadow:0 0 0 4px rgba(76,42,134,.08);
}

@media(max-width:640px){
  .role-card.other-role{
    flex-wrap:wrap;
  }

  .role-other-input{
    width:100%;
    margin-left:0;
  }
}


/* ===== Purchase Cards One Column + Payment Actions ===== */
.purchase-grid{
  grid-template-columns:1fr !important;
}

.final-action-group{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.qr-pay-btn{
  display:none;
}

.dashboard-btn{
  display:inline-flex;
}

body.purchase-buy .qr-pay-btn{
  display:inline-flex;
}

body.purchase-buy .dashboard-btn{
  display:none;
}

body.purchase-trial .qr-pay-btn{
  display:none;
}

body.purchase-trial .dashboard-btn{
  display:inline-flex;
}

.qr-modal{
  position:fixed;
  inset:0;
  z-index:140;
  display:none;
}

.qr-modal.active{
  display:block;
}

.qr-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,8,28,.64);
  backdrop-filter:blur(6px);
}

.qr-dialog{
  position:relative;
  width:min(420px,calc(100% - 28px));
  margin:8vh auto;
  background:rgba(255,255,255,.97);
  border:1px solid rgba(76,42,134,.12);
  border-radius:28px;
  padding:28px;
  box-shadow:0 40px 100px rgba(0,0,0,.28);
  text-align:center;
  animation:supportIn .22s ease;
}

.qr-close{
  position:absolute;
  top:14px;
  right:14px;
  width:38px;
  height:38px;
  border:0;
  border-radius:14px;
  background:#f5efff;
  color:#4c2a86;
  font-size:16px;
  cursor:pointer;
  transition:.2s;
}

.qr-close:hover{
  background:#4c2a86;
  color:#fff;
}

.qr-dialog h3{
  margin:0 0 8px;
  color:#24113f;
  font-size:25px;
}

.qr-dialog p{
  margin:0 0 18px;
  color:#746987;
  font-size:14px;
  line-height:1.65;
}

.qr-box{
  width:230px;
  height:230px;
  margin:0 auto 18px;
  padding:14px;
  border-radius:22px;
  background:#fff;
  border:1px solid rgba(76,42,134,.12);
  box-shadow:0 18px 40px rgba(76,42,134,.10);
}

.qr-box svg{
  width:100%;
  height:100%;
}

.qr-amount{
  padding:13px 15px;
  border-radius:16px;
  background:#f7f2ff;
  border:1px solid rgba(76,42,134,.10);
  color:#24113f;
  font-size:14px;
  font-weight:700;
}

.qr-amount strong{
  color:#4c2a86;
  font-size:22px;
}

@media(max-width:640px){
  .final-action-group{
    flex-direction:column;
    width:100%;
  }

  .final-action-group .btn{
    width:100%;
  }
}


/* ===== Validation ===== */
.field-error{
  border-color:#ef4444 !important;
  box-shadow:0 0 0 4px rgba(239,68,68,.10) !important;
}

.error-text{
  margin-top:6px;
  color:#ef4444;
  font-size:12px;
  font-weight:600;
}

.role-error{
  border:1px solid rgba(239,68,68,.25);
  border-radius:20px;
  padding:12px;
  background:rgba(239,68,68,.03);
}


/* ===== Responsive Mobile: Form Only ===== */
@media(max-width:980px){
  html,
  body{
    min-height:100%;
    width:100%;
    overflow-x:hidden;
  }

  body{
    display:block;
    padding:14px;
    background:
      radial-gradient(circle at 12% 8%,rgba(253,184,33,.16),transparent 24%),
      radial-gradient(circle at 92% 12%,rgba(109,63,209,.14),transparent 30%),
      linear-gradient(135deg,#fbf8ff 0%,#ffffff 48%,#f5efff 100%);
  }

  .signup-shell{
    width:100%;
    max-width:620px;
    min-height:auto;
    max-height:none;
    margin:0 auto;
    display:block;
    border-radius:28px;
    overflow:visible;
    box-shadow:0 18px 48px rgba(36,17,63,.12);
  }

  .brand-side{
    display:none !important;
  }

  .form-side{
    width:100%;
    max-height:none;
    overflow:visible;
    padding:28px 24px;
    border-radius:28px;
  }

  .form-header{
    flex-direction:column;
    gap:10px;
    margin-bottom:20px;
  }

  .login-link{
    padding-top:0;
    white-space:normal;
  }

  .steps{
    grid-template-columns:1fr;
    gap:10px;
  }

  .step-card{
    padding:12px;
  }
}

@media(max-width:640px){
  body{
    padding:10px;
  }

  .signup-shell{
    width:100%;
    max-width:none;
    border-radius:22px;
  }

  .form-side{
    padding:22px 16px;
    border-radius:22px;
  }

  .form-title .mini{
    font-size:12px;
    padding:6px 11px;
  }

  .form-title h2{
    font-size:24px;
    line-height:1.3;
  }

  .form-title p{
    font-size:13px;
  }

  .social-row,
  .form-grid,
  .role-grid,
  .business-row,
  .purchase-grid,
  .summary-grid,
  .support-grid{
    grid-template-columns:1fr !important;
  }

  .field,
  .field.full,
  .business-row,
  .role-card.other-role{
    grid-column:1/-1;
  }

  .field input,
  .field select,
  .field textarea{
    font-size:16px;
  }

  .role-card{
    min-height:auto;
    padding:13px 13px 13px 42px;
  }

  .role-card.other-role{
    flex-wrap:wrap;
  }

  .role-other-input{
    width:100%;
    margin-left:0;
  }

  .purchase-card{
    padding:16px;
  }

  .package-box{
    flex-direction:column;
    align-items:flex-start;
  }

  .package-price{
    text-align:left;
  }

  .summary-card{
    padding:16px;
    border-radius:20px;
  }

  .summary-head,
  .actions,
  .final-action-group{
    flex-direction:column;
    align-items:stretch;
  }

  .actions{
    gap:10px;
  }

  .btn,
  .final-action-group .btn{
    width:100%;
  }

  .summary-item{
    flex-direction:column;
    gap:2px;
  }

  .summary-item strong{
    text-align:left;
  }

  .help-floating{
    right:12px;
    bottom:12px;
  }

  .help-toggle{
    width:52px;
    height:52px;
    border-radius:18px;
  }

  .help-menu{
    width:calc(100vw - 24px);
    right:0;
  }

  .support-dialog,
  .qr-dialog{
    width:calc(100% - 24px);
    margin:4vh auto;
    padding:22px;
    border-radius:22px;
  }
}

@media(max-width:380px){
  .form-side{
    padding:20px 14px;
  }

  .step-card{
    gap:10px;
  }

  .step-number{
    width:30px;
    height:30px;
    border-radius:12px;
  }

  .step-text b{
    font-size:12px;
  }

  .step-text span{
    font-size:11px;
  }
}



/* ===== Mobile Horizontal Step Tabs Update ===== */
@media(max-width:640px){
  .steps{
    display:flex !important;
    flex-direction:row !important;
    grid-template-columns:none !important;
    gap:10px;
    overflow-x:auto;
    overflow-y:hidden;
    padding:2px 2px 8px;
    margin-left:-2px;
    margin-right:-2px;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }

  .steps::-webkit-scrollbar{
    display:none;
  }

  .step-card{
    flex:0 0 205px;
    min-width:205px;
    max-width:205px;
    scroll-snap-align:start;
    padding:11px 12px;
  }

  .step-number{
    width:32px;
    height:32px;
    border-radius:13px;
  }

  .step-text b{
    font-size:12px;
    white-space:nowrap;
  }

  .step-text span{
    font-size:11px;
    white-space:nowrap;
  }
}

@media(max-width:380px){
  .step-card{
    flex-basis:190px;
    min-width:190px;
    max-width:190px;
  }
}



/* ===== Center Layout Safety Override =====
   ใช้สำหรับให้หน้า register อยู่กึ่งกลาง ไม่ชิดซ้าย โดยไม่เปลี่ยนดีไซน์เดิม */
.signup-shell{
  margin-left:auto;
  margin-right:auto;
}

@media(max-width:980px){
  .signup-shell{
    margin-left:auto;
    margin-right:auto;
  }
}
