/* ══════════════════════════════════════════════════
   Auth Pages — Sign In / Sign Up / Setup / Account
   Matches InBloom warm design system
   ══════════════════════════════════════════════════ */

/* ── Nav Sign In button ── */
.nav-signin-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.25rem;
  background: #1a1a2e;
  color: #ede7d9 !important;
  border: 3px solid #0d0d1a;
  border-radius: 10px;
  font-family: 'Moslin', 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-signin-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(26, 26, 46, 0.25);
}

/* ── Page base ── */
body.auth-page {
  background: #c5b684 !important;
  background-color: #c5b684 !important;
  background-image: none !important;
  position: relative;
}
body.auth-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('/images/shop/backgroundoverlay.webp');
  background-repeat: repeat;
  background-size: 1600px;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}
body.auth-page .main {
  padding: 2.5rem;
  max-width: 100% !important;
  position: relative;
  z-index: 1;
}

/* ── Centered auth container ── */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 180px);
  padding: 2rem;
}

/* ── Auth card ── */
.auth-card {
  max-width: 480px;
  width: 100%;
  padding: 2.5rem;
  background: #ede7d9;
  border: 5px solid #1a1a2e;
  border-radius: 18px;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.25);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute;
  inset: -150%;
  width: 400%;
  height: 400%;
  background-image: url('/images/shop/cardoverlay.webp');
  background-repeat: repeat;
  background-size: 1400px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
  transform: rotate(-45deg);
}
.auth-card > * {
  position: relative;
  z-index: 1;
}
.auth-card.auth-card--wide {
  max-width: 560px;
  text-align: left;
}
.auth-card.auth-card--wide .auth-card__title {
  text-align: center;
}
.auth-card.auth-card--wide .auth-card__subtitle {
  text-align: center;
}

/* ── Typography ── */
.auth-card__title {
  font-family: 'Moslin', 'IBM Plex Mono', monospace;
  font-size: 2.2rem;
  color: #1a1a2e;
  margin: 0 0 0.4rem 0;
  letter-spacing: 0.02em;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
}
.auth-card__subtitle {
  color: #7a7060;
  margin: 0 0 1.25rem 0;
  font-size: 0.95rem;
  font-family: 'IBM Plex Mono', monospace;
  line-height: 1.4;
}

/* Override Clerk's default styling to match InBloom */
.auth-clerk-mount {
  width: 100%;
  min-height: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden; /* clip the Clerk branding badge */
}
.auth-clerk-mount .cl-rootBox {
  width: 100% !important;
}
.auth-clerk-mount .cl-card {
  box-shadow: none !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
}
/* Hide Clerk's "Sign in / to continue to..." header */
.auth-clerk-mount .cl-header,
.auth-clerk-mount .cl-headerTitle,
.auth-clerk-mount .cl-headerSubtitle {
  display: none !important;
}
/* Taller social buttons */
.auth-clerk-mount .cl-socialButtonsBlockButton {
  min-height: 52px !important;
  font-size: 0.95rem !important;
}
/* Hide Clerk footer links and divider */
.auth-clerk-mount .cl-footerAction__signIn,
.auth-clerk-mount .cl-footerAction__signUp,
.auth-clerk-mount .cl-footer,
.auth-clerk-mount .cl-dividerRow {
  display: none !important;
}
/* Force full width on Clerk internal containers and remove excess padding */
.auth-clerk-mount .cl-main,
.auth-clerk-mount .cl-socialButtons,
.auth-clerk-mount .cl-form {
  width: 100% !important;
  gap: 0.75rem !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── Auth footer link ── */
.auth-footer {
  margin-top: 0.75rem;
  color: #7a7060;
  font-size: 0.9rem;
  font-family: 'IBM Plex Mono', monospace;
}
.auth-footer a {
  color: #1a1a2e;
  text-decoration: none;
  font-weight: 700;
}
.auth-footer a:hover {
  text-decoration: underline;
}

/* ── Error / notice alerts ── */
.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'IBM Plex Mono', monospace;
}
.auth-alert--error {
  background: #fef2f2;
  border: 2px solid #ef4444;
  color: #991b1b;
}
.auth-alert--notice {
  background: #fef3c7;
  border: 2px solid #fbbf24;
  color: #92400e;
}
.auth-alert--success {
  background: #f0fdf4;
  border: 2px solid #22c55e;
  color: #166534;
}

