/* ==========================================================================
   Schmoozle Badge Page Stylesheet (create.css)
   Clean, semantic classes. Zero inline styles.
   Hero with feature explainer, revealable form, and real-time phone preview.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Visibility Utilities
   -------------------------------------------------------------------------- */
[hidden],
[hidden="true"],
img[hidden] {
  display: none !important;
}

button,
.button {
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Hero Badge Page Structure
   -------------------------------------------------------------------------- */
.hero-badge-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(120px, 14vh, 170px) var(--gutter) clamp(60px, 8vh, 100px);
  overflow: clip;
}

.hero-badge-copy {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Explainer State (Default Hero View)
   -------------------------------------------------------------------------- */
.badge-explainer-view {
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.hero-badge-page.is-form-revealed .badge-explainer-view {
  display: none;
}

/* --------------------------------------------------------------------------
   Revealed Form Panel
   -------------------------------------------------------------------------- */
.badge-form-panel {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 620px;
  padding: clamp(32px, 4.5vw, 44px) clamp(24px, 3.5vw, 36px) clamp(24px, 3.5vw, 36px);
  border-radius: 28px;
  background: rgba(10, 14, 28, 0.78);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: formPanelIn 0.5s var(--ease-out) both;
}

@keyframes formPanelIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.badge-form-panel[hidden] {
  display: none !important;
}

.badge-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.badge-form-header-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.badge-form-badge-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(var(--cyan-rgb), 0.12);
  border: 1px solid rgba(var(--cyan-rgb), 0.28);
  border-radius: 999px;
}

.badge-form-heading {
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Form Fields & Groups
   -------------------------------------------------------------------------- */
.form-avatar-block {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  margin-bottom: 20px;
}

.form-avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 2px dashed rgba(var(--cyan-rgb), 0.4);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.form-avatar-wrap:hover {
  border-color: var(--cyan);
  transform: scale(1.03);
}

.form-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.form-avatar-img[hidden] {
  display: none !important;
}

.form-avatar-initials {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  color: var(--cyan);
  user-select: none;
  pointer-events: none;
  box-sizing: border-box;
}

.form-avatar-initials[hidden] {
  display: none !important;
}

.form-avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 15, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #FFFFFF;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.form-avatar-wrap:hover .form-avatar-overlay {
  opacity: 1;
}

.form-avatar-overlay svg {
  width: 18px;
  height: 18px;
}

.form-avatar-overlay span {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-avatar-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.form-avatar-meta {
  flex: 1;
  min-width: 0;
}

.form-field-hint {
  font-size: 12.5px;
  color: var(--ink-quiet);
  margin-top: 3px;
  line-height: 1.4;
}

.form-avatar-remove-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-avatar-remove-btn:hover {
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.form-label,
.form-section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.form-text-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.form-text-input:focus,
.form-textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(var(--cyan-rgb), 0.6);
  box-shadow: 0 0 0 3px rgba(var(--cyan-rgb), 0.15);
}

.form-textarea {
  resize: vertical;
  line-height: 1.5;
  min-height: 80px;
}

/* Discussion Topics Grid */
.form-section-group {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.form-section-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.form-section-sub {
  font-size: 12.5px;
  color: var(--ink-quiet);
}

.form-topics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 520px) {
  .form-topics-grid {
    grid-template-columns: 1fr;
  }
}

.form-topic-input {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.form-topic-input:focus {
  outline: none;
  border-color: rgba(var(--cyan-rgb), 0.6);
  box-shadow: 0 0 0 2px rgba(var(--cyan-rgb), 0.15);
}

/* Contact Grid */
.form-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 520px) {
  .form-contact-grid {
    grid-template-columns: 1fr;
  }
}

.form-field-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transition: all 0.25s ease;
}

.form-field-card:focus-within {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(var(--cyan-rgb), 0.6);
  box-shadow: 0 0 0 2px rgba(var(--cyan-rgb), 0.15);
}

.form-field-icon {
  width: 16px;
  height: 16px;
  color: var(--ink-quiet);
  flex-shrink: 0;
  transition: color 0.25s ease;
}

.form-field-card:focus-within .form-field-icon {
  color: var(--cyan);
}

.form-field-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink);
}

.form-field-input:focus {
  outline: none;
}

/* iOS Safari zooms in on any focused field with text under 16px, which leaves the page
   scrolling sideways until pinched back out. Phones get 16px fields to prevent it. */
