/**
 * Tailwind-Front Template — style.css
 * Material CSS diambil dari sekolah.anstudio.my.id
 * Digabung dengan legacy SLiMS-specific styles
 */

/* =========================================================
   TAILWIND V4 RESPONSIVE NAVBAR FIX
   max-md:hidden = visible on md+, hidden on mobile
   ========================================================= */
@media (max-width: 47.9375rem) {
  .max-md\:hidden { display: none !important; }
}
/* On desktop (≥768px): these are NOT hidden (default flex) */
/* md:hidden = hide on desktop (hamburger button) */
@media (min-width: 48rem) {
  .md\:hidden { display: none !important; }
}


/* =========================================================
   BASE
   ========================================================= */
html, body {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: #f9fafb;
  color: #1f2937;
  scroll-behavior: smooth;
}

/* =========================================================
   NAVBAR
   ========================================================= */
#main-navbar a,
#main-navbar button { outline: none; }

/* =========================================================
   BOOTSTRAP JS COMPONENTS — Override Bootstrap visual styles
   so modal / dropdown work functionally without Bootstrap CSS
   ========================================================= */

/* --- Modal backdrop --- */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0,0,0,0.45);
  z-index: 1040;
}
.modal-backdrop.fade { opacity: 0; transition: opacity 0.15s linear; }
.modal-backdrop.show { opacity: 1; }

/* --- Modal container --- */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1050;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
  display: none;
}
.modal.show { display: block; }
.modal-dialog {
  margin: 1.75rem auto;
  position: relative;
  width: auto;
  max-width: 90vw;
  pointer-events: none;
}
.modal.fade .modal-dialog { transform: translateY(-30px); opacity: 0; transition: transform 0.22s ease-out, opacity 0.22s ease-out; }
.modal.show .modal-dialog { transform: none; opacity: 1; }
.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 3.5rem);
}
.modal-dialog.modal-lg { max-width: min(800px, 92vw); }


/* --- Custom Tailwind-styled modal content --- */
.tw-modal-content {
  background: #fff;
  border-radius: 1.5rem;
  border: 1px solid #f3f4f6;
  box-shadow: 0 25px 60px rgba(0,0,0,0.10);
  pointer-events: all;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.tw-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}
.tw-modal-body { padding: 1.5rem; flex: 1; }
.tw-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #f3f4f6;
}

