.sf-auth{
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 20px;
  background: var(--bg);
  color: var(--text);
  position: relative;
  overflow:hidden;
}

.sf-auth::after{
  content:'';
  position: fixed;
  top:-50%;
  left:-50%;
  width:200%;
  height:200%;
  background: radial-gradient(circle, rgba(37, 99, 235, .08) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: moveGrid 20s linear infinite;
  z-index: 0;
  pointer-events:none;
}

@keyframes moveGrid{
  0%{ transform: translate(0,0); }
  100%{ transform: translate(50px,50px); }
}

.sf-wrap{
  width: 100%;
  max-width: 780px;
  position: relative;
  z-index: 2;
}

.sf-card{
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 60px 44px;
  box-shadow: var(--shadow);
  position: relative;
  overflow:hidden;
}

/* .sf-card::before{
  content:'';
  position:absolute;
  inset:-120px;
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, .14) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(37, 99, 235, .08) 0%, transparent 60%);
  opacity:.9;
  z-index:0;
} */

.sf-card > *{ position: relative; z-index: 1; }

/* Progress */
.progress-bar{
  position:absolute;
  bottom:0;
  left:0;
  height: 4px;
  background: linear-gradient(90deg, rgba(37, 99, 235, .35) 0%, rgba(37, 99, 235, .95) 100%);
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
  width:0%;
  z-index: 3;
}
.progress-text{
  position:absolute;
  bottom: 18px;
  right: 44px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  z-index: 3;
}

/* Intro */
.intro-screen{
  text-align:center;
  animation: fadeIn .8s ease-out;
}

.sf-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, .18);
  background: var(--accent-weak);
  color: var(--text);
  font-weight: 800;
  font-size: 13px;
}

.intro-screen h1{
  font-size: 34px;
  margin: 18px 0 12px;
  font-weight: 900;
  letter-spacing: -1px;
}
.intro-screen p{
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 8px;
}
.intro-screen .highlight{
  font-weight: 700;
  color: var(--text);
}

.sf-actions{
  margin-top: 36px;
  display:flex;
  flex-direction: column;
  gap: 14px;
  align-items:center;
}

.alt-link{
  color: var(--accent);
  text-decoration:none;
  font-weight: 600;
  font-size: 14px;
}
.alt-link:hover{ opacity: .7; }

/* Buttons */
.start-button{
  padding: 16px 48px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 10px 40px rgba(37, 99, 235, .24);
  display:inline-flex;
  align-items:center;
  gap: 10px;
  position: relative;
  overflow:hidden;
}
.start-button::before{
  content:'';
  position:absolute;
  top:0; left:-110%;
  width:100%; height:100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transition: left .5s;
}
.start-button:hover::before{ left:110%; }
.start-button:hover{
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 54px rgba(37, 99, 235, .28);
}

