.btn {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-header-button);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.btn--main {
  background-color: rgba(255, 255, 255, 0.24);
}

.btn--secondary {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Always-pink, not an animated disabled→active reveal like "Next"/"Create"
   use (.btn__fill stays off-screen/inert here — this tier is never given
   .btn--active) — real fetched value (Pin modal, node 375:9689). */
.btn--accent {
  background-color: var(--background-accent);
}

.btn--text.btn--accent .btn__label {
  color: var(--text-invert-white);
}

.btn--icon {
  width: 40px;
  height: 40px;
  border-radius: 40px;
}

.btn__icon {
  width: 16px;
  height: 16px;
  background-color: var(--text-invert-white);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.btn--text {
  position: relative;
  overflow: hidden;
  height: 40px;
  gap: 4px;
  padding: 9px 16px 11px;
  border-radius: 100px;
}

.btn__label {
  position: relative;
  z-index: 1;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
}

.btn--text.btn--main .btn__label {
  color: var(--text-invert-white);
}

.btn--text.btn--secondary .btn__label {
  color: var(--text-secondary);
}

/* The "Next" button's disabled→active look is two independently-animated
   layers, not one rigid unit or a plain color swap:
   - .btn__fill (the pink background) genuinely TRANSLATES from off-screen
     right to fully covering. It has to be a real translate, not a
     clip-path reveal, so Figma's "Quick" spring easing (snappy with a
     small rebound past the target before settling) has something visible
     to overshoot into — a clip-path reveal has nothing left to overshoot
     past once it hits 100% revealed, so a bounce curve on it wouldn't
     produce any visible bounce at all.
   - .btn__fill-label (the white "Next") sits at the exact same fixed,
     centered position as the gray .btn__label underneath at all times —
     confirmed from Figma's own data, identical coordinates in both
     variants — so it must never move. It's revealed via its own
     clip-path, driven by the SAME duration/easing as the fill's
     translate so the two stay in lockstep, matching Figma's real
     mechanism (a mask window that travels with the fill).
   cubic-bezier(0.34, 1.56, 0.64, 1) approximates Figma's "Quick" spring
   preset — CSS transitions don't support true spring physics, only
   cubic-bezier curves, so this is the standard approximation for a quick
   snap with a small rebound (widely known as "easeOutBack"). 500ms is
   this button's own real Figma timing, not the shared
   var(--transition-standard) (300ms) other transitions in this app use. */
.btn__fill {
  position: absolute;
  inset: -1px;
  z-index: 2;
  border-radius: inherit;
  background-color: var(--background-accent);
  transform: translateX(100%);
  transition: transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.btn--active .btn__fill {
  transform: translateX(0);
}

.btn__fill-label {
  position: absolute;
  inset: 0;
  z-index: 3;
  /* inset:0 fills the padding box edge-to-edge, ignoring .btn--text's own
     padding (9px 16px 11px, asymmetric top/bottom) that the gray
     .btn__label is centered within via the parent's flexbox — matching
     that same padding here is what keeps the two labels' centers aligned,
     not just visually eyeballed to line up. */
  box-sizing: border-box;
  padding: 9px 16px 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  color: var(--text-invert-white);
  white-space: nowrap;
  clip-path: inset(0 0 0 100%);
  transition: clip-path 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.btn--active .btn__fill-label {
  clip-path: inset(0 0 0 0%);
}
