
/* =========================================================
   MILIKI CONCEPTS — PROTOTYPE DESIGN MERGE
   Adapted from the supplied Miliki prototype.
   The public header background remains controlled by Miliki's
   transparent/translucent-on-scroll navigation.
   ========================================================= */
:root{--proto-navy:#051840;--proto-navy2:#0B2355;--proto-gold:#D1A15A;--proto-gold-deep:#95611F;--proto-bg:#FAF8F4;--proto-surface:#fff;--proto-surface2:#F4F1EC;--proto-line:#E7E2D9;--proto-ink:#101318;--proto-ink2:#3A3F4A;--proto-muted:#5B6068}
html,body{font-family:Outfit,Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
html[data-mode="dark"]{color-scheme:dark;--proto-bg:#0F172B;--proto-surface:#16213B;--proto-surface2:#1D2A48;--proto-line:#2A3A5C;--proto-ink:#EEF1F7;--proto-ink2:#C9CFDC;--proto-muted:#9AA4BA;--proto-gold-deep:#E0B571}
body{background:var(--proto-bg);color:var(--proto-ink)}
button,input,select,textarea{font-family:inherit}
/* public shell */
.topbar,.portal-shared-topbar{font-family:Outfit,Inter,sans-serif}
.topbar nav a,.topbar .right>a,.portal-shared-topbar nav a,.portal-shared-topbar .right>a{font-size:13px;font-weight:500;letter-spacing:.01em}
.topbar nav a,.portal-shared-topbar nav a{padding:8px 0;border-bottom:2px solid transparent}
.topbar nav a:hover,.portal-shared-topbar nav a:hover{color:#D1A15A!important}
.theme-toggle{width:36px;height:36px;border-radius:999px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.06);color:#fff;display:grid;place-items:center;font-size:16px;cursor:pointer}
.theme-toggle:hover{background:rgba(255,255,255,.13);color:#D1A15A}
/* mobile drawer */
.main-mobile-nav{position:fixed!important;inset:0!important;top:0!important;left:0!important;right:0!important;bottom:0!important;background:rgba(5,24,64,.62)!important;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);z-index:99999!important;display:none!important;padding:18px!important}
.main-mobile-nav.open{display:flex!important;align-items:stretch!important;justify-content:flex-end!important}
.main-mobile-nav-panel{width:min(390px,92vw);height:100%;background:var(--proto-surface);color:var(--proto-ink);border-radius:24px;box-shadow:0 30px 80px rgba(0,0,0,.3);padding:20px;display:flex;flex-direction:column;overflow:auto}
.mobile-nav-head{display:flex;justify-content:space-between;align-items:center;padding:4px 2px 18px;border-bottom:1px solid var(--proto-line)}
.mobile-nav-head strong{font-size:18px;letter-spacing:.01em}
.mobile-nav-close{width:42px;height:42px;border-radius:50%;border:1px solid var(--proto-line);background:var(--proto-surface2);color:var(--proto-ink);font-size:26px;line-height:1;cursor:pointer}
.mobile-nav-links{display:grid;gap:4px;padding:16px 0}
.mobile-nav-links a{display:flex;align-items:center;min-height:50px;padding:0 12px;border-radius:12px;color:var(--proto-ink)!important;font-size:16px!important;font-weight:500;text-decoration:none!important;border:0!important}
.mobile-nav-links a:hover{background:var(--proto-surface2);color:var(--proto-gold-deep)!important}
.mobile-nav-actions{display:grid;gap:10px;margin-top:auto;padding-top:16px;border-top:1px solid var(--proto-line)}
.mobile-nav-actions .btn{width:100%}
body.mobile-nav-open{overflow:hidden}
@media(min-width:701px){.main-mobile-nav{display:none!important}}
/* prototype typography/card language for existing public sections */
.featured-slider-section,.about-end-to-end,.popular-locations,.faq-section{background:var(--proto-bg)!important;color:var(--proto-ink)!important}
.featured-slider-section .section-title h2,.sec-head h2,.about-end-to-end h2,.faq-section h2{font-family:Outfit,Inter,sans-serif!important;color:var(--proto-ink)!important;font-weight:700!important;letter-spacing:-.03em}
.featured-slider-section .section-title span,.sec-head .sub{color:var(--proto-muted)!important}
.featured-slider-section{padding-top:68px!important;padding-bottom:28px!important}
.featured-slider-section .feature-card{background:var(--proto-surface)!important;border:1px solid var(--proto-line)!important;border-radius:18px!important;box-shadow:0 12px 32px rgba(16,19,24,.06)!important}
.featured-slider-section .feature-card strong,.featured-slider-section .feature-card .price{color:var(--proto-gold-deep)!important}
.featured-slider-section .feature-card p,.featured-slider-section .feature-card .stats{color:var(--proto-ink2)!important}
.featured-slider-section .slider-arrow{border-radius:50%!important;background:var(--proto-surface)!important;color:var(--proto-ink)!important;border:1px solid var(--proto-line)!important;box-shadow:0 8px 24px rgba(16,19,24,.1)}
.property-brief{background:var(--proto-surface)!important;color:var(--proto-ink)!important;padding:64px max(20px,4vw)!important}
.property-brief .brief-intro h2{font-family:Outfit,Inter,sans-serif!important;color:var(--proto-ink)!important;font-weight:700!important}
.property-brief .brief-intro p{color:var(--proto-muted)!important}
.property-brief .lead-form{background:var(--proto-surface)!important;border:1px solid var(--proto-line)!important;border-radius:18px!important;box-shadow:0 12px 32px rgba(16,19,24,.06)!important}
.property-brief .lead-form label span{color:var(--proto-muted)!important}
.property-brief .lead-form input{background:var(--proto-surface)!important;color:var(--proto-ink)!important;border-color:var(--proto-line)!important;border-radius:10px!important}
.property-brief .lead-form button{background:var(--proto-navy)!important;color:#fff!important;border-radius:999px!important}
.popular-locations{padding-top:76px!important;padding-bottom:76px!important}
.areas .area{border-radius:20px!important;box-shadow:0 12px 32px rgba(16,19,24,.06)}
.area-x{background:var(--proto-surface)!important;color:var(--proto-ink)!important;border:1px dashed var(--proto-line)!important}
.area-x::after{display:none!important}
.area-x b{color:var(--proto-ink)!important;text-shadow:none!important}
.area-x span{color:var(--proto-muted)!important;text-shadow:none!important}
.about-end-to-end .about-pic{border-radius:20px!important;overflow:hidden!important;box-shadow:0 12px 32px rgba(16,19,24,.08)!important}
.about-end-to-end .prose{color:var(--proto-ink2)!important}
.about-end-to-end .prose p{color:var(--proto-ink2)!important}
.svc0{background:var(--proto-surface)!important;border:1px solid var(--proto-line)!important;border-radius:18px!important;color:var(--proto-ink)!important;box-shadow:0 12px 32px rgba(16,19,24,.06)!important}
.svc0 h3{color:var(--proto-ink)!important}.svc0 p{color:var(--proto-ink2)!important}
.faq-section{padding:76px 0!important}
.miliki-faq{border-top:1px solid var(--proto-line);border-bottom:1px solid var(--proto-line);background:var(--proto-surface);border-radius:18px;overflow:hidden;box-shadow:0 12px 32px rgba(16,19,24,.06)}
.miliki-faq-item{border-bottom:1px solid var(--proto-line)}.miliki-faq-item:last-child{border-bottom:0}
.miliki-faq-item button{width:100%;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:20px 22px;border:0;background:transparent;color:var(--proto-ink);font-weight:600;text-align:left;font-size:16px;cursor:pointer}
.faq-plus{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--proto-surface2);color:var(--proto-gold-deep);font-size:20px;flex:0 0 auto}
.faq-answer{padding:0 22px 22px;color:var(--proto-ink2);line-height:1.7;font-size:15px;max-width:850px}
.sell-cards{margin:0;padding:0;list-style:none}
.sell-card{background:var(--proto-surface)!important;border-color:var(--proto-line)!important;color:var(--proto-ink)!important}
.sell-card b{color:var(--proto-ink)!important}.sell-card p{color:var(--proto-ink2)!important}
/* dark-mode readability: no dark text on dark surfaces */
html[data-mode="dark"] body,html[data-mode="dark"] .property-brief,html[data-mode="dark"] .featured-slider-section,html[data-mode="dark"] .about-end-to-end,html[data-mode="dark"] .popular-locations,html[data-mode="dark"] .faq-section{background:var(--proto-bg)!important;color:var(--proto-ink)!important}
html[data-mode="dark"] .featured-slider-section .section-title h2,html[data-mode="dark"] .sec-head h2,html[data-mode="dark"] .about-end-to-end h2,html[data-mode="dark"] .faq-section h2,html[data-mode="dark"] .property-brief .brief-intro h2{color:var(--proto-ink)!important}
html[data-mode="dark"] .featured-slider-section .feature-card,html[data-mode="dark"] .property-brief .lead-form,html[data-mode="dark"] .miliki-faq,html[data-mode="dark"] .svc0,html[data-mode="dark"] .area-x{background:var(--proto-surface)!important;border-color:var(--proto-line)!important}
html[data-mode="dark"] .featured-slider-section .feature-card p,html[data-mode="dark"] .featured-slider-section .feature-card .stats,html[data-mode="dark"] .about-end-to-end .prose,html[data-mode="dark"] .about-end-to-end .prose p,html[data-mode="dark"] .svc0 p,html[data-mode="dark"] .faq-answer,html[data-mode="dark"] .property-brief .brief-intro p{color:var(--proto-ink2)!important}
html[data-mode="dark"] .property-brief .lead-form input{background:var(--proto-surface2)!important;color:var(--proto-ink)!important;border-color:var(--proto-line)!important}
html[data-mode="dark"] .miliki-faq-item button,html[data-mode="dark"] .svc0 h3,html[data-mode="dark"] .area-x b{color:var(--proto-ink)!important}
/* mobile quick links */
.miliki-mobile-tabbar{display:none}
@media(max-width:700px){body{padding-bottom:70px}.miliki-mobile-tabbar{position:fixed;left:0;right:0;bottom:0;z-index:9990;display:grid;grid-template-columns:repeat(5,1fr);background:var(--proto-surface);border-top:1px solid var(--proto-line);box-shadow:0 -10px 28px rgba(0,0,0,.08);padding-bottom:env(safe-area-inset-bottom,0)}.miliki-mobile-tabbar a{min-height:62px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--proto-muted)!important;text-decoration:none!important;font-size:11px;font-weight:700}.miliki-mobile-tabbar a span{font-size:21px;line-height:1;color:var(--proto-ink)}.miliki-mobile-tabbar a small{font-size:10px}.miliki-mobile-tabbar a:hover,.miliki-mobile-tabbar a:hover span{color:var(--proto-gold-deep)!important}.property-brief{padding:48px 16px!important}.faq-section{padding:56px 0!important}.main-mobile-nav{padding:10px!important}.main-mobile-nav-panel{width:min(420px,96vw);border-radius:20px}.hero-actions{flex-wrap:wrap}.hero-actions .hero-cta{flex:1 1 220px}.featured-slider-section{padding-left:16px!important;padding-right:16px!important}}
/* Admin: prototype control-center language mapped onto current PHP admin classes */
body.portal{background:var(--proto-bg)!important;color:var(--proto-ink)!important;font-family:Outfit,Inter,sans-serif!important}
.admin-content{background:var(--proto-bg)!important}
.admin-nav{background:var(--proto-navy)!important;color:#fff!important;border-right:1px solid rgba(255,255,255,.08)!important;padding:18px 14px 24px!important;width:264px!important}
.admin-brand{padding:6px 10px 18px!important;border-bottom:1px solid rgba(255,255,255,.12)!important;margin-bottom:10px!important}
.admin-brand img{max-width:150px!important;height:38px!important}.admin-brand strong{font-family:Outfit,Inter,sans-serif!important;font-size:18px!important;letter-spacing:.04em!important}.admin-brand span{color:rgba(255,255,255,.55)!important}
.admin-nav-label{color:rgba(255,255,255,.42)!important;font-size:10px!important;letter-spacing:.14em!important;padding:14px 12px 6px!important}
.admin-nav>a:not(.brand){min-height:44px!important;border-radius:12px!important;color:rgba(255,255,255,.78)!important;font-size:14px!important;gap:10px!important}
.admin-nav>a:not(.brand):hover{background:rgba(255,255,255,.08)!important;color:#fff!important}.admin-nav>a:not(.brand).active{background:rgba(255,255,255,.12)!important;color:#fff!important}
.admin-top{background:rgba(255,255,255,.82)!important;border-bottom:1px solid var(--proto-line)!important;height:76px!important;backdrop-filter:blur(16px)!important}.admin-top>span{color:var(--proto-muted)!important}.admin-content .portal-main{max-width:1400px!important;padding:36px 32px 90px!important}
.panel,.stat,.mini-card{background:var(--proto-surface)!important;border:1px solid var(--proto-line)!important;border-radius:18px!important;box-shadow:0 12px 32px rgba(16,19,24,.05)!important;color:var(--proto-ink)!important}
.panel{padding:0!important;overflow:hidden}.panel>h2,.panel>header{padding:18px 20px!important;margin:0!important;border-bottom:1px solid var(--proto-line)!important}.panel>h2{font-family:Outfit,Inter,sans-serif!important;font-size:18px!important;font-weight:600!important}.panel .grid,.panel .actions,.panel>p{margin-left:20px;margin-right:20px}.panel .grid{margin-top:18px;margin-bottom:20px}
.field label{color:var(--proto-muted)!important;font-size:11px!important;font-weight:700!important}.field input,.field select,.field textarea{background:var(--proto-surface)!important;color:var(--proto-ink)!important;border:1px solid var(--proto-line)!important;border-radius:10px!important;padding:13px 14px!important}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--proto-navy)!important;box-shadow:0 0 0 3px rgba(5,24,64,.08)!important}
.btn{border-radius:999px!important;font-family:Outfit,Inter,sans-serif!important;font-weight:600!important}.btn.light{background:var(--proto-surface)!important;color:var(--proto-ink)!important;border-color:var(--proto-line)!important}.btn.gold{background:var(--proto-gold)!important;border-color:var(--proto-gold)!important}
html[data-mode="dark"] .admin-top{background:rgba(22,33,59,.86)!important;color:var(--proto-ink)!important}.admin-content .portal-main h1,html[data-mode="dark"] .panel,html[data-mode="dark"] .stat,html[data-mode="dark"] .mini-card,html[data-mode="dark"] .field input,html[data-mode="dark"] .field select,html[data-mode="dark"] .field textarea{color:var(--proto-ink)!important;background:var(--proto-surface)!important}.admin-nav{position:fixed!important;top:0!important;left:0!important;height:100vh!important;overflow:auto!important;z-index:60!important}.admin-content{margin-left:264px!important;width:calc(100% - 264px)!important}
@media(max-width:850px){.admin-nav{position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:100%!important;height:auto!important;max-height:76px!important;display:flex!important;overflow-x:auto!important;overflow-y:hidden!important;padding:10px 12px!important;border-top:1px solid rgba(255,255,255,.12)!important}.admin-brand,.admin-nav-label{display:none!important}.admin-nav>a:not(.brand){white-space:nowrap!important;min-height:42px!important}.admin-content{margin-left:0!important;width:100%!important;padding-bottom:76px!important}.admin-top{height:68px!important}.admin-content .portal-main{padding:28px 16px 90px!important}.grid-3,.grid-4{grid-template-columns:1fr!important}.panel .grid{margin-left:16px;margin-right:16px}}
@media(max-width:700px){
  .miliki-contact-hub{right:16px!important;bottom:84px!important}
  .miliki-chat-panel{right:10px!important;bottom:150px!important}
  .back-top{left:16px!important;bottom:84px!important}
}
/* Keep Miliki's existing transparent navigation system intact. */
.topbar,.portal-shared-topbar{background:transparent!important;border-bottom-color:transparent!important;transition:background .25s ease,backdrop-filter .25s ease,box-shadow .25s ease,border-color .25s ease}
.topbar.scrolled,.portal-shared-topbar.scrolled{background:rgba(5,24,64,.78)!important;backdrop-filter:blur(18px) saturate(130%);-webkit-backdrop-filter:blur(18px) saturate(130%);border-bottom-color:rgba(255,255,255,.12)!important;box-shadow:0 10px 35px rgba(0,0,0,.14)}
@media(max-width:700px){.miliki-mobile-tabbar a span{width:22px;height:22px;display:grid;place-items:center}.miliki-mobile-tabbar a span svg{width:22px;height:22px}.miliki-mobile-tabbar a.on,.miliki-mobile-tabbar a.on span{color:var(--proto-gold-deep)!important}}

/* =========================================================
   FINAL PROTOTYPE PARITY + ADMIN DARK MODE REPAIR
   ========================================================= */
.home-topbar{position:fixed!important;top:0!important;left:0!important;right:0!important;width:100%!important;background:transparent!important;border-bottom-color:transparent!important;z-index:9990!important}
.home-topbar.scrolled{background:rgba(5,24,64,.78)!important;backdrop-filter:blur(18px) saturate(130%)!important;-webkit-backdrop-filter:blur(18px) saturate(130%)!important;border-bottom-color:rgba(255,255,255,.12)!important;box-shadow:0 10px 35px rgba(0,0,0,.14)!important}
.home-topbar .topbar-inner{max-width:1280px!important;padding-inline:16px!important}
@media(min-width:760px){.home-topbar .topbar-inner{padding-inline:32px!important}}
@media(min-width:1100px){.home-topbar .topbar-inner{padding-inline:48px!important}}
.home-topbar nav{display:flex!important;gap:24px!important;margin:auto!important}
.home-topbar nav a{color:rgba(255,255,255,.92)!important;border-bottom:2px solid transparent!important}
.home-topbar nav a:hover{color:var(--proto-gold)!important}
@media(max-width:1050px){.home-topbar nav{display:none!important}}
.hero-conversion{min-height:760px!important;padding:0!important;background:var(--proto-navy)!important;color:#fff!important;display:flex!important;align-items:stretch!important}
.hero-conversion .hero-backdrop{position:absolute!important;inset:0!important;background-size:cover!important;background-position:center!important}
.hero-conversion .hero-shade{position:absolute!important;inset:0!important;background:linear-gradient(90deg,rgba(5,24,64,.86) 0%,rgba(5,24,64,.66) 48%,rgba(5,24,64,.34) 100%),linear-gradient(180deg,rgba(5,24,64,.16),rgba(5,24,64,.72))!important}
.hero-conversion .hero-inner{width:100%!important;max-width:1280px!important;margin:0 auto!important;display:flex!important;align-items:center!important;padding:120px 16px 76px!important}
.hero-conversion .hero-copy{max-width:760px!important}
.hero-conversion .hero-eyebrow{color:var(--proto-gold)!important;font-size:12px!important;letter-spacing:.18em!important;font-weight:700!important}
.hero-conversion .hero-copy h1{max-width:760px!important;color:#fff!important;font-family:Outfit,Inter,sans-serif!important;font-size:clamp(42px,6vw,76px)!important;line-height:1.02!important;font-weight:700!important;letter-spacing:-.055em!important;margin:16px 0!important}
.hero-conversion .hero-copy>p{max-width:620px!important;color:rgba(255,255,255,.78)!important;font-size:18px!important;line-height:1.65!important}
.hero-conversion .hero-actions{display:flex!important;gap:10px!important;flex-wrap:wrap!important;margin-top:28px!important}
.hero-conversion .hero-cta{min-height:52px!important;border-radius:999px!important;padding:0 24px!important;display:inline-flex!important;align-items:center!important;gap:10px!important;font-weight:600!important}
.hero-conversion .hero-cta.primary{background:var(--proto-gold)!important;color:#051840!important;border-color:var(--proto-gold)!important}
.hero-conversion .hero-cta.secondary{background:rgba(255,255,255,.08)!important;color:#fff!important;border-color:rgba(255,255,255,.45)!important}
.hero-conversion .hero-proof{margin-top:30px!important}
@media(min-width:760px){.hero-conversion .hero-inner{padding-inline:32px!important}}
@media(min-width:1100px){.hero-conversion .hero-inner{padding-inline:48px!important}}
@media(max-width:700px){.hero-conversion{min-height:700px!important}.hero-conversion .hero-inner{padding:110px 20px 70px!important;align-items:center!important}.hero-conversion .hero-copy h1{font-size:43px!important}.hero-conversion .hero-copy>p{font-size:14px!important}.hero-conversion .hero-actions{flex-direction:column!important;align-items:stretch!important}.hero-conversion .hero-cta{width:100%!important}.hero-conversion .hero-proof{flex-wrap:wrap!important;font-size:8px!important;gap:9px!important}}

.trust{max-width:1280px!important}
.trust .ic{background:var(--proto-gold-soft,#F4ECDD)!important;color:var(--proto-gold-deep)!important}
.trust b{color:var(--proto-ink)!important}.trust span{color:var(--proto-muted)!important}
.spot{min-height:520px!important;background:var(--proto-navy)!important}
.spot .scrim{background:linear-gradient(90deg,rgba(5,24,64,.94),rgba(5,24,64,.58),rgba(5,24,64,.2))!important}
.spot h2{font-family:Outfit,Inter,sans-serif!important;font-weight:700!important;letter-spacing:-.04em!important}
.persp{min-height:440px!important;background:var(--proto-navy)!important}
.persp .scrim{background:rgba(5,24,64,.62)!important}
.persp h2{font-family:Outfit,Inter,sans-serif!important;font-weight:700!important;letter-spacing:-.04em!important}
.featured-slider-section .grid{align-items:stretch!important}
.featured-slider-section .card{min-width:0!important}
.featured-slider-section .card .media{aspect-ratio:4/3!important}
.featured-slider-section .card .title{font-size:20px!important;font-weight:600!important;color:var(--proto-ink)!important}
.featured-slider-section .card .loc{color:var(--proto-muted)!important}
.featured-slider-section .card .facts{color:var(--proto-ink2)!important}
.featured-slider-section .card .go{background:var(--proto-gold)!important;color:#051840!important}

/* Admin typography and surfaces follow the supplied prototype instead of legacy portal.css. */
.admin-content .portal-main h1,.admin-content .portal-main h2,.admin-content .portal-main h3{font-family:Outfit,Inter,sans-serif!important;color:var(--proto-ink)!important}
.admin-content .portal-main h1{font-size:clamp(34px,4vw,56px)!important;line-height:1.05!important;font-weight:700!important;letter-spacing:-.045em!important}
.admin-content .portal-main .lead,.admin-content .portal-main p{color:var(--proto-muted)}
.admin-content .stat{min-height:120px!important;padding:22px!important;display:grid!important;align-content:center!important;gap:5px!important}
.admin-content .stat strong{font-family:Outfit,Inter,sans-serif!important;font-size:34px!important;font-weight:700!important;color:var(--proto-ink)!important}
.admin-content .stat span{color:var(--proto-muted)!important;font-size:13px!important}
.admin-content .mini-card{display:block!important;padding:22px!important}
.admin-content .mini-card h3{font-size:20px!important;font-weight:600!important;color:var(--proto-ink)!important;margin:0 0 8px!important}
.admin-content .mini-card p{color:var(--proto-muted)!important;font-size:14px!important;line-height:1.6!important}
.admin-content .panel header h3{margin:0!important;color:var(--proto-ink)!important}
.admin-content .table,.admin-content .tbl{color:var(--proto-ink)!important;background:var(--proto-surface)!important}
.admin-content .table th,.admin-content .tbl th{color:var(--proto-muted)!important;border-color:var(--proto-line)!important}
.admin-content .table td,.admin-content .tbl td{color:var(--proto-ink2)!important;border-color:var(--proto-line)!important}
.admin-content .note,.admin-content .muted{color:var(--proto-muted)!important}
.admin-content .field input,.admin-content .field select,.admin-content .field textarea{color:var(--proto-ink)!important;background:var(--proto-surface)!important}

html[data-mode="dark"] body.portal{background:#0F172B!important;color:#EEF1F7!important}
html[data-mode="dark"] .admin-content{background:#0F172B!important}
html[data-mode="dark"] .admin-top{background:rgba(22,33,59,.9)!important;border-color:#2A3A5C!important;color:#EEF1F7!important}
html[data-mode="dark"] .admin-top>span{color:#9AA4BA!important}
html[data-mode="dark"] .admin-content .portal-main h1,
html[data-mode="dark"] .admin-content .portal-main h2,
html[data-mode="dark"] .admin-content .portal-main h3,
html[data-mode="dark"] .admin-content .stat strong,
html[data-mode="dark"] .admin-content .mini-card h3,
html[data-mode="dark"] .admin-content .panel header h3{color:#EEF1F7!important}
html[data-mode="dark"] .admin-content .lead,
html[data-mode="dark"] .admin-content .portal-main p,
html[data-mode="dark"] .admin-content .mini-card p,
html[data-mode="dark"] .admin-content .stat span,
html[data-mode="dark"] .admin-content .note,
html[data-mode="dark"] .admin-content .muted{color:#C9CFDC!important}
html[data-mode="dark"] .admin-content .panel,
html[data-mode="dark"] .admin-content .stat,
html[data-mode="dark"] .admin-content .mini-card,
html[data-mode="dark"] .admin-content .field input,
html[data-mode="dark"] .admin-content .field select,
html[data-mode="dark"] .admin-content .field textarea{background:#16213B!important;border-color:#2A3A5C!important;color:#EEF1F7!important}
html[data-mode="dark"] .admin-content .table,
html[data-mode="dark"] .admin-content .tbl{background:#16213B!important;color:#EEF1F7!important}
html[data-mode="dark"] .admin-content .table th,
html[data-mode="dark"] .admin-content .tbl th{color:#9AA4BA!important;border-color:#2A3A5C!important}
html[data-mode="dark"] .admin-content .table td,
html[data-mode="dark"] .admin-content .tbl td{color:#C9CFDC!important;border-color:#2A3A5C!important}
html[data-mode="dark"] .admin-content .btn.light{background:#16213B!important;color:#EEF1F7!important;border-color:#354770!important}
html[data-mode="dark"] .admin-content .btn:not(.light){background:#D1A15A!important;border-color:#D1A15A!important;color:#051840!important}

@media(max-width:850px){.admin-content .portal-main h1{font-size:38px!important}}

/* V2 public navigation: sticky + opaque everywhere outside the admin shell */
.topbar,.portal-shared-topbar{position:sticky!important;top:0!important;z-index:120!important;background:rgba(5,24,64,.98)!important;border-bottom:1px solid rgba(255,255,255,.10)!important;box-shadow:0 8px 24px rgba(0,0,0,.10)!important;backdrop-filter:blur(10px)!important;-webkit-backdrop-filter:blur(10px)!important}
.topbar.scrolled,.portal-shared-topbar.scrolled{background:rgba(5,24,64,.98)!important;border-bottom-color:rgba(255,255,255,.14)!important;box-shadow:0 10px 30px rgba(0,0,0,.14)!important}


/* =========================================================
   V4 REFINEMENTS — PUBLIC HEADER / CHAT / ADMIN / SEARCH
   ========================================================= */
/* Public SPA header: truly fixed so the homepage always keeps the transparent cinematic nav. */
.hdr{position:fixed!important;top:0!important;left:0!important;right:0!important;width:100%!important;z-index:5000!important}
.hdr.home-mode{background:transparent!important;border-bottom-color:transparent!important;box-shadow:none!important;margin-bottom:0!important}
.hdr.home-mode.scrolled{background:rgba(5,24,64,.78)!important;backdrop-filter:blur(18px) saturate(130%)!important;-webkit-backdrop-filter:blur(18px) saturate(130%)!important;border-bottom-color:rgba(255,255,255,.12)!important;box-shadow:0 10px 35px rgba(0,0,0,.14)!important}
.hdr:not(.home-mode){background:rgba(5,24,64,.98)!important;box-shadow:0 8px 24px rgba(0,0,0,.10)!important}
body.miliki-home-route #app{padding-top:0!important}
body:not(.miliki-home-route) #app{padding-top:76px}
.nav a{position:relative;border-bottom:0!important;transition:color .2s ease}
.nav a:after{content:'';position:absolute;left:0;right:0;bottom:1px;height:2px;border-radius:99px;background:var(--gold);transform:scaleX(0);transform-origin:center;transition:transform .2s ease}
.nav a:hover,.nav a.on{color:var(--gold)!important}
.nav a.on:after{transform:scaleX(1)}
@media(max-width:899px){body:not(.miliki-home-route) #app{padding-top:64px}}

/* Smaller floating assistant — positioned directly above the contact hub. */
.miliki-chat-floater{position:fixed;right:24px;bottom:94px;z-index:1700;width:min(390px,calc(100vw - 36px));max-height:min(650px,calc(100vh - 130px));background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:22px;box-shadow:0 24px 70px rgba(0,0,0,.28);padding:14px;opacity:0;transform:translateY(12px) scale(.98);pointer-events:none;transition:opacity .18s ease,transform .18s ease;display:grid;gap:12px;overflow:auto}
.miliki-chat-floater.open{opacity:1;transform:none;pointer-events:auto}
.miliki-chat-floater-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:4px 2px 2px}.miliki-chat-floater-head>div{display:grid;gap:3px}.miliki-chat-floater-head strong{font-size:20px;line-height:1.1}.miliki-chat-floater-head small{color:var(--muted);font-size:12px}.miliki-chat-floater .chat-log-ui{min-height:170px;max-height:230px}.miliki-chat-floater .chat-identity{grid-template-columns:1fr 1fr}.miliki-chat-floater .chat-identity .f:nth-child(3),.miliki-chat-floater .chat-identity .btn{grid-column:1/-1}
@media(max-width:640px){.miliki-chat-floater{right:14px;bottom:156px;width:calc(100vw - 28px);max-height:calc(100vh - 190px)}.miliki-chat-floater .chat-identity{grid-template-columns:1fr}.miliki-chat-floater .chat-identity .f:nth-child(3),.miliki-chat-floater .chat-identity .btn{grid-column:auto}}

/* Contact launcher: WhatsApp is the primary floating action; the menu reveals WhatsApp + Miliki Assistant. */
.miliki-chat-launcher{background:#25D366!important;border:2px solid #fff!important;width:58px!important;height:58px!important;box-shadow:0 15px 38px rgba(0,0,0,.28)!important}
.miliki-chat-launcher .whatsapp-launcher-icon{display:grid;place-items:center;color:#fff}
.miliki-chat-launcher .whatsapp-launcher-icon svg{display:block;width:31px;height:31px}
.miliki-chat-launcher .hub-wa-badge,.miliki-chat-launcher:after{display:none!important}
.contact-option.whatsapp .contact-option-icon{background:#25D366!important;color:#fff!important}
.contact-option.assistant .chat-icon{background:var(--navy)!important;color:#fff!important}

/* Footer link affordance */
#foot .fgrid a,#foot .fbottom a{transition:color .18s ease,transform .18s ease,opacity .18s ease}
#foot .fgrid a:hover,#foot .fbottom a:hover{color:var(--gold)!important;transform:translateX(3px)}
#foot .social a:hover{transform:translateY(-2px);opacity:.92}
#foot .footer-designed-link{text-decoration:none;color:inherit}

/* Shared footer link affordances for PHP-rendered public pages too. */
.footer-links a,.footer-social a,.footer-designed a,.portal-footer a{transition:color .18s ease,transform .18s ease,opacity .18s ease}
.footer-links a:hover,.footer-designed a:hover,.portal-footer a:hover{color:var(--proto-gold)!important;transform:translateX(3px)}
.footer-social a:hover{transform:translateY(-2px);opacity:.9}

/* Cinematic but restrained landing image motion. */
.hero img{transform:scale(1.035);animation:milikiHeroDrift 16s ease-in-out infinite alternate;transform-origin:center center}
@keyframes milikiHeroDrift{from{transform:scale(1.035) translate3d(0,0,0)}to{transform:scale(1.095) translate3d(-.8%,-.5%,0)}}
@media (prefers-reduced-motion:reduce){.hero img{animation:none;transform:none}}

/* Admin top bar search */
.admin-top-tools{display:flex;align-items:center;gap:8px;position:relative}.admin-global-search{position:relative}.admin-search-btn{width:38px;height:38px;border-radius:999px;border:1px solid var(--proto-line);background:var(--proto-surface);color:var(--proto-ink);display:grid;place-items:center;cursor:pointer;transition:.18s}.admin-search-btn:hover{border-color:var(--proto-gold);color:var(--proto-gold-deep)}
.admin-search-popover{position:absolute;right:0;top:46px;width:min(460px,calc(100vw - 32px));background:var(--proto-surface);border:1px solid var(--proto-line);border-radius:16px;box-shadow:0 20px 60px rgba(5,24,64,.18);overflow:hidden;z-index:500}.admin-search-row{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--proto-line);color:var(--proto-muted)}.admin-search-row input{flex:1;border:0;outline:0;background:transparent;color:var(--proto-ink);font:500 14px Outfit,Inter,sans-serif;min-height:34px}.admin-search-row button{border:0;background:transparent;color:var(--proto-muted);font-size:22px;cursor:pointer}.admin-search-results{max-height:420px;overflow:auto;padding:8px}.admin-search-empty{padding:14px;color:var(--proto-muted);font-size:13px}.admin-search-result{display:grid;gap:2px;padding:11px 12px;border-radius:10px;color:var(--proto-ink);text-decoration:none}.admin-search-result:hover{background:var(--proto-surface2)}.admin-search-result strong{font-size:14px}.admin-search-result small{font-size:12px;color:var(--proto-muted)}.admin-search-type{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:var(--proto-gold-deep);font-weight:700}

/* Admin theme toggle remains visible in light mode and follows the same text/surface contrast as the public/account UI. */
.admin-theme-toggle{color:#051840!important;background:#fff!important;border:1px solid #D8DDE7!important}.admin-theme-toggle:hover{background:#F4F1EC!important;color:#95611F!important}.admin-top .btn.light{background:var(--proto-surface)!important;color:var(--proto-ink)!important;border-color:var(--proto-line)!important}
html[data-mode="dark"] .admin-theme-toggle{color:#F4F6FA!important;background:#16213B!important;border-color:#53627D!important}.admin-theme-toggle:hover{color:#D1A15A!important}
html[data-mode="dark"] .admin-search-btn{background:#16213B!important;border-color:#354770!important;color:#EEF1F7!important}
html[data-mode="dark"] .admin-search-popover{background:#16213B!important;border-color:#2A3A5C!important;box-shadow:0 20px 60px rgba(0,0,0,.42)!important}.admin-search-row{border-color:var(--proto-line)!important}.admin-search-row input{color:var(--proto-ink)!important}
html[data-mode="dark"] .admin-content .panel h2,html[data-mode="dark"] .admin-content .field label,html[data-mode="dark"] .admin-content .table th,html[data-mode="dark"] .admin-content .tbl th{color:#D7DCE7!important}
html[data-mode="dark"] .admin-content .field input::placeholder,html[data-mode="dark"] .admin-content .field textarea::placeholder{color:#8B96AB!important}
html[data-mode="dark"] .admin-content a{color:#D7DCE7}.admin-nav a{color:rgba(255,255,255,.82)!important}.admin-nav a:hover,.admin-nav a.active{color:#fff!important}

/* Admin login screen respects the chosen theme and uploaded image. */
html[data-mode="dark"] .admin-login-panel{background:#0F172B!important}.admin-login-card h2{color:var(--proto-ink)!important}.admin-login-card .lead,.admin-login-card .field label{color:var(--proto-muted)!important}.admin-login-card .field input{color:var(--proto-ink)!important;background:var(--proto-surface)!important;border-color:var(--proto-line)!important}.admin-login-top .theme-toggle{color:#051840!important;background:#fff!important;border:1px solid #D8DDE7!important}
html[data-mode="dark"] .admin-login-top .theme-toggle{color:#F4F6FA!important;background:#16213B!important;border-color:#53627D!important}

/* Shared PHP footer contact hub uses the same compact interaction as the SPA home. */
.miliki-chat-launcher{background:#25D366!important;border:2px solid #fff!important;width:58px!important;height:58px!important;box-shadow:0 15px 38px rgba(0,0,0,.28)!important}
.miliki-chat-launcher .whatsapp-launcher-icon{display:grid!important;place-items:center!important;color:#fff!important}
.miliki-chat-launcher .whatsapp-launcher-icon svg{display:block!important;width:31px!important;height:31px!important;fill:currentColor!important;stroke:none!important}
.miliki-chat-launcher .hub-wa-badge,.miliki-chat-launcher:after{display:none!important}
.miliki-chat-panel{right:24px!important;bottom:94px!important;width:min(360px,calc(100vw - 32px))!important;height:auto!important;max-height:min(560px,calc(100vh - 132px))!important;border-radius:20px!important;box-shadow:0 24px 70px rgba(0,0,0,.28)!important}
@media(max-width:700px){.miliki-chat-panel{right:14px!important;bottom:94px!important;width:calc(100vw - 28px)!important;max-height:calc(100vh - 132px)!important}}

/* Admin dark mode: neutralise legacy light inline/module styles so the control center follows the public/account palette. */
html[data-mode="dark"] body.portal,
html[data-mode="dark"] .admin-content{background:#0F172B!important;color:#EEF1F7!important}
html[data-mode="dark"] .admin-content h1,
html[data-mode="dark"] .admin-content h2,
html[data-mode="dark"] .admin-content h3,
html[data-mode="dark"] .admin-content h4,
html[data-mode="dark"] .admin-content h5,
html[data-mode="dark"] .admin-content strong,
html[data-mode="dark"] .admin-content b{color:#F4F6FA!important}
html[data-mode="dark"] .admin-content .listing-image-row,
html[data-mode="dark"] .admin-content .admin-service-card{background:#16213B!important;border-color:#2A3A5C!important;color:#EEF1F7!important}
html[data-mode="dark"] .admin-content .listing-image-row label,
html[data-mode="dark"] .admin-content .admin-service-card span,
html[data-mode="dark"] .admin-content .service-request-table-wrap a{color:#D7DCE7!important}
html[data-mode="dark"] .admin-content .service-request-table-wrap .table a,
html[data-mode="dark"] .admin-content .service-request-table-wrap a{color:#D7DCE7!important}
html[data-mode="dark"] .admin-content [style*="background:#faf9f6"],
html[data-mode="dark"] .admin-content [style*="background: #faf9f6"]{background:#16213B!important}
html[data-mode="dark"] .admin-content [style*="color:#777"],
html[data-mode="dark"] .admin-content [style*="color:#888"],
html[data-mode="dark"] .admin-content [style*="color:#999"]{color:#AEB7C7!important}


/* V13: Control Center dark-mode completion + shared chat polish. */
html[data-mode="dark"] .admin-content .panel,
html[data-mode="dark"] .admin-content .stat,
html[data-mode="dark"] .admin-content .mini-card,
html[data-mode="dark"] .admin-content .notice,
html[data-mode="dark"] .admin-content .table,
html[data-mode="dark"] .admin-content .tbl,
html[data-mode="dark"] .admin-content .listing-image-row,
html[data-mode="dark"] .admin-content .admin-service-card,
html[data-mode="dark"] .admin-content .chat-admin-window,
html[data-mode="dark"] .admin-content .chat-conversation-list,
html[data-mode="dark"] .admin-content .chat-admin-messages,
html[data-mode="dark"] .admin-content .chat-admin-reply,
html[data-mode="dark"] .admin-content .map-card,
html[data-mode="dark"] .admin-content .location-menu,
html[data-mode="dark"] .admin-content .location-option,
html[data-mode="dark"] .admin-content .pick,
html[data-mode="dark"] .admin-content .empty,
html[data-mode="dark"] .admin-content .empty-sm,
html[data-mode="dark"] .admin-content .card,
html[data-mode="dark"] .admin-content .card-grid > *,
html[data-mode="dark"] .admin-content .editor-panel,
html[data-mode="dark"] .admin-content .training-rule{background:#16213B!important;color:#EEF1F7!important;border-color:#2A3A5C!important}
html[data-mode="dark"] .admin-content .panel p,
html[data-mode="dark"] .admin-content .panel .muted,
html[data-mode="dark"] .admin-content .stat span,
html[data-mode="dark"] .admin-content .mini-card p,
html[data-mode="dark"] .admin-content .table th,
html[data-mode="dark"] .admin-content .tbl th,
html[data-mode="dark"] .admin-content .table td,
html[data-mode="dark"] .admin-content .tbl td,
html[data-mode="dark"] .admin-content .note,
html[data-mode="dark"] .admin-content .service-request-table-wrap a,
html[data-mode="dark"] .admin-content .chat-admin-head p,
html[data-mode="dark"] .admin-content .chat-admin-window small,
html[data-mode="dark"] .admin-content .location-option small{color:#BFC8D8!important}
html[data-mode="dark"] .admin-content input,
html[data-mode="dark"] .admin-content select,
html[data-mode="dark"] .admin-content textarea,
html[data-mode="dark"] .admin-content .table input,
html[data-mode="dark"] .admin-content .table select,
html[data-mode="dark"] .admin-content .chat-admin-head select,
html[data-mode="dark"] .admin-content .chat-admin-reply textarea,
html[data-mode="dark"] .admin-content .location-option,
html[data-mode="dark"] .admin-content .location-search{background:#0F172B!important;color:#F4F6FA!important;border-color:#354770!important}
html[data-mode="dark"] .admin-content input::placeholder,
html[data-mode="dark"] .admin-content textarea::placeholder{color:#7F8AA0!important}
html[data-mode="dark"] .admin-content .chat-admin-messages{background:#0F172B!important}
html[data-mode="dark"] .admin-content .chat-admin-msg{background:#16213B!important;color:#EEF1F7!important;border-color:#2A3A5C!important}
html[data-mode="dark"] .admin-content .chat-admin-msg.bot{background:#1B2B48!important}
html[data-mode="dark"] .admin-content .chat-admin-msg.admin{background:#3A2B17!important;border-color:#5D4825!important}
html[data-mode="dark"] .admin-content .chat-admin-reply{background:#16213B!important;border-color:#2A3A5C!important}
html[data-mode="dark"] .admin-content .badge{background:#2A3A5C!important;color:#EEF1F7!important}
html[data-mode="dark"] .admin-content .btn.light{background:#16213B!important;color:#EEF1F7!important;border-color:#53627D!important}
html[data-mode="dark"] .admin-content [style*="background:#fff"],
html[data-mode="dark"] .admin-content [style*="background: #fff"],
html[data-mode="dark"] .admin-content [style*="background:white"],
html[data-mode="dark"] .admin-content [style*="background: white"],
html[data-mode="dark"] .admin-content [style*="background:#f7f9fc"],
html[data-mode="dark"] .admin-content [style*="background: #f7f9fc"],
html[data-mode="dark"] .admin-content [style*="background:#f4f3ef"],
html[data-mode="dark"] .admin-content [style*="background: #f4f3ef"]{background:#16213B!important;color:#EEF1F7!important}
html[data-mode="dark"] .admin-content [style*="color:#111"],
html[data-mode="dark"] .admin-content [style*="color: #111"],
html[data-mode="dark"] .admin-content [style*="color:#666"],
html[data-mode="dark"] .admin-content [style*="color: #666"],
html[data-mode="dark"] .admin-content [style*="color:#777"],
html[data-mode="dark"] .admin-content [style*="color: #777"]{color:#D7DCE7!important}
.miliki-chat-panel{bottom:86px!important}
@media(max-width:700px){.miliki-chat-panel{bottom:82px!important}}
.footer-social{display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important}.footer-social a{display:inline-flex!important;align-items:center;justify-content:center;width:40px;height:40px;border-radius:999px;border:1px solid rgba(127,135,150,.28);transition:transform .2s ease,color .2s ease,background-color .2s ease,box-shadow .2s ease}
.footer-social a svg{width:19px;height:19px;fill:currentColor;stroke:currentColor;stroke-width:1.7}
.footer-social .social-instagram:hover{color:#E1306C!important;background:rgba(225,48,108,.12);transform:translateY(-2px);box-shadow:0 8px 22px rgba(225,48,108,.18)}
.footer-social .social-facebook:hover{color:#1877F2!important;background:rgba(24,119,242,.12);transform:translateY(-2px);box-shadow:0 8px 22px rgba(24,119,242,.18)}
.footer-social .social-tiktok:hover{color:#FE2C55!important;background:rgba(254,44,85,.12);transform:translateY(-2px);box-shadow:0 8px 22px rgba(254,44,85,.18)}
.footer-social .social-linkedin:hover{color:#0A66C2!important;background:rgba(10,102,194,.12);transform:translateY(-2px)}
.footer-social .social-youtube:hover{color:#FF0000!important;background:rgba(255,0,0,.10);transform:translateY(-2px)}

/* V14: Control Center dark-mode completion + compact listing actions. */
html[data-mode="dark"] body.portal,
html[data-mode="dark"] .admin-content,
html[data-mode="dark"] .admin-content .portal-main,
html[data-mode="dark"] .admin-content .site-content-grid{background:#0F172B!important;color:#EEF1F7!important}
html[data-mode="dark"] body.portal .panel,
html[data-mode="dark"] body.portal .stat,
html[data-mode="dark"] body.portal .mini-card,
html[data-mode="dark"] body.portal .notice,
html[data-mode="dark"] body.portal .table-wrap,
html[data-mode="dark"] body.portal .editor-admin-grid,
html[data-mode="dark"] body.portal .admin-service-editor,
html[data-mode="dark"] body.portal .admin-service-card,
html[data-mode="dark"] body.portal .listing-images-builder,
html[data-mode="dark"] body.portal .listing-image-row,
html[data-mode="dark"] body.portal .inline-media-form,
html[data-mode="dark"] body.portal .checkrow,
html[data-mode="dark"] body.portal .login-card,
html[data-mode="dark"] body.portal .location-menu,
html[data-mode="dark"] body.portal .location-picker,
html[data-mode="dark"] body.portal .location-option{background:#16213B!important;color:#EEF1F7!important;border-color:#2A3A5C!important}
html[data-mode="dark"] body.portal .field label,
html[data-mode="dark"] body.portal .table th,
html[data-mode="dark"] body.portal .portal-main .muted,
html[data-mode="dark"] body.portal .portal-main .lead,
html[data-mode="dark"] body.portal .mini-card p,
html[data-mode="dark"] body.portal .stat span,
html[data-mode="dark"] body.portal .notice,
html[data-mode="dark"] body.portal .location-option small,
html[data-mode="dark"] body.portal .location-empty{color:#BFC8D8!important}
html[data-mode="dark"] body.portal .field input,
html[data-mode="dark"] body.portal .field select,
html[data-mode="dark"] body.portal .field textarea,
html[data-mode="dark"] body.portal .table input,
html[data-mode="dark"] body.portal .table select,
html[data-mode="dark"] body.portal .location-option,
html[data-mode="dark"] body.portal .location-menu input{background:#0F172B!important;color:#F4F6FA!important;border-color:#354770!important}
html[data-mode="dark"] body.portal .table td{border-color:#2A3A5C!important;color:#D7DCE7!important}
html[data-mode="dark"] body.portal .table th{border-color:#2A3A5C!important;color:#9AA4BA!important}
html[data-mode="dark"] body.portal .btn.light{background:#16213B!important;color:#F4F6FA!important;border-color:#53627D!important}
html[data-mode="dark"] body.portal .badge{background:#2A3A5C!important;color:#EEF1F7!important}
html[data-mode="dark"] body.portal .notice.error{background:#3A2026!important;color:#F4D6DB!important;border-left-color:#B55C68!important}
html[data-mode="dark"] body.portal [style*="background:#faf9f6"],html[data-mode="dark"] body.portal [style*="background: #faf9f6"],html[data-mode="dark"] body.portal [style*="background:#f4f3ef"],html[data-mode="dark"] body.portal [style*="background: #f4f3ef"],html[data-mode="dark"] body.portal [style*="background:#fff"],html[data-mode="dark"] body.portal [style*="background: #fff"],html[data-mode="dark"] body.portal [style*="background:white"],html[data-mode="dark"] body.portal [style*="background: white"]{background:#16213B!important;color:#EEF1F7!important}
html[data-mode="dark"] body.portal [style*="color:#111"],html[data-mode="dark"] body.portal [style*="color: #111"],html[data-mode="dark"] body.portal [style*="color:#666"],html[data-mode="dark"] body.portal [style*="color: #666"],html[data-mode="dark"] body.portal [style*="color:#777"],html[data-mode="dark"] body.portal [style*="color: #777"],html[data-mode="dark"] body.portal [style*="color:#888"],html[data-mode="dark"] body.portal [style*="color: #888"]{color:#D7DCE7!important}

/* SPA Control Center dark mode — keep all admin surfaces readable too. */
html[data-mode="dark"] .adm{background:#0F172B!important;color:#EEF1F7!important}
html[data-mode="dark"] .adm .adm-top,
html[data-mode="dark"] .adm .adm-body,
html[data-mode="dark"] .adm .panel,
html[data-mode="dark"] .adm .kpi,
html[data-mode="dark"] .adm .tile,
html[data-mode="dark"] .adm .callout,
html[data-mode="dark"] .adm .stat,
html[data-mode="dark"] .adm .empty,
html[data-mode="dark"] .adm .empty-sm,
html[data-mode="dark"] .adm .field,
html[data-mode="dark"] .adm .pick{background:#16213B!important;color:#EEF1F7!important;border-color:#2A3A5C!important}
html[data-mode="dark"] .adm .adm-top{background:rgba(22,33,59,.96)!important}
html[data-mode="dark"] .adm input,
html[data-mode="dark"] .adm select,
html[data-mode="dark"] .adm textarea{background:#0F172B!important;color:#F4F6FA!important;border-color:#354770!important}
html[data-mode="dark"] .adm .muted,
html[data-mode="dark"] .adm .note,
html[data-mode="dark"] .adm .sub,
html[data-mode="dark"] .adm p{color:#BFC8D8!important}
html[data-mode="dark"] .adm table,
html[data-mode="dark"] .adm .tbl{background:#16213B!important;color:#EEF1F7!important}
html[data-mode="dark"] .adm th{color:#9AA4BA!important;border-color:#2A3A5C!important}
html[data-mode="dark"] .adm td{color:#D7DCE7!important;border-color:#2A3A5C!important}
html[data-mode="dark"] .adm [style*="background:#fff"],html[data-mode="dark"] .adm [style*="background: #fff"],html[data-mode="dark"] .adm [style*="background:white"],html[data-mode="dark"] .adm [style*="background: white"],html[data-mode="dark"] .adm [style*="background:#faf9f6"],html[data-mode="dark"] .adm [style*="background: #faf9f6"]{background:#16213B!important;color:#EEF1F7!important}

.admin-row-actions,.admin-bulk-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.admin-bulk-actions>span:first-child{margin-right:2px}.admin-icon-action{width:36px;height:36px;min-width:36px;padding:0!important;display:inline-grid!important;place-items:center;border:1px solid var(--line2);border-radius:10px;background:var(--surface);color:var(--ink);text-decoration:none;cursor:pointer;transition:transform .16s ease,border-color .16s ease,color .16s ease,background-color .16s ease}.admin-icon-action:hover{border-color:var(--gold);color:var(--gold-deep);transform:translateY(-1px)}.admin-icon-action.danger:hover{border-color:var(--warn);color:var(--warn)}.admin-icon-action svg{width:17px;height:17px;display:block}
@media(max-width:760px){.admin-row-actions{justify-content:flex-start}.admin-icon-action{width:38px;height:38px;min-width:38px}}

/* V15: final dark-mode hardening for legacy admin modules + featured editors. */
html[data-mode="dark"] body.portal .editor-admin-option,
html[data-mode="dark"] body.portal .editor-admin-option span,
html[data-mode="dark"] body.portal .editor-admin-option strong,
html[data-mode="dark"] body.portal .editor-admin-option small,
html[data-mode="dark"] body.portal .editor-admin-option em,
html[data-mode="dark"] body.portal .listing-image-row,
html[data-mode="dark"] body.portal .listing-image-row input[type="text"],
html[data-mode="dark"] body.portal .listing-image-row input[type="file"],
html[data-mode="dark"] body.portal .inline-media-form,
html[data-mode="dark"] body.portal .admin-perm-item{background:#16213B!important;color:#EEF1F7!important;border-color:#354770!important}
html[data-mode="dark"] body.portal .editor-admin-option small,
html[data-mode="dark"] body.portal .listing-image-row label,
html[data-mode="dark"] body.portal .admin-perm-item span{color:#C9CFDC!important}
html[data-mode="dark"] body.portal .editor-admin-option em{color:#E0B571!important}
html[data-mode="dark"] body.portal input:not([type="checkbox"]):not([type="radio"]),
html[data-mode="dark"] body.portal select,
html[data-mode="dark"] body.portal textarea{background:#0F172B!important;color:#F4F6FA!important;border-color:#354770!important}
html[data-mode="dark"] body.portal input[type="file"]{background:#0F172B!important;color:#F4F6FA!important;border-color:#354770!important}
html[data-mode="dark"] body.portal input[type="file"]::file-selector-button{background:#16213B!important;color:#EEF1F7!important;border:1px solid #53627D!important;border-radius:7px;padding:7px 10px;margin-right:10px}
html[data-mode="dark"] body.portal .table input::placeholder,
html[data-mode="dark"] body.portal .table textarea::placeholder,
html[data-mode="dark"] body.portal .field input::placeholder,
html[data-mode="dark"] body.portal .field textarea::placeholder{color:#7F8AA1!important}
html[data-mode="dark"] body.portal .table-wrap{background:#16213B!important}
html[data-mode="dark"] body.portal .table tr{background:#16213B!important}
html[data-mode="dark"] body.portal .table tr:nth-child(even){background:#182540!important}
