.sp-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}
.sp-wrap h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.sp-wrap h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 28px 0 10px;
}
.sp-wrap p,
.sp-wrap li {
  color: #444;
  line-height: 1.65;
  font-size: 0.92rem;
  margin-bottom: 12px;
}
.sp-wrap ul {
  padding-left: 1.2rem;
}
.sp-card {
  background: #fff;
  border: 1.5px solid #eee;
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
}
.sp-form label {
  display: block;
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 6px;
  color: #333;
}
.sp-form input,
.sp-form textarea,
.sp-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.sp-form textarea {
  min-height: 140px;
  resize: vertical;
}
.sp-btn {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 700;
  cursor: pointer;
}
.sp-btn:hover {
  background: var(--orange);
}
.sp-btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}
.sp-btn.is-loading {
  position: relative;
  padding-left: 40px;
}
.sp-btn.is-loading::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spSpin 0.7s linear infinite;
}
.sp-btn--danger {
  background: #b91c1c;
}
.sp-btn--danger:hover {
  background: #991b1b;
}
.sp-success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.sp-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.sp-hero {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sp-hero h1 {
  margin: 0 0 6px;
}
.sp-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(135deg, #111, #444);
  flex: 0 0 auto;
}
.sp-meta {
  min-width: 0;
}
.sp-meta .sc-muted {
  margin: 0 0 10px;
}
.sp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sp-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 4px 10px;
  color: #374151;
  background: #f9fafb;
}
a.sp-badge--link {
  text-decoration: none;
  border-color: #ffd6b3;
  background: #fff3eb;
  color: var(--orange);
}
a.sp-badge--link:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.sp-section h2 {
  margin-top: 0;
}
.sp-danger {
  border-color: #fecaca;
  background: #fffafa;
}

@keyframes spSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .sp-wrap {
    padding: 24px 14px 40px;
  }
  .sp-card {
    padding: 18px;
  }
  .sp-btn {
    width: 100%;
  }
  .sp-hero {
    align-items: flex-start;
  }
}

/* ── Auth pages — shell aligned with cart / upgraded store ───────── */
.auth-page {
  background: #f8f8f8;
  padding-bottom: 48px;
  border-top: 1px solid #f0f0f0;
  min-height: 42vh;
}

.auth-page .store-container {
  max-width: var(--store-max-width, 1400px);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

.auth-page .section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 0 18px;
  flex-wrap: wrap;
  border: none;
}

.auth-page .section-heading-title {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 900;
  color: #0a0a0a;
  letter-spacing: -0.3px;
  margin: 0;
}

.auth-page .section-heading-meta {
  font-size: 0.8rem;
  color: #999;
  margin: 0;
}

.auth-section-heading {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 12px;
}

.auth-section-meta {
  line-height: 1.45;
  max-width: 36rem;
}

.auth-card {
  max-width: 460px;
  margin: 0 auto;
  background: #fff;
  border: 1.5px solid #ededed;
  border-radius: 14px;
  padding: 28px 24px 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.auth-error,
.auth-success {
  max-width: 460px;
  margin: 0 auto 16px;
}

.auth-hint {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}

.auth-hint--lead {
  margin-top: 0;
}

.auth-mail-notice {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: #666;
  line-height: 1.5;
}

.auth-page .pw-wrap {
  position: relative;
}

.auth-page .pw-wrap input {
  padding-right: 42px;
}

.auth-page .pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #888;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-page .pw-toggle:hover {
  background: #f5f5f5;
  color: #444;
}

.auth-forgot-wrap {
  margin: -4px 0 14px;
  text-align: right;
  font-size: 0.88rem;
}

.auth-link {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-submit-btn {
  width: 100%;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #888;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: lowercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e5e5;
}

.auth-google-btn {
  width: 100%;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.auth-google-icon {
  color: #4285f4;
}

.auth-footer {
  margin: 22px 0 0;
  font-size: 0.88rem;
  color: #444;
  text-align: center;
}

.auth-page .sp-form input {
  border-color: #e8e6e3;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.auth-page .sp-form input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--orange) 55%, #ccc);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 18%, transparent);
}

.sc-btn.is-loading {
  position: relative;
  padding-left: 40px;
  pointer-events: none;
}

.sc-btn.is-loading::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spSpin 0.7s linear infinite;
}

@media (max-width: 640px) {
  .auth-card {
    padding: 22px 18px 20px;
  }
}