/* ── Auth Modal ── */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.auth-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.auth-modal {
  background: #ede7d9;
  border: 5px solid #1a1a2e;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  width: 90%;
  max-width: 420px;
  padding: 2rem;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.2s ease;
  position: relative;
  overflow: hidden;
}
.auth-modal-overlay.active .auth-modal {
  transform: translateY(0);
}
.auth-modal::before {
  content: '';
  position: absolute;
  inset: -150%;
  width: 400%;
  height: 400%;
  background-image: url('/images/shop/cardoverlay.webp');
  background-repeat: repeat;
  background-size: 1400px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
  transform: rotate(-45deg);
}
.auth-modal > * {
  position: relative;
  z-index: 1;
}
.auth-modal__title {
  font-family: 'Moslin', 'IBM Plex Mono', monospace;
  font-size: 1.8rem;
  color: #1a1a2e;
  margin: 0 0 1rem 0;
  line-height: 1.1;
}
.auth-modal__text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  color: #7a7060;
  margin: 0 0 1.75rem 0;
  line-height: 1.5;
}
.auth-modal__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ══════════════════════════════════════════════════
   Setup Page — Username + Connect Accounts
   ══════════════════════════════════════════════════ */

/* ── Step indicator ── */
.setup-steps {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.setup-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  transition: background 0.3s ease, transform 0.3s ease;
}
.setup-step-dot.active {
  background: #1a1a2e;
  transform: scale(1.3);
}
.setup-step-dot.completed {
  background: #22c55e;
}

/* ── Username form ── */
.setup-username-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}
.setup-input-wrapper {
  position: relative;
}
.setup-input {
  width: 100%;
  padding: 0.875rem 3rem 0.875rem 1rem;
  background: #f5f0e6;
  border: 3px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  color: #1a1a2e;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.05rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
.setup-input:focus {
  border-color: #1a1a2e;
  box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.15);
}
.setup-input.valid {
  border-color: #22c55e;
}
.setup-input.valid:focus {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}
.setup-input.invalid {
  border-color: #ef4444;
}
.setup-input.invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}
.setup-input::placeholder {
  color: #a09888;
}

.setup-input-status {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  line-height: 1;
}

.setup-input-hint {
  font-size: 0.8rem;
  color: #7a7060;
  font-family: 'IBM Plex Mono', monospace;
  margin: 0;
}
.setup-input-hint.error {
  color: #dc2626;
}

/* ── Submit button ── */
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  font-family: 'Moslin', 'IBM Plex Mono', monospace;
  font-size: 1.1rem;
  text-decoration: none;
  cursor: pointer;
  border: 4px solid;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.auth-btn:hover:not(:disabled) {
  transform: scale(1.03);
}
.auth-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.auth-btn--primary {
  background: #1a1a2e;
  border-color: #0d0d1a;
  color: #fff;
}
.auth-btn--primary:hover:not(:disabled) {
  box-shadow: 0 4px 15px rgba(26, 26, 46, 0.3);
}

.auth-btn--discord {
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
  border-color: #19094f;
  color: white;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}
.auth-btn--discord:hover:not(:disabled) {
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.auth-btn--twitch {
  background: linear-gradient(135deg, #9146ff 0%, #772ce8 100%);
  border-color: #39176a;
  color: white;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}
.auth-btn--twitch:hover:not(:disabled) {
  box-shadow: 0 4px 15px rgba(145, 70, 255, 0.4);
}

.auth-btn--outline {
  background: transparent;
  border-color: rgba(0,0,0,0.15);
  color: #7a7060;
}
.auth-btn--outline:hover:not(:disabled) {
  border-color: rgba(0,0,0,0.3);
  color: #1a1a2e;
}

.auth-btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.95rem;
  border-width: 3px;
}

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

/* ══════════════════════════════════════════════════
   Connect Accounts Step
   ══════════════════════════════════════════════════ */
.connect-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.connect-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #f5f0e6;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 14px;
  transition: border-color 0.2s ease;
}
.connect-item.connected {
  border-color: #22c55e;
  background: #f0fdf4;
}
.connect-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.connect-item__icon--discord {
  background: #5865f2;
  color: white;
}
.connect-item__icon--twitch {
  background: #9146ff;
  color: white;
}
.connect-item__info {
  flex: 1;
}
.connect-item__label {
  font-family: 'Moslin', 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a2e;
}
.connect-item__username {
  font-size: 0.85rem;
  color: #7a7060;
  font-family: 'IBM Plex Mono', monospace;
}
.connect-item__status {
  font-size: 1.2rem;
}
.connect-item__action {
  font-size: 0.8rem;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  color: #1a1a2e;
  background: none;
  border: 2px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}