/* --- Dropdown (Bootstrap JS) --- */
.dropdown-menu {
  display: none;
  position: absolute;
  z-index: 1000;
  min-width: 10rem;
  padding: 0.5rem;
  background-color: #fff;
  border-radius: 1rem;
  border: 1px solid #f3f4f6;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  right: 0;
  left: auto;
  margin-top: 0.5rem;
}
.dropdown-menu.show { display: block; }
.tw-dropdown-menu { min-width: 12rem; }
.tw-dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  border-radius: 0.5rem;
  transition: background-color 0.15s;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.tw-dropdown-item:hover { background-color: #f9fafb; color: #111827; }
.tw-dropdown-divider { height: 1px; background-color: #f3f4f6; margin: 0.25rem 0; }
.tw-dropdown-header {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  padding: 0.5rem 0.75rem 0.25rem;
}

/* =========================================================
   FORM ELEMENTS (used in modals, search, filters)
   ========================================================= */
.tw-form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.tw-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tw-input {
  width: 100%;
  padding: 0.55rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
  background-color: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.75rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}
.tw-input:focus {
  background-color: #fff;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

/* =========================================================
   SHARED BUTTONS
   ========================================================= */
.tw-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background-color: #4f46e5;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s;
  text-decoration: none;
}
.tw-btn-primary:hover { background-color: #4338ca; color: #fff; }
.tw-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  background-color: #f9fafb;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.15s;
}
.tw-btn-ghost:hover { background-color: #f3f4f6; color: #374151; }

/* =========================================================
   SEARCH PILL
   ========================================================= */
.search { width: 100%; }
.search-pill {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 9999px;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  padding: 0.3rem 0.3rem 0.3rem 0.75rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.search-pill:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12), 0 8px 30px rgba(0,0,0,0.06);
}
#search-input {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #111827;
  flex: 1;
  min-width: 0;
  height: 2.5rem;
}
#search-input::placeholder { color: #9ca3af; }

/* =========================================================
   CATEGORY PANEL
   ========================================================= */
.category-panel {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 1.5rem;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 28px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.category-panel::-webkit-scrollbar { display: none; }
.section-title { font-size: 1.125rem; font-weight: 800; color: #111827; white-space: nowrap; }
.section-subtitle { font-size: 0.8rem; color: #9ca3af; font-weight: 500; margin-top: 0.125rem; white-space: nowrap; }
.category-list { display: flex; flex: 1; flex-wrap: nowrap; list-style: none; padding: 0; margin: 0; justify-content: space-evenly; align-items: center; }

.category-item a {
  display: flex; flex-direction: column; align-items: center;
  font-size: 0.7rem; font-weight: 700; color: #6b7280;
  text-align: center; text-decoration: none;
  transition: color 0.15s;
  gap: 0.5rem;
  width: 100%;
}
.category-item a:hover { color: #4f46e5; }
.category-item .icon-box {
  width: 3.5rem; height: 3.5rem;
  border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.category-item .icon-box img {
  width: 2rem !important;
  height: 2rem !important;
  max-width: 2rem !important;
  object-fit: contain;
  display: block;
}
.category-item a:hover .icon-box {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}


/* =========================================================
   BOOK CARDS
   ========================================================= */
.book-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #f3f4f6;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(79,70,229,0.10);
}
.book-cover {
  position: relative;
  width: 100%;
  padding-top: 140%;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  overflow: hidden;
}
.book-cover img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.book-card:hover .book-cover img { transform: scale(1.05); }
.book-badge {
  font-size: 0.6rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* Line clamp utilities */
.line-clamp-1 { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.line-clamp-2 {
  overflow: hidden; display: -webkit-box;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}

/* =========================================================
   LEADERBOARD PANELS
   ========================================================= */
.leaderboard-panel {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 1.5rem;
  padding: 1.75rem;
  display: flex; flex-direction: column;
  transition: box-shadow 0.2s;
}
.leaderboard-panel:hover { box-shadow: 0 16px 48px rgba(0,0,0,0.06); }

/* =========================================================
   FILTER PANEL (search results)
   ========================================================= */
.filter-panel {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  position: sticky;
  top: 5rem;
}

/* =========================================================
   TOPIC MODAL ICONS (Lainnya / kategori popup)
   ========================================================= */
.topic-icon-box {
  width: 3.5rem;
  height: 3.5rem;
  background-color: #f9fafb;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background-color 0.15s;
}
.topic-icon-img {
  width: 2rem !important;
  height: 2rem !important;
  max-width: 2rem !important;
  object-fit: contain;
  display: block;
}
a:hover .topic-icon-box {
  background-color: #eef2ff;
}

/* Advanced Search Modal — select element arrow fix */
.tw-input select,
select.tw-input {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.625rem center;
  background-repeat: no-repeat;
  background-size: 1.25rem;
  padding-right: 2.25rem;
  cursor: pointer;
}



/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: linear-gradient(180deg, #111827 0%, #030712 100%);
  color: #9ca3af;
}
.site-footer a { color: #6b7280; transition: color 0.15s; text-decoration: none; }
.site-footer a:hover { color: #e5e7eb; }

/* =========================================================
   SCROLLBAR HIDE UTILITY
   ========================================================= */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* =========================================================
   SECTION GAP: consistent vertical spacing
   ========================================================= */
.section-gap { padding-top: 3.5rem; padding-bottom: 3.5rem; }

/* =========================================================
   LEGACY COMPAT: Bootstrap-like utility classes
   ========================================================= */
.container { max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
.row { display: flex; flex-wrap: wrap; margin-left: -0.5rem; margin-right: -0.5rem; }
[class*="col-"] { padding-left: 0.5rem; padding-right: 0.5rem; flex: 1; }
.col-md-3 { flex: 0 0 25%; max-width: 25%; }
.col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-md-5 { flex: 0 0 41.666%; max-width: 41.666%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-9 { flex: 0 0 75%; max-width: 75%; }
@media (max-width: 767px) {
  [class*="col-md-"] { flex: 0 0 100%; max-width: 100%; }
}
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 3rem; }
.my-5 { margin-top: 3rem; margin-bottom: 3rem; }
.p-0 { padding: 0; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.875rem; }
.text-muted { color: #6b7280; }
.font-weight-bold { font-weight: 700; }
.w-100 { width: 100%; }
.w-full { width: 100%; }
.list-reset { list-style: none; padding: 0; margin: 0; }
.img-fluid { max-width: 100%; height: auto; }
.embed-responsive { width: 100%; }
.float-right { float: right; }
.clearfix::after { content: ''; display: table; clear: both; }
.border-top { border-top: 1px solid #e5e7eb; }
.border-t { border-top: 1px solid #e5e7eb; }
.hidden { display: none; }

/* =========================================================
   SLIMS LEGACY: Pagination
   ========================================================= */
.biblioPaging {
  text-align: center;
  border-top: 1px solid #e5e7eb;
  padding-top: 20px;
}
.biblioPaging:first-child {
  margin-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
  border-top: none;
  padding-bottom: 20px;
  padding-top: 0;
}
.biblioPaging .pagingList {
  display: inline-flex;
  justify-content: center;
  background: #e5e7eb;
  border-radius: 9999px;
}
.biblioPaging .pagingList b,
.biblioPaging .pagingList a {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
  text-decoration: none;
  position: relative;
  flex: 0 1 auto;
}
.biblioPaging .pagingList b {
  color: #fff;
  background-color: #4f46e5;
  border-color: #4f46e5;
  border-radius: 9999px;
  min-width: 38px;
  box-shadow: 0 0 10px rgba(79,70,229,0.4);
}
.biblioPaging .pagingList a {
  color: #374151;
  background-color: transparent;
}
.biblioPaging .pagingList a:hover { color: #4f46e5; }
.biblioPaging .pagingList a.first_link { padding-left: 20px; }
.biblioPaging .pagingList a.last_link { padding-right: 20px; }
.biblioPagingTop { display: none; }

/* =========================================================
   SLIMS LEGACY: Item availability
   ========================================================= */
.availability-item {
  color: white;
  padding: 10px;
  border-radius: 5px;
}
.item-onloan, .item-notforloan {
  background-color: #ef4444;
  width: 100%;
  display: block;
}
.item-available { background-color: #6366f1; }
.item-onreserve { background-color: #f59e0b; }

/* =========================================================
   SLIMS LEGACY: Grid item (book list)
   ========================================================= */
.grid-item {
  font-size: 12px;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}
.grid-item--title {
  box-sizing: border-box;
  color: #111827;
  cursor: pointer;
  display: -webkit-box;
  line-height: 1.5;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  -moz-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.grid-item .list-group-item {
  padding: 0.25rem 0.5rem;
  display: flex;
  justify-content: space-between;
}
.grid-item .list-group-item label {
  color: #6b7280;
  padding: 0;
  margin: 0;
}
/* img.not-available { filter: grayscale(0.9); } */
.grid-item--menu {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
}
.grid-item--menu .dropdown-toggle { text-decoration: none; color: inherit; }
.grid-item--menu .dropdown-toggle::after { display: none; }

/* =========================================================
   SLIMS LEGACY: Suggestion / autocomplete
   ========================================================= */
.sugestion {
  min-height: 80px;
  margin-top: 16px;
  padding-left: 60px;
}
.sugestion .title { font-weight: 600; }
.sugestion .author { color: #6b7280; }
.sugestion .card-text { font-size: 12px; }
.container-img {
  width: 60px;
  position: absolute;
  top: -10px;
  left: 10px;
  overflow: hidden;
  border-radius: 4px;
}

/* =========================================================
   SLIMS LEGACY: Member area
   ========================================================= */
.memberInfoHead {
  font-size: 24px;
  font-weight: bold;
  border-left: 4px solid #6366f1;
  padding: 2px 4px 2px 16px;
  margin-bottom: 16px;
}
.page-member-area .tagline {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
  border-bottom: 1px solid rgba(0,0,0,.1);
  padding-bottom: 1.5rem;
}
.page-member-area .memberButton,
.jsonResultLink,
.xmlResultLink {
  font-weight: 400;
  color: #4f46e5;
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.5rem;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.jsonResultLink:hover, .xmlResultLink:hover { color: #4338ca; text-decoration: none; }
.page-member-area .memberButton {
  background-color: #4f46e5;
  color: white;
  margin-top: 1rem;
  cursor: pointer;
  transition: all 200ms ease-in-out;
}
.page-member-area .memberButton:hover {
  background-color: #4338ca;
  box-shadow: 0 4px 20px rgba(79,70,229,0.2);
}
.page-member-area .errorBox {
  color: #ef4444;
  padding: 1rem;
  background-color: rgba(239,68,68,0.1);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}
.page-member-area .loginInfo { padding: 0.5rem 0; }
.page-member-area .fieldLabel { font-weight: bold; padding: 0.2rem 0; }
.page-member-area .form-control { width: 100%; }
#loginForm form { width: 100%; }
#loginForm .heading1 { font-weight: bold; }
#loginForm .login_input input {
  display: block;
  width: 100%;
  height: calc(2.25rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #111827;
  background-color: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.75rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  margin-bottom: 8px;
}
#loginForm .login_input input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
  outline: none;
  background-color: #fff;
}
#loginForm .homeButton { display: none; }
#loginForm .loginButton {
  margin-top: 10px;
  color: #fff;
  background-color: #4f46e5;
  border-color: #4f46e5;
  display: inline-block;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  padding: 0.375rem 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.75rem;
  transition: all 0.15s;
}
#loginForm .loginButton:hover {
  background-color: #4338ca;
  border-color: #4338ca;
  color: #fff;
}
.remember_forgot { display: flex; justify-content: space-between; }
.forgotButton { float: right; text-decoration: none; padding-top: 16px; color: #6b7280; }
.forgotButton:hover { text-decoration: none; color: #4f46e5; }
.loginButton {
  display: inline-block;
  font-weight: 600;
  color: #111827;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.5rem;
  transition: all 0.15s;
}
.biblioMarkFormAction { display: none; }

/* =========================================================
   SLIMS LEGACY: Advanced search modal
   ========================================================= */
#adv-modal .modal-content,
#adv-modal .modal-footer {
  position: relative;
  z-index: 1;
}
#adv-modal .modal-content:before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 0; left: 0;
  background-image: url("../images/logo-big.png");
  background-repeat: no-repeat;
  background-size: 50%;
  background-position-x: 500px;
  background-position-y: 250px;
  z-index: 0;
  opacity: 0.05;
}

/* =========================================================
   SLIMS LEGACY: Attachment list
   ========================================================= */
.attachList { padding: 4px 24px; }
.attachList li { padding: 4px 0; }

/* =========================================================
   SLIMS LEGACY: Comments
   ========================================================= */
.comments { padding: 8px 0; border-top: 1px dotted #e5e7eb; }
.comments .comment-member { font-size: 10pt; font-weight: bold; }
.comments .comment-content { color: #4b5563; }

/* =========================================================
   SLIMS LEGACY: Colorbox overrides
   ========================================================= */
#colorbox { border-radius: 1rem; }
#cboxLoadedContent { padding: 10px; }
#cboxOverlay { background: rgba(0,0,0,0.7); }
#cboxTitle {
  font: 10pt/1.8 'Inter', sans-serif;
  font-weight: bold;
  padding: 15px 0;
  background: #111827;
  bottom: 0;
  color: #fff;
}
#cboxTopLeft, #cboxTopRight, #cboxBottomLeft, #cboxBottomRight { width: 0; height: 0; }
#cboxMiddleLeft, #cboxMiddleRight { width: 0; }
#cboxBottomCenter, #cboxTopCenter { height: 0; }

/* =========================================================
   SLIMS LEGACY: Live chat widget
   ========================================================= */
.s-chat {
  display: none;
  flex-direction: column;
  width: 320px;
  height: 480px;
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: white;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  border-radius: 1rem;
  padding: 16px;
  overflow: hidden;
  z-index: 99;
}
.s-chat::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 150px;
  background: #4f46e5;
  z-index: 0;
}
.s-chat div, .s-chat a, .s-chat footer { position: relative; z-index: 10; }
.s-chat-header { font-size: 24px; font-weight: 300; color: #e0e7ff; line-height: 1.2; }

/* =========================================================
   SLIMS LEGACY: Librarian profile
   ========================================================= */
.librarian { display: flex; margin-bottom: 1.5rem; flex: 0 50%; }
.span2 { width: 12rem; }
.span2 div:first-child { padding: 2rem; background: #e5e7eb; border-radius: 0.75rem; }
.span2 img { border-radius: 0.5rem; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.span8 { flex: 1; padding: 0 1rem; }
.span8 .row-fluid { display: flex; }
.span8 .row-fluid .key { flex: 0 0 100px; font-weight: bold; }
.span8 .row-fluid .value { flex: 1; }
.span8 .librarian-social { list-style: none; padding: 0; margin: 0; }

/* =========================================================
   SLIMS LEGACY: Violation notice
   ========================================================= */
#vio {
  position: relative;
  width: 100%;
  text-align: center;
  z-index: 99999999999;
  background: #ef4444;
  padding: 8px 0;
  color: #fef2f2;
}
#vio a { color: #1f2937; }

/* =========================================================
   SLIMS LEGACY: Misc
   ========================================================= */
#languageMenuButton::after { display: none; }
.highlight { color: #ef4444; }
.text-thin { font-weight: 200 !important; }
.subtitle-section { font-size: 12px; }
.text-label { font-weight: bold !important; }

/* Navbar collapse mobile */
.navbar-collapse.collapsing,
.navbar-collapse.collapse.show {
  background-color: #1f2937;
  padding: 16px;
  z-index: 99;
  border-radius: 0.75rem;
  margin-top: 8px;
}

/* Symfony dump */
pre.sf-dump, pre.sf-dump .sf-dump-default { z-index: 888 !important; }

/* Vue.js transitions */
.slide-fade-enter-active { transition: all .3s ease; }
.slide-fade-leave-active { transition: all .5s cubic-bezier(1.0, 0.5, 0.8, 1.0); }
.slide-fade-enter, .slide-fade-leave-to { transform: translateX(10px); opacity: 0; }

/* Elevation utilities (Material Design style shadows) */
.elevation-1 {
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}
.elevation-1:hover { box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); }
.elevation-2 { box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); }
.elevation-3 { box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23); }
.elevation-4 { box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22); }
.elevation-5 { box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22); }

/* =========================================================
   SEARCH RESULT POLISH (list-group, card, filters)
   ========================================================= */
/* Hide debug box in results */
.biblioResult > pre { display: none !important; }
summary:has(span) { display: none !important; }
details:has(summary > span) { display: none !important; }

/* Filter list-group styles */
.list-group { display: flex; flex-direction: column; padding-left: 0; margin-bottom: 0; border-radius: 0.5rem; }
.list-group-item { position: relative; display: block; padding: 0.75rem 1.25rem; background-color: #fff; border: 1px solid rgba(0,0,0,.125); }
.list-group-flush > .list-group-item { border-width: 0 0 1px; }
.list-group-flush > .list-group-item:last-child { border-bottom-width: 0; }
.list-group-item.bg-transparent { background-color: transparent !important; }
.list-group-item .collapse:not(.show) { display: none; }
.list-group-item .collapse.show { display: block; }
.list-group-item strong.text-sm { color: #374151; font-weight: 700; }

/* Filter Checkboxes and Radios */
.list-group-item .form-check { display: flex !important; align-items: center !important; margin: 0.5rem 0 !important; padding-left: 0 !important; }
.list-group-item .form-check-input { float: none !important; margin: 0 !important; margin-right: 0.75rem !important; appearance: checkbox !important; width: 1.125rem !important; height: 1.125rem !important; border: 2px solid #cbd5e1 !important; opacity: 1 !important; visibility: visible !important; display: block !important; position: relative !important; cursor: pointer !important; }
.list-group-item .form-check-input[type="radio"] { appearance: radio !important; border-radius: 50% !important; }
.list-group-item .form-check-input:checked { background-color: #4f46e5 !important; border-color: #4f46e5 !important; }
.list-group-item .form-check-label { color: #374151 !important; font-size: 0.875rem !important; font-weight: 500 !important; opacity: 1 !important; visibility: visible !important; display: block !important; cursor: pointer !important; margin-bottom: 0 !important; }

/* Force ion.rangeSlider visibility over Tailwind preflight */
.irs-line { background-color: #e2e8f0 !important; height: 8px !important; border-radius: 4px !important; display: block !important; opacity: 1 !important; visibility: visible !important; border: none !important; }
.irs-bar { background-color: #4f46e5 !important; height: 8px !important; display: block !important; opacity: 1 !important; visibility: visible !important; border: none !important; }
.irs-handle { border: 4px solid #4f46e5 !important; background-color: #fff !important; width: 16px !important; height: 16px !important; border-radius: 50% !important; top: 22px !important; display: block !important; opacity: 1 !important; visibility: visible !important; cursor: pointer !important; box-sizing: border-box !important; }
.irs-from, .irs-to, .irs-single { background-color: #4f46e5 !important; display: block !important; opacity: 1 !important; visibility: visible !important; }
.irs-min, .irs-max { background-color: #94a3b8 !important; display: block !important; opacity: 1 !important; visibility: visible !important; }
.irs-from:before, .irs-to:before, .irs-single:before { border-width: 4px !important; border-top-color: #4f46e5 !important; border-style: solid !important; }
.irs * { box-sizing: border-box !important; }

/* Biblio Result Card */
.biblioResult .card.item { 
  background-color: #ffffff; 
  border-radius: 1rem; 
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.05), 0 2px 4px -1px rgba(0,0,0,.03); 
  border: 1px solid #f3f4f6 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.biblioResult .card.item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(79,70,229,.1), 0 4px 6px -2px rgba(79,70,229,.05);
}
.biblioResult .card-body { padding: 1.5rem; }
.biblioResult h5 { margin-bottom: 0.75rem; font-size: 1.125rem; font-weight: 800; line-height: 1.4; color: #111827; }
.biblioResult h5 a { color: #111827; text-decoration: none; transition: color 0.2s; }
.biblioResult h5 a:hover { color: #4f46e5; }

/* Cover image */
.biblioResult img.img-fluid {
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1);
  border: 1px solid #f3f4f6;
  width: 100%;
  max-width: 120px;
  height: auto;
  object-fit: cover;
  aspect-ratio: 2/3;
  margin: 0 auto;
  display: block;
}

/* Definition List (DL) fixing */
.biblioResult dl.row { margin-top: 1rem; margin-bottom: 1rem; display: flex; flex-wrap: wrap; }
.biblioResult dt { font-weight: 600; color: #6b7280; margin-bottom: 0.25rem; font-size: 0.875rem; }
.biblioResult dd { margin-bottom: 0.75rem; color: #374151; font-weight: 500; font-size: 0.875rem; }
@media (min-width: 576px) {
  .biblioResult .col-sm-3 { flex: 0 0 25%; max-width: 25%; padding-right: 15px; }
  .biblioResult .col-sm-9 { flex: 0 0 75%; max-width: 75%; }
}

/* Availability box */
.biblioResult .availability {
  background-color: #f8fafc;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  text-align: center;
}
.biblioResult .availability-content { padding: 1rem; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.biblioResult .availability-content .label { display: block; font-size: 0.75rem; font-weight: 700; color: #64748b; text-transform: uppercase; margin-bottom: 0.25rem; letter-spacing: 0.05em; }
.biblioResult .availability-content .value { font-size: 1.5rem; font-weight: 800; color: #10b981; }
.biblioResult .availability-content .value.text-danger { color: #ef4444 !important; }
.biblioResult .add-to-chart { display: none; } /* Hide add to cart button if not used */

/* Buttons */
.biblioResult .btn {
  display: inline-block; font-weight: 600; text-align: center; vertical-align: middle; cursor: pointer; user-select: none;
  border: 1px solid transparent; padding: 0.375rem 0.75rem; font-size: 0.75rem; line-height: 1.5; border-radius: 0.5rem;
  transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
  text-decoration: none;
}
.biblioResult .btn-outline-secondary { color: #64748b; border-color: #cbd5e1; background-color: transparent; }
.biblioResult .btn-outline-secondary:hover { color: #fff; background-color: #64748b; border-color: #64748b; }
.biblioResult .btn-block { display: block; width: 100%; }

/* Fix missing cols for biblioResult */
.biblioResult .col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; padding: 0 15px; }
.biblioResult .col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 15px; }
.biblioResult .col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; padding: 0 15px; }
@media (min-width: 768px) {
  .biblioResult .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
}

/* =========================================================
   MODERN OPAC HOMEPAGE
   ========================================================= */
:root {
  --modern-navy-950: #07111f;
  --modern-navy-900: #0b1729;
  --modern-navy-800: #13233a;
  --modern-blue-600: #2563eb;
  --modern-blue-500: #3b82f6;
  --modern-cyan-400: #22d3ee;
  --modern-slate-900: #0f172a;
  --modern-slate-600: #475569;
  --modern-slate-500: #64748b;
  --modern-slate-200: #e2e8f0;
  --modern-surface: #f5f7fb;
}

/* Navigation */
#main-navbar.modern-navbar {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(226, 232, 240, 0.82);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}
#main-navbar.modern-navbar > div {
  height: 4.5rem;
}
.modern-brand {
  min-width: 0;
  text-decoration: none;
}
.modern-brand-logo {
  width: auto;
  max-width: 2.75rem;
  height: 2.5rem;
  object-fit: contain;
  flex-shrink: 0;
}
.modern-brand-logo-shell,
.modern-footer-logo-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.9rem;
  background: #eff6ff;
  flex-shrink: 0;
}
.modern-brand-logo-shell {
  width: 2.5rem;
  height: 2.5rem;
}
.modern-footer-logo-shell {
  width: 3.5rem;
  height: 3.5rem;
}
.modern-brand-logo-fallback,
.modern-footer-logo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--modern-blue-600), #0ea5e9);
  color: #fff;
}
.modern-brand-logo-fallback {
  font-size: 0.9rem;
}
.modern-footer-logo-fallback {
  font-size: 1.15rem;
}
.modern-brand-logo-shell > img,
.modern-footer-logo-shell > img {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  object-fit: contain;
  background: #fff;
}
.modern-brand-logo-shell > img {
  width: 100%;
  height: 100%;
}
.modern-footer-logo-shell > img {
  width: 100%;
  height: 100%;
}
.modern-brand-mark {
  background: linear-gradient(145deg, var(--modern-blue-600), #0ea5e9) !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}
.modern-brand-copy {
  display: flex;
  min-width: 0;
  max-width: 18rem;
  flex-direction: column;
  justify-content: center;
  line-height: 1.12;
}
.modern-brand-copy > span {
  color: var(--modern-slate-900);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -0.025em;
}
.modern-brand-copy > small {
  overflow: hidden;
  margin-top: 0.2rem;
  color: var(--modern-slate-500);
  font-size: 0.7rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.modern-nav-links a {
  position: relative;
  border-radius: 0.75rem;
  text-decoration: none;
}
.modern-nav-links a:hover {
  background: #f8fafc;
}
.modern-nav-links a.active::after {
  position: absolute;
  right: 1rem;
  bottom: 0.2rem;
  left: 1rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--modern-blue-600), var(--modern-cyan-400));
  content: "";
}
.modern-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.55rem;
  padding: 0.62rem 1rem;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
.modern-login-button:hover {
  transform: translateY(-1px);
  background: #dbeafe;
  color: #1e40af;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
}
.modern-mobile-member {
  margin-top: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid #e2e8f0;
}
.modern-mobile-member .modern-login-button {
  width: 100%;
}

/* Hero */
#section1.modern-hero {
  position: relative;
  isolation: isolate;
  min-height: auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 77% 27%, rgba(14, 165, 233, 0.16), transparent 30%),
    radial-gradient(circle at 12% 90%, rgba(37, 99, 235, 0.15), transparent 32%),
    linear-gradient(135deg, var(--modern-navy-950) 0%, #0a1930 54%, #0d2341 100%);
}
.modern-hero-pattern {
  position: absolute;
  z-index: -2;
  inset: 4.5rem 0 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.13) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}
.modern-orb {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(1px);
  pointer-events: none;
}
.modern-orb-one {
  top: 8rem;
  right: -8rem;
  width: 24rem;
  height: 24rem;
  border: 1px solid rgba(125, 211, 252, 0.15);
  background: rgba(14, 165, 233, 0.05);
}
.modern-orb-two {
  bottom: 4rem;
  left: -7rem;
  width: 17rem;
  height: 17rem;
  border: 1px solid rgba(96, 165, 250, 0.13);
  background: rgba(37, 99, 235, 0.045);
}
.modern-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(24rem, 0.92fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  padding-top: clamp(4.5rem, 8vw, 7.25rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}
.modern-hero-copy {
  max-width: 44rem;
}
.modern-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  padding: 0.48rem 0.8rem;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 999px;
  background: rgba(15, 39, 67, 0.7);
  color: #bae6fd;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.modern-eyebrow-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--modern-cyan-400);
  box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.1);
}
#section1.modern-hero h1 {
  max-width: 46rem;
  margin: 0 0 1.35rem;
  background: none;
  color: #f8fafc;
  font-size: clamp(2.85rem, 5.5vw, 5.15rem);
  font-weight: 850;
  line-height: 0.99;
  letter-spacing: -0.065em;
  -webkit-text-fill-color: #f8fafc;
}
#section1.modern-hero h1 span {
  background: linear-gradient(100deg, #7dd3fc 0%, #60a5fa 48%, #a5b4fc 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
#section1.modern-hero .hero-sub {
  max-width: 38rem;
  margin: 0 0 2rem;
  color: #a8b6ca;
  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
  line-height: 1.75;
}
.modern-search-area {
  position: relative;
  width: 100%;
  max-width: 43rem;
}
.modern-search-area .search,
.modern-search-area .search .container,
.modern-search-area .modern-search-shell {
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}
.modern-search-area .search .container > .flex {
  justify-content: flex-start;
}
.modern-search-area .modern-search-shell {
  position: relative;
}
.modern-search-area .search-pill {
  min-height: 4rem;
  padding: 0.38rem 0.4rem 0.38rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 50px rgba(2, 8, 23, 0.26);
}
.modern-search-area .search-pill:focus-within {
  border-color: #7dd3fc;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16), 0 20px 55px rgba(2, 8, 23, 0.3);
}
.modern-search-icon {
  color: #64748b !important;
  font-size: 1rem !important;
}
.modern-search-area #search-input {
  height: 3rem;
  color: var(--modern-slate-900);
  font-size: 0.94rem;
}
.modern-search-button {
  min-width: 6.25rem;
  height: 3.15rem !important;
  border: 0;
  background: linear-gradient(135deg, var(--modern-blue-600), #0284c7);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
  cursor: pointer;
}
.modern-search-button:hover {
  background: linear-gradient(135deg, #1d4ed8, #0369a1);
}
.modern-search-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #fff1f2;
  color: #e11d48;
  cursor: pointer;
}
.modern-search-close:hover {
  background: #ffe4e6;
  color: #be123c;
}
.modern-quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  color: #7f90a8;
  font-size: 0.76rem;
}
.modern-quick-links span {
  font-weight: 650;
}
.modern-quick-links a {
  padding: 0.3rem 0.58rem;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 999px;
  color: #cbd5e1;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}
.modern-quick-links a:hover {
  border-color: rgba(125, 211, 252, 0.36);
  background: rgba(14, 165, 233, 0.08);
  color: #e0f2fe;
}

/* Hero visual */
.modern-hero-visual {
  position: relative;
  min-height: 30rem;
}
.visual-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 23rem;
  height: 23rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  filter: blur(55px);
  transform: translate(-50%, -50%);
}
.visual-card {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(19, 35, 58, 0.82);
  color: #fff;
  box-shadow: 0 28px 70px rgba(2, 8, 23, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.visual-card-main {
  top: 3.4rem;
  right: 1.25rem;
  width: min(100%, 25rem);
  min-height: 21.5rem;
  padding: 2rem;
  border-radius: 2rem;
  transform: rotate(1.2deg);
}
.visual-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.visual-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1.1rem;
  background: linear-gradient(145deg, #2563eb, #06b6d4);
  color: #fff;
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.25);
}
.visual-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.65rem;
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  color: #a7f3d0;
  font-size: 0.65rem;
  font-weight: 750;
}
.visual-status i {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: #34d399;
}
.visual-kicker {
  margin-top: 3.4rem;
  color: #7dd3fc;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.visual-title {
  overflow: hidden;
  margin-top: 0.55rem;
  color: #f8fafc;
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.visual-progress {
  height: 0.38rem;
  margin-top: 2.4rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
}
.visual-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #22d3ee);
}
.visual-caption {
  margin-top: 0.8rem;
  color: #94a3b8;
  font-size: 0.72rem;
}
.visual-card-float {
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.78rem;
  min-width: 12rem;
  padding: 0.9rem 1rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--modern-slate-900);
}
.visual-card-float strong,
.visual-card-float small {
  display: block;
}
.visual-card-float strong {
  font-size: 1rem;
  line-height: 1.1;
}
.visual-card-float small {
  margin-top: 0.18rem;
  color: #64748b;
  font-size: 0.64rem;
  font-weight: 600;
}
.visual-card-books {
  top: 1.15rem;
  left: -1.2rem;
  transform: rotate(-2deg);
}
.visual-card-members {
  right: -1.4rem;
  bottom: 2.3rem;
  transform: rotate(1.5deg);
}
.float-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.78rem;
  flex-shrink: 0;
}
.float-icon.blue {
  background: #dbeafe;
  color: #2563eb;
}
.float-icon.amber {
  background: #fef3c7;
  color: #d97706;
}
.visual-book-stack {
  position: absolute;
  right: 0.25rem;
  bottom: 0.5rem;
  z-index: -1;
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  transform: rotate(-5deg);
}
.visual-book-stack span {
  display: block;
  width: 3rem;
  height: 8rem;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 0.6rem 0.6rem 0.25rem 0.25rem;
  background: rgba(30, 64, 175, 0.16);
}
.visual-book-stack span:nth-child(2) {
  height: 10rem;
  background: rgba(8, 145, 178, 0.14);
}
.visual-book-stack span:nth-child(3) {
  height: 7rem;
  background: rgba(79, 70, 229, 0.13);
}

/* Statistics */
.modern-stat-strip {
  padding-bottom: 2.35rem;
}
.modern-stat-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(15rem, 1.2fr);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1.35rem;
  background: rgba(14, 32, 55, 0.75);
  box-shadow: 0 18px 48px rgba(2, 8, 23, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.modern-stat {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 5.4rem;
  padding: 1rem 1.25rem;
  border-right: 1px solid rgba(148, 163, 184, 0.12);
}
.modern-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.75rem;
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
  flex-shrink: 0;
}
.modern-stat strong,
.modern-stat small {
  display: block;
}
.modern-stat strong {
  color: #f8fafc;
  font-size: 1.12rem;
  line-height: 1.15;
}
.modern-stat small {
  margin-top: 0.22rem;
  color: #8292a8;
  font-size: 0.66rem;
  font-weight: 600;
}
.modern-stat-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.4rem;
  padding: 1rem 1.3rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.82), rgba(2, 132, 199, 0.75));
  color: #fff;
  text-decoration: none;
  transition: filter 180ms ease;
}
.modern-stat-action:hover {
  color: #fff;
  filter: brightness(1.08);
}
.modern-stat-action small,
.modern-stat-action strong {
  display: block;
}
.modern-stat-action small {
  color: #bfdbfe;
  font-size: 0.65rem;
  font-weight: 650;
}
.modern-stat-action strong {
  margin-top: 0.18rem;
  font-size: 0.83rem;
}
.modern-stat-action > i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

/* Homepage sections */
.modern-home-surface {
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(37, 99, 235, 0.05), transparent 22rem),
    var(--modern-surface);
}
.modern-section {
  padding-top: clamp(4rem, 7vw, 6.5rem);
  padding-bottom: clamp(4rem, 7vw, 6.5rem);
}
.modern-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.modern-section-kicker {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--modern-blue-600);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.modern-section-heading h2 {
  margin: 0;
  color: var(--modern-slate-900);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -0.045em;
}
.modern-section-heading p {
  max-width: 36rem;
  margin: 0.65rem 0 0;
  color: var(--modern-slate-500);
  font-size: 0.9rem;
  line-height: 1.65;
}
.modern-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}
.modern-link i {
  transition: transform 180ms ease;
}
.modern-link:hover {
  color: #1e40af;
}
.modern-link:hover i {
  transform: translateX(3px);
}

/* Categories */
.modern-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.modern-category-card a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 7.5rem;
  overflow: hidden;
  padding: 1.15rem;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--modern-slate-900);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.035);
  text-decoration: none;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.modern-category-card a::after {
  position: absolute;
  right: -2.25rem;
  bottom: -3.7rem;
  width: 8rem;
  height: 8rem;
  border-radius: 999px;
  background: #eff6ff;
  content: "";
  transition: transform 250ms ease;
}
.modern-category-card a:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
  color: var(--modern-slate-900);
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.1);
}
.modern-category-card a:hover::after {
  transform: scale(1.15);
}
.modern-category-icon {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.3rem;
  height: 4.3rem;
  border-radius: 1.1rem;
  background: linear-gradient(145deg, #eff6ff, #eef2ff);
  flex-shrink: 0;
}
.modern-category-icon img {
  width: 2.35rem !important;
  height: 2.35rem !important;
  max-width: 2.35rem !important;
  object-fit: contain;
}
.modern-category-card a > div:nth-child(2) {
  z-index: 1;
  min-width: 0;
}
.modern-category-card strong,
.modern-category-card span {
  display: block;
}
.modern-category-card strong {
  font-size: 0.9rem;
  font-weight: 800;
}
.modern-category-card span {
  margin-top: 0.3rem;
  color: var(--modern-slate-500);
  font-size: 0.72rem;
}
.modern-category-arrow {
  position: absolute;
  right: 1rem;
  bottom: 0.95rem;
  z-index: 1;
  color: #93c5fd;
  font-size: 0.68rem;
  transform: rotate(45deg);
  transition: color 180ms ease, transform 180ms ease;
}
.modern-category-card a:hover .modern-category-arrow {
  color: var(--modern-blue-600);
  transform: rotate(45deg) translateY(-2px);
}

/* Collection */
.modern-collection-section {
  padding-top: 0;
}
.modern-collection-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
}
.modern-book-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.035);
}
.book-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-height: 2.35rem;
  padding: 0.5rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 750;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
.book-tab-btn.active {
  background: var(--modern-slate-900);
  color: #fff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}
.book-tab-btn.active i {
  color: #7dd3fc !important;
}
.modern-collection-action {
  padding-bottom: 0.6rem;
}
.modern-book-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
  margin-top: 1.5rem;
}
.modern-collection-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 11rem;
  margin-top: 1.5rem;
  padding: 2rem;
  border: 1px dashed #cbd5e1;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  color: var(--modern-slate-500);
  font-size: 0.82rem;
  font-weight: 650;
  text-align: center;
}

/* Community and services */
.modern-community-section {
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.7);
}
.modern-community-section .modern-section {
  padding-top: clamp(4rem, 7vw, 5.5rem);
  padding-bottom: clamp(4rem, 7vw, 5.5rem);
}
.modern-community-section .leaderboard-panel {
  min-height: 20rem;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.04);
}
.modern-service-links {
  display: grid;
  gap: 0.65rem;
}
.modern-service-links > a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: 1rem;
  color: var(--modern-slate-900);
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}
.modern-service-links > a:hover {
  transform: translateX(3px);
  background: #f8fafc;
  color: var(--modern-slate-900);
}
.modern-service-links > a > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.85rem;
  background: #eff6ff;
  color: var(--modern-blue-600);
}
.modern-service-links strong,
.modern-service-links small {
  display: block;
}
.modern-service-links strong {
  font-size: 0.82rem;
  font-weight: 800;
}
.modern-service-links small {
  margin-top: 0.2rem;
  color: var(--modern-slate-500);
  font-size: 0.68rem;
}
.modern-service-links > a > i {
  color: #cbd5e1;
  font-size: 0.65rem;
}

/* Location */
.modern-location-section {
  padding: clamp(4rem, 7vw, 6rem) 0;
  background: var(--modern-surface);
}
.modern-location-card {
  overflow: hidden;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 2rem;
  background: #fff;
  box-shadow: 0 22px 65px rgba(15, 23, 42, 0.065);
}
.modern-location-map {
  display: block;
  min-height: 24rem;
  border-radius: 1.35rem;
  box-shadow: none;
}
.modern-location-copy {
  padding: clamp(1rem, 4vw, 3rem) clamp(1rem, 4vw, 2.25rem) clamp(1.4rem, 4vw, 3rem) 0;
}
.modern-location-copy h3 {
  margin: 0 0 1rem;
  color: var(--modern-slate-900);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 850;
  line-height: 1.16;
  letter-spacing: -0.04em;
}

/* Keyboard focus */
#main-navbar a:focus-visible,
#main-navbar button:focus-visible,
.modern-hero a:focus-visible,
.modern-hero button:focus-visible,
.modern-home-surface a:focus-visible,
.modern-home-surface button:focus-visible,
.modern-home-surface input:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 68.75rem) {
  .modern-hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
    gap: 2.5rem;
  }
  .visual-card-main {
    right: 0;
    width: min(100%, 22rem);
  }
  .visual-card-books {
    left: 0;
  }
  .visual-card-members {
    right: -0.5rem;
  }
  .modern-stat-strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .modern-stat:nth-child(2) {
    border-right: 0;
  }
  .modern-stat:nth-child(1),
  .modern-stat:nth-child(2) {
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  }
  .modern-book-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 56.25rem) {
  .modern-hero-inner {
    grid-template-columns: 1fr;
    padding-top: 4.5rem;
  }
  .modern-hero-copy {
    max-width: 46rem;
  }
  .modern-hero-visual {
    display: none;
  }
  .modern-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .modern-collection-heading {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .modern-collection-heading > div:first-child {
    grid-column: 1 / -1;
  }
  .modern-collection-action {
    padding-bottom: 0;
  }
  .modern-book-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 47.9375rem) {
  #main-navbar.modern-navbar > div {
    height: 4.25rem;
  }
  .modern-brand {
    max-width: calc(100% - 3.25rem);
  }
  .modern-brand-copy {
    max-width: min(16rem, calc(100vw - 8.5rem));
  }
  .modern-brand-copy > span {
    font-size: 0.9rem;
  }
  .modern-brand-copy > small {
    font-size: 0.65rem;
  }
  #mobile-menu {
    max-height: calc(100vh - 4.25rem);
    overflow-y: auto;
  }
  .modern-hero-pattern {
    top: 4.25rem;
  }
  .modern-hero-inner {
    padding-top: 3.75rem;
    padding-bottom: 3.25rem;
  }
  #section1.modern-hero h1 {
    font-size: clamp(2.5rem, 11vw, 4rem);
  }
  .modern-eyebrow {
    letter-spacing: 0.08em;
  }
  .modern-stat-strip-inner {
    grid-template-columns: 1fr 1fr;
  }
  .modern-stat {
    padding: 0.9rem 1rem;
  }
  .modern-stat:nth-child(3) {
    border-right: 0;
  }
  .modern-stat-action {
    grid-column: 1 / -1;
  }
  .modern-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
  .modern-collection-heading {
    display: flex;
    align-items: flex-start;
  }
  .modern-category-card a {
    min-height: 6.8rem;
  }
  .modern-book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }
  .modern-location-card {
    padding: 0.75rem;
  }
  .modern-location-map {
    min-height: 18rem;
  }
  .modern-location-copy {
    padding: 1.25rem 0.75rem 1.5rem;
  }
}

@media (max-width: 35rem) {
  .modern-search-area .search-pill {
    min-height: 3.7rem;
  }
  .modern-search-button {
    min-width: auto;
    padding-right: 1rem !important;
    padding-left: 1rem !important;
  }
  .modern-quick-links span {
    width: 100%;
  }
  .modern-stat-strip-inner {
    grid-template-columns: 1fr;
  }
  .modern-stat {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  }
  .modern-stat-action {
    grid-column: auto;
  }
  .modern-category-grid {
    grid-template-columns: 1fr;
  }
  .modern-category-card a {
    min-height: 6.4rem;
  }
  .modern-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  body {
    scroll-behavior: auto;
  }
  .modern-home-surface *,
  .modern-hero *,
  #main-navbar * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =========================================================
   CLEAN LIQUID GLASS SKIN
   Simple, bright, and intentionally subtle.
   ========================================================= */
:root {
  --modern-surface: #ffffff;
  --liquid-glass: rgba(255, 255, 255, 0.72);
  --liquid-line: rgba(148, 163, 184, 0.22);
  --liquid-shadow: 0 18px 55px rgba(15, 23, 42, 0.07);
}
body {
  background: #ffffff;
  color: #0f172a;
}

#main-navbar.modern-navbar {
  border-color: rgba(226, 232, 240, 0.68);
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 30px rgba(15, 23, 42, 0.035);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}
.modern-nav-links a.active::after {
  background: #2563eb;
}
.modern-login-button {
  border-color: rgba(191, 219, 254, 0.72);
  background: rgba(239, 246, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

#section1.modern-hero {
  min-height: auto;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  background:
    radial-gradient(circle at 18% 18%, rgba(186, 230, 253, 0.36), transparent 24rem),
    radial-gradient(circle at 82% 26%, rgba(224, 231, 255, 0.4), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 52%, #f7faff 100%);
}
#section1.modern-hero::after {
  position: absolute;
  z-index: -1;
  right: 10%;
  bottom: 4rem;
  width: 14rem;
  height: 14rem;
  border-radius: 44% 56% 62% 38% / 43% 38% 62% 57%;
  background: rgba(191, 219, 254, 0.18);
  filter: blur(42px);
  content: "";
  pointer-events: none;
}
.modern-hero-pattern {
  display: none;
}
.modern-orb {
  border: 0;
  opacity: 0.62;
  filter: blur(46px);
}
.modern-orb-one {
  top: 8rem;
  right: -6rem;
  width: 20rem;
  height: 20rem;
  background: rgba(165, 243, 252, 0.18);
}
.modern-orb-two {
  bottom: 1rem;
  left: -5rem;
  width: 16rem;
  height: 16rem;
  background: rgba(199, 210, 254, 0.2);
}
.modern-hero-inner {
  display: block;
  max-width: 58rem;
  padding-top: clamp(4.75rem, 8vw, 7rem);
  padding-bottom: clamp(3.75rem, 7vw, 5.75rem);
  text-align: center;
}
.modern-hero-copy {
  max-width: 58rem;
  margin: 0 auto;
}
.modern-eyebrow {
  margin-bottom: 1.35rem;
  border: 1px solid rgba(191, 219, 254, 0.86);
  background: rgba(255, 255, 255, 0.68);
  color: #2563eb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 26px rgba(37, 99, 235, 0.055);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.modern-eyebrow-dot {
  background: #38bdf8;
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.12);
}
#section1.modern-hero h1 {
  max-width: 54rem;
  margin-right: auto;
  margin-bottom: 1.2rem;
  margin-left: auto;
  color: #0f172a;
  font-size: clamp(2.65rem, 5vw, 4.65rem);
  font-weight: 830;
  line-height: 1.02;
  letter-spacing: -0.06em;
  -webkit-text-fill-color: #0f172a;
}
#section1.modern-hero h1 span {
  background: none;
  color: #2563eb;
  -webkit-text-fill-color: #2563eb;
}
#section1.modern-hero .hero-sub {
  max-width: 35rem;
  margin-right: auto;
  margin-bottom: 1.75rem;
  margin-left: auto;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.7;
}
.modern-search-area {
  max-width: 44rem;
  margin-right: auto;
  margin-left: auto;
}
.modern-search-area .search-pill {
  min-height: 4rem;
  border: 1px solid rgba(203, 213, 225, 0.72);
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 18px 55px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}
.modern-search-area .search-pill:focus-within {
  border-color: rgba(96, 165, 250, 0.72);
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 0 0 4px rgba(59, 130, 246, 0.1),
    0 20px 58px rgba(37, 99, 235, 0.09);
}
.modern-search-button {
  background: #2563eb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 20px rgba(37, 99, 235, 0.16);
}
.modern-search-button:hover {
  background: #1d4ed8;
}
.modern-search-button:active {
  background: #1e40af;
}
.modern-quick-links {
  justify-content: center;
  color: #94a3b8;
}
.modern-quick-links a {
  border-color: rgba(203, 213, 225, 0.75);
  background: rgba(255, 255, 255, 0.52);
  color: #475569;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.modern-quick-links a:hover {
  border-color: #bfdbfe;
  background: rgba(239, 246, 255, 0.84);
  color: #1d4ed8;
}
.modern-hero-visual {
  display: none;
}

