/* LuxeLicense v43.68 — storefront visual audit, contrast and premium page polish */
:root{
  --lx68-ink:#111827;
  --lx68-muted:#667085;
  --lx68-line:#e4eaf2;
  --lx68-soft:#f7f9fc;
  --lx68-navy:#071426;
  --lx68-navy2:#12386d;
  --lx68-gold:#d9ad2f;
  --lx68-radius:22px;
  --lx68-shadow:0 18px 55px rgba(15,23,42,.09);
}

/* Global typography and readable defaults */
body.ll-theme-ready{font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
body.ll-theme-ready main{color:var(--lx68-ink)}
body.ll-theme-ready main p,
body.ll-theme-ready main li,
body.ll-theme-ready main dd,
body.ll-theme-ready main .text-muted,
body.ll-theme-ready main .muted,
body.ll-theme-ready main small{color:var(--lx68-muted)}
body.ll-theme-ready main h1,
body.ll-theme-ready main h2,
body.ll-theme-ready main h3,
body.ll-theme-ready main h4,
body.ll-theme-ready main h5,
body.ll-theme-ready main h6{color:var(--lx68-ink);letter-spacing:-.025em}
body.ll-theme-ready main a:not(.btn):not(.ll-btn){text-underline-offset:3px}

/* Automated contrast guard: JS marks genuinely dark surfaces. */
.ll-auto-dark-surface{color:#f8fbff!important}
.ll-auto-dark-surface :where(h1,h2,h3,h4,h5,h6,strong,b,label,legend,dt,th){color:#fff!important}
.ll-auto-dark-surface :where(p,li,dd,small,.muted,.text-muted,.subtitle,.description,.help-text){color:#c8d7ea!important}
.ll-auto-dark-surface a:not(.btn):not(.ll-btn){color:#8fc5ff!important}
.ll-auto-dark-surface :where(input,select,textarea){background:rgba(255,255,255,.98)!important;color:#111827!important;border-color:rgba(255,255,255,.22)!important}
.ll-auto-dark-surface :where(input,textarea)::placeholder{color:#7b8798!important}

/* Known dark premium surfaces — explicit safeguards. */
:where(.lx-account-hero,.ll-footer,.ll-home-cta,.premium-cta,.dark-section,.hero-dark,.ll-dark-panel,.ll-banner-overlay){color:#f8fbff!important}
:where(.lx-account-hero,.ll-footer,.ll-home-cta,.premium-cta,.dark-section,.hero-dark,.ll-dark-panel,.ll-banner-overlay) :where(h1,h2,h3,h4,h5,h6,strong,b,label){color:#fff!important}
:where(.lx-account-hero,.ll-footer,.ll-home-cta,.premium-cta,.dark-section,.hero-dark,.ll-dark-panel,.ll-banner-overlay) :where(p,span,small,li){color:#c8d7ea}
.ll-footer a{color:#dbe7f7!important}.ll-footer a:hover{color:#ffe17c!important}
.ll-footer h4,.ll-footer strong{color:#fff!important}.ll-footer span,.ll-footer li{color:#b8cae0!important}

/* Generic page shells */
body.ll-theme-ready main>.ll-container,
body.ll-theme-ready main>.container{padding-top:30px;padding-bottom:34px}
.page-header,.section-header,.content-header,.account-page-header{
  margin-bottom:22px;padding:25px 28px;border:1px solid var(--lx68-line);border-radius:26px;
  background:linear-gradient(145deg,#fff,#f8fafc);box-shadow:0 14px 40px rgba(15,23,42,.065)
}
.page-header p,.section-header p,.content-header p{max-width:840px;line-height:1.7}

/* White surfaces must never inherit white text from older styles. */
:where(.card,.ll-card,.lx-card,.product-card,.ll-product-card,.service-card,.feature-card,.category-card,.pricing-card,.hosting-card,.server-card,.domain-card,.order-card,.invoice-card,.license-card,.support-card,.profile-card,.address-card,.download-card):not(.ll-auto-dark-surface){color:var(--lx68-ink)!important}
:where(.card,.ll-card,.lx-card,.product-card,.ll-product-card,.service-card,.feature-card,.category-card,.pricing-card,.hosting-card,.server-card,.domain-card,.order-card,.invoice-card,.license-card,.support-card,.profile-card,.address-card,.download-card):not(.ll-auto-dark-surface) :where(h1,h2,h3,h4,h5,h6,strong,b,label,legend,dt){color:var(--lx68-ink)!important}
:where(.card,.ll-card,.lx-card,.product-card,.ll-product-card,.service-card,.feature-card,.category-card,.pricing-card,.hosting-card,.server-card,.domain-card,.order-card,.invoice-card,.license-card,.support-card,.profile-card,.address-card,.download-card):not(.ll-auto-dark-surface) :where(p,li,dd,small,.muted,.text-muted,.description){color:var(--lx68-muted)!important}

/* Product, hosting, server and domain cards */
.product-card,.ll-product-card,.hosting-card,.server-card,.domain-card,.pricing-card{
  position:relative;background:linear-gradient(180deg,#fff 0%,#fbfcfe 100%)!important;
}
.product-card:before,.ll-product-card:before,.hosting-card:before,.server-card:before,.domain-card:before,.pricing-card:before{
  content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#d9ad2f,#ffd967,#286fdf);opacity:.86
}
.product-card img,.ll-product-card img,.product-image img{background:#fff;object-fit:contain}
.price,.product-price,.amount,.total-price{color:#0b3265!important;font-weight:850!important}
.badge,.status-badge,.pill,.tag{font-weight:800;letter-spacing:.015em}

/* Better account pages */
.lx-account-main{color:var(--lx68-ink)}
.lx-account-main>section:not(.lx-account-hero),
.lx-account-main>.card,.lx-account-main>.ll-card{
  padding:22px!important;border-radius:24px!important;background:linear-gradient(180deg,#fff,#fbfcfe)!important
}
.lx-account-main .card-header,.lx-account-main .section-title{
  padding-bottom:14px;margin-bottom:18px;border-bottom:1px solid var(--lx68-line)
}
.lx-account-main .empty-state,.empty-state{
  padding:42px 24px!important;text-align:center;border:1px dashed #cbd5e1;border-radius:20px;background:#f8fafc;color:var(--lx68-muted)!important
}
.lx-account-main .empty-state i,.empty-state i{font-size:34px;color:#d3a928;margin-bottom:12px}

/* Tables: ensure contrast in every state */
table{color:var(--lx68-ink)!important}
thead th{color:#344054!important;background:#f5f7fa!important}
tbody td{color:#273142!important;background:#fff}
tbody tr:hover td{background:#fffaf0!important;color:#111827!important}
table a{font-weight:750;color:#175cc5!important}

/* Alerts and status messaging */
.alert,.notice,.message,.flash-message{border-radius:16px!important;border-width:1px!important;box-shadow:0 8px 24px rgba(15,23,42,.05)}
.alert-success,.notice-success{background:#ecfdf3!important;color:#087443!important;border-color:#a6f4c5!important}
.alert-danger,.alert-error,.notice-error{background:#fff1f2!important;color:#a3192e!important;border-color:#fecdd3!important}
.alert-warning,.notice-warning{background:#fffaeb!important;color:#8b5d00!important;border-color:#fedf89!important}
.alert-info,.notice-info{background:#eff8ff!important;color:#175cd3!important;border-color:#b2ddff!important}

/* Buttons */
.btn-primary,.ll-btn.gold,.btn.gold{background:linear-gradient(135deg,#e2b93f,#ffd96b)!important;color:#111827!important;border-color:#d2a629!important;box-shadow:0 10px 24px rgba(212,175,55,.24)!important}
.btn-primary:hover,.ll-btn.gold:hover,.btn.gold:hover{filter:brightness(1.03);box-shadow:0 14px 30px rgba(212,175,55,.32)!important}
.btn-secondary,.ll-btn.ghost{background:#fff!important;color:#182230!important;border:1px solid #d9e1ec!important}
.btn-danger{background:#d92d20!important;color:#fff!important}

/* Form grouping */
.form-group,.field-group,.form-row>div{position:relative}
label{font-weight:760;color:#344054}
input,select,textarea{font-size:15px!important}
input:disabled,select:disabled,textarea:disabled{background:#f2f4f7!important;color:#667085!important;opacity:1!important}

/* Checkout/cart/account summary panels */
.cart-summary,.checkout-summary,.order-summary,.invoice-summary,.license-summary{
  border:1px solid var(--lx68-line)!important;border-radius:24px!important;background:linear-gradient(155deg,#fff,#f7f9fc)!important;box-shadow:var(--lx68-shadow)!important
}
.cart-summary :where(h2,h3,strong),.checkout-summary :where(h2,h3,strong),.order-summary :where(h2,h3,strong){color:var(--lx68-ink)!important}

/* Pagination */
.pagination{display:flex;gap:8px;flex-wrap:wrap}
.pagination a,.pagination span{display:grid;place-items:center;min-width:42px;height:42px;padding:0 12px;border-radius:12px;border:1px solid var(--lx68-line);background:#fff;color:#344054!important;font-weight:750;text-decoration:none}
.pagination .active,.pagination a:hover{background:#0d2d59!important;color:#fff!important;border-color:#0d2d59!important}

/* Dark theme — coherent and fully readable */
body[data-theme="dark"] main{color:#eef4fc!important}
body[data-theme="dark"] main :where(h1,h2,h3,h4,h5,h6,strong,b,label,legend,dt){color:#f8fbff}
body[data-theme="dark"] main :where(p,li,dd,small,.muted,.text-muted,.description){color:#aebfd4}
body[data-theme="dark"] :where(.card,.ll-card,.lx-card,.product-card,.ll-product-card,.service-card,.feature-card,.category-card,.pricing-card,.hosting-card,.server-card,.domain-card,.order-card,.invoice-card,.license-card,.support-card,.profile-card,.address-card,.download-card),
body[data-theme="dark"] .lx-account-main>section:not(.lx-account-hero){background:linear-gradient(180deg,#0d1b2e,#0a1729)!important;border-color:rgba(255,255,255,.09)!important;color:#eef4fc!important}
body[data-theme="dark"] :where(.card,.ll-card,.lx-card,.product-card,.ll-product-card,.service-card,.feature-card,.category-card,.pricing-card,.hosting-card,.server-card,.domain-card,.order-card,.invoice-card,.license-card) :where(h1,h2,h3,h4,h5,h6,strong,b,label){color:#fff!important}
body[data-theme="dark"] table,body[data-theme="dark"] tbody td{background:#0d1b2e!important;color:#e7eef8!important;border-color:rgba(255,255,255,.08)!important}
body[data-theme="dark"] thead th{background:#13243b!important;color:#bdd0e7!important}
body[data-theme="dark"] tbody tr:hover td{background:#152843!important;color:#fff!important}
body[data-theme="dark"] .empty-state{background:#0b182a!important;border-color:rgba(255,255,255,.12)!important;color:#aebfd4!important}

/* Mobile page refinement */
@media(max-width:760px){
  body.ll-theme-ready main>.ll-container,body.ll-theme-ready main>.container{padding-top:18px;padding-bottom:24px}
  .page-header,.section-header,.content-header,.account-page-header{padding:20px 17px;border-radius:20px}
  .page-header h1,.section-header h1,.content-header h1{font-size:clamp(25px,8vw,34px)!important}
  .lx-account-main>section:not(.lx-account-hero),.lx-account-main>.card,.lx-account-main>.ll-card{padding:17px!important;border-radius:20px!important}
  .card,.ll-card,.lx-card,.product-card,.ll-product-card,.service-card,.feature-card,.category-card,.pricing-card,.hosting-card,.server-card,.domain-card{border-radius:19px!important}
  .btn,.ll-btn,button[type="submit"]{min-height:46px}
  .ll-whatsapp-float{max-width:calc(100vw - 24px)!important;right:12px!important;bottom:14px!important}
}