@media (max-width: 600px) {
  .form-text-input,
  .form-textarea,
  .form-topic-input,
  .form-field-input {
    font-size: 16px;
  }
}

.form-field-input::placeholder {
  color: var(--ink-faint);
}

/* Actions at Bottom of Form */
.form-actions-wrap {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-action-btn {
  width: 100%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 2px 0 rgba(255, 255, 255, 0.4) inset,
    0 4px 14px -4px rgba(var(--cyan-rgb), 0.35);
}

.form-action-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.7) inset,
    0 2px 0 rgba(255, 255, 255, 0.5) inset,
    0 6px 18px -4px rgba(var(--cyan-rgb), 0.45);
}

.btn-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.form-vcard-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form-vcard-btn {
  position: relative;
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  gap: 8px;
  font-size: 14.5px;
  background: rgba(18, 24, 44, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.form-vcard-btn:hover {
  background: rgba(26, 34, 60, 0.92);
  border-color: rgba(255, 255, 255, 0.22);
}

.form-sub-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 14px;
  margin-top: 6px;
}

.form-clear-btn {
  background: transparent;
  border: 0;
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--ink-quiet);
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.form-clear-btn:hover {
  color: #EF4444;
}

/* Live preview caption under the phone */
.badge-hero-stage .hero-caption {
  color: var(--green);
}

/* --------------------------------------------------------------------------
   Sticky Desktop Hero Stage when Form is Revealed
   -------------------------------------------------------------------------- */
@media (min-width: 901px) {
  .hero-badge-page.is-form-revealed .hero-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: flex-start;
  }

  .hero-badge-page.is-form-revealed .badge-hero-stage {
    position: sticky;
    top: 100px;
  }
}

/* --------------------------------------------------------------------------
   Real-Time Device Screen Preview (Mobile Profile Presentation)
   Faithfully matches the default light theme of /badge: Midnight Day.
   Cool bluish paper (#F6F7F9), pale sky wash, pure white surfaces,
   cool slate borders (#DCE2E8), and Midnight sky blue accents (#4399D4).
   Never cream or sand-amber.
   -------------------------------------------------------------------------- */
.badge-screen-preview {
  --profile-font-serif: "Newsreader", Garamond, Georgia, "Times New Roman", serif;
  --profile-font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --profile-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --profile-font-raleway: "Raleway", var(--profile-font-sans);

  /* Midnight Day Theme Tokens */
  --preview-bg-base: #F6F7F9;
  --preview-bg-canvas: #ECEEF1;
  --preview-bg-surface: #FFFFFF;
  --preview-bg-subtle: #F0F2F4;
  --preview-bg-hover: #E8EBEF;
  --preview-bg-active: #DEE2E8;
  --preview-bg-tag: #EBEFF1;

  --preview-border-subtle: #DCE2E8;
  --preview-border-strong: #CDD5DF;

  --preview-text-primary: #191917;
  --preview-text-secondary: #5C5C56;
  --preview-text-tertiary: #878780;

  --preview-accent-primary: #4399D4;
  --preview-accent-subtle: rgba(67, 153, 212, 0.15);
  --preview-accent-hover: #3582B7;
  --preview-accent-ink: #0A0E1C;

  background-color: var(--preview-bg-base);
  color: var(--preview-text-primary);
  position: relative;
  overflow: hidden;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  perspective: 1200px;
}

.phone-preview-flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.badge-screen-preview.is-preview-flipped .phone-preview-flipper {
  transform: rotateY(-180deg);
}

.badge-screen-preview .phone-island {
  z-index: 10;
  pointer-events: none;
}

.badge-screen-preview .phone-glare {
  z-index: 11;
  pointer-events: none;
}

.badge-screen-preview .phone-sweep {
  z-index: 12;
  pointer-events: none;
}

.phone-preview-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background-color: #F6F7F9;
  background-image: linear-gradient(
    to bottom right,
    rgba(191, 224, 255, 0.14) 0%,
    rgba(191, 224, 255, 0) 55%,
    rgba(191, 224, 255, 0.06) 100%
  );
  display: flex;
  flex-direction: column;
}

.phone-preview-front {
  transform: rotateY(0deg);
}

