/* V29 site-wide button visibility pass */
.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1.5rem;
  border-width: 2px;
  border-style: solid;
  border-radius: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.015em;
  text-decoration: none;
  text-shadow: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.btn-primary,
button.btn-primary {
  background: linear-gradient(135deg, #f01932, #c4071d) !important;
  border-color: #ff5365 !important;
  color: #fff !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 10px 25px rgba(229, 9, 32, 0.32) !important;
}

.btn-primary:hover,
.btn-primary:focus-visible,
button.btn-primary:hover,
button.btn-primary:focus-visible {
  background: linear-gradient(135deg, #ff3349, #e50920) !important;
  border-color: #fff !important;
  color: #fff !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 12px 30px rgba(229, 9, 32, 0.45) !important;
}

.btn-secondary,
button.btn-secondary {
  background: #242936 !important;
  border-color: #8d94a8 !important;
  color: #fff !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 8px 20px rgba(0, 0, 0, 0.24) !important;
}

.btn-secondary:hover,
.btn-secondary:focus-visible,
button.btn-secondary:hover,
button.btn-secondary:focus-visible {
  background: #343b4c !important;
  border-color: #ff5365 !important;
  color: #fff !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 10px 25px rgba(229, 9, 32, 0.2) !important;
}

.btn-outline,
button.btn-outline {
  background: #151923 !important;
  border-color: #aeb4c4 !important;
  color: #fff !important;
}

.btn-danger,
button.btn-danger {
  background: #9f1020 !important;
  border-color: #ff6475 !important;
  color: #fff !important;
}

.btn:focus-visible,
button.btn:focus-visible,
.ebook-library-cover-button:focus-visible,
.ebook-library-open-cta:focus-visible {
  outline: 3px solid #f7c62f !important;
  outline-offset: 3px;
}

.btn.is-disabled,
.btn:disabled,
button.btn:disabled {
  background: #353946 !important;
  border-color: #686e7e !important;
  color: #c7cad3 !important;
  box-shadow: none !important;
  opacity: 0.72;
}

.card-actions,
.hero-actions,
.hero-buttons,
.locker-actions,
.admin-item-actions-v3 {
  gap: 0.75rem;
}

.card-actions .btn {
  min-width: 132px;
}

.ebook-library-open-cta {
  min-height: 52px;
  border: 2px solid #ff5365;
  box-shadow: 0 10px 24px rgba(229, 9, 32, 0.3);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.ebook-library-open-cta:hover {
  background: linear-gradient(135deg, #ff3349, #e50920);
  border-color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .btn,
  button.btn {
    width: 100%;
    min-height: 50px;
  }
}
