/* ==========================================================================
   Modern Home Theme - Perpustakaan Digital SLiMS 9 Bulian
   Designed to look modern, clean, and professional
   ========================================================================== */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --secondary: #0ea5e9;
  --accent: #f59e0b;
  --success: #10b981;
  --dark-bg: #0f172a;
  --dark-card: #1e293b;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.25);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color: #334155;
  background-color: #f8fafc;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   1. HERO & NAVBAR
   ========================================================================== */
.modern-hero {
  position: relative;
  background: linear-gradient(135deg, #0b1120 0%, #111e38 50%, #1e293b 100%);
  color: #ffffff;
  padding-bottom: 80px;
  overflow: hidden;
}

.modern-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(14, 165, 233, 0.08) 50%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

.modern-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.8;
}

/* ==========================================================================
   AMBIENT OCEAN WAVES & SAILING SHIP BACKGROUND (Samar & Ringan)
   Tema: "Eksplorasi Lautan Ilmu"
   ========================================================================== */
.hero-ocean-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

/* Subtle moonlit/ocean mist glow */
.ocean-mist-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 250px;
  background: radial-gradient(ellipse at 50% 100%, rgba(14, 165, 233, 0.14) 0%, rgba(30, 58, 138, 0.08) 50%, transparent 80%);
  pointer-events: none;
}

/* Sailing Ship Track (Looping across screen) */
.hero-ship-track {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 3;
}

.hero-ship-slider {
  display: inline-block;
  will-change: transform;
  animation: heroShipSail 42s linear infinite;
}

.hero-ship-bob {
  display: inline-block;
  will-change: transform;
  animation: heroShipBob 4.5s ease-in-out infinite;
}

.hero-ship-svg {
  width: 72px;
  height: 68px;
  opacity: 0.65; /* Samar & halus, menyatu harmonis dengan gradien hero */
  filter: drop-shadow(0 4px 14px rgba(56, 189, 248, 0.35));
}

@keyframes heroShipSail {
  0% {
    transform: translate3d(-110px, 0, 0);
  }
  100% {
    transform: translate3d(calc(100vw + 110px), 0, 0);
  }
}

@keyframes heroShipBob {
  0%, 100% {
    transform: translateY(0px) rotate(-2.5deg);
  }
  28% {
    transform: translateY(-6px) rotate(1.5deg);
  }
  55% {
    transform: translateY(3px) rotate(3deg);
  }
  80% {
    transform: translateY(-3px) rotate(-1deg);
  }
}

/* Multi-tiered Ocean Waves (Pure SVG + GPU Keyframes - Ringan di Browser) */
.ocean-wave-tier {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  min-width: 2400px;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  will-change: transform;
}

.ocean-wave-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Wave 1: Distant Deep Ocean */
.ocean-wave-back {
  height: 100px;
  z-index: 1;
  opacity: 0.22;
  animation: heroWaveFlow 28s linear infinite;
}
.ocean-wave-back path {
  fill: #0284c7;
}

/* Wave 2: Mid Ocean Swell (rides beneath ship) */
.ocean-wave-mid {
  height: 115px;
  z-index: 2;
  opacity: 0.28;
  animation: heroWaveFlowRev 19s linear infinite;
}
.ocean-wave-mid path {
  fill: #0369a1;
}

/* Wave 3: Foreground Cresting Swell */
.ocean-wave-front {
  height: 130px;
  z-index: 4;
  opacity: 0.32;
  animation: heroWaveFlow 14s linear infinite;
}
.ocean-wave-front path {
  fill: #0284c7;
}

@keyframes heroWaveFlow {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes heroWaveFlowRev {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* Bottom fade to blend ocean into next section / stats bar */
.ocean-bottom-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45px;
  background: linear-gradient(to top, rgba(11, 17, 32, 0.85) 0%, transparent 100%);
  z-index: 5;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-ship-svg {
    width: 52px;
    height: 48px;
  }
  .hero-ship-track {
    bottom: 48px;
  }
  .ocean-wave-back { height: 75px; }
  .ocean-wave-mid { height: 85px; }
  .ocean-wave-front { height: 95px; }
}



.modern-nav-wrapper {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1050 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  background: rgba(11, 17, 32, 0.94) !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.35) !important;
  padding: 6px 0;
  transition: all 0.25s ease-in-out;
}