/* Page glow: soft white pool of radiance behind the top hero matching /badge */
.phone-preview-front::before {
  content: "";
  position: absolute;
  top: 0;
  left: -20px;
  right: -20px;
  height: 360px;
  pointer-events: none;
  background: radial-gradient(
    ellipse closest-side at 50% 36%,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.55) 55%,
    rgba(255, 255, 255, 0) 100%
  );
}

.phone-preview-back {
  transform: rotateY(180deg);
}

.phone-preview-back::before {
  content: "";
  position: absolute;
  top: 0;
  left: -20px;
  right: -20px;
  height: 280px;
  pointer-events: none;
  background: radial-gradient(
    ellipse closest-side at 50% 28%,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.45) 55%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* Scrollable container inside the phone screen */
.phone-screen-scroll {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: calc(var(--phone-width) * 0.22) 18px 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-sizing: border-box;
}

.phone-preview-front .phone-screen-scroll {
  padding-top: calc(var(--phone-width) * 0.28);
}

.phone-screen-scroll::-webkit-scrollbar {
  display: none;
}

/* --------------------------------------------------------------------------
   Front Face Preview Elements (Midnight Day Theme)
   -------------------------------------------------------------------------- */
.preview-hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.preview-avatar-frame {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 1px #DCE2E8, 0 4px 16px rgba(10, 14, 28, 0.08);
  margin-bottom: 12px;
  flex-shrink: 0;
  overflow: hidden;
}

.preview-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.preview-avatar-img[hidden] {
  display: none !important;
}

.preview-avatar-initials {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--profile-font-serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #191917;
  background-color: #F0F2F4;
  user-select: none;
  pointer-events: none;
  box-sizing: border-box;
}

.preview-avatar-initials[hidden] {
  display: none !important;
}

.preview-name {
  font-family: var(--profile-font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #191917;
  margin: 0;
  word-break: break-word;
}

.preview-role {
  font-family: var(--profile-font-serif);
  font-style: italic;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  color: #191917;
  margin-top: 4px;
  word-break: break-word;
}

.preview-location-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  padding: 4px 12px;
  background: #FFFFFF;
  border: 1px solid #DCE2E8;
  border-radius: 999px;
  font-family: var(--profile-font-raleway);
  font-size: 12px;
  color: #878780;
  box-shadow: 0 1px 3px rgba(26, 26, 24, 0.04);
}

.preview-location-pill[hidden] {
  display: none !important;
}

.preview-location-icon {
  width: 12px;
  height: 12px;
  color: #878780;
  flex-shrink: 0;
}

.preview-divider {
  width: 50px;
  height: 1px;
  background: #DCE2E8;
  margin: 12px auto;
}

.preview-divider[hidden] {
  display: none !important;
}

.preview-bio {
  font-family: "Lato", var(--profile-font-sans);
  font-style: italic;
  font-weight: 300;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #5C5C56;
  margin: 0;
  word-break: break-word;
}

.preview-bio[hidden] {
  display: none !important;
}

/* Discussion Topics Chips inside Preview */
.preview-topics-section {
  width: 100%;
  margin-top: 16px;
  text-align: center;
}

.preview-topics-section[hidden] {
  display: none !important;
}

.preview-topics-kicker {
  display: block;
  font-family: var(--profile-font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #4399D4;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.preview-topics-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.preview-topics-list .badge-topic-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: calc(5px + 0.09em) 13px calc(5px - 0.09em);
  font-family: var(--profile-font-serif);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: #191917;
  background: #FFFFFF;
  border: 1px solid #DCE2E8;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(26, 26, 24, 0.04);
}

/* Action Button inside Preview (Flip to Badge - Styled like .btn-toggle-showcase in /badge) */
.preview-actions-group {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  width: 100%;
}

.preview-btn-flip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: #FFFFFF;
  color: #191917;
  border: 1px solid #DCE2E8;
  border-radius: 999px;
  font-family: var(--profile-font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(26, 26, 24, 0.04);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.preview-btn-flip:hover {
  background: #F0F2F4;
  border-color: #CBD5E1;
  color: #191917;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(26, 26, 24, 0.08);
}

.preview-btn-flip:active {
  transform: translateY(0);
}

/* Connect Row inside Preview */
.preview-connect-section {
  width: 100%;
  margin-top: 18px;
  text-align: center;
}

.preview-connect-section[hidden] {
  display: none !important;
}

.preview-connect-kicker {
  display: block;
  font-family: var(--profile-font-serif);
  font-size: 12px;
  font-weight: 500;
  font-style: italic;
  color: #5C5C56;
  margin-bottom: 8px;
}

.preview-connect-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

/* Sized so all six connect icons fit on one row of the desktop phone preview */
.preview-connect-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #DCE2E8;
  color: #191917;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(26, 26, 24, 0.04);
  transition: all 0.2s ease;
}

.preview-connect-circle svg {
  width: 14px;
  height: 14px;
}

.preview-connect-circle:hover {
  background: #F0F2F4;
  border-color: #4399D4;
  color: #4399D4;
  transform: translateY(-1px);
}

.preview-connect-circle[hidden] {
  display: none !important;
}

.preview-footer {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid #DCE2E8;
  font-family: var(--profile-font-raleway);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #878780;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Back Face Preview Elements (Midnight Day Theme Scannable Badge inside Phone)
   -------------------------------------------------------------------------- */
.preview-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #DCE2E8;
  margin-bottom: 16px;
}

.preview-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--profile-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #15803D;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: 999px;
}

.preview-status-pill .status-dot-pulse {
  background-color: #16A34A;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
}

.preview-flip-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-family: var(--profile-font-sans);
  font-size: 11px;
  font-weight: 600;
  color: #191917;
  background: #FFFFFF;
  border: 1px solid #DCE2E8;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(26, 26, 24, 0.04);
  transition: all 0.2s ease;
}

