/* ==========================================================================
   Pustaka Sanggar Juang Indonesia — Premium Bright Editorial Design System
   ========================================================================== */

:root {
  /* Color Palette - Bright, Warm & Luxurious */
  --bg-main: #FFFFFF;
  --bg-warm: #FAF8F5;
  --bg-soft: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-dark: #0F172A;
  --bg-dark-surface: #1E293B;

  /* Typography Colors */
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-light: #64748B;
  --text-subtle: #94A3B8;
  --text-white: #FFFFFF;

  /* Brand Accents */
  --gold: #C59B27;
  --gold-hover: #D9A822;
  --gold-dark: #9A7615;
  --gold-light: #FFFBEB;
  --gold-border: rgba(197, 155, 39, 0.25);
  --gold-glow: rgba(197, 155, 39, 0.15);

  --navy: #0F172A;
  --navy-light: #1E293B;
  --emerald: #166534;
  --emerald-bg: #F0FDF4;
  --coral: #C2553A;

  /* Layout Boundaries */
  --shell: 1200px;
  --pad-section: clamp(60px, 8vw, 110px);
  --pad-x: clamp(20px, 4vw, 40px);

  /* Elevation & Borders */
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.1);
  --shadow-gold: 0 8px 25px rgba(197, 155, 39, 0.2);

  /* Fonts */
  --font-heading: 'Fraunces', 'Georgia', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Bootstrap Utilities & Form Overrides */
.font-heading { font-family: var(--font-heading) !important; }
.bg-warm { background-color: var(--bg-warm) !important; }
.shadow-gold { box-shadow: var(--shadow-gold) !important; }

.form-control:focus, .form-select:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 0.25rem rgba(197, 155, 39, 0.2) !important;
}

.btn-warning {
  background-color: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #FFFFFF !important;
}
.btn-warning:hover {
  background-color: var(--gold-hover) !important;
  border-color: var(--gold-hover) !important;
  color: #FFFFFF !important;
}

.btn-gold {
  background-color: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #FFFFFF !important;
}
.btn-gold:hover {
  background-color: var(--gold-hover) !important;
  border-color: var(--gold-hover) !important;
  color: #FFFFFF !important;
}

.btn-ink {
  background-color: var(--navy) !important;
  border-color: var(--navy) !important;
  color: #FFFFFF !important;
}
.btn-ink:hover {
  background-color: var(--navy-light) !important;
  border-color: var(--navy-light) !important;
}

.border-dashed {
  border-style: dashed !important;
}

/* 1. Global Reset & Box Constraints */
*, *::before, *::after {
  box-sizing: border-box !important;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-loading, body.menu-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 600;
  margin-top: 0;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Strict Container Constraints (NO edge-bleeding content) */
.shell {
  max-width: var(--shell) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--pad-x) !important;
  padding-right: var(--pad-x) !important;
  box-sizing: border-box !important;
}

.section-pad {
  padding-top: var(--pad-section);
  padding-bottom: var(--pad-section);
}

.micro-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--bg-warm);
  color: #fff;
  padding: 10px 20px;
  z-index: 10000;
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}
.skip-link:focus {
  top: 20px;
}

/* 2. Loading Screen & Transitions */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loading-screen.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loading-book {
  width: 50px;
  height: 38px;
  border: 2px solid var(--gold);
  border-radius: 4px;
  position: relative;
  animation: pulse 1.5s infinite alternate;
}
@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.05); opacity: 1; }
}
.loading-text {
  margin-top: 1.5rem;
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
}
.loading-bar {
  width: 140px;
  height: 3px;
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 1rem;
}
.loading-bar span {
  display: block;
  height: 100%;
  background: var(--gold);
  width: 0%;
  animation: loadBar 1.2s ease forwards;
}
@keyframes loadBar {
  to { width: 100%; }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9000;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--gold);
  width: 0%;
}

.page-curtain {
  position: fixed;
  inset: 0;
  background: var(--bg-warm);
  z-index: 9998;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 2rem;
}
body.page-leaving .page-curtain {
  transform: translateY(0);
}

/* 3. Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}
.site-header.is-sticky {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
  font-weight: 700;
}
.brand img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.brand-mark {
  width: 36px;
  height: 36px;
  color: var(--gold);
}
.brand strong {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  display: block;
  line-height: 1.1;
  color: var(--navy);
}
.brand small {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  display: block;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.desktop-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0;
}
.desktop-nav a:hover, .desktop-nav a.active {
  color: var(--gold-dark);
}
.desktop-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-gold);
  transition: all var(--transition);
}
.header-cta:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 6px;
}
.menu-toggle i {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.3s;
}

/* Mobile Nav Drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: var(--bg-main);
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.mobile-menu[aria-hidden="true"] {
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu-inner {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}
.mobile-menu-inner a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--navy);
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}
.mobile-menu-inner a span {
  font-size: 0.8rem;
  color: var(--gold-dark);
  margin-right: 0.75rem;
}

/* 4. Hero Section — Bright, Elegant & Airy */
.hero-home {
  position: relative;
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-main) 100%);
  padding-top: 130px;
  padding-bottom: 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-copy {
  z-index: 2;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold-light);
  border: 1px solid var(--gold-border);
  color: var(--gold-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}
.eyebrow span {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  color: var(--navy);
  line-height: 1.18;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-dark);
  font-weight: 400;
}
.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(197, 155, 39, 0.3);
}
.btn-ink {
  background: var(--bg-warm);
  color: var(--navy);
  box-shadow: var(--shadow-md);
}
.btn-ink:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}
.text-link:hover {
  color: var(--gold-dark);
}
.text-link span {
  transition: transform 0.2s;
}
.text-link:hover span {
  transform: translateX(4px);
}

/* 3D Book Monument Visual */
.book-monument {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book {
  position: absolute;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s ease;
}
.book-back {
  width: 220px;
  height: 310px;
  background: #E2E8F0;
  transform: rotate(-8deg) translate(-25px, -15px);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94A3B8;
  border: 1px solid #CBD5E1;
}
.book-mid {
  width: 230px;
  height: 320px;
  background: var(--bg-warm);
  color: #FFF;
  transform: rotate(4deg) translate(15px, 10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  border: 2px solid var(--gold);
}
.book-mid span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}
.book-mid strong {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  line-height: 1.1;
  margin: 8px 0;
}
.book-mid small {
  font-size: 0.65rem;
  color: #94A3B8;
  letter-spacing: 0.1em;
}
.book-front {
  width: 210px;
  height: 300px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #FFF;
  transform: rotate(-2deg) translate(0, 25px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  box-shadow: var(--shadow-gold);
}
.edition-stamp {
  position: absolute;
  bottom: 0;
  right: 10px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold-dark);
  box-shadow: var(--shadow-sm);
}

/* 5. Trust Bar */
.trust-bar {
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-light);
  padding: 1.25rem 0;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}
.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--emerald-bg);
  color: var(--emerald);
  border-radius: 50%;
  font-size: 0.75rem;
}

/* 6. Kinetic Strip */
.kinetic-strip { display: none !important; }
.kinetic-strip div {
  display: inline-block;
  animation: marquee 25s linear infinite;
}
.kinetic-strip span {
  margin: 0 1.5rem;
}
.kinetic-strip i {
  font-style: normal;
  opacity: 0.6;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 7. Manifesto Section */
.home-manifesto {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border-light);
}
.section-number {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 1.5rem;
}
.manifesto-copy h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 2rem;
  max-width: 900px;
}
.manifesto-note {
  background: var(--bg-main);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 700px;
}
.manifesto-note span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-dark);
  letter-spacing: 0.1em;
}
.manifesto-note p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* 8. Service Stage */
.service-stage {
  background: var(--bg-main);
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.section-heading h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--navy);
  margin: 0;
}
.section-heading h2 em {
  color: var(--gold-dark);
  font-style: italic;
}
.section-heading p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 450px;
  margin: 0;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.service-row {
  display: grid;
  grid-template-columns: 60px 1.2fr 2fr 40px;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.service-row:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--bg-warm);
}
.service-row span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--gold-dark);
  font-weight: 700;
}
.service-row h3 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--navy);
}
.service-row p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.service-row b {
  font-size: 1.2rem;
  color: var(--gold);
  text-align: right;
  transition: transform 0.2s;
}
.service-row:hover b {
  transform: translateX(4px);
}

/* 9. Process Preview */
.process-preview {
  background: var(--bg-warm);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.process-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
}
.paper-stack {
  position: relative;
  width: 220px;
  height: 280px;
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.1em;
}
.paper-stack i {
  position: absolute;
  inset: 0;
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  z-index: -1;
}
.paper-stack i:nth-child(2) { transform: rotate(-4deg) translate(-10px, 5px); }
.paper-stack i:nth-child(3) { transform: rotate(4deg) translate(10px, 10px); }

.process-badge {
  position: absolute;
  bottom: 20px;
  right: 30px;
  background: var(--gold);
  color: #FFF;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
  line-height: 1.3;
}
.process-copy h2 {
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.process-copy p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* 10. Catalog & Book Cards */
.catalog-preview {
  background: var(--bg-main);
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}
.book-card {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.book-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-border);
  box-shadow: var(--shadow-md);
}
.book-cover {
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.book-card:hover .book-cover img {
  transform: scale(1.04);
}
.cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
  color: #FFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}
.cover-placeholder span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
}
.cover-placeholder strong {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin: 10px 0;
  line-height: 1.2;
}
.cover-placeholder small {
  font-size: 0.8rem;
  color: var(--text);
}

.book-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.book-info .book-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.book-info h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}
.book-info h3 a {
  color: var(--navy);
}
.book-info h3 a:hover {
  color: var(--gold-dark);
}
.book-author {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.book-price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}
.book-price {
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}

.catalog-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-warm);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