.modern-stat-strip {
  max-width: 76rem;
  padding-bottom: 2rem;
}
.modern-stat-strip-inner {
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.63);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 18px 60px rgba(15, 23, 42, 0.075);
  backdrop-filter: blur(26px) saturate(145%);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
}
.modern-stat {
  border-color: rgba(203, 213, 225, 0.58);
}
.modern-stat-icon {
  background: rgba(219, 234, 254, 0.66);
  color: #2563eb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.modern-stat strong {
  color: #0f172a;
}
.modern-stat small {
  color: #64748b;
}
.modern-stat-action {
  border-left: 1px solid rgba(191, 219, 254, 0.62);
  background: rgba(239, 246, 255, 0.72);
  color: #1d4ed8;
}
.modern-stat-action:hover {
  background: rgba(219, 234, 254, 0.84);
  color: #1e40af;
  filter: none;
}
.modern-stat-action small {
  color: #64748b;
}
.modern-stat-action strong {
  color: #1d4ed8;
}
.modern-stat-action > i {
  background: rgba(37, 99, 235, 0.1);
}

.modern-home-surface {
  background:
    radial-gradient(circle at 95% 8%, rgba(219, 234, 254, 0.28), transparent 22rem),
    radial-gradient(circle at 4% 36%, rgba(224, 231, 255, 0.22), transparent 20rem),
    #ffffff;
}
.modern-section {
  padding-top: clamp(3.75rem, 6vw, 5.5rem);
  padding-bottom: clamp(3.75rem, 6vw, 5.5rem);
}
.modern-section-heading h2 {
  font-size: clamp(1.7rem, 2.7vw, 2.35rem);
}
.modern-section-kicker {
  color: #2563eb;
}

