/* LOOVIE-PUBLIC-HOME-V65: targeted homepage-only visual refinement */
@media (max-width: 767.98px) {
  #kategori .lv5-container { width: 100% !important; max-width: 100% !important; padding-inline: clamp(16px, 4.8vw, 24px) !important; box-sizing: border-box; }
  #kategori .lv5-cat-grid { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 18px !important; align-items: stretch !important; width: 100% !important; max-width: none !important; margin-inline: 0 !important; transform: none !important; }
  #kategori .lv5-cat-card { display: flex !important; position: relative !important; flex-direction: column !important; justify-content: flex-end !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; min-height: 360px !important; height: auto !important; margin: 0 !important; border-radius: 22px !important; overflow: hidden !important; box-sizing: border-box !important; transform: none !important; }
  #kategori .lv5-cat-visual, #kategori .lv5-cat-photo { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; }
  #kategori .lv5-cat-photo img { display: block !important; width: 100% !important; height: 100% !important; object-fit: cover !important; }
  #kategori .lv5-cat-overlay { position: absolute !important; inset: 0 !important; background: linear-gradient(180deg, rgba(13,22,38,.12) 0%, rgba(13,22,38,.35) 35%, rgba(10,17,31,.92) 100%) !important; }
  #kategori .lv5-cat-body { position: relative !important; z-index: 2 !important; width: 100% !important; max-width: 100% !important; padding: 24px !important; margin: 0 !important; text-align: left !important; box-sizing: border-box !important; }
  #kategori .lv5-cat-tag { margin: 0 0 8px !important; font-size: 11px !important; line-height: 1.4 !important; letter-spacing: .14em !important; color: #F4D99F !important; }
  #kategori .lv5-cat-name { margin: 0 0 7px !important; font-size: clamp(27px, 7vw, 36px) !important; line-height: 1.12 !important; color: #fff !important; overflow-wrap: anywhere; }
  #kategori .lv5-cat-count { margin: 0 0 6px !important; max-width: 40ch !important; font-size: 14px !important; line-height: 1.52 !important; color: #f2eae7 !important; overflow-wrap: anywhere; }
  #kategori .lv5-cat-action { display: inline-flex !important; align-items: center !important; justify-content: center !important; min-height: 42px !important; max-width: 100% !important; padding: 9px 16px !important; margin-top: 14px !important; border: 1px solid rgba(255,255,255,.50) !important; border-radius: 999px !important; color: #fff !important; background: rgba(255,255,255,.12) !important; font-size: 12px !important; font-weight: 750 !important; letter-spacing: .07em !important; line-height: 1.4 !important; text-align: center !important; }
}
@media (max-width: 374.98px) { #kategori .lv5-cat-card { min-height: 330px !important; } #kategori .lv5-cat-body { padding: 20px !important; } }
/* Only the rental terms section; do not recolor other pages or customer checkout. */
:is(html[data-bs-theme="dark"],html[data-loovie-theme="dark"],html.dark-mode,body.dark-mode) #syarat-sewa { background: #101a2b !important; color: #f1f1f4 !important; }
:is(html[data-bs-theme="dark"],html[data-loovie-theme="dark"],html.dark-mode,body.dark-mode) #syarat-sewa :is(.card,.card-body,[class*="terms-card"],[class*="term-card"],[class*="terms-box"]) { background-color: #1b2940 !important; border-color: #41516b !important; color: #f3f0ed !important; }
:is(html[data-bs-theme="dark"],html[data-loovie-theme="dark"],html.dark-mode,body.dark-mode) #syarat-sewa :is(h1,h2,h3,h4,h5,h6,.lv5-section-title,.card-title) { color: #fff8ee !important; opacity: 1 !important; }
:is(html[data-bs-theme="dark"],html[data-loovie-theme="dark"],html.dark-mode,body.dark-mode) #syarat-sewa :is(p,li,ul,ol,.lv5-section-sub,.card-text,[class*="term-text"],[class*="term-desc"]) { color: #e5e7ed !important; opacity: 1 !important; }
:is(html[data-bs-theme="dark"],html[data-loovie-theme="dark"],html.dark-mode,body.dark-mode) #syarat-sewa :is(a,button,.btn) { color: #f9e3b7 !important; border-color: #748198 !important; }
:is(html[data-bs-theme="dark"],html[data-loovie-theme="dark"],html.dark-mode,body.dark-mode) #syarat-sewa :is(.text-muted,.text-secondary) { color: #d7dce5 !important; }
@media (prefers-reduced-motion: reduce) { #kategori .lv5-cat-card, #kategori .lv5-cat-card * { animation: none !important; transition-duration: .01ms !important; } }

/* LOOVIE-PUBLIC-HOME-V65R1: DARK TERMS READABILITY; scoped to the two homepage rental term cards. */
/* The terms components have warm-ivory surfaces. Dark-mode inherited white text must not be used there. */
:is(html[data-bs-theme="dark"], html[data-loovie-theme="dark"], html.dark-mode, body.dark-mode) #syarat-sewa .row > .col-lg-6 {
  --lv65r1-terms-ink: #243248;
  --lv65r1-terms-muted: #475569;
  --lv65r1-terms-paper: #fbf7f5;
  --lv65r1-terms-border: #e1d7d6;
  color: var(--lv65r1-terms-ink) !important;
}
/* Match existing wrappers, without changing the section's navy background or document layout. */
:is(html[data-bs-theme="dark"], html[data-loovie-theme="dark"], html.dark-mode, body.dark-mode) #syarat-sewa .row > .col-lg-6 > :is(article, section, div),
:is(html[data-bs-theme="dark"], html[data-loovie-theme="dark"], html.dark-mode, body.dark-mode) #syarat-sewa .row > .col-lg-6 :is(.card, .card-body, [class*="terms-card"], [class*="term-card"], [class*="terms-box"]) {
  background-color: #fbf7f5 !important;
  border-color: #e1d7d6 !important;
  color: #243248 !important;
}
/* Enforce readable dark ink even when older theme rules set pale text with !important. */
:is(html[data-bs-theme="dark"], html[data-loovie-theme="dark"], html.dark-mode, body.dark-mode) #syarat-sewa .row > .col-lg-6 :not(svg):not(path):not(style):not(script) {
  color: #243248 !important;
  -webkit-text-fill-color: #243248 !important;
  text-shadow: none !important;
}
/* Restore full opacity only to actual visible copy; don't expose hidden/interactive layers. */
:is(html[data-bs-theme="dark"], html[data-loovie-theme="dark"], html.dark-mode, body.dark-mode) #syarat-sewa .row > .col-lg-6 :is(h2, h3, h4, h5, h6, p, li, small, strong, .card-title, .card-text) {
  opacity: 1 !important;
}
/* Gold secondary labels remain distinctive without reducing contrast on ivory. */
:is(html[data-bs-theme="dark"], html[data-loovie-theme="dark"], html.dark-mode, body.dark-mode) #syarat-sewa .row > .col-lg-6 :is([class*="eyebrow"], [class*="kicker"], [class*="overline"]) {
  color: #83571b !important;
  -webkit-text-fill-color: #83571b !important;
}
:is(html[data-bs-theme="dark"], html[data-loovie-theme="dark"], html.dark-mode, body.dark-mode) #syarat-sewa .row > .col-lg-6 li::marker {
  color: #a95273 !important;
}
/* Lihat lengkap: defined contrast, minimal outline, and a visible keyboard focus state. */
:is(html[data-bs-theme="dark"], html[data-loovie-theme="dark"], html.dark-mode, body.dark-mode) #syarat-sewa .row > .col-lg-6 :is(a, button, .btn) {
  color: #25334b !important;
  -webkit-text-fill-color: #25334b !important;
  border-color: #7b8799 !important;
  background-color: #fffdf9 !important;
  text-shadow: none !important;
}
:is(html[data-bs-theme="dark"], html[data-loovie-theme="dark"], html.dark-mode, body.dark-mode) #syarat-sewa .row > .col-lg-6 :is(a, button, .btn):hover {
  color: #192b43 !important;
  -webkit-text-fill-color: #192b43 !important;
  border-color: #b48c45 !important;
  background-color: #f4ead8 !important;
}
:is(html[data-bs-theme="dark"], html[data-loovie-theme="dark"], html.dark-mode, body.dark-mode) #syarat-sewa .row > .col-lg-6 :is(a, button, .btn):focus-visible {
  outline: 3px solid #bd8e45 !important;
  outline-offset: 3px !important;
}
/* END LOOVIE-PUBLIC-HOME-V65R1 */