.preview-flip-pill-btn:hover {
  background: #F0F2F4;
  border-color: #CBD5E1;
}

.preview-flip-pill-arrow {
  font-size: 13px;
  line-height: 1;
}

.preview-badge-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.preview-badge-qr-box {
  width: 144px;
  height: 144px;
  background: #FFFFFF;
  border-radius: 14px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(10, 14, 28, 0.06);
  border: 1px solid #DCE2E8;
  margin-top: 4px;
}

.preview-badge-qr-box svg {
  width: 100%;
  height: 100%;
  display: block;
}

.preview-badge-qr-hint {
  font-family: var(--profile-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4399D4;
  margin: 8px 0 14px;
}

.preview-badge-name {
  font-family: var(--profile-font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.15;
  color: #191917;
  margin: 0;
}

.preview-badge-role {
  font-family: var(--profile-font-serif);
  font-style: italic;
  font-size: 0.98rem;
  font-weight: 600;
  color: #191917;
  margin-top: 4px;
}

.preview-badge-actions {
  margin-top: 18px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.preview-badge-actions .preview-btn-flip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: #FFFFFF;
  color: #191917;
  border: 1px solid #DCE2E8;
  border-radius: 999px;
  font-family: var(--profile-font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(26, 26, 24, 0.04);
  transition: all 0.2s ease;
}

.preview-badge-actions .preview-btn-flip:hover {
  background: #F0F2F4;
  border-color: #CBD5E1;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Mobile Adjustments (Screens <= 900px)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-badge-page {
    padding-top: 104px;
    padding-bottom: 44px;
  }

  .hero-badge-page .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    justify-items: center;
  }

  .badge-form-panel {
    max-width: 100%;
  }

  .badge-hero-stage {
    margin-top: 24px;
  }
}

/* --------------------------------------------------------------------------
   Toast Notification & Status Pulse
   -------------------------------------------------------------------------- */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(10, 14, 28, 0.92);
  color: #FFFFFF;
  border: 1px solid rgba(var(--cyan-rgb), 0.4);
  padding: 10px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.toast-check-icon {
  width: 15px;
  height: 15px;
  color: var(--cyan);
  flex-shrink: 0;
}

.status-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--cyan);
  box-shadow: 0 0 0 0 rgba(var(--cyan-rgb), 0.7);
  animation: pulse-ring 2.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--cyan-rgb), 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

/* --------------------------------------------------------------------------
   Middle Content FAQ Section (Privacy Policy Aesthetic) & Finale Transition
   -------------------------------------------------------------------------- */
.badge-faq-section {
  padding-bottom: 0;
}

.badge-faq-section .section-head {
  margin-bottom: clamp(24px, 4vw, 40px);
}

.badge-faq-layout {
  padding-top: 0;
}

/* Eliminate excessive gap above the "Bring your badge to your next event" finale */
.site-footer .finale {
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: clamp(40px, 6vw, 72px);
}


