:root {
  --primary-color: #153D77;
  --secondary-color: #F9A826;
  --bg-light: #F8F9FA;
}

body {
  background-color: var(--bg-light);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}


.brand-logo {
  max-height: 75px;
  object-fit: contain;
}

.brand-title {
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 0.5px;
}


.custom-card {
  border: none;
  border-top: 5px solid var(--primary-color);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(21, 61, 119, 0.08);
  transition: transform .18s ease, box-shadow .18s ease;
}


.custom-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 28px rgba(21, 61, 119, 0.18) !important;
}

.card-title-custom {
  color: var(--primary-color);
  font-weight: 600;
  border-bottom: 2px solid #eef2f7;
  padding-bottom: 12px;
}


.title-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.title-clamp-1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


@media (max-width: 767.98px) {
  .bt-card-title {
    font-size: .85rem;
  }

  .bt-card-author {
    font-size: .72rem;
  }

  .bt-card-badge {
    font-size: .65rem;
  }
}


@keyframes btImgShimmer {
  0% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0 50%;
  }
}

@keyframes btImgSpin {
  to {
    transform: rotate(360deg);
  }
}

.bt-img-shimmer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #eef2f7 25%, #e2e8f0 37%, #eef2f7 63%);
  background-size: 400% 100%;
  animation: btImgShimmer 1.4s ease infinite;
}

.bt-img-shimmer img {
  opacity: 0;
  transition: opacity .3s ease;
}

.bt-img-shimmer img.bt-loaded {
  opacity: 1;
}

.bt-img-shimmer::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  border: 2px solid rgba(21, 61, 119, .2);
  border-top-color: var(--primary-color);
  animation: btImgSpin .7s linear infinite;
  opacity: 1;
  transition: opacity .2s ease;
}

.bt-img-shimmer:has(img.bt-loaded)::after {
  opacity: 0;
}


.book-cover {
  width: 100%;
  aspect-ratio: 7 / 10;
  object-fit: cover;
  background: #eef2f7;
}

.book-cover-placeholder {
  width: 100%;
  aspect-ratio: 7 / 10;
  background: #eef2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 2rem;
}


.bt-cover-badges {
  position: absolute !important;
  top: .35rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: .25rem !important;
  z-index: 2 !important;
  max-width: calc(100% - .7rem) !important;
}

.bt-cover-badges-left {
  left: .35rem !important;
  right: auto !important;
}

.bt-cover-badges-right {
  right: .35rem !important;
  left: auto !important;
  align-items: flex-end !important;
}

.bt-cover-badges .badge {
  white-space: nowrap !important;
  font-size: .62rem !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35) !important;
}


.bt-cover-badges-bottom-right {
  top: auto !important;
  bottom: .35rem !important;
  right: .35rem !important;
  left: auto !important;
  align-items: flex-end !important;
}




.bt-hide-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.bt-hide-scrollbar::-webkit-scrollbar {
  display: none;
}


@media (hover: hover) and (pointer: fine) {
  .bt-hide-scrollbar {
    cursor: grab;
  }

  .bt-hide-scrollbar.bt-dragging {
    cursor: grabbing;
    scroll-snap-type: none !important;
    user-select: none;
  }
}


.bt-share-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform .15s ease;
}

.bt-share-circle:hover {
  transform: translateY(-2px);
}


@keyframes bt-skeleton-pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: .4;
  }

  100% {
    opacity: 1;
  }
}

.bt-skeleton-card .book-cover-placeholder,
.bt-skeleton-card-bar {
  animation: bt-skeleton-pulse 1.2s ease-in-out infinite;
}

.bt-skeleton-card .book-cover-placeholder {
  background: #e2e8f0;
  color: transparent;
}

.bt-skeleton-card-bar {
  height: 10px;
  border-radius: 4px;
  background: #e2e8f0;
  margin-top: .5rem;
}


.bt-fade-in-card {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s ease, transform .45s ease;
}

.bt-fade-in-card.bt-fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}


.btn:active {
  transform: scale(.95);
  transition: transform .1s ease;
}

.bt-badge-icon {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  font-size: .75rem !important;
}


.progress {
  height: 12px;
  border-radius: 6px;
  background-color: #E9ECEF;
}

.progress-bar-custom {
  background-color: var(--secondary-color);
}


.btn-primary-custom {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  padding: 10px 24px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  background-color: #0f2c57;
  border-color: #0f2c57;
  color: #fff;
}

.btn-secondary-custom {
  background-color: #6C757D;
  color: #fff;
  padding: 10px 24px;
  font-weight: 600;
  border-radius: 8px;
}


.form-label {
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(21, 61, 119, 0.15);
}

.required-asterisk {
  color: #dc3545;
}


.avatar-premium-ring {
  box-shadow: 0 0 0 3px #fbbf24, 0 0 0 5px #fff;
}


.btn {
  border-radius: 50rem;
}


.btn-profile-follow {
  background: linear-gradient(90deg, #153d77 0%, #1e56a0 100%);
  border: none;
  color: #fff;
  box-shadow: 0 2px 8px rgba(21, 61, 119, .28);
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn-profile-follow:hover,
.btn-profile-follow:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(21, 61, 119, .38);
  color: #fff;
}

.btn-profile-following {
  background: #eef2f7;
  border: none;
  color: #475569;
  transition: background-color .15s ease;
}

.btn-profile-following:hover,
.btn-profile-following:focus {
  background: #e2e8f0;
  color: #334155;
}

.btn-profile-chat {
  background: linear-gradient(90deg, #1c1917 0%, #292524 100%);
  border: none;
  color: #fbbf24;
  box-shadow: 0 2px 8px rgba(28, 25, 23, .28);
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn-profile-chat:hover,
.btn-profile-chat:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(28, 25, 23, .38);
  color: #fbbf24;
}