/* LOOVIE-PUBLIC-HOME-V65R2: DARK TERMS MATCH ACTUAL V64 THEME CLASSES. */
/* V6.4 uses html.dark / html.lv5d-dark. V65R1 overlooked those root states. */
/* Only homepage's two rental terms cards; all actions, markup and light mode stay unchanged. */
:is(html.dark, html.lv5d-dark, html[data-bs-theme="dark"], html[data-loovie-theme="dark"], html[data-theme="dark"], body.dark-mode) #syarat-sewa .row.g-4 > .col-lg-6 {
  --lv65r2-paper: #fbf7f5;
  --lv65r2-text: #25334a;
  --lv65r2-muted: #43526b;
  --lv65r2-accent: #855a22;
  color: var(--lv65r2-text) !important;
  -webkit-text-fill-color: var(--lv65r2-text) !important;
  opacity: 1 !important;
}
/* Preserve ivory on the card itself; do not repaint each child or other homepage sections. */
:is(html.dark, html.lv5d-dark, html[data-bs-theme="dark"], html[data-loovie-theme="dark"], html[data-theme="dark"], body.dark-mode) #syarat-sewa .row.g-4 > .col-lg-6 > :is(div, section, article),
:is(html.dark, html.lv5d-dark, html[data-bs-theme="dark"], html[data-loovie-theme="dark"], html[data-theme="dark"], body.dark-mode) #syarat-sewa .row.g-4 > .col-lg-6 :is(.card, .card-body, [class*="terms-card"], [class*="term-card"], [class*="terms-box"]) {
  background-color: var(--lv65r2-paper) !important;
  border-color: #e4d9d5 !important;
  color: var(--lv65r2-text) !important;
  -webkit-text-fill-color: var(--lv65r2-text) !important;
}
/* Uniform legibility, including nested spans under headings and link/button labels. */
:is(html.dark, html.lv5d-dark, html[data-bs-theme="dark"], html[data-loovie-theme="dark"], html[data-theme="dark"], body.dark-mode) #syarat-sewa .row.g-4 > .col-lg-6 :not(svg):not(path):not(style):not(script) {
  color: #25334a !important;
  -webkit-text-fill-color: #25334a !important;
  text-shadow: none !important;
}
:is(html.dark, html.lv5d-dark, html[data-bs-theme="dark"], html[data-loovie-theme="dark"], html[data-theme="dark"], body.dark-mode) #syarat-sewa .row.g-4 > .col-lg-6 :is(h1,h2,h3,h4,h5,h6,p,li,small,strong,span) {
  opacity: 1 !important;
  filter: none !important;
}
/* Restore restrained gold informational kicker after the universal ink rule. */
:is(html.dark, html.lv5d-dark, html[data-bs-theme="dark"], html[data-loovie-theme="dark"], html[data-theme="dark"], body.dark-mode) #syarat-sewa .row.g-4 > .col-lg-6 :is([class*="eyebrow"],[class*="kicker"],[class*="overline"],[class*="term-label"]) {
  color: #855a22 !important;
  -webkit-text-fill-color: #855a22 !important;
}
:is(html.dark, html.lv5d-dark, html[data-bs-theme="dark"], html[data-loovie-theme="dark"], html[data-theme="dark"], body.dark-mode) #syarat-sewa .row.g-4 > .col-lg-6 li::marker {
  color: #ad5275 !important;
}
:is(html.dark, html.lv5d-dark, html[data-bs-theme="dark"], html[data-loovie-theme="dark"], html[data-theme="dark"], body.dark-mode) #syarat-sewa .row.g-4 > .col-lg-6 :is(a,button,.btn) {
  background-color: #fffdfa !important;
  border-color: #718299 !important;
  color: #23334a !important;
  -webkit-text-fill-color: #23334a !important;
  text-shadow: none !important;
}
:is(html.dark, html.lv5d-dark, html[data-bs-theme="dark"], html[data-loovie-theme="dark"], html[data-theme="dark"], body.dark-mode) #syarat-sewa .row.g-4 > .col-lg-6 :is(a,button,.btn):is(:hover,:focus-visible) {
  background-color: #f2e6d2 !important;
  border-color: #af8440 !important;
  color: #15243b !important;
  -webkit-text-fill-color: #15243b !important;
}
:is(html.dark, html.lv5d-dark, html[data-bs-theme="dark"], html[data-loovie-theme="dark"], html[data-theme="dark"], body.dark-mode) #syarat-sewa .row.g-4 > .col-lg-6 :is(a,button,.btn):focus-visible {
  outline: 3px solid #ad843f !important;
  outline-offset: 3px !important;
}
/* END LOOVIE-PUBLIC-HOME-V65R2 */

