/* =========================================================
   NEXORA — GLOBAL TEXT CONTRAST / READABILITY PATCH
   Visual-only: no commerce, auth, cart, checkout or admin logic.
   ========================================================= */

:root{
  --nx-text-strong:#26364d;
  --nx-text:#46566d;
  --nx-text-soft:#66778e;
  --nx-text-faint:#7f8da1;
  --nx-dark-text:#eef4ff;
  --nx-dark-soft:#b7c5d8;
  --nx-dark-faint:#9eafc5;
}

/* Light / white surfaces: soften overly-black text while keeping strong hierarchy. */
.hero h1,
.section-head h2,
.product-info h3,
.product-price strong,
.product-detail-copy h2,
.story-copy h2,
.admin-top h1,
.panel-head h3,
.modal-head h3,
.drawer-head h3,
.support-phone-card h3,
.support-ticket-section h2,
.stat strong,
.detail-chip strong,
.story-point h4,
.site-footer h4{
  color:var(--nx-text-strong) !important;
}

.hero p,
.section-head p,
.product-meta,
.product-detail-copy p,
.story-copy>p,
.story-point p,
.admin-top p,
.support-phone-card p,
.support-ticket-section p,
.search-results-label,
.search-hint,
.search-empty,
.product-empty-state,
.empty,
.footer-grid p,
.footer-grid a,
.footer-grid span{
  color:var(--nx-text-soft) !important;
}

.product-meta span:nth-child(1),
.detail-chip span,
.field label,
.field-help,
.table-wrap th,
.stat span,
.site-footer .footer-bottom{
  color:var(--nx-text-faint) !important;
}

.searchbox input,
.field input,
.field textarea,
.field select,
.global-searchbox input{
  color:#314159 !important;
}

.searchbox input::placeholder,
.field input::placeholder,
.field textarea::placeholder,
.global-searchbox input::placeholder{
  color:#8b98aa !important;
  opacity:1 !important;
}

.filter-chip{color:#586980 !important}
.filter-chip:hover{color:#315efb !important}
.product-save{color:#586980 !important}
.product-price del{color:#8d99aa !important}

/* Dark surfaces: never let secondary copy collapse into the background. */
.topbar .desktop-nav a{color:#bdc9d9 !important}
.topbar .desktop-nav a:hover,
.topbar .desktop-nav a.is-active{color:#ffffff !important}
.brand small{color:#a8b7cc !important}

.hero-visual .hero-badge span,
.home-showcase-copy > p:not(.home-showcase-en),
.home-showcase-meta span,
.generic-hero-art small,
.generic-story-art small,
.admin-side button,
.admin-side button:hover,
.table-wrap td,
.table-wrap th,
.drawer-panel .cart-item p,
.search-result-main small,
.search-hint,
.search-empty,
.footer-grid p,
.footer-grid a,
.footer-grid span{
  color:var(--nx-dark-soft) !important;
}

.hero-visual .hero-badge strong,
.home-showcase-copy h2,
.home-showcase-bottom>strong,
.generic-hero-art span,
.generic-story-art span,
.table-wrap td strong,
.drawer-panel .cart-item h4,
.drawer-panel .total-row strong{
  color:var(--nx-dark-text) !important;
}

.admin-side button.active,
.admin-side button:hover{color:#eaf2ff !important}

/* Status / semantic colors stay intentionally saturated and readable. */
.status.paid,.status.completed{color:#55b984 !important}
.status.pending_payment,.status.processing,.status.shipped{color:#c99a46 !important}
.status.canceled,.status.failed{color:#dc7369 !important}
.live-badge[data-status="connected"]{color:#13875f !important}

/* Prevent icon/text combinations from becoming muddy. */
.icon-btn{color:#d8e3f1 !important}
.icon-btn:hover{color:#ffffff !important}
.nav-badge{color:#ffffff !important}

/* Footer on the darker lower surface. */
.site-footer{color:#a6b5c9 !important}
.site-footer a,.site-footer span{color:#a9b7ca !important}
.site-footer a:hover{color:#dce8f8 !important}

/* Accessibility nicety for keyboard users. */
:focus-visible{outline:2px solid rgba(49,94,251,.55);outline-offset:2px}