.modern-nav-wrapper .navbar-brand {
  font-weight: 700;
  letter-spacing: -0.3px;
}

.modern-nav-wrapper .nav-link,
.modern-page-nav-wrapper .nav-link {
  font-weight: 500;
  font-size: 14.5px;
  color: #cbd5e1 !important;
  padding: 7px 14px !important;
  margin: 0 2px;
  border-radius: 9px;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
}

.modern-nav-wrapper .nav-link:hover,
.modern-page-nav-wrapper .nav-link:hover {
  color: #38bdf8 !important;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.2);
  transform: translateY(-1px);
}

.modern-nav-wrapper .nav-item.active .nav-link,
.modern-page-nav-wrapper .nav-item.active .nav-link {
  color: #ffffff !important;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(6, 182, 212, 0.25)) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.22);
}

.modern-nav-wrapper .btn-member-nav {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  padding: 6px 16px !important;
  font-weight: 600 !important;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.modern-nav-wrapper .btn-member-nav:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  transform: translateY(-1px);
}

/* Modern Navbar Container & Member Display Fixes */
.modern-nav-wrapper .container,
.modern-page-nav-wrapper .container {
  max-width: 1360px !important;
}

.nav-member-toggle {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
}

.nav-member-name {
  display: inline-block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 170px;
  vertical-align: middle;
  line-height: 1.2;
}

@media (min-width: 992px) and (max-width: 1366px) {
  .modern-nav-wrapper .nav-link,
  .modern-page-nav-wrapper .nav-link {
    font-size: 13.5px !important;
    padding: 6px 9px !important;
    margin: 0 1px !important;
  }
  .nav-member-name {
    max-width: 145px !important;
  }
}