.connect-item__action:hover {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.25);
}
.connect-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

/* ══════════════════════════════════════════════════
   Account Page
   ══════════════════════════════════════════════════ */
.account-grid {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.account-section {
  background: #ede7d9;
  border: 4px solid rgba(0,0,0,0.15);
  border-radius: 18px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}
.account-section::before {
  content: '';
  position: absolute;
  inset: -150%;
  width: 400%;
  height: 400%;
  background-image: url('/images/shop/cardoverlay.webp');
  background-repeat: repeat;
  background-size: 1400px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
  transform: rotate(-45deg);
}
.account-section > * {
  position: relative;
  z-index: 1;
}
.account-section__title {
  font-family: 'Moslin', 'IBM Plex Mono', monospace;
  font-size: 1.3rem;
  color: #1a1a2e;
  margin: 0 0 1.25rem 0;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
}
.account-section__subtitle {
  font-family: 'Moslin', 'IBM Plex Mono', monospace;
  font-size: 1.05rem;
  color: #1a1a2e;
  margin: 0 0 1rem 0;
}
.account-section__divider {
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 1.5rem 0;
}

/* Profile header */
.account-profile {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.account-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #1a1a2e;
  object-fit: cover;
}
.account-profile__info {
  flex: 1;
}
.account-profile__name {
  font-family: 'Moslin', 'IBM Plex Mono', monospace;
  font-size: 1.4rem;
  color: #1a1a2e;
  margin: 0;
}
.account-profile__email {
  font-size: 0.85rem;
  color: #7a7060;
  font-family: 'IBM Plex Mono', monospace;
  margin: 0;
}
.account-change-username-btn {
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Account field row */
.account-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.account-field:last-child {
  border-bottom: none;
}
.account-field__label {
  font-size: 0.85rem;
  color: #7a7060;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.account-field__value {
  font-size: 0.95rem;
  color: #1a1a2e;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
}
.account-field__action {
  font-size: 0.85rem;
  color: #1a1a2e;
  text-decoration: none;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.account-field__action:hover {
  background: rgba(0,0,0,0.06);
}

/* ══════════════════════════════════════════════════
   Social Links Form (Account page)
   ══════════════════════════════════════════════════ */
.social-links-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.social-link-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.social-link-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-link-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.social-link-fields {
  flex: 1;
  display: flex;
  gap: 0.5rem;
}

.social-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: #f5f0e6;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: #1a1a2e;
  outline: none;
  transition: border-color 0.15s ease;
}

.social-input:focus {
  border-color: #1a1a2e;
}

.social-input::placeholder {
  color: #a09888;
  font-size: 0.75rem;
}

.social-input-name {
  max-width: 120px;
}

/* Mobile: stack the inputs vertically */
@media (max-width: 560px) {
  .social-link-row {
    flex-wrap: wrap;
  }
  .social-link-fields {
    flex-direction: column;
    width: 100%;
  }
  .social-input-name {
    max-width: 100%;
  }
}

/* ══════════════════════════════════════════════════
   Toggle Switch (slide toggle)
   ══════════════════════════════════════════════════ */
.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-switch__slider {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.toggle-switch__slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  bottom: 3px;
  background: #7a7060;
  border-radius: 50%;
  transition: transform 0.25s ease, background 0.25s ease;
}

.toggle-switch input:checked + .toggle-switch__slider {
  background: rgba(34, 197, 94, 0.25);
}

.toggle-switch input:checked + .toggle-switch__slider::before {
  transform: translateX(18px);
  background: #22c55e;
}

/* Visibility toggle row (used in Connected Accounts & Privacy) */
.visibility-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.visibility-toggle-row + .visibility-toggle-row {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.visibility-toggle__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.visibility-toggle__hint {
  font-size: 0.7rem;
  color: #7a7060;
  font-family: 'IBM Plex Mono', monospace;
  margin-left: 0.5rem;
}

/* ══════════════════════════════════════════════════
   User Menu Dropdown (warm restyle)
   ══════════════════════════════════════════════════ */
.user-menu-dropdown {
  background: #ede7d9 !important;
  border: 3px solid #1a1a2e !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
  overflow: hidden;
}
.user-menu-header {
  background: #f5f0e6 !important;
  border-bottom: 2px solid rgba(0,0,0,0.08) !important;
  padding: 0.875rem 1rem !important;
}
.user-menu-name {
  color: #1a1a2e !important;
  font-family: 'Moslin', 'IBM Plex Mono', monospace !important;
  font-size: 1rem !important;
}
.user-menu-username {
  color: #7a7060 !important;
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 0.8rem !important;
}
.user-menu-item {
  color: #1a1a2e !important;
  font-family: 'IBM Plex Mono', monospace !important;
  transition: background 0.15s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
}
.user-menu-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}
.user-menu-item:hover {
  background: #f5f0e6 !important;
}
.user-menu-divider {
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 0;
}
.user-menu-item--danger {
  color: #dc2626 !important;
}
.user-menu-item--danger:hover {
  background: #fef2f2 !important;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  body.auth-page {
    overflow-x: hidden;
  }
  body.auth-page .main {
    padding: 0.5rem;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .auth-container {
    padding: 0 0.5rem;
    min-height: auto;
    padding-top: 0.5rem !important;
    align-items: stretch;
  }
  .auth-card {
    padding: 1.25rem 1rem;
    border-width: 0;
    border-radius: 14px;
    margin: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  }
  .auth-card__title {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
  }
  .auth-card__subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }
  /* Force ALL Clerk internals to respect parent width */
  .auth-clerk-mount {
    overflow: hidden;
    max-width: 100%;
    width: 100%;
  }
  .auth-clerk-mount * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .account-grid {
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .account-section {
    border-radius: 12px;
    padding: 1.25rem;
    border-width: 3px;
    margin: 0;
  }
  .account-profile {
    flex-direction: column;
    text-align: center;
  }
  .account-change-username-btn {
    margin-left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
  .account-field {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .connect-item {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .connect-item__action {
    margin-left: auto;
  }
  .connect-actions {
    flex-direction: column;
    width: 100%;
  }
  .connect-actions .auth-btn {
    width: 100%;
    text-align: center;
  }
}

/* ── Legal Checkboxes ── */
.legal-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0.75rem 0;
  text-align: left;
}

.legal-checkbox {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: 'Moslin', 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  color: #1a1a2e;
  cursor: pointer;
  user-select: none;
}

.legal-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #1a1a2e;
  border-radius: 5px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  background: transparent;
  transition: all 0.15s ease;
}

.legal-checkbox input[type="checkbox"]:checked {
  background: #1a1a2e;
  border-color: #1a1a2e;
}

.legal-checkbox input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ede7d9;
  font-size: 0.85rem;
  font-weight: bold;
}

.legal-checkbox a {
  color: #d4a843;
  text-decoration: underline;
  font-weight: 600;
}

.legal-checkbox a:hover {
  opacity: 0.8;
}

/* ══════════════════════════════════════════════════
   Account Save Bar (floating)
   ══════════════════════════════════════════════════ */
.account-save-bar {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a2e;
  border: 2px solid #d4a843;
  border-radius: 14px;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  z-index: 200;
  animation: accountSaveBarIn 0.3s ease;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  color: #ede7d9;
  white-space: nowrap;
}

@keyframes accountSaveBarIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.account-save-actions {
  display: flex;
  gap: 0.5rem;
}

.account-save-discard {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: transparent;
  color: #7a7060;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.account-save-discard:hover {
  color: #ef4444;
  border-color: #ef4444;
}

.account-save-confirm {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #d4a843;
  color: #0a0a0f;
  border: none;
}

.account-save-confirm:hover {
  background: #e6be5a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 168, 67, 0.3);
}

.account-save-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 640px) {
  .account-save-bar {
    left: 1rem;
    right: 1rem;
    transform: none;
    bottom: 1rem;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  @keyframes accountSaveBarIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