.next-button{
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all .3s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  position: relative;
  overflow:hidden;
}
.next-button:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, .22);
}
.enter-hint{
  display:inline-block;
  margin-left: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* Form Steps */
.form-step{ display:none; animation: slideIn .6s cubic-bezier(0.4,0,0.2,1); }
.form-step.active{ display:block; }

.question-number{
  color: var(--accent);
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 10px;
  display:inline-block;
  opacity: .9;
}

.question-label{
  font-size: 28px;
  margin-bottom: 10px;
  font-weight: 900;
  letter-spacing: -.6px;
  display:block;
}

.required{ color: #ef4444; }
.optional{ color: var(--muted); font-size: 14px; font-weight: 600; }

.help-text{
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 26px;
  line-height: 1.6;
}

.input-wrapper{ position: relative; margin-bottom: 24px; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus{
  width: 100%;
  padding: 16px 18px;
  font-size: 18px;
  border: none;
  border-bottom: 2px solid var(--border);
  background: transparent;
  outline: none;
  color: var(--text);
  transition: border-color .25s ease;
}

input::placeholder{ color: var(--muted); }
input:focus{ border-bottom-color: var(--accent); }
input.error{ border-bottom-color: #ef4444 !important; }

.error-message{
  color: #ef4444;
  font-size: 14px;
  margin-top: 10px;
  display:none;
  animation: fadeIn .3s ease;
}
.error-message.show{ display:block; }

/* Password wrap */
.pw-wrap{
  display:flex;
  gap: 10px;
  align-items:center;
  border-bottom: 2px solid var(--border);
}
.pw-wrap input{
  border-bottom: none;
  flex: 1;
  padding-left: 0;
}
.pw-toggle{
  background: var(--accent-weak);
  border: 1px solid rgba(37, 99, 235, .25);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  cursor:pointer;
  font-weight: 800;
}
.pw-toggle:hover{ opacity:.85; }

/* Password meter */
.pw-meter{
  margin-top: 12px;
  height: 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .12);
  overflow:hidden;
}
.pw-meter span{
  display:block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(37, 99, 235, .8) 0%, rgba(37, 99, 235, .35) 100%);
  transition: width .25s ease;
}
.pw-hint{
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

/* Phone */
.phone-input-wrapper{
  display:flex;
  align-items:center;
  gap: 10px;
  border-bottom: 2px solid var(--border);
  transition: border-color .25s ease;
}
.phone-input-wrapper:focus-within{ border-bottom-color: var(--accent); }
.phone-input-wrapper input{ border-bottom: none; flex: 1; }

.country-selector{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 10px;
  cursor:pointer;
  border-radius: 10px;
  transition: background .2s ease;
  position: relative;
}
.country-selector:hover{ background: var(--accent-weak); }
.country-flag{ font-size: 22px; }
.country-code{ font-size: 15px; color: var(--muted); font-weight: 700; }
.dropdown-arrow{ font-size: 11px; color: var(--muted); transition: transform .3s ease; }
.country-selector.active .dropdown-arrow{ transform: rotate(180deg); }

.country-dropdown{
  position:absolute;
  top: 110%;
  left: 0;
  width: 280px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow:hidden;
  display:none;
  z-index: 9999;
}
.country-dropdown.show{ display:block; animation: slideDown .22s ease; }

.country-option{
  padding: 12px 14px;
  display:flex;
  align-items:center;
  gap: 12px;
  cursor:pointer;
  transition: background .2s ease;
}
.country-option:hover{ background: var(--accent-weak); }
.country-option .flag{ font-size: 22px; }
.country-option .name{ font-size: 14px; font-weight: 800; color: var(--text); }
.country-option .code{ font-size: 13px; color: var(--muted); font-weight: 700; }

@keyframes slideDown{
  from{ opacity:0; transform: translateY(-10px); }
  to{ opacity:1; transform: translateY(0); }
}

/* Logo upload */
.logo-upload-wrapper{ margin-top: 10px; }
.logo-input-area{
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 34px 18px;
  text-align:center;
  background: var(--card);
  transition: all .25s ease;
  cursor: pointer;
  position: relative;
}
.logo-input-area:hover{
  border-color: rgba(37, 99, 235, .35);
  background: rgba(37, 99, 235, .06);
}
.logo-input-area.dragover{
  border-color: rgba(37, 99, 235, .55);
  background: rgba(37, 99, 235, .10);
}
.logo-placeholder{ display:flex; flex-direction: column; align-items:center; gap: 10px; }
.upload-icon{ width: 46px; height: 46px; color: var(--muted); }
.logo-placeholder p{ margin:0; font-weight: 900; color: var(--text); }
.logo-placeholder span{ font-size: 14px; color: var(--muted); }

.logo-file-input{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}

.logo-preview{
  margin-top: 18px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  display:flex;
  align-items:center;
  gap: 12px;
}

#logoPreviewImg{
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.remove-logo-btn{
  margin-left:auto;
  padding: 8px 12px;
  background: var(--accent-weak);
  color: var(--text);
  border: 1px solid rgba(37, 99, 235, .22);
  border-radius: 10px;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap: 6px;
  font-weight: 900;
  font-size: 12px;
}
.remove-logo-btn:hover{ opacity:.85; }
.remove-logo-btn svg{ width: 14px; height: 14px; }

/* Logo actions */
.logo-actions{
  display:flex;
  gap: 12px;
  justify-content:center;
  margin-top: 18px;
}
.skip-button{
  padding: 12px 24px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor:pointer;
  font-weight: 900;
}
.skip-button:hover{ background: var(--accent-weak); }

/* Confirmation */
.confirmation-step{ text-align:center; padding-top: 10px; }
.confirmation-content h3{
  font-size: 26px;
  font-weight: 1000;
  margin-bottom: 12px;
}
.confirmation-content .highlight{
  color: var(--muted);
  max-width: 62ch;
  margin: 0 auto;
  line-height: 1.7;
}

.summary-card{
  margin-top: 26px;
  text-align:left;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
}
.summary-card h4{
  font-size: 16px;
  font-weight: 1000;
  margin-bottom: 10px;
}
.summary-item{
  display:flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.summary-item:last-child{ border-bottom:none; }
.summary-item span{ color: var(--muted); font-size: 13px; }
.summary-item strong{ color: var(--text); font-weight: 900; font-size: 13px; text-align:right; }

.plan-grid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.plan-card{
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 14px;
  padding: 16px 14px;
  cursor: pointer;
  display:flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.plan-card.featured{
  border-color: rgba(37, 99, 235, .35);
  box-shadow: var(--shadow);
}
.plan-header{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.plan-card input{
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, .35);
  display:inline-block;
  position: relative;
  margin-bottom: 6px;
}
.plan-card input::after{
  content:'';
  position:absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity .2s ease;
}
.plan-card:has(input:checked){
  border-color: rgba(37, 99, 235, .65);
  background: rgba(37, 99, 235, .10);
  transform: translateY(-2px);
}
.plan-card:has(input:checked) input{
  border-color: var(--accent);
}
.plan-card:has(input:checked) input::after{
  opacity: 1;
}
.plan-title{
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
}
.plan-price{
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
}
.plan-desc{
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.plan-features{
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display:flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.plan-features li::before{
  content: '•';
  margin-right: 8px;
  color: rgba(37, 99, 235, .55);
}

.submit-button{
  margin-top: 22px;
  padding: 16px 36px;
  border-radius: 12px;
  border: none;
  cursor:pointer;
  font-weight: 1000;
  font-size: 16px;
  color:#fff;
  background: var(--accent);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 16px 54px rgba(37, 99, 235, .24);
}
.submit-button:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 70px rgba(37, 99, 235, .28);
}

.backline{ margin-top: 18px; }
.back-link{
  background: transparent;
  border: none;
  cursor:pointer;
  color: var(--accent);
  font-weight: 900;
}
.back-link:hover{ opacity:.7; }

/* Loading */
.loading-screen{
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display:flex;
  align-items:center;
  justify-content:center;
}
.loading-screen.active{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.loading-spinner{
  text-align:center;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.spinner{
  width: 52px;
  height: 52px;
  border: 4px solid rgba(37, 99, 235, .25);
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 18px;
}
.loading-spinner p{
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

@keyframes spin{
  0%{ transform: rotate(0deg); }
  100%{ transform: rotate(360deg); }
}

/* Success */
.success-screen{
  text-align:center;
  animation: scaleIn .6s cubic-bezier(0.4,0,0.2,1);
}
.success-screen h2{
  font-size: 30px;
  font-weight: 1000;
  margin-top: 18px;
}
.success-screen p{
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}
.success-link{
  display:inline-block;
  margin-top: 18px;
  font-weight: 1000;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 12px;
}
.success-link:hover{ background: var(--accent-weak); }

.checkmark{
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--accent-weak);
  border: 1px solid rgba(37, 99, 235, .22);
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  animation: pop .5s cubic-bezier(0.4,0,0.2,1);
}
.checkmark svg{
  width: 48px;
  height: 48px;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawCheck .6s ease-out .3s forwards;
}

@keyframes fadeIn{ from{opacity:0;} to{opacity:1;} }
@keyframes slideIn{ from{opacity:0; transform: translateX(30px);} to{opacity:1; transform: translateX(0);} }
@keyframes scaleIn{ from{opacity:0; transform: scale(.96);} to{opacity:1; transform: scale(1);} }
@keyframes pop{ 0%{transform:scale(0);} 50%{transform:scale(1.1);} 100%{transform:scale(1);} }
@keyframes drawCheck{ to{ stroke-dashoffset:0; } }

/* Responsive */
@media (max-width: 768px){
  .sf-card{ padding: 42px 26px; }
  .question-label{ font-size: 22px; }
  .intro-screen h1{ font-size: 26px; }
  .progress-text{ right: 26px; }
}

@media (max-width: 480px){
  .logo-actions{ flex-direction: column; }
  .start-button{ width: 100%; justify-content:center; }
  .next-button{ width: 100%; }
  .submit-button{ width: 100%; justify-content:center; }
  .plan-grid{ grid-template-columns: 1fr; }
}