.modern-hero-content {
  position: relative;
  z-index: 10;
  padding-top: 60px;
  padding-bottom: 20px;
  text-align: center;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 9999px;
  color: #93c5fd;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}

.hero-pill-badge .dot-pulse {
  width: 8px;
  height: 8px;
  background-color: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.modern-hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.8px;
}

.modern-hero-title .hero-title-line1 {
  display: block !important;
  color: #ffffff !important;
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  margin-bottom: 4px;
}

.modern-hero-title .hero-title-line2 {
  display: block !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

/* ==========================================================================
   HERO TITLE TYPEWRITER ANIMATION (WARNA-WARNI & REPEATING)
   ========================================================================== */
.hero-typewriter-container {
  display: inline-block;
  min-height: 1.3em;
  position: relative;
  vertical-align: middle;
}

.hero-typewriter-rainbow {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 20%, #ec4899 40%, #f59e0b 60%, #10b981 80%, #38bdf8 100%) !important;
  background-size: 300% 300% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: rainbowTextShift 6s ease-in-out infinite !important;
  display: inline !important;
  text-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
  font-weight: 800;
  letter-spacing: -0.5px;
}

@keyframes rainbowTextShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-typewriter-cursor {
  display: inline-block !important;
  font-weight: 200 !important;
  color: #38bdf8 !important;
  -webkit-text-fill-color: #38bdf8 !important;
  margin-left: 3px;
  animation: typewriterBlink 0.85s infinite !important;
  text-shadow: 0 0 10px #38bdf8, 0 0 20px #818cf8;
  font-size: 0.95em;
  vertical-align: baseline;
}

@keyframes typewriterBlink {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 8px #38bdf8); }
  50% { opacity: 0; filter: none; }
}

@media (max-width: 768px) {
  .hero-typewriter-container {
    min-height: 3.2em;
  }
}

.modern-hero-subtitle {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 680px;
  margin: 0 auto 36px auto;
  line-height: 1.6;
}

/* ==========================================================================
   2. SEARCH ENGINE BOX
   ========================================================================== */
.modern-search-card {
  max-width: 780px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 15;
}

.modern-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modern-search-input-group {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-icon-left {
  position: absolute;
  left: 18px;
  color: #94a3b8;
  font-size: 17px;
  pointer-events: none;
}

.modern-search-input {
  width: 100%;
  height: 52px;
  padding: 12px 18px 12px 48px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 15px;
  color: #1e293b;
  background: transparent;
  outline: none;
  transition: all 0.2s ease;
}

.modern-search-input:focus {
  background: #f8fafc;
}

.modern-search-btn {
  height: 52px;
  padding: 0 28px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.modern-search-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

.hero-quick-tags {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
}

.quick-tag-pill {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 12px;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.quick-tag-pill:hover {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.35);
  border-color: #3b82f6;
  text-decoration: none;
}

/* ==========================================================================
   3. KPI STATS CARDS (PULSE BAR)
   ========================================================================== */
.stats-floating-bar {
  margin-top: -45px;
  position: relative;
  z-index: 25;
}

.stat-box-modern {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-box-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-icon-wrapper.blue { background: #eff6ff; color: #2563eb; }
.stat-icon-wrapper.sky { background: #f0f9ff; color: #0284c7; }
.stat-icon-wrapper.emerald { background: #ecfdf5; color: #059669; }
.stat-icon-wrapper.amber { background: #fffbeb; color: #d97706; }

.stat-number {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 2px;
}

/* ==========================================================================
   4. FEATURED SERVICES
   ========================================================================== */
.section-heading-clean {
  text-align: center;
  margin-bottom: 40px;
}

.section-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.section-main-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.section-sub-desc {
  font-size: 15px;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

.service-card-modern {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 24px;
  height: 100%;
  transition: all 0.25s ease;
  position: relative;
}

.service-card-modern:hover {
  transform: translateY(-5px);
  border-color: #93c5fd;
  box-shadow: var(--shadow-lg);
}

.service-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.service-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.service-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 0;
}

/* ==========================================================================
   5. E-BOOK DIGITAL SHOWCASE SECTION (GOOGLE DRIVE)
   ========================================================================== */
.ebook-showcase-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  padding: 60px 0;
}

.ebook-banner-highlight {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  border-radius: var(--radius-lg);
  color: #ffffff;
  padding: 30px;
  margin-bottom: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(30, 58, 138, 0.25);
  flex-wrap: wrap;
  gap: 20px;
}

.ebook-banner-info h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.ebook-banner-info p {
  color: #bfdbfe;
  font-size: 14px;
  margin-bottom: 0;
  max-width: 550px;
}

/* Book Cards */
.book-card-clean {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  text-decoration: none !important;
  position: relative;
}

.book-card-clean:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}

.book-cover-frame {
  height: 228px;
  background: radial-gradient(circle at 50% 35%, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #edf2f7;
  padding: 14px;
}

.book-cover-img {
  max-height: 196px;
  max-width: 84%;
  object-fit: cover;
  box-shadow: -4px 8px 18px rgba(0, 0, 0, 0.18), 0 2px 4px rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.book-card-clean:hover .book-cover-img {
  transform: translateY(-4px) scale(1.03);
  box-shadow: -6px 14px 24px rgba(0, 0, 0, 0.24);
}

.badge-ebook-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.book-card-clean .book-card-content {
  padding: 16px 18px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-card-clean .book-card-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a;
  line-height: 1.45 !important;
  margin: 0 0 8px 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-height: 44px !important;
  max-height: 44px !important;
  height: auto !important;
  word-break: break-word;
}

.book-card-clean .book-card-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
}

.book-card-clean .book-card-title a:hover {
  color: #2563eb;
}

.book-card-clean .book-card-meta {
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 14px;
  min-height: 24px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-populer-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.btn-read-ebook-card {
  margin-top: auto;
  width: 100%;
  padding: 9px 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
}

.btn-read-ebook-card:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}

.btn-detail-koleksi {
  background: #f8fafc !important;
  color: #334155 !important;
  border-color: #e2e8f0 !important;
}

.btn-detail-koleksi:hover {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25) !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   6. DDC CATEGORY GRID
   ========================================================================== */
.ddc-category-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  text-align: center;
  text-decoration: none !important;
  color: #334155;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.ddc-category-card:hover {
  transform: translateY(-4px);
  border-color: #3b82f6;
  box-shadow: var(--shadow-md);
  color: #2563eb;
}

.ddc-category-icon {
  font-size: 26px;
  margin-bottom: 10px;
}

.ddc-category-name {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
}

/* ==========================================================================
   7. TOP READERS PODIUM (DUTA BACA)
   ========================================================================== */
.reader-podium-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.reader-podium-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.rank-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.rank-badge.gold { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.rank-badge.silver { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.rank-badge.bronze { background: #ffedd5; color: #c2410c; border: 1px solid #fed7aa; }

.reader-avatar-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 12px auto;
  padding: 3px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
}

.reader-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #ffffff;
}

.reader-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.reader-type {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 14px;
}

.reader-stats-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: #f8fafc;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  border: 1px solid var(--slate-200);
}

/* ==========================================================================
   8. LIBRARY INFORMATION & HOURS
   ========================================================================== */
.lib-info-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 24px;
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.hours-table {
  width: 100%;
  font-size: 13.5px;
}

.hours-table tr td {
  padding: 8px 0;
  border-bottom: 1px dashed var(--slate-200);
}

.hours-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   9. MODERN FOOTER
   ========================================================================== */
.modern-footer {
  background: #090e1a;
  color: #cbd5e1;
  padding-top: 55px;
  padding-bottom: 25px;
  font-size: 14px;
  border-top: 1px solid #1e293b;
  position: relative;
  overflow: hidden;
}

.modern-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), transparent);
}

.footer-brand-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-col-header {
  position: relative;
  margin-bottom: 18px;
}

.footer-col-header h5 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.footer-header-line {
  width: 32px;
  height: 2px;
  background: #38bdf8;
  border-radius: 2px;
  margin-top: 6px;
  transition: width 0.3s ease;
}

.modern-footer .col-lg-4:hover .footer-header-line,
.modern-footer .col-lg-2:hover .footer-header-line,
.modern-footer .col-lg-3:hover .footer-header-line {
  width: 48px;
}

.footer-desc {
  color: #cbd5e1;
  font-size: 13.5px;
  line-height: 1.65;
}

/* Social Media Buttons */
.footer-social-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.footer-social-btn:hover {
  transform: translateY(-4px) scale(1.12);
}

.footer-social-btn.btn-ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.footer-social-btn.btn-ig:hover {
  box-shadow: 0 6px 18px rgba(220, 39, 67, 0.55);
}

.footer-social-btn.btn-yt {
  background: #ff0000;
}
.footer-social-btn.btn-yt:hover {
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.55);
}

.footer-social-btn.btn-fb {
  background: #1877f2;
}
.footer-social-btn.btn-fb:hover {
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.55);
}

/* TikTok with high-contrast sharp SVG, neon dual glow & chromatic aberration */
.footer-social-btn.btn-tt {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.footer-social-btn.btn-tt svg {
  fill: #ffffff;
  filter: drop-shadow(-1px -1px 0px rgba(37, 244, 238, 0.85)) drop-shadow(1px 1px 0px rgba(254, 44, 85, 0.85));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.footer-social-btn.btn-tt:hover {
  border-color: #25f4ee;
  box-shadow: -3px -2px 14px rgba(37, 244, 238, 0.6), 3px 2px 14px rgba(254, 44, 85, 0.6);
}
.footer-social-btn.btn-tt:hover svg {
  transform: scale(1.15);
  filter: drop-shadow(-1.5px -1.5px 0px #25f4ee) drop-shadow(1.5px 1.5px 0px #fe2c55);
}

.footer-social-btn.btn-wa {
  background: #25d366;
}
.footer-social-btn.btn-wa:hover {
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.55);
}

/* Footer Navigation Links */
.footer-nav-link {
  color: #e2e8f0;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  margin-bottom: 9px;
  padding: 2px 0;
}

.footer-nav-link i {
  color: #38bdf8;
  margin-right: 8px;
  font-size: 11px;
  transition: transform 0.25s ease;
}

.footer-nav-link:hover {
  color: #38bdf8;
  text-decoration: none;
  transform: translateX(6px);
}

.footer-nav-link:hover i {
  transform: translateX(3px);
}

/* 24h Online Badge with pulsing live dot */
.footer-badge-online {
  display: inline-flex;
  align-items: center;
  background: rgba(30, 64, 175, 0.35);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: #bfdbfe;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.25);
  transition: all 0.3s ease;
}

.footer-badge-online:hover {
  background: rgba(30, 64, 175, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.footer-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 7px;
  box-shadow: 0 0 8px #22c55e;
  animation: livePulseDot 2s infinite ease-in-out;
}

@keyframes livePulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Location & Schedule Block */
.footer-info-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
}

.footer-text-light {
  color: #cbd5e1;
  line-height: 1.5;
}

.footer-schedule-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
}

.footer-schedule-pill .day-label {
  color: #94a3b8;
}

.footer-schedule-pill .time-label {
  color: #38bdf8;
  font-weight: 700;
}

/* Contact Button */
.footer-btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 9px 16px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(59, 130, 246, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  color: #38bdf8 !important;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-btn-contact:hover {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff !important;
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

/* Bottom Copyright Bar */
.footer-bottom-bar {
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-copy {
  color: #94a3b8;
}

.footer-bottom-copy strong {
  color: #e2e8f0;
}

.footer-slims-link {
  color: #38bdf8 !important;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer-slims-link:hover {
  color: #7dd3fc !important;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.footer-heart-beat {
  display: inline-block;
  animation: heartBeat 1.4s infinite ease-in-out;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.3); }
  30% { transform: scale(1); }
  45% { transform: scale(1.2); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modern-hero-title {
    font-size: 2rem;
  }
  .modern-search-card {
    border-radius: var(--radius-md);
  }
  .modern-search-form {
    flex-direction: column;
  }
  .modern-search-btn {
    width: 100%;
    justify-content: center;
  }
  .stats-floating-bar {
    margin-top: -20px;
  }
}

/* ==========================================================================
   9. MODERN AUTHENTICATION (MEMBER & LIBRARIAN LOGIN)
   ========================================================================== */
.modern-auth-wrapper {
  min-height: 100vh;
  background: radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(14, 165, 233, 0.12) 0%, transparent 45%),
              linear-gradient(135deg, #090e1a 0%, #0f172a 60%, #172554 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.modern-auth-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.modern-auth-card {
  max-width: 1040px;
  width: 100%;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.2);
  display: flex;
  overflow: hidden;
  position: relative;
  z-index: 10;
  animation: authCardFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --- Left Branding Panel --- */
.auth-brand-panel {
  flex: 0 0 44%;
  background: linear-gradient(145deg, #0b1329 0%, #1e3a8a 55%, #0284c7 100%);
  color: #ffffff;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-brand-panel::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.auth-brand-header {
  position: relative;
  z-index: 2;
}

.auth-brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.auth-brand-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.auth-brand-sub {
  font-size: 13.5px;
  color: #bae6fd;
  font-weight: 500;
  margin-bottom: 32px;
}

.auth-brand-features {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.auth-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.auth-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
  color: #38bdf8;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.auth-feature-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px 0;
}

.auth-feature-text p {
  font-size: 12.5px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.45;
}

.auth-brand-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #93c5fd;
  font-weight: 600;
}

/* --- Right Form Panel --- */
.auth-form-panel {
  flex: 0 0 56%;
  background: #ffffff;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Tabs switcher */
.auth-segmented-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 5px;
  border-radius: 14px;
  margin-bottom: 28px;
  border: 1px solid #e2e8f0;
}

.auth-tab-btn {
  flex: 1;
  text-align: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-tab-btn:hover:not(.active) {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.5);
}

.auth-tab-btn.active {
  background: #ffffff;
  color: #1d4ed8;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.auth-tab-btn.active.librarian-active {
  color: #4338ca;
}

/* Heading & Subtitle */
.auth-form-header {
  margin-bottom: 24px;
}

.auth-badge-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.auth-badge-role.member-badge {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.auth-badge-role.librarian-badge {
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
}

.auth-form-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  letter-spacing: -0.4px;
}

.auth-form-desc {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Alerts */
.modern-auth-alert {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}

.modern-auth-alert.alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.modern-auth-alert.alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.modern-auth-alert.alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.modern-auth-alert i {
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Form Controls */
.auth-group {
  margin-bottom: 20px;
}

.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.auth-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 16px;
  color: #94a3b8;
  font-size: 15px;
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 2;
}

.auth-input {
  width: 100%;
  height: 48px;
  padding: 0 46px 0 46px;
  font-size: 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background-color: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.auth-input:focus {
  background-color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.auth-input:focus ~ .auth-input-icon {
  color: #2563eb;
}

.librarian-theme .auth-input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.librarian-theme .auth-input:focus ~ .auth-input-icon {
  color: #4f46e5;
}

.btn-toggle-eye {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 15px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.2s;
  z-index: 3;
}

.btn-toggle-eye:hover {
  color: #334155;
  background: rgba(0, 0, 0, 0.04);
}

/* Remember me row */
.auth-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.auth-custom-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  user-select: none;
  margin: 0;
}

.auth-custom-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid #cbd5e1;
  accent-color: #2563eb;
  cursor: pointer;
}

/* Submit Button */
.btn-auth-submit {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  font-family: inherit;
}

.btn-auth-submit:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-auth-submit:active {
  transform: translateY(0);
}

.btn-auth-submit.btn-auth-librarian {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-auth-submit.btn-auth-librarian:hover {
  background: linear-gradient(135deg, #4338ca 0%, #312e81 100%);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

/* Card bottom navigation */
.auth-bottom-nav {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-back-link {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.auth-back-link:hover {
  color: #2563eb;
}

.auth-help-text {
  font-size: 12.5px;
  color: #94a3b8;
}

/* Captcha container styling */
.auth-captcha-wrap {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 920px) {
  .modern-auth-card {
    flex-direction: column;
    max-width: 520px;
  }
  .auth-brand-panel {
    flex: 0 0 auto;
    padding: 36px 28px;
  }
  .auth-form-panel {
    flex: 0 0 auto;
    padding: 36px 28px;
  }
  .auth-brand-features {
    display: none;
  }
}

/* ==========================================================================
   10. MODERN CATALOG & SEARCH RESULT
   ========================================================================== */
.modern-page-nav-wrapper {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1050 !important;
  background: rgba(9, 14, 26, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 6px 0;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.25s ease-in-out;
}

/* Ensure no legacy forest / vegas slideshow background appears on search & digital pages */
.catalog-result-page .vegas-container,
.catalog-result-page .vegas-slide,
.result-search .vegas-container,
.result-search .vegas-slide,
.modern-detail-wrapper .vegas-slide,
.c-header .vegas-slide {
  display: none !important;
  background-image: none !important;
}

.modern-catalog-header {
  background: linear-gradient(135deg, #090e1a 0%, #0f172a 50%, #1e293b 100%);
  padding: 40px 0 50px 0;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.modern-catalog-header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.catalog-header-title {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.catalog-header-sub {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 24px;
}

.catalog-search-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  max-width: 800px;
}

.catalog-search-card .search-input {
  border: none;
  outline: none;
  padding: 12px 18px;
  font-size: 15px;
  flex: 1;
  color: #0f172a;
  background: transparent;
  font-family: inherit;
}

.catalog-search-card .btn-search-action {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-search-card .btn-search-action:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
}

.catalog-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: #bae6fd;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none !important;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-pill:hover, .filter-pill.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* Catalog Book Card */
.modern-book-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  gap: 22px;
  position: relative;
}

.modern-book-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.book-card-cover-wrap {
  flex: 0 0 130px;
  position: relative;
}

.book-card-cover {
  width: 130px;
  height: 185px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  display: block;
  background: #f1f5f9;
}

.badge-cover-format {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.badge-cover-format.is-ebook {
  background: #0284c7;
  color: #ffffff;
}

.badge-cover-format.is-print {
  background: #334155;
  color: #ffffff;
}

.modern-book-card .book-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modern-book-card .book-card-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 6px 0;
}

.modern-book-card .book-card-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s;
}

.modern-book-card .book-card-title a:hover {
  color: #2563eb;
}

.modern-book-card .book-card-authors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.author-pill {
  font-size: 12px;
  color: #475569;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.author-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.modern-book-card .book-card-synopsis {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modern-book-card .book-card-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 14px;
}

.meta-item-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.modern-book-card .book-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.btn-book-action {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-action-detail {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.btn-action-detail:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-action-ebook {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.btn-action-ebook:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

.btn-action-basket {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  cursor: pointer;
}

.btn-action-basket:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.badge-stock {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-stock.available {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.badge-stock.borrowed {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Sidebar Widgets */
.catalog-sidebar-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.sidebar-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.suggestion-mini-card {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none !important;
  color: inherit;
  transition: all 0.2s;
}

.suggestion-mini-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.suggestion-mini-card:hover .mini-card-title {
  color: #2563eb;
}

.mini-card-img {
  width: 52px;
  height: 74px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.mini-card-info {
  flex: 1;
}

.mini-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 4px 0;
  transition: color 0.2s;
}

.mini-card-author {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

/* ==========================================================================
   11. MODERN BOOK DETAIL PAGE
   ========================================================================== */
.modern-detail-wrapper {
  padding: 40px 0 60px 0;
  background-color: #f8fafc;
}

.detail-breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 24px;
}

.detail-breadcrumb-bar a {
  color: #2563eb;
  text-decoration: none;
}

.detail-hero-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  padding: 36px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  margin-bottom: 30px;
}

.detail-cover-showcase {
  text-align: center;
}

.detail-book-3d-wrap {
  display: inline-block;
  position: relative;
  margin-bottom: 22px;
}

.detail-book-img {
  max-width: 260px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 14px 30px -5px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.detail-book-img:hover {
  transform: scale(1.02);
}

.detail-cta-hub {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.btn-detail-cta {
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-cta-ebook-pulse {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
  font-size: 15px;
}

.btn-cta-ebook-pulse:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

.btn-cta-basket-add {
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}

.btn-cta-basket-add:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.detail-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.detail-gmd-badge {
  font-size: 12px;
  font-weight: 800;
  color: #0284c7;
  background: #e0f2fe;
  padding: 4px 12px;
  border-radius: 6px;
  text-transform: uppercase;
}

.detail-main-title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin: 0 0 10px 0;
  letter-spacing: -0.4px;
}

.detail-author-lead {
  font-size: 15px;
  color: #475569;
  margin-bottom: 20px;
}

.detail-author-lead a {
  color: #2563eb;
  font-weight: 600;
}

.detail-quick-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 24px;
}

.spec-quick-item {
  display: flex;
  flex-direction: column;
}

.spec-quick-label {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 3px;
  letter-spacing: 0.4px;
}

.spec-quick-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  word-break: break-word;
}

.detail-synopsis-wrapper {
  background: #ffffff;
  border-left: 4px solid #2563eb;
  padding: 18px 22px;
  border-radius: 0 14px 14px 0;
  background: #f8fafc;
  margin-bottom: 24px;
}

.detail-synopsis-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.detail-synopsis-body {
  font-size: 14px;
  color: #334155;
  line-height: 1.7;
}

/* Detail Section Cards */
.detail-section-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
}

.detail-sec-heading {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Modern Holding Item Table */
.modern-holding-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.modern-holding-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 12px 16px;
  border-bottom: 2px solid #e2e8f0;
}

.modern-holding-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13.5px;
  color: #1e293b;
}

.modern-holding-table tr:hover td {
  background: #f8fafc;
}

/* Topic tags */
.detail-topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-tag-pill {
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  text-decoration: none !important;
  border: 1px solid #bfdbfe;
  transition: all 0.2s;
}

.topic-tag-pill:hover {
  background: #2563eb;
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modern-book-card {
    flex-direction: column;
  }
  .book-card-cover-wrap {
    text-align: center;
  }
  .book-card-cover {
    margin: 0 auto;
  }
  .detail-hero-card {
    padding: 22px;
  }
}

/* ==========================================================================
   12. WANAWIDYA LOGO & PREMIUM SPLASH SCREEN
   ========================================================================== */
.modern-navbar-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease;
}

.modern-navbar-logo:hover {
  transform: scale(1.06);
}

@keyframes heroLogoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* --- Premium Splash Screen Overlay --- */
#wanawidya-splash {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 38%, #0d1e38 0%, #060b16 65%, #020408 100%);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.65s;
}

#wanawidya-splash.splash-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  pointer-events: none;
}

.splash-ambient-halo {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, rgba(16, 185, 129, 0.12) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: splashHaloPulse 4s ease-in-out infinite alternate;
}

@keyframes splashHaloPulse {
  0% {
    transform: scale(0.9) translate(-50%, -50%);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.15) translate(-50%, -50%);
    opacity: 1;
  }
}

.splash-card-center {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
  animation: splashContentRise 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes splashContentRise {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.splash-logo-holder {
  position: relative;
  width: 130px;
  height: 130px;
  margin-bottom: 24px;
}

.splash-logo-glow-ring {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #f59e0b, #10b981, #0284c7, #f59e0b);
  opacity: 0.45;
  filter: blur(10px);
  animation: splashRingSpin 8s linear infinite;
}

@keyframes splashRingSpin {
  to {
    transform: rotate(360deg);
  }
}

.splash-logo-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  padding: 6px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(245, 158, 11, 0.3);
  animation: splashLogoHeartbeat 3s ease-in-out infinite alternate;
}

@keyframes splashLogoHeartbeat {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.035);
  }
}

.splash-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3.5px;
  color: #f59e0b;
  text-transform: uppercase;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.splash-title-brand {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #ffffff;
  margin: 0 0 6px 0;
  line-height: 1.15;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.splash-subtitle-school {
  font-size: 14.5px;
  font-weight: 600;
  color: #bae6fd;
  letter-spacing: 1.2px;
  margin-bottom: 26px;
}

/* Loading progress bar */
.splash-progress-container {
  width: 240px;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.splash-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #38bdf8 100%);
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
  transition: width 0.4s ease;
  animation: splashProgressSimulate 1.2s ease-in-out forwards;
}

@keyframes splashProgressSimulate {
  0% {
    width: 0%;
  }
  40% {
    width: 55%;
  }
  80% {
    width: 88%;
  }
  100% {
    width: 100%;
  }
}

.splash-status-text {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 12px;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.splash-footer-pill {
  position: absolute;
  bottom: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   MODERN ADVANCED SEARCH MODAL & FILTER SYSTEM
   ========================================================================== */
.modal-advanced-search .modal-dialog {
  max-width: 760px;
  margin: 1.75rem auto;
}

.modal-advanced-search .adv-modal-content {
  border: none !important;
  border-radius: 22px !important;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.45) !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

/* Modal Header */
.adv-modal-header {
  background: linear-gradient(135deg, #0b1120 0%, #172554 50%, #1e293b 100%) !important;
  color: #ffffff !important;
  padding: 22px 28px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.adv-modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #f59e0b);
}

.adv-modal-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 19px;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
  flex-shrink: 0;
}

.adv-modal-title {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.adv-modal-subtitle {
  font-size: 13px !important;
  color: #94a3b8 !important;
  font-weight: 400;
  margin-top: 3px !important;
}

.adv-modal-close {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #cbd5e1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0.9 !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  margin: 0 !important;
  text-shadow: none !important;
  line-height: 1 !important;
  font-size: 22px !important;
}

.adv-modal-close:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #f87171 !important;
  transform: rotate(90deg);
}

/* Modal Body */
.adv-modal-body {
  padding: 26px 28px !important;
  background-color: #ffffff !important;
  max-height: 72vh;
  overflow-y: auto;
}

.adv-section-head {
  margin-bottom: 14px;
}

.adv-section-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 5px 14px;
  border-radius: 9999px;
  letter-spacing: 0.2px;
}

.adv-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 7px !important;
}

.adv-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.adv-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
  pointer-events: none;
  z-index: 5;
  transition: color 0.2s;
}

.adv-control {
  height: 46px !important;
  padding-left: 42px !important;
  padding-right: 14px !important;
  border-radius: 12px !important;
  border: 1.5px solid #e2e8f0 !important;
  background-color: #f8fafc !important;
  font-size: 13.5px !important;
  color: #0f172a !important;
  font-weight: 500 !important;
  transition: all 0.2s ease-in-out !important;
  box-shadow: none !important;
}

.adv-control::placeholder {
  color: #94a3b8 !important;
  font-weight: 400 !important;
}

.adv-control:focus {
  background-color: #ffffff !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18) !important;
}

.adv-input-wrap:focus-within .adv-input-icon {
  color: #2563eb !important;
}

.adv-select {
  cursor: pointer;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px 16px !important;
  padding-right: 36px !important;
}

/* Modal Footer */
.adv-modal-footer {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  padding: 16px 28px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.adv-btn-reset {
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 8px 16px !important;
  color: #64748b !important;
  border-color: #cbd5e1 !important;
  background: #ffffff !important;
  transition: all 0.2s !important;
}

.adv-btn-reset:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

.adv-btn-close {
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 9px 18px !important;
  color: #475569 !important;
  background: #e2e8f0 !important;
  border: none !important;
}

.adv-btn-close:hover {
  background: #cbd5e1 !important;
  color: #0f172a !important;
}

.adv-btn-submit {
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  padding: 9px 22px !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px;
}

.adv-btn-submit:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5) !important;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .adv-modal-header {
    padding: 18px 20px !important;
  }
  .adv-modal-body {
    padding: 20px !important;
  }
  .adv-modal-footer {
    padding: 14px 20px !important;
    flex-direction: column-reverse;
    gap: 12px;
  }
  .adv-modal-footer > div,
  .adv-modal-footer .adv-btn-reset {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .adv-btn-submit {
    flex: 1;
    justify-content: center;
  }
}