/* 11. Statistics Section (Dark Royal Accent Section) */
.stats-section {
  background: var(--bg-warm);
  color: #FFF;
  padding: 4rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  text-align: center;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 4rem);
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
}
.stat-suffix {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--gold);
  font-weight: 700;
}
.stat-label {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #94A3B8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* 12. Testimonials */
.testimonial-section {
  background: var(--bg-warm);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.testimonial-card {
  background: var(--bg-main);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimonial-card p {
  font-size: 1rem;
  color: var(--text-main);
  font-style: italic;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 1.5rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.testimonial-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy);
}
.testimonial-author span {
  display: block;
  font-size: 0.8rem;
  color: var(--text);
}

.testimonial-coming {
  text-align: center;
  padding: 3rem;
  background: var(--bg-main);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-weight: 600;
}

/* 13. Quote Stage */
.quote-stage {
  text-align: center;
  padding: 5rem 1.5rem;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-light);
}
.quote-stage blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--navy);
  line-height: 1.4;
  margin: 0 auto 1rem auto;
  max-width: 800px;
  font-style: italic;
}
.quote-stage > span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* 14. FAQ Section */
.faq-home {
  background: var(--bg-main);
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.faq-title h2 {
  font-size: 2.2rem;
  color: var(--navy);
}
.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open {
  border-color: var(--gold);
  background: var(--bg-main);
  box-shadow: var(--shadow-sm);
}
.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}
.faq-item button span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-dark);
  min-width: 24px;
}
.faq-item button strong {
  font-size: 1.05rem;
  color: var(--navy);
  flex-grow: 1;
}
.faq-item button i {
  font-style: normal;
  font-size: 1.4rem;
  color: var(--gold-dark);
  transition: transform 0.3s;
}
.faq-item.open button i {
  transform: rotate(45deg);
}
.faq-item > div {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open > div {
  max-height: 400px;
}
.faq-item p {
  margin: 0;
  padding: 0 1.5rem 1.25rem 3.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* 15. Footer — Contained & Elegant Dark Royal */
.site-footer {
  background: var(--bg-warm);
  color: #FFF;
  border-top: 1px solid var(--navy-light);
}
.footer-intro {
  text-align: center;
  padding: 5rem 0 4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-intro h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  color: #FFF;
  margin: 0.5rem 0 2rem 0;
}
.footer-intro h2 em {
  color: var(--gold);
  font-style: italic;
}
.circle-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.2;
  box-shadow: var(--shadow-gold);
  transition: transform 0.3s;
}
.circle-link:hover {
  transform: scale(1.08);
  background: var(--gold-hover);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p {
  color: #94A3B8;
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 320px;
}
.footer-title { color: var(--text); font-weight: bold; margin-bottom: 1rem; display: block; }
.footer-grid a {
  display: block;
  color: #CBD5E1;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}
.footer-grid a:hover {
  color: var(--gold);
}
.footer-grid p {
  color: #94A3B8;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.footer-bottom { color: var(--text-muted); border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom a {
  color: #64748B;
}
.footer-bottom a:hover {
  color: var(--gold);
}

/* Floating WA */
.wa-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 900;
  background: #25D366;
  color: #FFF;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s;
}
.wa-float:hover {
  transform: translateY(-3px);
}

/* Flash Toast */
.flash {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.flash-success { background: #10B981; color: #FFF; }
.flash-error { background: #EF4444; color: #FFF; }
.flash button { background: none; border: none; color: #FFF; cursor: pointer; font-size: 1.1rem; }

/* 16. Inner Pages Design */
.inner-hero {
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-main) 100%);
  padding: 130px 0 60px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}
.inner-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--navy);
  margin-bottom: 1rem;
}
.inner-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Forms & Public Submissions */
.form-stage {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.public-form {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.form-control, input[type="text"], input[type="email"], input[type="number"], select, textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  color: var(--text-main);
  transition: border-color 0.2s;
}
.form-control:focus, input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* Admin Styling Overhaul */
.admin-site {
  background: var(--bg-soft);
}
.admin-sidebar {
  width: 260px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  background: var(--bg-warm);
  color: #FFF;
  padding: 2rem 1.25rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
}
.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 2rem;
}
.admin-sidebar nav a {
  color: #94A3B8;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active {
  background: var(--navy-light);
  color: var(--gold);
}
.admin-main {
  margin-left: 260px;
  padding: 2.5rem;
}
.admin-panel {
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th, .admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.admin-table th {
  background: var(--bg-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid, .process-preview, .faq-grid, .form-stage {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .service-row {
    grid-template-columns: 40px 1fr 40px;
  }
  .service-row p {
    grid-column: 2 / 4;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-sidebar {
    display: none;
  }
  .admin-main {
    margin-left: 0;
    padding: 1.5rem;
  }
}

@media (max-width: 991px) {
  .desktop-nav, .header-cta {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .hero-home {
    padding-top: 100px;
  }
  .book-monument {
    height: 340px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .service-row {
    grid-template-columns: 1fr auto;
    padding: 1.25rem;
  }
  .service-row p {
    grid-column: 1 / 3;
  }
}
/* -- Supreme Siakad Dashboard -- */
.filter-active-box { border-left: 3px solid var(--navy) !important; background: #fff !important; }
.filter-btn-animate {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%) !important;
  color: var(--navy) !important;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(197, 155, 39, 0.4) !important;
  animation: pulseWiggle 3s infinite;
}
@keyframes pulseWiggle {
  0%, 100% { box-shadow: 0 4px 15px rgba(197, 155, 39, 0.4); }
  50% { box-shadow: 0 4px 25px rgba(197, 155, 39, 0.7); }
  90% { transform: rotate(0deg); }
  92% { transform: rotate(-3deg); }
  94% { transform: rotate(3deg); }
  96% { transform: rotate(-3deg); }
  98% { transform: rotate(3deg); }
}

/* -- Supreme Mobile Card-Bar Pattern (Zero-Scroll Edition) -- */
@media (max-width: 768px) {
  table.supreme-mobile-table,
  table.supreme-mobile-table tbody,
  table.supreme-mobile-table tr,
  table.supreme-mobile-table td,
  table.supreme-mobile-table th {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border: none !important;
  }
  .table-responsive {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
  }
  table.supreme-mobile-table tr {
    position: relative;
    padding: 6px 8px 6px 56px !important;
    margin-bottom: 0.75rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }
  table.supreme-mobile-table td {
    padding: 0 !important;
    margin: 0 !important;
  }
  .mobile-action-bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 100%;
    background: #F1F5F9;
    border-right: 1px solid #E2E8F0;
    border-radius: 8px 0 0 8px;
    padding: 6px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    z-index: 5;
  }
  .mobile-action-bar-number {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #0F172A, #1E293B);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 5px;
  }
  .mob-btn-detail, .mob-btn-reviewer {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    color: #475569;
    text-decoration: none;
    font-size: 12px;
  }
  .mobile-proposal-card-container {
    padding: 6px 0;
  }
  .mob-split-label {
    display: flex;
    flex-direction: column;
    margin-bottom: 6px;
  }
  .mob-label {
    font-size: 8.5px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
  }
  .mob-value {
    font-size: 11px;
    color: #0F172A;
    word-break: break-word;
    white-space: normal;
  }
  td.col-checkbox {
    position: absolute;
    top: 6px;
    right: 8px;
    left: auto;
    z-index: 10;
  }
}


/* Form Borders Fix */
.form-control, .form-select { border: 1px solid #ced4da !important; background-color: #ffffff !important; color: #333333 !important; }
.form-control:focus, .form-select:focus { border-color: #C9A96E !important; box-shadow: 0 0 0 0.25rem rgba(201,169,110,0.25) !important; }
.form-check-input { border: 1px solid #ced4da !important; }

/* PREMIUM FOOTER & FORM FIXES */
.site-footer {
    background-color: #FAF8F5 !important;
    color: #1A1A1A !important;
    border-top: 1px solid rgba(201,169,110,0.3) !important;
    position: relative;
    z-index: 10;
}

/* Testimonial portraits keep a stable circular frame before and after loading. */
.home-testimonial-avatar {
  display: block !important;
  width: 52px !important;
  min-width: 52px !important;
  height: 52px !important;
  min-height: 52px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
}

/* Install app affordance + polished cross-device guide */
.site-header .install-app-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  flex: 0 0 auto;
  min-height: 38px;
  padding: .55rem .85rem;
  border: 1px solid rgba(201, 169, 110, .58);
  border-radius: 999px;
  color: #F5E8C5;
  background: rgba(201, 169, 110, .12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255,255,255,.12);
  font: 700 .72rem/1 'Plus Jakarta Sans', sans-serif;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}
.site-header .install-app-button:hover,
.site-header .install-app-button:focus-visible {
  color: #0F1F2E;
  background: #C9A96E;
  border-color: #C9A96E;
  outline: none;
}
.site-header .install-app-button.is-installed { color: #BDE7C8; border-color: rgba(101, 186, 124, .55); }

.install-app-modal .modal-dialog { width: min(520px, calc(100vw - 2rem)); max-width: 520px; margin: 1rem auto; }
.install-app-modal .modal-content { overflow: hidden; border: 1px solid rgba(201,169,110,.22); border-radius: 24px; box-shadow: 0 28px 90px rgba(15,31,46,.28); }
.install-app-modal .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.15rem 1.25rem; color: #fff; background: linear-gradient(135deg,#0F1F2E,#1E3048); border: 0; }
.install-app-heading { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.install-app-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; color: #0F1F2E; background: #C9A96E; border-radius: 13px; box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.install-app-kicker { display: block; margin-bottom: .15rem; color: #C9A96E; font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.install-app-modal .modal-title { margin: 0; color: #fff; font: 600 1.3rem/1.15 Fraunces, Georgia, serif; }
.install-app-modal .modal-body { padding: 1.2rem 1.25rem 1rem; max-height: min(66vh, 560px); overflow-y: auto; }
.install-app-lead { margin: 0 0 1rem; color: #475569; font-size: .9rem; line-height: 1.65; }
.install-guide-list { display: grid; gap: .65rem; }
.install-guide-item { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: .7rem; align-items: start; padding: .75rem .8rem; border: 1px solid #E6EAF0; border-radius: 15px; background: #FBFCFD; }
.install-guide-number { display: grid; place-items: center; width: 30px; height: 30px; color: #0F1F2E; background: #EFDCA9; border-radius: 50%; font-size: .76rem; font-weight: 800; }
.install-guide-item strong { display: block; margin: .1rem 0 .22rem; color: #0F1F2E; font-size: .82rem; }
.install-guide-item p { margin: 0; color: #64748B; font-size: .78rem; line-height: 1.55; }
.install-guide-item em { color: #8B6914; font-style: normal; font-weight: 700; }
.install-app-note { display: flex; align-items: center; gap: .45rem; margin: 1rem 0 0; color: #64748B; font-size: .73rem; }
.install-app-note i { color: #A88B4A; }
.install-app-modal .modal-footer { padding: .85rem 1.25rem 1.15rem; border: 0; }
.install-app-understood { width: 100%; min-height: 42px; border: 0; border-radius: 12px; color: #0F1F2E; background: #C9A96E; font-weight: 800; }
.install-app-understood:hover, .install-app-understood:focus-visible { color: #0F1F2E; background: #DABF86; }
.install-app-modal.manual-open { display: flex !important; position: fixed; inset: 0; z-index: 1060; align-items: center; justify-content: center; padding: 1rem; overflow-y: auto; background: rgba(15,31,46,.58); }
.install-app-modal.manual-open .modal-dialog { margin: 0 auto; pointer-events: auto; }

@media (max-width: 768px) {
  .site-header .install-app-button { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 12px; font-size: .95rem; }
  .site-header .install-app-button span { display: none; }
  .install-app-modal .modal-dialog { width: min(440px, calc(100vw - 1rem)); max-width: calc(100vw - 1rem); margin: .5rem auto; }
  .install-app-modal .modal-content { border-radius: 20px; }
  .install-app-modal .modal-header { padding: 1rem; }
  .install-app-modal .modal-body { padding: 1rem; max-height: 70vh; }
  .install-app-modal .modal-footer { padding: .75rem 1rem 1rem; }
}

/* Final mobile polish: keep the fixed header clear of inner-page heroes,
   keep catalogue actions easy to find, and preserve readable modal headings. */
@media (max-width: 768px) {
  body.public-site .inner-hero {
    padding-top: 125px !important;
  }
}

/* Compact floating contact/install actions: keep the header calm and let
   both utilities travel together at the edge of the viewport. */
.wa-float {
  bottom: 20px !important;
  right: 20px !important;
  min-height: 34px;
  padding: .48rem .72rem !important;
  border-radius: 12px !important;
  font-size: .72rem !important;
  gap: .35rem !important;
  box-shadow: 0 8px 20px rgba(37,211,102,.24) !important;
}
.wa-float b { display: none !important; }
.install-app-float {
  position: fixed;
  right: 20px;
  bottom: 64px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 34px;
  padding: .48rem .72rem;
  border: 1px solid rgba(201,169,110,.62);
  border-radius: 12px;
  color: #0F1F2E;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 20px rgba(15,31,46,.16);
  font: 800 .7rem/1 'Plus Jakarta Sans', sans-serif;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.install-app-float:hover,
.install-app-float:focus-visible { color: #0F1F2E; background: #F3E5AB; border-color: #C9A96E; outline: none; }
.install-app-float.is-installed { color: #166534; border-color: rgba(22,101,52,.35); }

@media (max-width: 768px) {
  .wa-float {
    right: 14px !important;
    bottom: 14px !important;
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0 !important;
    border-radius: 11px !important;
    font-size: 1rem !important;
  }
  .wa-float span { display: none !important; }
  .install-app-float {
    right: 14px;
    bottom: 58px;
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 11px;
    font-size: .92rem;
  }
  .install-app-float span { display: none; }
}

/* Final compact header and floating actions. */
.site-header .header-cta {
  min-height: 32px;
  padding: .42rem .7rem !important;
  gap: .3rem;
  border-radius: 10px !important;
  font-size: .68rem !important;
  box-shadow: 0 6px 14px rgba(15,31,46,.14) !important;
}
.site-header .header-cta b { display: none !important; }
.site-header .header-cta i { font-size: .72rem !important; margin-right: 0 !important; }
.install-app-float {
  min-height: 32px;
  padding: .42rem .65rem;
  border-radius: 10px;
  font-size: .66rem;
}
.wa-float i { font-size: .9rem !important; margin-right: 0 !important; }
@media (max-width: 768px) {
  .site-header .header-cta { border-radius: 10px !important; }
  .site-header .menu-toggle { border-radius: 10px !important; }
  .install-app-float {
    min-height: 36px;
    padding: 0;
    border-radius: 11px;
    font-size: .92rem;
  }
  .wa-float { border-radius: 11px !important; }
}

/* Tiny, factual storefront signals. Counts come from detail views and
   confirmed orders, with a deliberately quiet visual weight. */
.book-popularity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .28rem;
  min-width: 0;
  color: #72857e;
  font-size: .5rem;
  font-weight: 800;
  line-height: 1;
}
.book-popularity > span {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  min-height: 19px;
  padding: .2rem .34rem;
  border: 1px solid #dceae4;
  border-radius: 999px;
  background: #f8fcfa;
  white-space: nowrap;
}
.book-popularity i { font-size: .48rem; }
.book-popularity-view i { color: #4d7669; }
.book-popularity-sold { color: #427464; }
.book-popularity-sold i { color: #079469; }
.compact-recommendation-body .book-popularity,
.book-recommend-copy-v3 .book-popularity { gap: .2rem; font-size: .41rem; }
.compact-recommendation-body .book-popularity > span,
.book-recommend-copy-v3 .book-popularity > span { min-height: 16px; padding: .16rem .23rem; }
.compact-recommendation-body .book-popularity i,
.book-recommend-copy-v3 .book-popularity i { font-size: .4rem; }
.book-detail-popularity { margin: -.2rem 0 .85rem; font-size: .56rem; }
.book-detail-popularity > span { min-height: 23px; padding: .28rem .45rem; }
.admin-book-popularity { font-size: .45rem; }
.admin-book-popularity > span { min-height: 17px; padding: .17rem .28rem; }
@media (max-width: 520px) {
  .book-popularity { gap: .22rem; font-size: .46rem; }
  .book-popularity > span { min-height: 18px; padding: .18rem .28rem; }
}

/* Fast book-order chooser shared by home, catalog, and book modal. */
body.public-site #bookModalCheckout.is-preorder {
  border-color: #e17c13 !important;
  background: linear-gradient(135deg,#ffad32,#ed7719) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(184,91,7,.24) !important;
}
.quick-order-popup { width: min(94vw, 500px) !important; border-radius: 24px !important; padding: 1.35rem !important; }
.quick-order-popup .swal2-title { color: #17353e; font: 700 1.48rem/1.2 Georgia,serif; }
.quick-order-summary { text-align: left; }
.quick-order-summary > p { margin: 0 0 .85rem; color: #263f46; font-weight: 800; line-height: 1.45; text-align: center; }
.quick-order-options { display: grid; gap: .55rem; }
.quick-order-choice { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: .65rem; min-height: 64px; margin: 0; padding: .62rem .72rem; border: 1px solid #d8e7e0; border-radius: 15px; background: #f9fffc; color: #17353e; cursor: pointer; transition: .18s ease; }
.quick-order-choice:has(input:checked) { border-color: #00c97c; background: #e8fff5; box-shadow: 0 0 0 3px rgba(0,201,124,.1); }
.quick-order-choice input { position: absolute; opacity: 0; pointer-events: none; }
.quick-order-choice__icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: #d9f8e9; color: #087b65; }
.quick-order-choice__copy { display: flex; min-width: 0; flex-direction: column; gap: .18rem; }
.quick-order-choice__copy strong { font-size: .78rem; }
.quick-order-choice__copy small { color: #687b80; font-size: .61rem; line-height: 1.35; }
.quick-order-choice > b { color: #078b64; font-size: .75rem; white-space: nowrap; }
.quick-order-preorder { display: flex; align-items: center; gap: .58rem; margin: 0 0 .7rem; padding: .58rem .68rem; border: 1px solid #f1c987; border-radius: 13px; background: #fff7e7; color: #8a5107; }
.quick-order-preorder > span { font-size: 1.15rem; }
.quick-order-preorder div { display: flex; flex-direction: column; gap: .1rem; }
.quick-order-preorder strong { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.quick-order-preorder small { font-size: .62rem; }
@media (max-width: 520px) {
  .quick-order-popup { padding: 1rem .85rem !important; }
  .quick-order-popup .swal2-title { font-size: 1.25rem; }
  .quick-order-choice { grid-template-columns: 34px minmax(0,1fr); gap: .55rem; padding: .58rem; }
  .quick-order-choice__icon { width: 34px; height: 34px; }
  .quick-order-choice > b { grid-column: 2; }
}

@media (max-width: 575.98px) {
  #bookGrid .book-item .card-body {
    padding: .7rem !important;
  }
  #bookGrid .book-item .card-body > .mt-auto {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: .45rem !important;
  }
  #bookGrid .book-item .card-body > .mt-auto .btn,
  #bookGrid .book-item .card-body > .mt-auto a,
  #bookGrid .book-item .card-body > .mt-auto button {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 40px !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .3rem !important;
    padding: 8px 9px !important;
    font-size: .72rem !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
  #bookGrid .book-item .card-body > .fw-bold {
    font-size: .82rem !important;
    margin-bottom: .65rem !important;
  }
}

.book-info-modal .modal-header {
  background: linear-gradient(135deg, #0F1F2E, #1E3048) !important;
  color: #fff !important;
}
.book-info-modal .modal-title,
.book-info-modal .modal-header .modal-title {
  color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  line-height: 1.25 !important;
}
.book-info-modal .modal-header > div {
  min-width: 0 !important;
}
.book-info-modal #bookModalSynopsis {
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: anywhere;
  word-break: normal;
}

.btn-book-info {
  background: linear-gradient(135deg, #FFF3C4 0%, #E8C86A 100%) !important;
  border: 1px solid #C59B27 !important;
  color: #3A2A08 !important;
  box-shadow: 0 5px 14px rgba(197,155,39,.22) !important;
  font-weight: 800 !important;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease !important;
}
.btn-book-info:hover,
.btn-book-info:focus-visible {
  background: linear-gradient(135deg, #0F1F2E 0%, #1E3048 100%) !important;
  border-color: #0F1F2E !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(15,31,46,.22) !important;
  transform: translateY(-1px);
}

.checkout-book-info {
  display: grid;
  gap: .8rem;
  padding-top: .25rem;
}
.checkout-book-info__section {
  border: 1px solid #E6EAF0;
  border-radius: 14px;
  padding: .85rem .9rem;
  background: linear-gradient(180deg, #fff 0%, #FBFCFD 100%);
}
.checkout-book-info__section h4 {
  margin: 0 0 .45rem;
  color: #8B6914;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .9px;
  text-transform: uppercase;
}
.checkout-book-info__section p,
.checkout-book-info__section li {
  margin: 0;
  color: #475569;
  font-size: .82rem;
  line-height: 1.6;
}
.checkout-book-info__section p {
  white-space: pre-line;
}
.checkout-book-info__section ol {
  margin: 0;
  padding-left: 1.1rem;
}

/* Keep the book-information modal compact and centered on wide screens. */
.book-info-modal .modal-dialog {
  width: min(720px, calc(100vw - 2rem)) !important;
  max-width: 720px !important;
  margin: 1rem auto !important;
}

.cart-button-soft {
  background: rgba(201, 169, 110, .16) !important;
  border: 1px solid rgba(197, 155, 39, .42) !important;
  color: #8B6914 !important;
  box-shadow: 0 4px 12px rgba(197, 155, 39, .12) !important;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease !important;
}
.cart-button-soft:hover,
.cart-button-soft:focus-visible {
  background: rgba(201, 169, 110, .32) !important;
  border-color: #C59B27 !important;
  color: #5E4509 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(197, 155, 39, .2) !important;
}
.book-info-modal .modal-content {
  width: 100% !important;
  max-height: calc(100vh - 2rem) !important;
}
.book-info-modal .modal-body {
  max-height: min(54vh, 430px) !important;
}
.book-info-modal .modal-cover {
  min-height: 230px !important;
  max-height: 300px !important;
}
.book-info-modal.manual-open {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
}
.book-info-modal.manual-open .modal-dialog {
  margin: 0 auto !important;
}
@media (max-width: 767.98px) {
  .book-info-modal .modal-dialog {
    width: min(100%, calc(100vw - 1rem)) !important;
    max-width: calc(100vw - 1rem) !important;
    margin: .5rem auto !important;
  }
  .book-info-modal .modal-content {
    max-height: calc(100vh - 1rem) !important;
  }
  .book-info-modal .modal-body {
    max-height: 62vh !important;
  }
  .book-info-modal.manual-open {
    padding: .5rem !important;
  }
}
.site-footer a {
    color: #1A1A1A !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}
.site-footer a:hover {
    color: #C9A96E !important;
}
.footer-title {
    color: #1A1A1A !important;
    font-weight: 700 !important;
    font-family: var(--font-heading) !important;
    margin-bottom: 1rem !important;
}
.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.1) !important;
    color: #6B7280 !important;
    padding-top: 2rem !important;
    margin-top: 3rem !important;
}

/* FORM FIXES */
.form-control, .form-select, .form-control-lg, .form-select-lg {
    background-color: #FFFFFF !important;
    border: 1px solid #C9A96E !important;
    color: #1A1A1A !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05) !important;
}
.form-control:focus, .form-select:focus {
    border-color: #A88B4A !important;
    box-shadow: 0 0 0 3px rgba(201,169,110,0.2) !important;
}

/* KINETIC STRIP HIDE */
.kinetic-strip { display: none !important; }
/* ==========================================================================
   SUPREME MOBILE CARD-BAR PATTERN (Zero-Scroll Edition)
   ========================================================================== */
@media (max-width: 768px) {
    /* 7. Zero-Scroll Width Constraint Enforcement */
    .table-responsive {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        border: none !important;
        padding: 0 !important;
    }
    table, table.table, table.datatable {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        border: none !important;
    }
    table thead {
        display: none !important; /* Sembunyikan header tabel di mobile */
    }
    table tbody {
        display: block !important;
        width: 100% !important;
    }
    table tr {
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        background: #fff !important;
        border-radius: 12px !important;
        margin-bottom: 15px !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
        border: 1px solid rgba(0,0,0,0.05) !important;
        /* 2. Right-Side Content Area (Transparent Card) padding left untuk action bar */
        padding: 12px 12px 12px 56px !important;
        overflow: hidden !important;
    }
    table td, table th {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        border: none !important;
        padding: 4px 0 !important;
        box-sizing: border-box !important;
        text-align: left !important;
        font-size: 13px !important;
    }
    table td:empty {
        display: none !important;
    }
    
    /* 1. Left-Side Gray Action Column */
    table tr::before {
        content: '';
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 48px !important;
        background: #F8F9FA !important;
        border-right: 1px solid rgba(0,0,0,0.05) !important;
        z-index: 1;
    }
    
    /* Membuat kolom aksi (biasanya kolom terakhir dengan tombol) berada di action bar kiri */
    table td:last-child {
        position: absolute !important;
        left: 6px !important;
        top: 12px !important;
        width: 36px !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        z-index: 2;
    }
    table td:last-child .btn {
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        font-size: 14px !important;
    }
    table td:last-child .btn span, table td:last-child .btn text {
        display: none !important; /* Hanya tampilkan ikon di mobile */
    }

    /* 4. Split Column Label */
    table td::before {
        content: attr(data-label);
        display: block !important;
        font-size: 9px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        color: #888 !important;
        font-weight: 700 !important;
        margin-bottom: 2px !important;
    }
    
    /* Styling teks tabel di mobile */
    table td {
        word-break: break-word !important;
        white-space: normal !important;
    }
    
    /* Modifikasi badge status */
    .badge {
        font-size: 10px !important;
        padding: 4px 8px !important;
    }
}
/* === FOOTER DEFINITIVE FIX === */
.site-footer {
  background: #1E2D40 !important;
  color: #CBD5E1 !important;
}
.site-footer h3, .site-footer .footer-title {
  color: #FFFFFF !important;
}
.site-footer p, .site-footer span, .site-footer li, .site-footer small {
  color: #94A3B8 !important;
}
.site-footer a {
  color: #CBD5E1 !important;
  text-decoration: none !important;
}
.site-footer a:hover {
  color: #C9A96E !important;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1) !important;
  color: #64748B !important;
  padding-top: 1.5rem !important;
  margin-top: 2rem !important;
}
/* === MEGA FIX V2 === */
section[style*="linear-gradient(135deg, var(--navy)"] h2,
section[style*="linear-gradient(135deg, var(--navy)"] .display-5 { color:#ffffff !important; }
section[style*="linear-gradient(135deg, var(--navy)"] p { color:rgba(255,255,255,0.78) !important; }
section[style*="background:#0F1F2E"] .text-white { color:#ffffff !important; }
section[style*="background:#0F1F2E"] .text-white-50 { color:rgba(255,255,255,0.65) !important; }
.site-footer { background:#0F1F2E !important; color:#94A3B8 !important; border-top:3px solid #C9A96E !important; }
.site-footer h3,.site-footer .fw-bold.text-dark,.site-footer .h4,.site-footer .h5 { color:#ffffff !important; }
.site-footer p,.site-footer li,.site-footer small { color:#94A3B8 !important; }
.site-footer a { color:#94A3B8 !important; text-decoration:none !important; }
.site-footer a:hover { color:#C9A96E !important; }
.site-footer .text-muted { color:#64748B !important; }
.site-footer .border-bottom { border-color:rgba(255,255,255,0.08) !important; }
.footer-bottom { background:rgba(0,0,0,0.2) !important; border-top:1px solid rgba(255,255,255,0.07) !important; color:#475569 !important; padding:1.5rem 0 !important; margin-top:2rem !important; }
.footer-bottom span,.footer-bottom a { color:#475569 !important; }
.footer-bottom a:hover { color:#C9A96E !important; }

/* === NUCLEAR FOOTER FIX - FORCE ALL === */
.site-footer,
.site-footer *:not(.badge):not(i):not(.fab):not(.fas) {
  color: #94A3B8 !important;
}
.site-footer h3,
.site-footer .h4, .site-footer .h5,
.site-footer span[style*="color:#fff"],
.site-footer span[style*="color:#FFFFFF"],
.site-footer span[style*="color:#ffffff"],
.site-footer a[style*="color:#fff"] {
  color: #FFFFFF !important;
}
.site-footer p[style*="color:#C9A96E"],
.site-footer .footer-tagline {
  color: #C9A96E !important;
}
.site-footer p[style*="color:#64748B"],
.site-footer small,
.site-footer .small {
  color: #64748B !important;
}
.site-footer ul a,
.site-footer ul li a {
  color: #94A3B8 !important;
}
.site-footer ul a:hover,
.site-footer ul li a:hover {
  color: #C9A96E !important;
}
.site-footer .border-bottom {
  border-color: rgba(255,255,255,0.08) !important;
}
.footer-bottom,
.footer-bottom * {
  color: #475569 !important;
}
/* hide 100% Legal badge (kepotong di hero) */
.col-lg-6 .position-absolute.bg-white.p-3.rounded-4.shadow-lg.transform-hover {
  display: none !important;
}

/* === HERO SECTION FIX === */
.hero-section {
  background: linear-gradient(160deg, #FAF8F5 0%, #F0EDE8 100%) !important;
  padding: 120px 0 80px 0 !important;
  border-bottom: 1px solid rgba(0,0,0,0.07) !important;
  overflow: visible !important;
}
.hero-inner {
  padding-top: 0 !important;
}
.hero-section .row {
  min-height: unset !important;
}
.hero-section .col-lg-6:first-child {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.hero-section h1.font-heading {
  font-size: clamp(2rem, 4vw, 3.2rem) !important;
  line-height: 1.2 !important;
  margin-bottom: 1.2rem !important;
  color: #0F1F2E !important;
}
.hero-section p.fs-5 {
  font-size: 1.05rem !important;
  line-height: 1.7 !important;
  color: #4B5563 !important;
  margin-bottom: 2rem !important;
  max-width: 480px;
}
.hero-section .col-lg-6:first-child .badge {
  font-size: 0.72rem !important;
}
/* Fix image col - remove overflow cut-off */
.hero-section .col-lg-6:last-child {
  position: relative !important;
  overflow: visible !important;
}
.hero-section .col-lg-6:last-child img {
  max-height: 420px !important;
  object-fit: cover !important;
  border-radius: 16px !important;
}
@media (max-width: 992px) {
  .hero-section {
    padding: 100px 0 50px 0 !important;
  }
  .hero-section h1.font-heading {
    font-size: 2rem !important;
  }
  .hero-section .col-lg-6:last-child {
    display: none !important;
  }
}

/* === HERO BOOK ART + BLACK BAR FIX === */
/* Remove any empty dark sections between content and footer */
section:empty, div:empty { display: none !important; }
/* Fix stray dark sections */
section[style*="navy-mid"]:not(:has(*)) { display: none !important; }
/* Make sure no stray bg bleeds */
.page-home main > section:last-of-type {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}


/* === FINAL COMPREHENSIVE FIX === */
/* CTA section - no border conflicts */
section[style*="background:#0F1F2E"] {
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
}
/* CTA buttons gap fix */
section[style*="background:#0F1F2E"] .d-flex.gap-3 {
  gap: 1rem !important;
}
section[style*="background:#0F1F2E"] a {
  transition: transform 0.2s, box-shadow 0.2s !important;
}
section[style*="background:#0F1F2E"] a:hover {
  transform: translateY(-3px) !important;
}
/* Remove ALL stray borders between sections */
main > section {
  border: none !important;
}
/* Section padding consistent */
.section-pad { padding: 5rem 0 !important; }
/* Mobile CTA buttons stack nicely */
@media (max-width: 768px) {
  section[style*="background:#0F1F2E"] .d-flex.gap-3 {
    flex-direction: column !important;
    align-items: center !important;
  }
  section[style*="background:#0F1F2E"] .d-flex.gap-3 a {
    width: 100% !important;
    max-width: 320px !important;
    justify-content: center !important;
  }
  /* Hero buttons stack on mobile */
  .d-flex.gap-2.justify-content-center.justify-content-lg-start {
    flex-direction: column !important;
    align-items: center !important;
  }
  .d-flex.gap-2.justify-content-center.justify-content-lg-start a {
    width: 100% !important;
    max-width: 300px !important;
    justify-content: center !important;
    padding: 14px 20px !important;
    font-size: 0.88rem !important;
  }
  /* Trust badges */
  .d-flex.gap-4 { gap: 0.75rem !important; }
  /* Book cards on mobile */
  .col-6.col-md-4.col-lg-3 { width: 50% !important; }
  .col-6.col-md-4.col-lg-3 .p-3.p-md-4 { padding: 0.6rem !important; }
  .col-6.col-md-4.col-lg-3 h3 { font-size: 0.78rem !important; }
  .col-6.col-md-4.col-lg-3 p { font-size: 0.7rem !important; }
  /* Testimonial cards */
  .col-md-6.col-lg-4 .p-4.p-md-5 { padding: 1.25rem !important; }
  .col-md-6.col-lg-4 .rounded-circle { width: 44px !important; height: 44px !important; }
  /* Footer mobile */
  .site-footer .row { gap: 2rem 0 !important; }
}
/* Gold border between stats and CTA - REMOVE */
section + section { border-top: none !important; }
/* Testimonial card stars */
.testimonial-stars { color: #F59E0B; font-size: 0.8rem; margin-bottom: 0.5rem; }

/* === REMOVE ALL STRAY LINES/BARS === */
main > section { border: none !important; border-top: none !important; border-bottom: none !important; outline: none !important; }
section.section-pad { border: none !important; }
section.bg-light { border: none !important; border-top: none !important; }
/* Remove stats section dark bar appearance when empty */
section[style*="padding:3rem"] { min-height: unset !important; }
/* CTA gold line fix */
.section-pad + .section-pad { border: none !important; }
/* Gold border-top on CTA and footer */
section[style*="background:#0F1F2E"] { border-top: none !important; border-bottom: none !important; }
.site-footer { border-top: none !important; }
/* Remove ANY gold borders globally */
section::before, section::after { display: none !important; }

/* Hide empty sections completely */
section:empty { display: none !important; }

/* === CATEGORY FILTER BUTTON HOVER FIX === */
#categoryFilters button {
  padding: 0.55rem 1.4rem !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
  border: 1.5px solid #CBD5E1 !important;
  background: #FFFFFF !important;
  color: #1E293B !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04) !important;
}

#categoryFilters button:hover {
  background: #0F1F2E !important;
  color: #C9A96E !important;
  border-color: #0F1F2E !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(15, 31, 46, 0.2) !important;
}

#categoryFilters button.active,
#categoryFilters button.btn-gold {
  background: linear-gradient(135deg, #C9A96E 0%, #A88B4A 100%) !important;
  color: #0F1F2E !important;
  border-color: #C9A96E !important;
  box-shadow: 0 4px 14px rgba(201, 169, 110, 0.35) !important;
}

#categoryFilters button.active:hover,
#categoryFilters button.btn-gold:hover {
  background: #0F1F2E !important;
  color: #FFFFFF !important;
  border-color: #0F1F2E !important;
}

/* === BFCACHE / NAVIGATION BACK FIX === */
body:not(.page-leaving) .page-curtain {
  transform: translateY(100%) !important;
  pointer-events: none !important;
  display: none !important;
}
.loading-screen.loaded {
  opacity: 0 !important;
  pointer-events: none !important;
  display: none !important;
}

/* === FOOTER GLOWING TEXT & HIGH VISIBILITY FIX === */
.site-footer {
  background: linear-gradient(180deg, #0C1824 0%, #070F18 100%) !important;
  color: #E2E8F0 !important;
}
.site-footer h3,
.site-footer .h5 {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.25) !important;
}
.site-footer p[style*="color:#C9A96E"] {
  color: #F3E5AB !important;
  text-shadow: 0 0 12px rgba(201, 169, 110, 0.5) !important;
}
.site-footer p[style*="color:#64748B"] {
  color: #94A3B8 !important;
}
.site-footer span[style*="text-transform:uppercase"] {
  color: #F3E5AB !important;
  letter-spacing: 2px !important;
  text-shadow: 0 0 8px rgba(243, 229, 171, 0.3) !important;
}
.site-footer ul a,
.site-footer ul li a {
  color: #CBD5E1 !important;
  font-weight: 500 !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
}
.site-footer ul a:hover,
.site-footer ul li a:hover {
  color: #F3E5AB !important;
  text-shadow: 0 0 10px rgba(243, 229, 171, 0.6) !important;
  padding-left: 5px !important;
}
.site-footer div[style*="color:#64748B"] {
  color: #94A3B8 !important;
}
.site-footer a[style*="color:#fff"],
.site-footer span[style*="color:#fff"] {
  color: #FFFFFF !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3) !important;
}
.footer-bottom span {
  color: #94A3B8 !important;
}
.footer-bottom i.fa-heart {
  color: #EF4444 !important;
  filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.6)) !important;
}


/* ==========================================================================
   SUPREME MASTER MOBILE & RESPONSIVE UI/UX ENGINE 2.0 (SILICON VALLEY GRADE)
   Zero-Scroll, Zero-Overflow, Ultra-Luxury Aesthetics for All Device Sizes
   ========================================================================== */

/* 1. GLOBAL ZERO-OVERFLOW ENFORCEMENT */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

*, *::before, *::after {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

.shell {
  width: 100% !important;
  max-width: 1280px !important;
  padding-left: clamp(16px, 4vw, 32px) !important;
  padding-right: clamp(16px, 4vw, 32px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow-x: hidden !important;
}

img, video, svg, iframe, canvas {
  max-width: 100% !important;
  height: auto !important;
}

/* 2. TABLET & DESKTOP FINE-TUNING (769px - 1024px) */
@media (max-width: 1024px) {
  .site-header {
    padding: 0.85rem clamp(16px, 3vw, 24px) !important;
  }
  .desktop-nav {
    gap: 1.25rem !important;
  }
  .desktop-nav a {
    font-size: 0.8rem !important;
  }
}

/* 3. MOBILE UI/UX MASTER BREAKPOINT (max-width: 768px) */
@media (max-width: 768px) {
  
  /* Header & Navigation */
  .site-header {
    padding: 0.75rem 1rem !important;
    background: rgba(12, 27, 42, 0.96) !important;
    backdrop-filter: blur(14px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
  }
  .brand strong {
    font-size: 0.95rem !important;
  }
  .brand small {
    font-size: 0.55rem !important;
  }
  .brand-mark {
    width: 30px !important;
    height: 30px !important;
  }
  .header-cta {
    display: none !important;
  }
  .desktop-nav {
    display: none !important;
  }
  .menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
  }
  
  /* Mobile Menu Overlay */
  .mobile-menu {
    background: rgba(12, 24, 38, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    padding: 5rem 1.5rem 2rem !important;
  }
  .mobile-menu a {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    padding: 0.85rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #FFFFFF !important;
  }
  .mobile-menu a span {
    font-size: 0.75rem !important;
    color: #C9A96E !important;
    margin-right: 0.75rem !important;
  }

  /* Inner Hero & Page Headers */
  .inner-hero {
    padding: 100px 0 40px 0 !important;
  }
  .inner-hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
  }
  .inner-hero p {
    font-size: 0.9rem !important;
  }

  /* Main Section Padding */
  section, .section-pad {
    padding: 3rem 0 !important;
  }

  /* Hero Section */
  section[style*="padding:140px"] {
    padding: 105px 0 45px 0 !important;
  }
  h1.font-heading {
    font-size: clamp(1.75rem, 7.5vw, 2.5rem) !important;
    line-height: 1.25 !important;
  }
  
  /* Buttons on Mobile - Full Width & Touch-Friendly */
  .d-flex.flex-wrap.gap-2.justify-content-center.justify-content-lg-start,
  .d-flex.flex-wrap.gap-3.justify-content-center {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }
  
  .d-flex.flex-wrap.gap-2.justify-content-center.justify-content-lg-start a,
  .d-flex.flex-wrap.gap-3.justify-content-center a {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.92rem !important;
    padding: 12px 20px !important;
  }

  /* Grid Layouts - 2 Columns for Book Cards on Mobile */
  .row.g-4, .row.g-3, .row.g-5 {
    margin-left: -6px !important;
    margin-right: -6px !important;
  }
  
  .row.g-4 > [class*="col-"],
  .row.g-3 > [class*="col-"],
  .row.g-5 > [class*="col-"] {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  /* Book Items: 2 Columns Grid on Mobile */
  .col-6.col-md-4.col-lg-3,
  .col-6.col-lg-3,
  .book-item {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }

  /* Compact Book Card Padding & Typography */
  .card.border-0.shadow-sm.rounded-4 .p-3.p-md-4,
  .book-item .card-body {
    padding: 0.75rem !important;
  }
  .card h3.h6,
  .book-item h3 {
    font-size: 0.82rem !important;
    margin-bottom: 0.25rem !important;
  }
  .card p.small,
  .book-item p.small {
    font-size: 0.72rem !important;
    margin-bottom: 0.5rem !important;
  }
  .card .text-success,
  .book-item .text-success {
    font-size: 0.88rem !important;
    margin-bottom: 0.5rem !important;
  }
  .card a.btn,
  .book-item a.btn {
    font-size: 0.78rem !important;
    padding: 8px 10px !important;
    min-height: 38px !important;
  }

  /* Stats Section - 2x2 Grid on Mobile */
  section[style*="linear-gradient(180deg"] .col-6.col-lg-3 {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
    margin-bottom: 0.75rem !important;
  }
  section[style*="linear-gradient(180deg"] div[style*="border-radius:18px"] {
    padding: 1.25rem 0.75rem !important;
  }
  section[style*="linear-gradient(180deg"] .font-heading.fw-bold {
    font-size: 1.8rem !important;
  }

  /* Category Filters on Mobile */
  #categoryFilters {
    gap: 0.4rem !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 0.5rem !important;
    -webkit-overflow-scrolling: touch;
    width: 100% !important;
  }
  #categoryFilters button {
    font-size: 0.78rem !important;
    padding: 0.45rem 1rem !important;
    flex-shrink: 0 !important;
  }

  /* Form Elements - Prevent iOS Zoom & Full Width Touch */
  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="tel"],
  input[type="file"],
  select,
  textarea {
    font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
    min-height: 48px !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
  }

  /* Standalone Card Forms */
  .card.border-0.shadow-lg.rounded-4.p-4.p-md-5,
  .card.border-0.shadow-md.rounded-4.p-4.p-md-5 {
    padding: 1.25rem 1rem !important;
    border-radius: 16px !important;
  }

  /* Footer Stacked on Mobile */
  .site-footer .row {
    row-gap: 2rem !important;
  }
  .site-footer .col-lg-4,
  .site-footer .col-6.col-lg-2 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .site-footer .footer-bottom div {
    flex-direction: column !important;
    text-align: center !important;
    gap: 0.5rem !important;
  }

  /* Floating WhatsApp Button - Sleek Touch Friendly */
  .wa-float {
    bottom: 1.25rem !important;
    right: 1.25rem !important;
    padding: 0.5rem 1.1rem !important;
    font-size: 0.78rem !important;
    box-shadow: 0 6px 20px rgba(37,211,102,0.4) !important;
  }
}

/* 4. EXTRA SMALL MOBILE (iPhone SE, Galaxy Fold, max-width: 480px) */
@media (max-width: 480px) {
  .shell {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  h1.font-heading {
    font-size: 1.65rem !important;
  }
  h2.font-heading {
    font-size: 1.4rem !important;
  }
  .d-flex.flex-wrap.gap-4 {
    gap: 0.5rem !important;
  }
}

/* === PREMIUM EMERALD GREEN SUBMIT BUTTON === */
.btn-emerald-premium {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 50px !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35) !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

.btn-emerald-premium:hover,
.btn-emerald-premium:focus {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 32px rgba(16, 185, 129, 0.5) !important;
}

.btn-emerald-premium:active {
  transform: translateY(0) !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
}

/* === CATEGORY FILTER BUTTONS 2-ROW BALANCED GRID === */
#categoryFilters {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px 12px !important;
  max-width: 840px !important;
  margin: 0 auto 3rem auto !important;
  padding: 0 1rem !important;
}

#categoryFilters button {
  padding: 8px 22px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  border: 1px solid #D1D5DB !important;
  background: #FFFFFF !important;
  color: #1F2937 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04) !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

#categoryFilters button:hover {
  background: #0F1F2E !important;
  color: #C9A96E !important;
  border-color: #0F1F2E !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(15,31,46,0.2) !important;
}

#categoryFilters button.active,
#categoryFilters button.btn-gold {
  background: linear-gradient(135deg, #C9A96E 0%, #A88B4A 100%) !important;
  color: #0F1F2E !important;
  border-color: #A88B4A !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 20px rgba(201,169,110,0.4) !important;
}

@media (max-width: 768px) {
  #categoryFilters {
    max-width: 100% !important;
    gap: 8px !important;
    padding: 0 0.5rem !important;
    margin-bottom: 2rem !important;
  }
  #categoryFilters button {
    padding: 7px 16px !important;
    font-size: 0.8rem !important;
  }
}

/* === LUXURY TOP NAVIGATION HOVER EFFECTS === */
.desktop-nav {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.desktop-nav a {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  position: relative !important;
  padding: 0.55rem 1rem !important;
  border-radius: 50px !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  letter-spacing: 0.3px !important;
}

/* Hover pill glow & text color */
.desktop-nav a:hover {
  color: #C9A96E !important;
  background: rgba(201, 169, 110, 0.12) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(201, 169, 110, 0.15) !important;
}

/* Animated Golden Underline */
.desktop-nav a::after {
  content: "" !important;
  position: absolute !important;
  bottom: 4px !important;
  left: 20% !important;
  width: 60% !important;
  height: 2px !important;
  background: linear-gradient(90deg, #C9A96E, #F3E5AB) !important;
  border-radius: 2px !important;
  transform: scaleX(0) !important;
  transform-origin: center !important;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 0 8px rgba(201, 169, 110, 0.8) !important;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  transform: scaleX(1) !important;
}

/* Active State */
.desktop-nav a.active {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(201, 169, 110, 0.3) !important;
}

/* === ABSOLUTE HIGH-CONTRAST DARK NAVY HEADER (CRYSTAL CLEAR VISIBILITY) === */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  background: rgba(15, 31, 46, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(201, 169, 110, 0.3) !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.3s ease !important;
}

.site-header.is-sticky {
  background: rgba(15, 31, 46, 0.98) !important;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35) !important;
}

.brand {
  color: #FFFFFF !important;
}

.brand strong {
  color: #FFFFFF !important;
}

.brand small {
  color: #C9A96E !important;
}

.brand-mark {
  color: #C9A96E !important;
}

.desktop-nav a {
  color: #FFFFFF !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: 50px !important;
  transition: all 0.3s ease !important;
}

.desktop-nav a:hover {
  color: #C9A96E !important;
  background: rgba(201, 169, 110, 0.18) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(201, 169, 110, 0.25) !important;
}

.desktop-nav a.active {
  color: #FFFFFF !important;
  background: rgba(201, 169, 110, 0.25) !important;
  border: 1px solid rgba(201, 169, 110, 0.4) !important;
  font-weight: 700 !important;
}


/* ==========================================================================
   SUPREME ZERO-SCROLL MOBILE LAYOUT & UI ENGINE (STRICTLY MOBILE ONLY)
   Scoped strictly inside @media (max-width: 768px) - DESKTOP REMAINS UNTOUCHED
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Global Zero-Scroll & Viewport Width Constraint */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  *, *::before, *::after {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .shell {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: hidden !important;
  }

  /* 2. Header & Mobile Menu Overlay */
  .site-header {
    padding: 10px 14px !important;
    height: auto !important;
    min-height: 60px !important;
  }
  
  .site-header .brand {
    gap: 8px !important;
  }
  
  .site-header .brand strong {
    font-size: 0.92rem !important;
    line-height: 1.2 !important;
  }
  
  .site-header .brand small {
    font-size: 0.55rem !important;
  }
  
  .menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(201, 169, 110, 0.3) !important;
    border-radius: 12px !important;
  }

  .mobile-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #0F1F2E !important;
    padding: 80px 24px 40px !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
  }

  /* 3. Hero & Inner Hero Sections */
  section[style*="padding:140px"],
  .inner-hero {
    padding: 90px 0 35px 0 !important;
  }
  
  h1.font-heading,
  .inner-hero h1 {
    font-size: clamp(1.55rem, 6.5vw, 2.2rem) !important;
    line-height: 1.25 !important;
  }
  
  /* 4. Full-Width Touch Buttons on Mobile */
  .d-flex.flex-wrap.gap-2.justify-content-center,
  .d-flex.flex-wrap.gap-3.justify-content-center,
  .d-flex.flex-wrap.gap-2.justify-content-center.justify-content-lg-start {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
  }
  
  .d-flex.flex-wrap.gap-2.justify-content-center a,
  .d-flex.flex-wrap.gap-3.justify-content-center a,
  .d-flex.flex-wrap.gap-2.justify-content-center.justify-content-lg-start a {
    width: 100% !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.92rem !important;
    padding: 12px 18px !important;
    text-align: center !important;
  }

  /* 5. Bootstrap Row & Column Overrides for Mobile */
  .row {
    margin-left: -6px !important;
    margin-right: -6px !important;
    row-gap: 16px !important;
  }

  [class*="col-"] {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  /* 6. Book Cards Grid (2 Columns on Mobile) */
  .col-6.col-md-4.col-lg-3,
  .col-6.col-lg-3,
  .book-item,
  .col-6 {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }

  .card.border-0.shadow-sm.rounded-4,
  .book-card {
    border-radius: 14px !important;
  }

  .card h3.h6,
  .book-card h3 {
    font-size: 0.82rem !important;
    line-height: 1.3 !important;
  }

  .card p.small,
  .book-card p {
    font-size: 0.72rem !important;
  }

  /* 7. Forms & Inputs (iOS Safari Anti-Zoom & Touch Targets) */
  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="tel"],
  input[type="file"],
  select,
  textarea {
    font-size: 16px !important; /* Prevents auto-zoom on iOS */
    min-height: 48px !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    width: 100% !important;
  }

  .card.border-0.shadow-lg.rounded-4,
  .card.border-0.shadow-md.rounded-4,
  .card.border-0.shadow-sm.rounded-4.p-4.p-md-5 {
    padding: 18px 14px !important;
    border-radius: 16px !important;
  }

  /* 8. Stats Section (2x2 Grid) */
  section[style*="linear-gradient(180deg"] .col-6.col-lg-3 {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }

  /* 9. Category Filter Slider on Mobile */
  #categoryFilters {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 8px !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    width: 100% !important;
    -webkit-overflow-scrolling: touch;
  }

  #categoryFilters button {
    flex-shrink: 0 !important;
    padding: 6px 14px !important;
    font-size: 0.78rem !important;
  }

  /* 10. Footer Stacked 1-Column */
  .site-footer .row > [class*="col-"] {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* 11. Floating WhatsApp Button */
  .wa-float {
    bottom: 1rem !important;
    right: 1rem !important;
    padding: 8px 16px !important;
    font-size: 0.78rem !important;
    z-index: 9990 !important;
  }
}

/* Mobile Carousel (Horizontal Scroll for Books) */
@media (max-width: 767.98px) {
  .mobile-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-right: -var(--pad-x, 20px);
    margin-left: -var(--pad-x, 20px);
    padding-left: var(--pad-x, 20px) !important;
    padding-right: var(--pad-x, 20px) !important;
    scroll-snap-type: x mandatory;
  }
  .mobile-carousel::-webkit-scrollbar {
    display: none;
  }
  .mobile-carousel .row {
    flex-wrap: nowrap !important;
    padding-bottom: 15px;
  }
  .mobile-carousel .col-9 {
    scroll-snap-align: start;
  }
  .book-card .p-3 {
    padding: 0.85rem !important;
  }
  .book-card .h6 {
    font-size: 0.95rem !important;
  }
}
/* Desktop Book Card enhancements */
.book-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
}
.book-card .btn-light {
  transition: all 0.3s;
}
.book-card:hover .btn-light {
  background-color: var(--navy) !important;
  color: white !important;
  transform: scale(1.1);
}

/* Truncated titles must constrain the anchor itself, not just its heading. */
.card h3.text-truncate > a,
.book-card h3.text-truncate > a {
  display: block !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* ==========================================================================
   ADMIN CONTROL ROOM — compact, consistent and touch-safe
   ========================================================================== */
body.admin-ui {
  background: #f4f7fb !important;
  color: #172033 !important;
  font-family: var(--font-body) !important;
}
body.admin-ui .admin-sidebar {
  width: 248px !important;
  padding: 0 !important;
  background: linear-gradient(180deg, #0c1b2a 0%, #10253a 100%) !important;
  border-right: 1px solid rgba(201, 169, 110, 0.18) !important;
  box-shadow: 8px 0 28px rgba(12, 27, 42, 0.12) !important;
}
body.admin-ui .admin-sidebar > div:first-child {
  padding: 18px 16px 14px !important;
}
body.admin-ui .admin-sidebar > div:first-child .mb-3 {
  width: 58px !important;
  height: 58px !important;
  padding: 9px !important;
  margin-bottom: 10px !important;
}
body.admin-ui .admin-sidebar > div:first-child .fs-5 {
  font-size: 1rem !important;
  line-height: 1.2 !important;
}
body.admin-ui .admin-sidebar > div:first-child .mt-1 {
  margin-top: 4px !important;
  font-size: 0.55rem !important;
  letter-spacing: 2px !important;
}
body.admin-ui .admin-main {
  margin-left: 248px !important;
  width: calc(100% - 248px) !important;
  min-width: 0 !important;
}
body.admin-ui .admin-main > .p-4.p-md-5 {
  padding: clamp(16px, 2.4vw, 32px) !important;
}
body.admin-ui .admin-main > .p-4.p-md-5 > .d-flex.justify-content-between.align-items-center {
  padding-top: 6px !important;
  margin-bottom: 24px !important;
}
body.admin-ui .premium-sidebar-link {
  min-height: 42px !important;
  padding: 9px 13px !important;
  border-radius: 11px !important;
  gap: 8px !important;
  font-size: 0.82rem !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em !important;
}
body.admin-ui .premium-sidebar-link:hover {
  padding-left: 13px !important;
  transform: translateX(3px) !important;
}
body.admin-ui .premium-sidebar-link .icon-box {
  width: 24px !important;
  flex: 0 0 24px !important;
  text-align: center !important;
}
body.admin-ui .premium-sidebar-link.active-link {
  box-shadow: 0 7px 18px rgba(201, 169, 110, 0.22) !important;
}
body.admin-ui .btn:not(.btn-close),
body.admin-ui button:not(.btn-close),
body.admin-ui input[type="submit"],
body.admin-ui input[type="button"] {
  min-height: 38px !important;
  height: auto !important;
  padding: 9px 14px !important;
  border-radius: 10px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em !important;
  white-space: normal !important;
  max-width: 100% !important;
  box-shadow: none !important;
}
body.admin-ui .btn.btn-sm {
  min-height: 32px !important;
  padding: 7px 10px !important;
  font-size: 0.75rem !important;
  border-radius: 8px !important;
}
body.admin-ui .btn-lg {
  min-height: 44px !important;
  padding: 11px 18px !important;
  font-size: 0.88rem !important;
}
body.admin-ui .btn-warning,
body.admin-ui .btn-gold {
  background: linear-gradient(135deg, #d3ad5d, #b88e36) !important;
  border-color: #b88e36 !important;
  color: #102033 !important;
}
body.admin-ui .btn-primary,
body.admin-ui .btn-navy,
body.admin-ui .btn-ink {
  background: #0c1b2a !important;
  border-color: #0c1b2a !important;
  color: #fff !important;
}
body.admin-ui .btn-filter-cetak {
  max-width: 100% !important;
  min-height: 36px !important;
  padding: 8px 12px !important;
  animation: none !important;
  transform: none !important;
  box-shadow: 0 5px 14px rgba(30, 58, 138, 0.16) !important;
}
body.admin-ui .btn-stacked {
  max-width: 100% !important;
  width: auto !important;
  margin-bottom: 0 !important;
}
body.admin-ui .supreme-header-title {
  font-size: clamp(1.2rem, 2vw, 1.65rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
}
body.admin-ui .supreme-badge {
  font-size: 0.62rem !important;
  padding: 4px 7px !important;
  border-radius: 999px !important;
  background: #e9c878 !important;
  color: #102033 !important;
}
body.admin-ui .supreme-card,
body.admin-ui .card {
  border-color: #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045) !important;
}
body.admin-ui .form-control,
body.admin-ui .form-select {
  min-height: 40px !important;
  padding: 9px 11px !important;
  border-radius: 10px !important;
  border-color: #d9e1eb !important;
  font-size: 0.84rem !important;
}
body.admin-ui textarea.form-control {
  min-height: 96px !important;
}
body.admin-ui .table {
  font-size: 0.82rem !important;
  color: #243247 !important;
}
body.admin-ui .table > :not(caption) > * > * {
  padding: 0.72rem 0.8rem !important;
}
body.admin-ui .table thead th {
  color: #607086 !important;
  font-size: 0.68rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  white-space: nowrap !important;
}
body.admin-ui .badge {
  font-size: 0.68rem !important;
  padding: 0.4em 0.65em !important;
}
body.admin-ui .mobile-sidebar-trigger {
  color: #0c1b2a !important;
}

/* Login shares the same navy/gold system without inheriting public-page sizing. */
body.admin-login-page .btn-login {
  min-height: 46px !important;
  padding: 11px 16px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #0c1b2a, #183550) !important;
  box-shadow: 0 8px 20px rgba(12, 27, 42, 0.22) !important;
}
body.admin-login-page .btn-login:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 24px rgba(12, 27, 42, 0.28) !important;
}

@media (max-width: 767.98px) {
  body.admin-ui .admin-sidebar { display: none !important; }
  body.admin-ui .admin-main {
    margin-left: 0 !important;
    width: 100% !important;
    overflow-x: clip !important;
  }
  body.admin-ui .admin-main > .p-4.p-md-5 {
    padding: 16px !important;
  }
  body.admin-ui .admin-main > .p-4.p-md-5 > .d-flex.justify-content-between.align-items-center {
    padding-top: 4px !important;
    margin-bottom: 20px !important;
  }
  body.admin-ui .admin-main .d-flex.justify-content-between {
    align-items: flex-start !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
  }
  body.admin-ui .admin-main .d-flex.justify-content-between > * {
    min-width: 0 !important;
  }
  body.admin-ui .admin-main .row {
    --bs-gutter-x: 0.9rem !important;
    margin-left: -0.45rem !important;
    margin-right: -0.45rem !important;
  }
  body.admin-ui .admin-main .row > * {
    padding-left: 0.45rem !important;
    padding-right: 0.45rem !important;
  }
  body.admin-ui .admin-main .btn:not(.btn-close),
  body.admin-ui .admin-main button:not(.btn-close) {
    min-height: 38px !important;
  }
  body.admin-ui .admin-main .btn-group,
  body.admin-ui .admin-main .d-flex.gap-2,
  body.admin-ui .admin-main .d-flex.gap-3 {
    flex-wrap: wrap !important;
  }
  body.admin-ui .supreme-table tr {
    margin-bottom: 12px !important;
    border: 1px solid #e5eaf1 !important;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.05) !important;
  }
  body.admin-ui .mob-btn {
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    border-radius: 8px !important;
  }
  body.admin-ui .offcanvas .premium-sidebar-link {
    min-height: 44px !important;
    padding: 10px 12px !important;
  }
  body.admin-ui .offcanvas .btn {
    width: 100% !important;
  }
  body.admin-login-page .login-container {
    max-width: 430px !important;
    padding: 16px !important;
  }
  body.admin-login-page .login-card {
    padding: 28px 20px !important;
    border-radius: 18px !important;
  }
  body.admin-login-page .login-brand {
    margin-bottom: 1.7rem !important;
  }
  body.admin-login-page .input-wrap .form-control {
    min-height: 46px !important;
    font-size: 0.88rem !important;
  }
}

/* Final responsive guardrails.  These rules intentionally come last so
   legacy enhancement blocks above cannot re-enable the desktop nav on phones. */
@media (max-width: 768px) {
  html, body {
    overflow-x: clip !important;
    max-width: 100% !important;
  }

  .site-header .header-inner {
    width: 100% !important;
    min-width: 0 !important;
    gap: 10px !important;
  }
  .site-header .brand {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .site-header .brand > span {
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .site-header .brand strong,
  .site-header .brand small {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .site-header .desktop-nav,
  .site-header .header-cta {
    display: none !important;
  }
  .site-header .menu-toggle {
    display: flex !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    margin-left: auto !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .btn, button, input[type="submit"], input[type="button"] {
    max-width: 100% !important;
    white-space: normal !important;
    text-align: center !important;
  }
  video, iframe {
    width: 100% !important;
    max-height: 62vh !important;
    object-fit: contain !important;
  }

  /* Keep the catalog in the document flow on touch screens; users should not
     have to discover a hidden horizontal page/row scroller. */
  .mobile-carousel {
    overflow: visible !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .mobile-carousel .row {
    flex-wrap: wrap !important;
    overflow: visible !important;
  }
  .mobile-carousel .col-9 {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
  }
  .book-card h3,
  .book-card h3 a,
  .book-card .text-truncate {
    display: block !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .card h3.text-truncate,
  .card h3.text-truncate a {
    display: block !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

/* Final compact floating actions. */

/* Final catalog and checkout polish. */
/* Preserve the complete uploaded cover artwork on every public card. */
body.public-site .book-cover,
body.public-site .book-cover img,
body.page-katalog #bookGrid .book-item > .card > a,
body.page-pemesanan .order-book-grid article > a {
  background: #EEF2F5 !important;
}
body.public-site .book-cover img,
body.page-katalog #bookGrid .book-item > .card > a img,
body.page-pemesanan .order-book-grid article > a img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 8px !important;
}
body.admin-ui .supreme-table img[alt^="Cover"] {
  width: 60px !important;
  height: 90px !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #EEF2F5 !important;
  padding: 4px !important;
}
body.public-site .cart-button-soft {
  width: auto !important;
  min-width: 64px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 4px 8px !important;
  gap: .3rem !important;
  border-radius: 9px !important;
  font-size: .66rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
body.public-site .cart-button-soft i {
  font-size: .68rem !important;
}
body.public-site .cart-button-soft span {
  display: inline !important;
}
body.page-katalog #categoryFilters {
  gap: 8px 10px !important;
  margin-bottom: 2rem !important;
  padding: 0 !important;
}
body.page-katalog #categoryFilters button {
  min-height: 40px !important;
  height: 40px !important;
  padding: 7px 12px !important;
  border-radius: 10px !important;
  font-size: .76rem !important;
  line-height: 1.15 !important;
}
body.page-katalog #bookGrid .card-body > .mt-auto {
  display: grid !important;
  grid-template-columns: minmax(0, 1.75fr) minmax(58px, .75fr) !important;
  align-items: stretch !important;
  gap: .35rem !important;
  height: auto !important;
}
body.page-katalog #bookGrid .card-body > .mt-auto > .btn,
body.page-katalog #bookGrid .card-body > .mt-auto > a,
body.page-katalog #bookGrid .card-body > .mt-auto > button {
  flex: 1 1 0 !important;
  width: auto !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 5px 6px !important;
  border-radius: 9px !important;
  font-size: .68rem !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
body.page-katalog #bookGrid .card-body > .mt-auto > .btn-book-info {
  min-width: 0 !important;
}
body.page-katalog #bookGrid .card-body > .mt-auto > a[href*="/checkout"] {
  flex: 0 0 auto !important;
  font-size: .62rem !important;
}
body.page-katalog .book-detail-layout {
  align-items: flex-start !important;
}
body.page-katalog .book-detail-synopsis {
  margin-bottom: 1rem !important;
}
body.page-katalog .book-detail-contents {
  margin-bottom: 1.2rem !important;
}
body.page-katalog .book-detail-pricebar {
  gap: 1rem !important;
  padding: .8rem 1rem !important;
  border-radius: 14px !important;
}
body.page-katalog .book-detail-pricebar .small {
  margin-bottom: .2rem !important;
  font-size: .64rem !important;
  line-height: 1.2 !important;
}
body.page-katalog .book-detail-pricebar .fs-3 {
  font-size: 1.35rem !important;
  line-height: 1.2 !important;
}
body.page-katalog .book-detail-pricebar .btn {
  min-height: 36px !important;
  padding: 7px 12px !important;
  border-radius: 10px !important;
  font-size: .75rem !important;
  white-space: nowrap !important;
}
body.page-pemesanan .col-lg-5 > .card {
  padding: 1.25rem !important;
}
body.page-pemesanan .col-lg-5 > .card > .d-flex.gap-3 {
  margin-bottom: 1rem !important;
}
body.page-pemesanan .checkout-book-info {
  gap: .5rem !important;
  padding-top: 0 !important;
  margin-bottom: 1rem !important;
}
body.page-pemesanan .checkout-book-info__section {
  padding: .65rem .75rem !important;
  border-radius: 11px !important;
}
body.page-pemesanan .checkout-book-info__section p,
body.page-pemesanan .checkout-book-info__section li {
  font-size: .78rem !important;
  line-height: 1.45 !important;
}
body.page-pemesanan .col-lg-5 > .card > .d-flex.align-items-center.justify-content-between {
  margin-bottom: 1rem !important;
  padding-bottom: .65rem !important;
}
body.page-pemesanan .btn-emerald-premium {
  min-height: 44px !important;
  padding: .7rem 1rem !important;
  border-radius: 12px !important;
  font-size: .88rem !important;
}
body.page-pemesanan #btnMinus,
body.page-pemesanan #btnPlus {
  width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  border-radius: 8px !important;
}
body.page-pemesanan .order-book-grid {
  align-items: flex-start !important;
}
body.page-pemesanan .order-book-grid > [class*="col-"] {
  align-self: flex-start !important;
}
body.page-pemesanan .order-book-grid article {
  height: auto !important;
}
body.page-pemesanan .order-book-grid article > .p-3 {
  height: auto !important;
}
body.page-pemesanan .order-book-grid article .mt-auto {
  margin-top: 0 !important;
  flex: 0 0 auto !important;
}
body.page-pemesanan .row.g-4 article .btn-book-info {
  width: 100% !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 5px 8px !important;
  border-radius: 9px !important;
  font-size: .68rem !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  overflow: visible !important;
}
body.page-pemesanan .order-book-grid article .btn-book-info {
  margin-bottom: .35rem !important;
}
body.page-pemesanan .row.g-4 article .mt-auto a[href*="/checkout"] {
  min-height: 30px !important;
  height: 30px !important;
  padding: 4px 8px !important;
  border-radius: 9px !important;
  font-size: .66rem !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

/* All public purchase CTAs use the same reassuring emerald treatment. */
body.public-site a.btn[href*="/checkout"],
body.public-site #bookModalCheckout,
body.public-site .cart-button-soft {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  border-color: #059669 !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 16px rgba(16,185,129,.24) !important;
}
body.public-site a.btn[href*="/checkout"]:hover,
body.public-site a.btn[href*="/checkout"]:focus-visible,
body.public-site #bookModalCheckout:hover,
body.public-site #bookModalCheckout:focus-visible,
body.public-site .cart-button-soft:hover,
body.public-site .cart-button-soft:focus-visible {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  border-color: #047857 !important;
  color: #FFFFFF !important;
  box-shadow: 0 8px 20px rgba(5,150,105,.3) !important;
}
@media (max-width: 768px) {
  body.page-katalog #categoryFilters {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    overflow: visible !important;
    white-space: normal !important;
  }
  body.page-katalog #categoryFilters button {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 7px 4px !important;
    border-radius: 9px !important;
    font-size: .7rem !important;
    white-space: normal !important;
  }
  body.page-katalog #bookGrid .card-body > .mt-auto > .btn,
  body.page-katalog #bookGrid .card-body > .mt-auto > a,
  body.page-katalog #bookGrid .card-body > .mt-auto > button {
    font-size: .64rem !important;
  }
}
@media (max-width: 575.98px) {
  body.page-katalog #bookGrid .card-body > .mt-auto {
    display: flex !important;
    flex-direction: column !important;
    gap: .3rem !important;
  }
  body.page-katalog #bookGrid .card-body > .mt-auto > .btn,
  body.page-katalog #bookGrid .card-body > .mt-auto > a,
  body.page-katalog #bookGrid .card-body > .mt-auto > button {
    width: 100% !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 4px 8px !important;
    font-size: .64rem !important;
  }
  body.page-pemesanan .row.g-4 article .btn-book-info {
    height: 32px !important;
    min-height: 32px !important;
    font-size: .64rem !important;
  }
  body.page-pemesanan .row.g-4 article .mt-auto a[href*="/checkout"] {
    height: 30px !important;
    min-height: 30px !important;
    font-size: .64rem !important;
  }
  body.page-katalog .book-detail-pricebar {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  body.page-katalog .book-detail-pricebar .btn {
    width: 100% !important;
    min-height: 36px !important;
  }
}
.wa-float {
  bottom: 20px !important;
  right: 20px !important;
  min-height: 34px;
  padding: .48rem .72rem !important;
  border-radius: 12px !important;
  font-size: .72rem !important;
  gap: .35rem !important;
  box-shadow: 0 8px 20px rgba(37,211,102,.24) !important;
}
.wa-float b { display: none !important; }
.install-app-float {
  position: fixed;
  right: 20px;
  bottom: 64px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 34px;
  padding: .48rem .72rem;
  border: 1px solid rgba(201,169,110,.62);
  border-radius: 12px;
  color: #0F1F2E;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 20px rgba(15,31,46,.16);
  font: 800 .7rem/1 'Plus Jakarta Sans', sans-serif;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.install-app-float:hover,
.install-app-float:focus-visible { color: #0F1F2E; background: #F3E5AB; border-color: #C9A96E; outline: none; }
.install-app-float.is-installed { color: #166534; border-color: rgba(22,101,52,.35); }
@media (max-width: 768px) {
  .wa-float {
    right: 14px !important;
    bottom: 14px !important;
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0 !important;
    border-radius: 11px !important;
    font-size: 1rem !important;
  }
  .wa-float span { display: none !important; }
  .install-app-float {
    right: 14px;
    bottom: 58px;
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 11px;
    font-size: .92rem;
  }
  .install-app-float span { display: none; }
}

/* Final compact header and floating actions. */
.site-header .header-cta {
  min-height: 32px;
  padding: .42rem .7rem !important;
  gap: .3rem;
  border-radius: 10px !important;
  font-size: .68rem !important;
  box-shadow: 0 6px 14px rgba(15,31,46,.14) !important;
}
.site-header .header-cta b { display: none !important; }
.site-header .header-cta i { font-size: .72rem !important; margin-right: 0 !important; }
.install-app-float {
  min-height: 32px;
  padding: .42rem .65rem;
  border-radius: 10px;
  font-size: .66rem;
}
.wa-float i { font-size: .9rem !important; margin-right: 0 !important; }
@media (max-width: 768px) {
  .site-header .header-cta { border-radius: 10px !important; }
  .site-header .menu-toggle { border-radius: 10px !important; }
  .install-app-float {
    min-height: 36px;
    padding: 0;
    border-radius: 11px;
    font-size: .92rem;
  }
  .wa-float { border-radius: 11px !important; }
}