/* LOOVIE-PUBLIC-HOME-V65R3: DARK TERMS SPECIFICITY FIX. */
/* Readable navy text inside the existing ivory cards in DARK mode.
   Match the navbar V6.4 theme states and beat more-specific legacy rules.
   Scope: homepage #syarat-sewa > 2 category cards. No nav, JS, DB or layout structure changes. */
:is(html.dark,html.lv5d-dark,html[data-bs-theme="dark"],html[data-loovie-theme="dark"],html[data-theme="dark"],html.dark-mode,body.dark,body.dark-mode,body.lv5d-dark) #syarat-sewa#syarat-sewa .row.g-4 > .col-lg-6 {
  color: #24324b !important;
  -webkit-text-fill-color: #24324b !important;
  color-scheme: light;
}
/* Exact card subtree, override legacy dark theme text-fill rules at their actual targets. */
:is(html.dark,html.lv5d-dark,html[data-bs-theme="dark"],html[data-loovie-theme="dark"],html[data-theme="dark"],html.dark-mode,body.dark,body.dark-mode,body.lv5d-dark) #syarat-sewa#syarat-sewa .row.g-4 > .col-lg-6 :not(svg):not(path):not(style):not(script) {
  color: #24324b !important;
  -webkit-text-fill-color: #24324b !important;
  text-shadow: none !important;
}
/* Do not allow an inherited fade or text-only filter to hide visible copy. */
:is(html.dark,html.lv5d-dark,html[data-bs-theme="dark"],html[data-loovie-theme="dark"],html[data-theme="dark"],html.dark-mode,body.dark,body.dark-mode,body.lv5d-dark) #syarat-sewa#syarat-sewa .row.g-4 > .col-lg-6 :is(h1,h2,h3,h4,h5,h6,p,li,small,strong,b,span,a,button,.btn) {
  opacity: 1 !important;
  filter: none !important;
  -webkit-text-stroke: 0 !important;
}
/* Kicker labels retain muted Loovie gold on the pale card. */
:is(html.dark,html.lv5d-dark,html[data-bs-theme="dark"],html[data-loovie-theme="dark"],html[data-theme="dark"],html.dark-mode,body.dark,body.dark-mode,body.lv5d-dark) #syarat-sewa#syarat-sewa .row.g-4 > .col-lg-6 :is([class*="eyebrow"],[class*="kicker"],[class*="overline"],[class*="term-label"],[class*="terms-label"]) {
  color: #8d5b21 !important;
  -webkit-text-fill-color: #8d5b21 !important;
}
:is(html.dark,html.lv5d-dark,html[data-bs-theme="dark"],html[data-loovie-theme="dark"],html[data-theme="dark"],html.dark-mode,body.dark,body.dark-mode,body.lv5d-dark) #syarat-sewa#syarat-sewa .row.g-4 > .col-lg-6 li::marker {
  color: #bc607f !important;
}
/* Lihat lengkap: constant contrast and consistent focus treatment. */
:is(html.dark,html.lv5d-dark,html[data-bs-theme="dark"],html[data-loovie-theme="dark"],html[data-theme="dark"],html.dark-mode,body.dark,body.dark-mode,body.lv5d-dark) #syarat-sewa#syarat-sewa .row.g-4 > .col-lg-6 :is(a,button,.btn) {
  color: #22344e !important;
  -webkit-text-fill-color: #22344e !important;
  background-color: #fffdfa !important;
  border-color: #8490a1 !important;
}
:is(html.dark,html.lv5d-dark,html[data-bs-theme="dark"],html[data-loovie-theme="dark"],html[data-theme="dark"],html.dark-mode,body.dark,body.dark-mode,body.lv5d-dark) #syarat-sewa#syarat-sewa .row.g-4 > .col-lg-6 :is(a,button,.btn):is(:hover,:focus-visible) {
  color: #17283f !important;
  -webkit-text-fill-color: #17283f !important;
  background-color: #f4ead8 !important;
  border-color: #ac8340 !important;
}
:is(html.dark,html.lv5d-dark,html[data-bs-theme="dark"],html[data-loovie-theme="dark"],html[data-theme="dark"],html.dark-mode,body.dark,body.dark-mode,body.lv5d-dark) #syarat-sewa#syarat-sewa .row.g-4 > .col-lg-6 :is(a,button,.btn):focus-visible {
  outline: 3px solid #b78f46 !important;
  outline-offset: 3px !important;
}
/* END LOOVIE-PUBLIC-HOME-V65R3 */