.modern-category-grid {
  gap: 0.9rem;
}
.modern-category-card a {
  min-height: 7rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 12px 34px rgba(15, 23, 42, 0.045);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.modern-category-card a::after {
  display: none;
}
.modern-category-card a:hover {
  transform: translateY(-2px);
  border-color: rgba(147, 197, 253, 0.7);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 16px 40px rgba(37, 99, 235, 0.075);
}
.modern-category-icon {
  background: rgba(239, 246, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.modern-book-tabs {
  border-color: rgba(226, 232, 240, 0.78);
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 8px 24px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.book-tab-btn.active {
  background: rgba(219, 234, 254, 0.84);
  color: #1d4ed8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.book-tab-btn {
  color: #64748b;
}
.book-tab-btn.active i {
  color: #2563eb !important;
}
.book-card {
  border-color: rgba(226, 232, 240, 0.82);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 10px 30px rgba(15, 23, 42, 0.045);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.book-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(37, 99, 235, 0.085);
}

.modern-community-section {
  border-color: rgba(226, 232, 240, 0.68);
  background: rgba(248, 250, 252, 0.46);
}
.modern-community-section .leaderboard-panel,
.modern-location-card {
  border-color: rgba(226, 232, 240, 0.78);
  background: rgba(255, 255, 255, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 16px 46px rgba(15, 23, 42, 0.055);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.modern-service-links > a:hover {
  background: rgba(239, 246, 255, 0.62);
}
.modern-location-section {
  background:
    radial-gradient(circle at 14% 50%, rgba(219, 234, 254, 0.26), transparent 20rem),
    #fbfdff;
}
#advanced-wraper {
  border: 1px solid rgba(203, 213, 225, 0.72) !important;
  border-radius: 1.25rem !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 18px 48px rgba(15, 23, 42, 0.09) !important;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}
footer .animate-pulse {
  animation: none !important;
}

@media (max-width: 68.75rem) {
  .modern-hero-inner {
    display: block;
  }
  .modern-stat-strip-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(14rem, 1.1fr);
  }
  .modern-stat {
    border-bottom: 0 !important;
  }
  .modern-stat:nth-child(2) {
    border-right: 1px solid rgba(203, 213, 225, 0.52);
  }
}

@media (max-width: 47.9375rem) {
  #section1.modern-hero h1 {
    font-size: clamp(2.45rem, 11vw, 3.6rem);
  }
  .modern-hero-inner {
    padding-top: 3.5rem;
    padding-bottom: 3rem;
  }
  .modern-stat-strip-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .modern-stat {
    min-height: 5.25rem;
    padding: 0.8rem 0.45rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    border-right: 1px solid rgba(203, 213, 225, 0.52);
    border-bottom: 0 !important;
    text-align: center;
  }
  .modern-stat:nth-child(3) {
    border-right: 0;
  }
  .modern-stat-icon {
    display: none;
  }
  .modern-stat small {
    font-size: 0.6rem;
  }
  .modern-stat-action {
    grid-column: 1 / -1;
    min-height: 4.35rem;
    border-top: 1px solid rgba(191, 219, 254, 0.58);
    border-left: 0;
  }
}

@media (max-width: 35rem) {
  .modern-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .modern-category-card a {
    min-height: 9.2rem;
    padding: 0.95rem;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.7rem;
  }
  .modern-category-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.9rem;
  }
  .modern-category-icon img {
    width: 1.9rem !important;
    height: 1.9rem !important;
    max-width: 1.9rem !important;
  }
  .modern-category-card span {
    margin-top: 0.2rem;
  }
  .modern-category-arrow {
    top: 1rem;
    right: 1rem;
    bottom: auto;
  }
}

@media (max-width: 30rem) {
  .modern-quick-links {
    display: none;
  }
}
