/* HEXAAPI V5: final contrast and responsive corrections */
:root{color-scheme:dark;--v5-bg:#080d18;--v5-panel:#111b2c;--v5-text:#f1f5ff;--v5-muted:#bdc9dc;--v5-line:#2b3b54}
html,body{background-color:var(--v5-bg)!important;color:var(--v5-text)!important}
body{background-image:radial-gradient(ellipse at 8% 0%,#1a2850 0,transparent 34%),radial-gradient(ellipse at 96% 8%,#0e3038 0,transparent 28%),linear-gradient(145deg,#080d18,#0b1220)!important;overflow-x:hidden}
/* Override legacy inline white cards and homepage sections */
.card,.stat-card,.api-card,.feature-card,.feature-box,.pricing-card,.testimonial-card,.bg-white,.bg-gray-50,.bg-gray-100,.bg-slate-50,.bg-slate-100,.bg-white\/90{background:linear-gradient(145deg,#142137,#0e1727)!important;color:var(--v5-text)!important;border:1px solid #293a53!important;box-shadow:0 12px 30px #0003!important}
.card *, .stat-card *, .api-card *, .feature-card *, .feature-box *, .pricing-card *, .testimonial-card *{color:inherit}
/* Keep gradient headings visible, don't flatten intentional gradient text */
.text-gradient{-webkit-text-fill-color:transparent!important;background-image:linear-gradient(120deg,#c4b5fd,#67e8f9)!important;-webkit-background-clip:text!important;background-clip:text!important}
h1,h2,h3,h4,h5,h6,.font-bold,.font-extrabold,.font-black{color:#f4f7ff}
p,small,label,.text-gray-500,.text-gray-600,.text-gray-700,.text-slate-500,.text-slate-600,.text-slate-700{color:#bdc9dc}
body a:not(.btn-primary):not(.btn):not(.hx-btn){text-decoration-color:#52647e}
.glass-nav,.mobile-menu{background:#0d1727!important;color:#f1f5ff!important;border-color:#2b3b54!important}.mobile-menu a{color:#e7efff!important}
input,select,textarea{background:#0a1322!important;color:#f1f5ff!important;border-color:#354762!important}input::placeholder,textarea::placeholder{color:#9aaac0!important}
.main-content,.content-wrapper,.dashboard-content,main{background:transparent!important;color:#f1f5ff!important}
/* Only one mobile menu: the global navigation toggle replaces legacy toggle */
.mobile-menu-btn{display:none!important}.sidebar,.admin-sidebar{z-index:1000!important}
@media(max-width:900px){.sidebar,.admin-sidebar,aside.sidebar{display:none!important;transform:translateX(-110%)!important}.main-content{margin-left:0!important;width:100%!important}.mobile-menu-btn{display:none!important}body{padding-bottom:18px!important}.stat-card,.api-card,.card{min-width:0!important}.container-custom{padding-left:14px!important;padding-right:14px!important}.grid{min-width:0}.grid-cols-4,.grid-cols-3,.grid-cols-2{grid-template-columns:repeat(1,minmax(0,1fr))!important}}
@media(min-width:901px){.main-content{margin-left:0!important}.sidebar,.admin-sidebar{top:78px!important}}
/* Avoid tiny/low-contrast labels inherited from older pages */
.text-xs,.text-sm,small{line-height:1.55}.text-gray-400,.text-slate-400{color:#aab9cf!important}.text-indigo-600,.text-blue-600{color:#c4b5fd!important}.text-white{color:#fff!important}
pre,code{overflow-wrap:anywhere;max-width:100%}table{display:block;max-width:100%;overflow-x:auto}


/* HEXAAPI V23: persistent dark theme + one dashboard navigation system */
:root{color-scheme:dark;--hx23-bg:#080d18;--hx23-panel:#111b2c;--hx23-line:#2b3b54;--hx23-text:#eef4ff;--hx23-muted:#aebbd0}
html,body{background:#080d18!important;color:#eef4ff!important}
body{background-image:radial-gradient(ellipse at 8% 0%,#172448 0,transparent 34%),radial-gradient(ellipse at 96% 8%,#0d3039 0,transparent 28%),linear-gradient(145deg,#080d18,#0b1220)!important;overflow-x:hidden}
/* Public home/auth pages often use inline white backgrounds and utility classes. */
body .bg-white,body .bg-gray-50,body .bg-gray-100,body .bg-slate-50,body .bg-slate-100,body [style*="background: white"],body [style*="background:white"],body [style*="background-color: white"],body [style*="background-color:white"],body [style*="background:#fff"],body [style*="background: #fff"]{background:linear-gradient(145deg,#142137,#0e1727)!important;color:#eef4ff!important;border-color:#293a53!important}
body .card,body .stat-card,body .api-card,body .feature-card,body .feature-box,body .pricing-card,body .testimonial-card,body .glass-card{background:linear-gradient(145deg,#142137,#0e1727)!important;color:#eef4ff!important;border:1px solid #293a53!important;box-shadow:0 12px 30px #0003!important}
body .text-black,body .text-gray-900,body .text-gray-800,body .text-gray-700,body .text-slate-900,body .text-slate-800,body .text-slate-700{color:#eef4ff!important}
body .text-gray-600,body .text-gray-500,body .text-slate-600,body .text-slate-500,body p,body small,body label{color:#aebbd0!important}
body h1,body h2,body h3,body h4,body h5,body h6{color:#f4f7ff!important}
body input,body select,body textarea{background:#0a1322!important;color:#f1f5ff!important;border-color:#354762!important}
body input::placeholder,body textarea::placeholder{color:#9aaac0!important}
body table,body th,body td{border-color:#293a53!important}
body .text-indigo-600,body .text-blue-600{color:#c4b5fd!important}body .text-emerald-700,body .text-green-700{color:#6ee7b7!important}body .text-red-700{color:#fda4af!important}
/* The global top navigation and mobile bottom navigation are the intended menus. */
@media(min-width:901px){body .sidebar,body .admin-sidebar,body aside.sidebar{display:none!important;visibility:hidden!important;width:0!important;transform:translateX(-120%)!important}body .main-content{margin-left:0!important;width:100%!important;max-width:100%!important}}
@media(max-width:900px){body .sidebar,body .admin-sidebar,body aside.sidebar{display:none!important;visibility:hidden!important;transform:translateX(-120%)!important}body .main-content{margin-left:0!important;width:100%!important;max-width:100%!important}body{padding-bottom:84px!important}body .bottom-nav{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:19000!important;background:#0b1423!important;border-top:1px solid #293a53!important;color:#eef4ff!important}}
/* Keep scrolling notices readable and avoid clipped message text. */
.dashboard-notice,.notice-bar,.scrolling-notice,[class*="notice"]{color:#eef4ff}
pre,code{overflow-wrap:anywhere;max-width:100%}table{max-width:100%;overflow-x:auto}

/* Additional utility variants commonly used on the public header/hero. */
body .bg-white\/80,body .bg-white\/90,body .bg-white\/95,body .bg-gray-50\/80,body .bg-slate-50\/80{background:#0d1727!important;color:#eef4ff!important;border-color:#293a53!important}
body header:not(.hx-global-nav),body nav:not(.hx-global-nav),body .navbar,body .site-header{background:#0b1423!important;color:#eef4ff!important;border-color:#293a53!important}
body header a,body nav a,body .navbar a{color:#dbe7f8!important}
