*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  background: #0D0D0D;
}

body {
  font-family: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: transparent;
  color: #F5F5DC;
  min-height: 100vh;
}

a { color: #FFD700; text-decoration: none; }
a:hover { text-decoration: underline; }

header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,215,0,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #FFD700, #E6C200);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.secure-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #888;
}

.page-wrap {
  max-width: 680px;
  margin: 48px auto;
  padding: 0 20px 80px;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,215,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: #666;
  transition: all 0.3s;
}
.step.active .step-circle {
  background: linear-gradient(135deg, #FFD700, #E6C200);
  border-color: #FFD700;
  color: #0D0D0D;
}
.step.done .step-circle {
  background: #4CAF50;
  border-color: #4CAF50;
  color: #fff;
}
.step-label {
  font-size: 0.75rem;
  color: #666;
  white-space: nowrap;
}
.step.active .step-label { color: #FFD700; }
.step.done .step-label { color: #4CAF50; }
.step-line {
  width: 80px;
  height: 2px;
  background: rgba(255,215,0,0.15);
  margin-bottom: 22px;
}
.step-line.done { background: #4CAF50; }

.plan-banner {
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.plan-banner-left { display: flex; flex-direction: column; gap: 4px; }
.plan-banner-name { font-size: 1.1rem; font-weight: 700; color: #FFD700; }
.plan-banner-desc { font-size: 0.875rem; color: #999; }
.plan-banner-price { font-size: 1.75rem; font-weight: 800; color: #fff; }
.plan-banner-price span { font-size: 0.9rem; color: #999; font-weight: 400; }

.card {
  background: rgba(59,47,47,0.7);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 16px;
  padding: 32px;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #fff;
}
.subtitle {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
label {
  font-size: 0.875rem;
  color: #ccc;
  font-weight: 500;
}
input, select, textarea {
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #FFD700;
  background: rgba(255,215,0,0.05);
}
input::placeholder { color: #555; }
select option { background: #3B2F2F; }

.field-error {
  font-size: 0.8rem;
  color: #ff6b6b;
  display: none;
}
.field.has-error input,
.field.has-error select { border-color: #ff6b6b; }
.field.has-error .field-error { display: block; }

.btn-primary {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #FFD700, #E6C200);
  color: #0D0D0D;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,215,0,0.4);
}
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,215,0,0.3);
  color: #FFD700;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: #FFD700; }

.review-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.review-row:last-child { border-bottom: none; }
.review-label { font-size: 0.875rem; color: #888; }
.review-value { font-size: 0.95rem; color: #fff; text-align: right; max-width: 60%; }

.divider {
  height: 1px;
  background: rgba(255,215,0,0.1);
  margin: 24px 0;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}
.total-label { font-size: 1rem; font-weight: 600; }
.total-amount { font-size: 1.75rem; font-weight: 800; color: #FFD700; }
.total-period { font-size: 0.85rem; color: #888; }

.trust-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #666;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.edit-link {
  font-size: 0.8rem;
  color: #FFD700;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.edit-link:hover { text-decoration: underline; }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #0D0D0D;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-box {
  background: rgba(255,107,107,0.1);
  border: 1px solid rgba(255,107,107,0.3);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #ff9494;
  margin-top: 12px;
  display: none;
}

.hidden { display: none !important; }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .step-line { width: 40px; }
  .plan-banner { flex-direction: column; }
}

/* SFS Background Canvas layering */
#sfs-bg-canvas { position:fixed;top:0;left:0;width:100%;height:100%;z-index:0;pointer-events:none; }
header,main,.checkout-wrapper,.container { position:relative;z-index:1; }
