/* QUBYX customer account portal */
.qaccount { min-height:70vh; padding:clamp(34px,5vw,64px) 0 clamp(70px,8vw,112px); background:var(--q-bg); color:var(--q-text); }
.qaccount__wrap { width:100%; max-width:var(--q-nav-content-max); margin:0 auto; padding:0 2rem; }
.qaccount section + section::before { display:none !important; content:none !important; }
[data-theme="light"] .qaccount .qaccount__summary,
[data-theme="light"] .qaccount .qaccount__section,
[data-theme="light"] .qaccount .qaccount__endpoint,
[data-theme="light"] .qaccount .qaccount__empty { background-color:#fcfdff !important; }
.qaccount h1,.qaccount h2,.qaccount h3,.qaccount p { margin-top:0; }
.qaccount__eyebrow { display:block; margin-bottom:8px; color:var(--q-accent); font-size:.68rem; font-weight:750; letter-spacing:.11em; text-transform:uppercase; }
.qaccount__head { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:26px; }
.qaccount__head h1 { margin-bottom:6px; font-size:clamp(1.9rem,3vw,2.45rem); line-height:1.08; letter-spacing:-.035em; }
.qaccount__head p { margin:0; color:var(--q-text-muted); font-size:.88rem; }
.qaccount__signout { display:inline-flex; align-items:center; gap:7px; color:var(--q-text-muted); text-decoration:none; font-size:.8rem; }
.qaccount__signout:hover { color:var(--q-text); }
.qaccount__nav { display:flex; gap:4px; overflow-x:auto; margin-bottom:28px; padding:5px; border:1px solid var(--q-border-mid); border-radius:12px; background:var(--q-surface); }
.qaccount__nav a { min-height:38px; display:inline-flex; align-items:center; padding:0 15px; border-radius:8px; color:var(--q-text-muted); font-size:.76rem; font-weight:680; text-decoration:none; white-space:nowrap; }
.qaccount__nav a:hover,.qaccount__nav a.is-active { background:var(--q-bg); color:var(--q-text); }
.qaccount__notice { margin-bottom:18px; padding:13px 15px; border:1px solid var(--q-border-mid); border-left:3px solid #2f9e6f; border-radius:11px; background:var(--q-surface); font-size:.84rem; }
.qaccount__notice.is-error { border-left-color:#e5484d; }
.qaccount__summary { display:grid; grid-template-columns:repeat(3,1fr); margin-bottom:22px; border:1px solid var(--q-border-mid); border-radius:15px; background:var(--q-surface); overflow:hidden; }
.qaccount__summary div { min-height:96px; padding:20px; border-left:1px solid var(--q-border); }
.qaccount__summary div:first-child { border-left:0; }
.qaccount__summary span { display:block; margin-bottom:10px; color:var(--q-text-muted); font-size:.72rem; }
.qaccount__summary strong { font-size:1.55rem; font-variant-numeric:tabular-nums; }
.qaccount__section { margin-top:22px; padding:clamp(20px,2.5vw,28px); border:1px solid var(--q-border-mid); border-radius:14px; background:var(--q-surface); scroll-margin-top:calc(var(--q-header-height) + 22px); }
.qaccount__section-head { display:flex; align-items:flex-start; justify-content:space-between; gap:22px; margin-bottom:18px; }
.qaccount__section-head h2 { margin-bottom:4px; font-size:1.15rem; }
.qaccount__section-head p { margin:0; color:var(--q-text-muted); font-size:.78rem; line-height:1.5; }
.qaccount__section-head > a { color:var(--q-accent); font-size:.76rem; font-weight:650; text-decoration:none; white-space:nowrap; }
.qaccount__plans { display:grid; gap:1px; border:1px solid var(--q-border); border-radius:12px; background:var(--q-border); overflow:hidden; }
.qaccount__plan { display:grid; grid-template-columns:42px minmax(0,1fr) auto; align-items:center; gap:14px; padding:16px; background:var(--q-bg); }
.qaccount__plan-icon,.qaccount__product-icon,.qaccount__empty-icon { display:grid; place-items:center; border:1px solid var(--q-border); background:var(--q-surface); color:var(--q-accent); }
.qaccount__plan-icon { width:42px; height:42px; border-radius:11px; }
.qaccount__plan-icon iconify-icon { font-size:1.2rem; }
.qaccount__plan-title { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.qaccount__plan-title h3 { margin:0; font-size:.92rem; }
.qaccount__plan-title span { padding:3px 7px; border-radius:6px; background:rgba(47,158,111,.12); color:#2f9e6f; font-size:.62rem; font-weight:750; }
.qaccount__plan-title .status-grace { background:rgba(229,143,0,.12); color:#b26c00; }
.qaccount__plan-title .status-cancelled,.qaccount__plan-title .status-expired,.qaccount__plan-title .status-refunded,.qaccount__plan-title .status-revoked { background:rgba(229,72,77,.1); color:#c7353b; }
.qaccount__plan-body > p { margin:5px 0 0; color:var(--q-text-muted); font-size:.74rem; }
.qaccount__plan-meta { display:flex; gap:7px; margin-top:8px; font-size:.7rem; }
.qaccount__plan-meta span { color:var(--q-text-muted); }
.qaccount__plan-actions form { margin:0; }
.qaccount__text-action,.qaccount__primary-small { min-height:34px; padding:0 11px; border-radius:8px; font-size:.7rem; font-weight:650; cursor:pointer; }
.qaccount__text-action { border:1px solid var(--q-border-mid); background:transparent; color:var(--q-text-muted); }
.qaccount__text-action:hover { border-color:#e5484d; color:#c7353b; }
.qaccount__primary-small { border:0; background:var(--q-accent); color:#f7fbff; }
.qaccount__credit-count { text-align:right; font-size:1.25rem; font-variant-numeric:tabular-nums; }
.qaccount__credit-count small { display:block; color:var(--q-text-muted); font-size:.64rem; font-weight:600; }
.qaccount__device { display:flex; align-items:center; gap:11px; margin-top:14px; padding:13px 15px; border-radius:11px; background:var(--q-bg); }
.qaccount__device > iconify-icon { color:var(--q-accent); font-size:1.25rem; }
.qaccount__device div { display:grid; gap:2px; }
.qaccount__device span,.qaccount__device small { color:var(--q-text-muted); font-size:.66rem; }
.qaccount__device strong { font-size:.79rem; }
.qaccount__product-list,.qaccount__orders { display:grid; gap:1px; border:1px solid var(--q-border); border-radius:12px; overflow:hidden; background:var(--q-border); }
.qaccount__product { display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; gap:12px; padding:13px 15px; background:var(--q-bg); }
.qaccount__product-icon { width:38px; height:38px; border-radius:10px; }
.qaccount__product strong,.qaccount__product span { display:block; }
.qaccount__product strong { font-size:.8rem; }
.qaccount__product span { margin-top:3px; color:var(--q-text-muted); font-size:.68rem; }
.qaccount__product > a { color:var(--q-text-muted); }
.qaccount__product-empty { min-height:92px; display:grid; grid-template-columns:44px minmax(0,1fr) auto; align-items:center; gap:15px; padding:16px; border-radius:11px; background:var(--q-bg); }
.qaccount__product-empty .qaccount__empty-icon { width:44px; height:44px; margin:0; border-radius:10px; }
.qaccount__product-empty h3 { margin:0 0 4px; font-size:.88rem; }
.qaccount__product-empty p { margin:0; color:var(--q-text-muted); font-size:.74rem; line-height:1.5; }
.qaccount__product-empty > a { min-height:38px; display:inline-flex; align-items:center; gap:7px; padding:0 13px; border:1px solid var(--q-border-mid); border-radius:8px; color:var(--q-text); font-size:.72rem; font-weight:700; text-decoration:none; white-space:nowrap; }
.qaccount__order { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:16px; padding:14px 15px; background:var(--q-bg); }
.qaccount__order-main { display:grid; grid-template-columns:minmax(130px,1fr) auto; gap:4px 14px; color:var(--q-text); text-decoration:none; }
.qaccount__order-main span,.qaccount__order-main strong { font-size:.8rem; }
.qaccount__order-main strong { text-align:right; font-variant-numeric:tabular-nums; }
.qaccount__order-main small { grid-column:1 / -1; color:var(--q-text-muted); font-size:.67rem; }
.qaccount__request-state { color:var(--q-text-muted); font-size:.68rem; }
.qaccount__refund { position:relative; }
.qaccount__refund summary { color:var(--q-accent); font-size:.7rem; font-weight:650; cursor:pointer; list-style:none; }
.qaccount__refund summary::-webkit-details-marker { display:none; }
.qaccount__refund form { position:absolute; z-index:4; top:28px; right:0; width:min(310px,80vw); padding:14px; border:1px solid var(--q-border-mid); border-radius:12px; background:var(--q-surface); box-shadow:0 18px 50px rgba(7,19,31,.15); }
.qaccount__refund label { display:block; margin-bottom:6px; color:var(--q-text-muted); font-size:.7rem; }
.qaccount__refund textarea { width:100%; padding:9px; border:1px solid var(--q-border-mid); border-radius:8px; background:var(--q-bg); color:var(--q-text); resize:vertical; }
.qaccount__refund button { min-height:36px; margin-top:8px; padding:0 12px; border:0; border-radius:8px; background:var(--q-text); color:var(--q-bg); font-size:.72rem; font-weight:700; cursor:pointer; }
.qaccount__settings { display:flex; align-items:center; justify-content:space-between; gap:28px; margin-top:22px; padding:22px 2px 0; border-top:1px solid var(--q-border); }
.qaccount__settings h2 { margin-bottom:4px; font-size:1rem; }
.qaccount__settings p { margin:0; color:var(--q-text-muted); font-size:.75rem; }
.qaccount__settings > div:last-child { display:flex; gap:9px; flex-wrap:wrap; }
.qaccount__settings a { min-height:38px; display:inline-flex; align-items:center; padding:0 12px; border:1px solid var(--q-border-mid); border-radius:9px; color:var(--q-text); font-size:.72rem; font-weight:650; text-decoration:none; }
.qaccount__empty { padding:46px 24px; border:1px solid var(--q-border-mid); border-radius:15px; background:var(--q-surface); text-align:center; }
.qaccount__empty-icon { width:48px; height:48px; margin:0 auto 14px; border-radius:12px; }
.qaccount__empty h2 { margin-bottom:7px; font-size:1.2rem; }
.qaccount__empty p { max-width:480px; margin:0 auto 18px; color:var(--q-text-muted); font-size:.8rem; line-height:1.55; }
.qaccount__empty a { min-height:42px; display:inline-flex; align-items:center; gap:7px; padding:0 16px; border-radius:10px; background:var(--q-accent); color:#f7fbff; font-size:.78rem; font-weight:700; text-decoration:none; }
.qaccount__muted { color:var(--q-text-muted); font-size:.8rem; }
.qaccount__endpoint { padding:clamp(20px,3vw,30px); border:1px solid var(--q-border-mid); border-radius:14px; background:var(--q-surface); }
.qaccount__endpoint--edit-account { max-width:860px; padding:clamp(24px,3vw,34px); }
.qaccount__endpoint-head { margin-bottom:26px; padding-bottom:20px; border-bottom:1px solid var(--q-border); }
.qaccount__endpoint-head h2 { margin:0 0 5px; font-size:1.18rem; line-height:1.25; letter-spacing:-.015em; }
.qaccount__endpoint-head p { margin:0; color:var(--q-text-muted); font-size:.76rem; line-height:1.5; }

/* WooCommerce authentication and standard account endpoints */
.qaccount__auth-head { max-width:650px; margin:0 auto 26px; text-align:center; }
.qaccount__auth-head h1 { margin-bottom:10px; font-size:clamp(1.8rem,4vw,3rem); letter-spacing:-.04em; }
.qaccount__auth-head p { margin:0; color:var(--q-text-muted); font-size:.86rem; line-height:1.6; }
.qaccount__auth { max-width:920px; margin:0 auto; }
.qaccount__auth .woocommerce { display:block !important; }
.qaccount__auth .u-columns { display:grid !important; grid-template-columns:1fr 1fr; gap:18px; }
.qaccount__auth .u-columns::before,.qaccount__auth .u-columns::after { display:none !important; content:none !important; }
.qaccount__auth .u-column1,.qaccount__auth .u-column2 { float:none !important; width:auto !important; margin:0 !important; padding:clamp(20px,3vw,30px); border:1px solid var(--q-border-mid); border-radius:15px; background:var(--q-surface); }
.qaccount__auth h2 { margin-bottom:18px; font-size:1.15rem; }
.qaccount__auth form.login,.qaccount__auth form.register,.qaccount__auth form.lost_reset_password { margin:0; padding:0; border:0; }
.qaccount__auth label,.qaccount__endpoint label { display:block; margin-bottom:7px; color:var(--q-text); font-size:.75rem; line-height:1.4; font-weight:680; }
.qaccount__auth input.input-text,.qaccount__endpoint input.input-text,.qaccount__endpoint select { width:100%; min-height:46px; padding:0 13px; border:1px solid var(--q-border-mid); border-radius:8px; background:var(--q-bg); color:var(--q-text); font:inherit; font-size:.86rem; line-height:1.4; }
.qaccount__auth button.button,.qaccount__endpoint button.button { min-height:44px; padding:0 18px; border:0; border-radius:8px; background:var(--q-accent); color:#f7fbff; font:inherit; font-size:.78rem; font-weight:720; cursor:pointer; }
.qaccount__auth .woocommerce-LostPassword a { color:var(--q-accent); font-size:.75rem; }
.qaccount a:focus-visible,.qaccount button:focus-visible,.qaccount summary:focus-visible,.qaccount textarea:focus-visible,.qaccount input:focus-visible { outline:2px solid var(--q-accent); outline-offset:2px; }

/* Profile endpoint */
.qaccount__endpoint--edit-account .woocommerce-EditAccountForm { display:grid; grid-template-columns:1fr 1fr; gap:18px 20px; }
.qaccount__endpoint--edit-account .woocommerce-EditAccountForm > .clear { display:none; }
.qaccount__endpoint--edit-account .woocommerce-EditAccountForm > .form-row { float:none; width:auto; margin:0; padding:0; }
.qaccount__endpoint--edit-account .woocommerce-EditAccountForm > .form-row-wide { grid-column:1 / -1; }
.qaccount__endpoint--edit-account .woocommerce-EditAccountForm > fieldset { grid-column:1 / -1; display:grid; gap:16px; margin:4px 0 0; padding:22px 0 0; border:0; border-top:1px solid var(--q-border); }
.qaccount__endpoint--edit-account .woocommerce-EditAccountForm > fieldset legend { width:100%; margin:0 0 2px; padding:0; color:var(--q-text); font-size:.92rem; line-height:1.35; font-weight:720; }
.qaccount__endpoint--edit-account .woocommerce-EditAccountForm > fieldset .form-row { float:none; width:100%; margin:0; padding:0; }
.qaccount__endpoint--edit-account .woocommerce-EditAccountForm em { display:block; margin-top:7px; color:var(--q-text-muted); font-size:.71rem; line-height:1.45; font-style:normal; }
.qaccount__endpoint--edit-account .woocommerce-EditAccountForm > p:last-child { grid-column:1 / -1; margin:4px 0 0; }
.qaccount__endpoint--edit-account .woocommerce-EditAccountForm button.button { min-width:132px; }

@media (max-width:760px) {
  .qaccount__wrap { padding:0 1rem; }
  .qaccount__head { align-items:flex-start; }
  .qaccount__summary { grid-template-columns:1fr; }
  .qaccount__summary div { min-height:auto; border-left:0; border-top:1px solid var(--q-border); }
  .qaccount__summary div:first-child { border-top:0; }
  .qaccount__plan { grid-template-columns:38px minmax(0,1fr); align-items:start; }
  .qaccount__plan-actions,.qaccount__credit-count { grid-column:2; justify-self:start; text-align:left; }
  .qaccount__order { grid-template-columns:1fr; }
  .qaccount__refund form { left:0; right:auto; }
  .qaccount__settings { align-items:flex-start; flex-direction:column; }
  .qaccount__auth .u-columns { grid-template-columns:1fr; }
  .qaccount__product-empty { grid-template-columns:42px minmax(0,1fr); }
  .qaccount__product-empty > a { grid-column:2; justify-self:start; }
  .qaccount__endpoint--edit-account .woocommerce-EditAccountForm { grid-template-columns:1fr; gap:16px; }
  .qaccount__endpoint--edit-account .woocommerce-EditAccountForm > .form-row-wide,
  .qaccount__endpoint--edit-account .woocommerce-EditAccountForm > fieldset,
  .qaccount__endpoint--edit-account .woocommerce-EditAccountForm > p:last-child { grid-column:1; }
}

@media (max-width:440px) {
  .qaccount__head { display:block; }
  .qaccount__signout { margin-top:14px; }
  .qaccount__section-head { display:block; }
  .qaccount__section-head > a { display:inline-block; margin-top:9px; }
}

/* Standalone signed-out account access */
html:has(body.qauth-only),
body.qauth-only { min-height:100%; }
body.qauth-only {
  margin:0;
  min-height:100dvh;
  background:var(--q-bg);
  color:var(--q-text);
}
.qauth-shell {
  min-height:100dvh;
  display:grid;
  place-items:center;
  padding:clamp(18px,4vw,42px);
}
.qauth-card {
  width:min(100%,430px);
  padding:8px clamp(22px,5vw,30px) 28px;
  border:1px solid var(--q-border-mid);
  border-radius:17px;
  background:var(--q-surface);
  box-shadow:0 24px 70px rgba(7,19,31,.09);
}
.qauth-tabs {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4px;
  margin:0 0 25px;
  padding:5px;
  border-radius:11px;
  background:var(--q-bg);
}
.qauth-tab {
  min-height:40px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--q-text-muted);
  font:inherit;
  font-size:.79rem;
  font-weight:700;
  cursor:pointer;
}
.qauth-tab.is-active {
  background:var(--q-surface);
  color:var(--q-text);
  box-shadow:0 1px 4px rgba(7,19,31,.08);
}
.qauth-tab:focus-visible {
  outline:2px solid var(--q-accent);
  outline-offset:2px;
}
body.qauth-only .qaccount__auth {
  max-width:none;
  margin:0;
}
body.qauth-only .qaccount__auth .woocommerce,
body.qauth-only .qaccount__auth .u-columns {
  display:block !important;
}
body.qauth-only .qaccount__auth .u-columns::before,
body.qauth-only .qaccount__auth .u-columns::after {
  display:none !important;
  content:none !important;
}
body.qauth-only .qaccount__auth .u-column1,
body.qauth-only .qaccount__auth .u-column2 {
  float:none !important;
  width:100% !important;
  margin:0 !important;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
body.qauth-only .qaccount__auth .u-column1[hidden],
body.qauth-only .qaccount__auth .u-column2[hidden] {
  display:none !important;
}
body.qauth-only .qaccount__auth h2 {
  display:none;
}
body.qauth-only .qaccount__auth form.login,
body.qauth-only .qaccount__auth form.register,
body.qauth-only .qaccount__auth form.lost_reset_password {
  margin:0;
  padding:0;
  border:0;
}
body.qauth-only .qaccount__auth .form-row {
  float:none;
  width:100%;
  margin:0 0 15px;
  padding:0;
}
body.qauth-only .qaccount__auth label {
  display:block;
  margin-bottom:7px;
  color:var(--q-text);
  font-size:.72rem;
  font-weight:700;
}
body.qauth-only .qaccount__auth input.input-text {
  width:100%;
  min-height:48px;
  padding:0 13px;
  border:1px solid var(--q-border-mid);
  border-radius:9px;
  background:var(--q-bg);
  color:var(--q-text);
  font:inherit;
  font-size:.86rem;
}
body.qauth-only .qaccount__auth input.input-text:hover {
  border-color:color-mix(in srgb,var(--q-text-muted) 58%,transparent);
}
body.qauth-only .qaccount__auth input.input-text:focus {
  border-color:var(--q-accent);
  outline:2px solid color-mix(in srgb,var(--q-accent) 22%,transparent);
  outline-offset:1px;
}
body.qauth-only .qaccount__auth .show-password-input {
  top:50%;
  transform:translateY(-50%);
}
body.qauth-only .qaccount__auth .woocommerce-form-login__rememberme {
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 12px;
  color:var(--q-text-muted);
  font-size:.72rem;
  font-weight:600;
}
body.qauth-only .qaccount__auth .woocommerce-form-login__rememberme input {
  width:16px;
  height:16px;
  margin:0;
  accent-color:var(--q-accent);
}
body.qauth-only .qaccount__auth button.button {
  width:100%;
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:0;
  padding:0 16px;
  border:0;
  border-radius:9px;
  background:var(--q-accent);
  color:#f7fbff;
  font-size:.82rem;
  font-weight:750;
  cursor:pointer;
}
body.qauth-only .qaccount__auth button.button:hover {
  filter:brightness(.94);
}
body.qauth-only .qaccount__auth .woocommerce-LostPassword {
  margin:2px 0 0;
  text-align:center;
}
body.qauth-only .qaccount__auth .woocommerce-LostPassword a,
body.qauth-only .qaccount__auth .woocommerce-privacy-policy-link {
  color:var(--q-accent);
  font-size:.72rem;
  text-decoration:none;
}
body.qauth-only .qaccount__auth .woocommerce-privacy-policy-text {
  margin:3px 0 15px;
  color:var(--q-text-muted);
  font-size:.72rem;
  line-height:1.55;
}
body.qauth-only .qaccount__auth .woocommerce-error,
body.qauth-only .qaccount__auth .woocommerce-message,
body.qauth-only .qaccount__auth .woocommerce-info {
  margin:0 0 18px;
  padding:12px 14px 12px 38px;
  border:1px solid var(--q-border-mid);
  border-radius:9px;
  background:var(--q-bg);
  color:var(--q-text);
  font-size:.72rem;
  line-height:1.45;
}
body.qauth-only #qubyx-assistant,
body.qauth-only .qubyx-assistant,
body.qauth-only [class*="qubyx-assistant"],
body.qauth-only [id*="qubyx-assistant"],
body.qauth-only .wpml-ls-statics-footer {
  display:none !important;
}
@media (max-width:480px) {
  .qauth-shell { padding:14px; }
  .qauth-card { padding:7px 20px 23px; border-radius:14px; box-shadow:none; }
}
@media (prefers-reduced-motion:reduce) {
  .qauth-tab,
  body.qauth-only .qaccount__auth button.button { transition:none !important; }
}