/* LOOVIE-PUBLIC-HOME-V65R4: REAL DOM TERMS CARDS INK LOCK. */
/* Actual DOM verified by Firefox: .loovie-terms-v2-grid > .loovie-terms-v2-card.
   R1-R3 mistakenly targeted .row.g-4 > .col-lg-6 (not the displayed cards).
   Keep all terms cards (including future categories) navy-on-ivory in both modes.
   Scope strictly to the public homepage, not admin/customer pages. */
html body.lv5-home-page.lv5-home-page .loovie-terms-v2-grid .loovie-terms-v2-card.loovie-terms-v2-card {
  background-color: #fbf7f5 !important;
  border-color: #e5d9d7 !important;
  color: #24324b !important;
  -webkit-text-fill-color: #24324b !important;
  color-scheme: light;
}
/* All actual text descendants, not the obsolete Bootstrap columns. */
html body.lv5-home-page.lv5-home-page .loovie-terms-v2-grid .loovie-terms-v2-card.loovie-terms-v2-card :not(svg):not(path):not(style):not(script) {
  color: #24324b !important;
  -webkit-text-fill-color: #24324b !important;
  text-shadow: none !important;
}
html body.lv5-home-page.lv5-home-page .loovie-terms-v2-grid .loovie-terms-v2-card.loovie-terms-v2-card :is(h1,h2,h3,h4,h5,h6,p,li,span,strong,small,em,a,button) {
  opacity: 1 !important;
  filter: none !important;
}
/* Gold stays on the smaller informational kicker, not on main titles/body. */
html body.lv5-home-page.lv5-home-page .loovie-terms-v2-grid .loovie-terms-v2-card.loovie-terms-v2-card :is(.loovie-terms-v2-eyebrow,.loovie-terms-v2-kicker,.loovie-terms-v2-label,[class*="terms-kicker"],[class*="terms-eyebrow"]) {
  color: #93641d !important;
  -webkit-text-fill-color: #93641d !important;
}
html body.lv5-home-page.lv5-home-page .loovie-terms-v2-grid .loovie-terms-v2-card.loovie-terms-v2-card li::marker {
  color: #bb6483 !important;
}
/* Keep the existing "Lihat lengkap" interaction, only align its surface/ink. */
html body.lv5-home-page.lv5-home-page .loovie-terms-v2-grid .loovie-terms-v2-card.loovie-terms-v2-card :is(a,button,.btn) {
  color: #22344e !important;
  -webkit-text-fill-color: #22344e !important;
  background-color: #fffdfa !important;
  border-color: #8995a7 !important;
}
html body.lv5-home-page.lv5-home-page .loovie-terms-v2-grid .loovie-terms-v2-card.loovie-terms-v2-card :is(a,button,.btn):is(:hover,:focus-visible) {
  color: #17283f !important;
  -webkit-text-fill-color: #17283f !important;
  background-color: #f2e7d4 !important;
  border-color: #ac8340 !important;
}
html body.lv5-home-page.lv5-home-page .loovie-terms-v2-grid .loovie-terms-v2-card.loovie-terms-v2-card :is(a,button,.btn):focus-visible {
  outline: 3px solid #b78f46 !important;
  outline-offset: 3px !important;
}
/* END LOOVIE-PUBLIC-HOME-V65R4 */
