.toggle-row {
  display: flex;
  gap: 8px;
}

/* Wrapper around All Cards button */
.toggle-btn-all-wrapper {
  position: relative;
  display: inline-block;
}

/* Wrapper around All Cards button */
.toggle-image-regen-wraper {
  position: relative;
  display: inline-block;
}

/* Make sure the button fills the wrapper */
.toggle-btn-all-wrapper .toggle-btn {
  position: relative;
  z-index: 0;
  display: inline-block;
}

/* Make sure the button fills the wrapper */
.toggle-image-regen-wraper .redo-image {
  position: relative;
  z-index: 0;
  display: inline-block;
}

/* The semi-transparent overlay that covers the entire button */
.btn-lock-overlay {
  position: absolute;
  inset: 0;                      /* top/right/bottom/left: 0 */
  display: none;                 /* only visible when locked */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45); /* dimming layer */
  border-radius: 999px;          /* match rounded buttons */
  z-index: 1;
  pointer-events: none;          /* let clicks through to button */
}

/* The lock icon in the center */
.btn-lock-overlay .lock-icon {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9); /* slightly transparent */
}

/* When locked, show overlay and optionally dim button further */
.toggle-btn-all-wrapper.locked .btn-lock-overlay {
  display: flex;
}

.toggle-image-regen-wraper.locked .btn-lock-overlay {
  display: flex;
}

/* Optional: extra dimming of the button text/background */
.toggle-image-regen-wraper.locked .redo-image {
  filter: brightness(0.8);
}

.redo-image {
    appearance: none;
    border: 1px solid var(--ring);
    background: #f9fafb;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    box-shadow: var(--shadow);
}


/* Optional: extra dimming of the button text/background */
.toggle-btn-all-wrapper.locked .toggle-btn {
  filter: brightness(0.8);
}

.toggle-row {
  display: flex;
  gap: 8px;
}

/* Wrapper around All Cards button */
.toggle-btn-all-wrapper {
  position: relative;
  display: inline-block;
}

/* Ensure button is positioned under the overlay */
.toggle-btn-all-wrapper .toggle-btn {
  position: relative;
  z-index: 0;
  display: inline-block;
}
/* Semi-transparent overlay covering entire button */
.btn-lock-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4); /* slightly lighter dimming */
  border-radius: 999px;
  z-index: 1;
  pointer-events: none;
}

/* Geometric lock container – smaller + more transparent */
.lock-icon {
  width: 22px;   /* was 26px */
  height: 24px;  /* was 32px */
  position: relative;
  opacity: 0.7;  /* more transparent */
}

.lock-shackle {
  position: absolute;
  left: 50%;
  top: 0;
  width: 10px;       /* narrower */
  height: 12px;      /* taller */
  transform: translateX(-50%);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-bottom: none;
  border-radius: 6px 6px 0 0;  /* top corners rounded, bottom corners square */
}

/* Body: solid rounded rectangle */
.lock-body {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 14px;     /* smaller */
  height: 12px;    /* smaller */
  transform: translateX(-50%);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.75); /* more transparent */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Keyhole */
.lock-keyhole {
  width: 3px;       /* smaller */
  height: 6px;      /* smaller */
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
}

/* When locked */
.toggle-btn-all-wrapper.locked .btn-lock-overlay {
  display: flex;
}

.toggle-btn-all-wrapper.locked .toggle-btn {
  filter: brightness(0.85);
}


/* Reward card lock overlay */
.reward-card-lock-overlay {
  position: absolute;
  inset: 0;
  display: none;                     /* shown only when locked */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);   /* dimming layer */
  border-radius: 12px;               /* match your card rounding */
  z-index: 5;
  pointer-events: none;              /* clicks still go to the card element */
}

/* Geometric lock, smaller + transparent */
.reward-card-lock-overlay .lock-icon {
  width: 18px;
  height: 22px;
  position: relative;
  opacity: 0.7;
}

/* Shackle (horseshoe-shaped) */
.reward-card-lock-overlay .lock-shackle {
  position: absolute;
  left: 50%;
  top: 0;
  width: 10px;
  height: 14px;
  transform: translateX(-50%);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-bottom: none;
  border-radius: 6px 6px 0 0;        /* top corners rounded, bottom flat */
}

/* Lock body */
.reward-card-lock-overlay .lock-body {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 14px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Keyhole */
.reward-card-lock-overlay .lock-keyhole {
  width: 3px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
}

/* When the reward card is locked */
.locked-reward {
  position: relative;                 /* ensure overlay positions correctly */
  filter: brightness(0.8);
}

.locked-reward .reward-card-lock-overlay {
  display: flex;
}
