:root{
  --bg:#0B0D12;--panel:rgba(0,0,0,.44);--line:#223151;--border:#1b2539;
  --txt:#e7ecff;--mut:#b9c7e9;--brand:#2563eb;--brand2:#3b82f6;--ok:#2DFFB3;
}
.fa-acc-root{color:var(--txt)}
.fa-wrap{max-width:1180px;margin:0 auto;padding:24px 16px}
.fa-acc-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.fa-acc-id{display:flex;gap:12px;align-items:center}
.fa-ava img,.fa-ava{width:64px;height:64px;border-radius:14px;overflow:hidden;background:#0e131f;border:1px solid var(--border)}
.fa-hello{font-size:12px;color:#8fb3ff}
.fa-name{margin:2px 0;font-size:22px;font-weight:800}
.fa-micro{color:var(--mut);font-size:13px}
.fa-sec-chip{border:1px solid #2a3a5e;background:#0f1627;border-radius:999px;padding:6px 10px;font-size:12px}

.fa-acc-grid{display:grid;gap:16px;grid-template-columns:minmax(0,1fr)}
@media(min-width:1024px){.fa-acc-grid{grid-template-columns:280px minmax(0,1fr)}}

.fa-card{border:1px solid var(--border);background:var(--panel);backdrop-filter:blur(6px);border-radius:16px;padding:14px}
.fa-card-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.fa-link{color:#c9dcff;text-decoration:none}
.fa-btn{display:inline-flex;align-items:center;justify-content:center;height:40px;border-radius:12px;padding:0 14px;
  font-weight:800;background:linear-gradient(90deg,var(--brand),var(--brand2));color:#fff;text-decoration:none;border:0;
  box-shadow:0 14px 34px rgba(37,99,235,.28)}
.fa-btn-outline{display:inline-flex;align-items:center;justify-content:center;height:40px;border-radius:12px;padding:0 14px;
  font-weight:800;background:#0e131f;border:1px solid #2a3a5e;color:#cfe1ff;text-decoration:none}
.fa-menu ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.fa-menu li a{display:flex;gap:10px;align-items:center;border:1px solid var(--border);background:#0e131f;border-radius:12px;padding:10px;text-decoration:none;color:var(--txt)}
.fa-menu li.is-active a{border-color:var(--brand)}
.fa-help{margin-top:10px;padding:10px;border:1px dashed #ffffff20;border-radius:12px;background:#0e131f}
.fa-help .t{font-size:13px;color:#cfe1ff;margin-bottom:8px}

.kpis{display:grid;gap:10px;grid-template-columns:repeat(3,1fr)}
.kpi{border:1px solid var(--border);background:#0e131f;border-radius:12px;padding:12px}
.kpi .v{font-size:18px;font-weight:800}
.kpi .l{color:#9ab0e6;font-size:12px}

.fa-orders{display:flex;flex-direction:column;gap:8px}
.fa-order{display:flex;justify-content:space-between;gap:10px;border:1px solid var(--border);background:#0e131f;border-radius:12px;padding:10px}
.fa-order .id{font-weight:800}
.fa-order .mut{color:#9ab0e6;font-size:12px;margin-top:2px}
.fa-order .items{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.chip{border:1px solid #24324d;background:#0b101a;color:#cfe1ff;border-radius:999px;padding:4px 10px;font-size:12px}
.fa-order .sum{font-weight:800}
.fa-order .act{display:flex;gap:8px;justify-content:flex-end}

.fa-order-sum{display:grid;gap:8px;grid-template-columns:repeat(2,1fr);margin-bottom:10px}
.fa-subttl{margin:6px 0 8px;font-size:16px;font-weight:800}

.fa-creds{display:grid;gap:10px}
.cred{border:1px solid var(--border);background:#0e131f;border-radius:12px;padding:10px}
.cred .head{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:8px}
.cred .title{font-weight:800}
.cred .badge{border:1px solid #1b5237;background:#103023;color:#99f1c3;border-radius:999px;padding:4px 8px;font-size:12px}
.cred .rows{display:grid;gap:6px}
.cred .row{display:flex;justify-content:space-between;gap:10px;align-items:center;border-bottom:1px dashed #ffffff15;padding-bottom:6px}
.cred .row:last-child{border-bottom:0}
.cred .row span{color:#9ab0e6;font-size:13px}
.cred .val{display:flex;gap:8px;align-items:center}
code.t{background:#0b101a;border:1px solid #24324d;color:#e7ecff;border-radius:8px;padding:6px 8px;font-size:13px}
.mini{height:32px;padding:0 10px;border-radius:8px;border:1px solid #2a3a5e;background:#0f1627;color:#cfe1ff;font-weight:700}
.mini.reveal{border-style:dashed}
.toast{position:fixed;bottom:16px;right:16px;background:#101a2e;color:#e7ecff;border:1px solid #2a3a5e;border-radius:12px;padding:10px 12px;box-shadow:0 10px 30px rgba(0,0,0,.3);opacity:0;transform:translateY(6px);transition:.15s}
.toast.on{opacity:1;transform:translateY(0)}

.fa-lines{display:flex;flex-direction:column;gap:6px;margin-top:6px}
.fa-lines .line{display:flex;justify-content:space-between;border-bottom:1px dashed #ffffff12;padding:6px 0}
.fa-lines .line.total{border-top:1px solid #ffffff1c;border-bottom:0;font-weight:900}
.fa-lines .line.disc span{color:#ffb2c0}
.fa-form label{display:block;margin:0 0 6px}
.fa-form input, .fa-form select{width:100%;height:44px;border-radius:12px;border:1px solid var(--line);background:#0b101a;color:var(--txt);padding:0 12px}
.grid2{display:grid;gap:10px;grid-template-columns:1fr}
@media(min-width:640px){.grid2{grid-template-columns:1fr 1fr}}
.grid3{display:grid;gap:10px;grid-template-columns:1fr}
@media(min-width:900px){.grid3{grid-template-columns:repeat(3,1fr)}}
.empty{color:#cfe1ff}

/* ===== Base safety: never let content push the page wider than the screen ===== */
.fa-acc-root{overflow-x:clip;-webkit-text-size-adjust:100%}
.fa-acc-root *{box-sizing:border-box}
.fa-acc-grid>*,.fa-content,.fa-card,.fa-order>*,.cred,.cred .row>*{min-width:0}
.fa-content{display:flex;flex-direction:column;gap:16px}
.fa-name,.fa-order .id,.chip,code.t{overflow-wrap:anywhere}
.fa-card h2{margin:0;font-size:18px;font-weight:800}
.fa-card-h{gap:10px;flex-wrap:wrap}
.fa-sec-chip{white-space:nowrap;flex-shrink:0}
.fa-ava{flex-shrink:0}
.fa-menu li a .ico{width:22px;text-align:center;flex-shrink:0}
.fa-btn,.fa-btn-outline,.mini{cursor:pointer;-webkit-tap-highlight-color:transparent}
.fa-pager{margin-top:12px;display:flex;gap:6px;flex-wrap:wrap}
.fa-pager .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 10px;border:1px solid var(--border);border-radius:10px;background:#0e131f;color:var(--txt);text-decoration:none}
.fa-pager .page-numbers.current{border-color:var(--brand)}
.fa-order .left{flex:1 1 auto}
.cred .foot{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.cred .val{min-width:0;flex:1 1 auto;justify-content:flex-end}
code.t{display:block;min-width:0;flex:1 1 auto;text-align:right}
.fa-form input,.fa-form select{font-size:16px}
.fa-form fieldset.pw{border:1px solid var(--border);border-radius:12px;padding:12px;margin:12px 0;min-width:0}
.fa-form fieldset.pw legend{padding:0 6px;font-weight:700}
.fa-form .form-row{margin:0 0 12px}
.fa-lines .line{gap:12px}
.fa-lines .line span{min-width:0;overflow-wrap:anywhere}
.fa-lines .line b{flex-shrink:0;text-align:right}
.fa-card .bullets{margin:8px 0 0;padding:0;list-style:none;display:grid;gap:8px}

/* WooCommerce default endpoints (addresses, payment methods, notices) */
.fa-content .woocommerce-message,.fa-content .woocommerce-info,.fa-content .woocommerce-error{margin:0;list-style:none;border:1px solid var(--border);background:#0e131f;border-radius:12px;padding:12px 14px;color:var(--txt)}
.fa-content .woocommerce-error{border-color:#6b2a39}
.fa-content .woocommerce-Addresses{display:grid;gap:12px;grid-template-columns:minmax(0,1fr)}
.fa-content .woocommerce-Addresses .col-1,.fa-content .woocommerce-Addresses .col-2,
.fa-content .u-column1,.fa-content .u-column2{float:none;width:100%;max-width:100%;border:1px solid var(--border);background:#0e131f;border-radius:12px;padding:12px}
.fa-content .woocommerce-Address-title{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}
.fa-content .woocommerce-Address-title h3{margin:0;font-size:16px}
.fa-content .woocommerce-Address-title .edit{color:#c9dcff}
.fa-content table.shop_table{width:100%}
.fa-content .form-row{float:none!important;width:100%!important;display:block}
.fa-content .form-row input.input-text,.fa-content .form-row select,.fa-content .form-row textarea{width:100%;min-height:44px;font-size:16px;border-radius:12px;border:1px solid var(--line);background:#0b101a;color:var(--txt);padding:8px 12px}
.fa-content .woocommerce-address-fields__field-wrapper{display:grid;gap:10px;grid-template-columns:minmax(0,1fr)}
@media(min-width:640px){.fa-content .woocommerce-Addresses,.fa-content .woocommerce-address-fields__field-wrapper{grid-template-columns:repeat(2,minmax(0,1fr))}}
.fa-content .woocommerce-address-fields__field-wrapper .form-row-wide{grid-column:1/-1}
@media(max-width:639px){
  .fa-content table.shop_table_responsive thead{display:none}
  .fa-content table.shop_table_responsive tr{display:block;border-bottom:1px solid var(--border)}
  .fa-content table.shop_table_responsive td{display:flex;justify-content:space-between;gap:10px;text-align:right;border:0}
  .fa-content table.shop_table_responsive td::before{content:attr(data-title);color:#9ab0e6;text-align:left}
}

/* ===== Mobile (<1024px) ===== */
@media(max-width:1023px){
  .fa-wrap{padding:16px 14px calc(24px + env(safe-area-inset-bottom))}
  .fa-acc-head{gap:10px;margin-bottom:12px}
  .fa-acc-id{min-width:0;flex:1 1 auto}
  .fa-acc-id>div:last-child{min-width:0}
  .fa-ava img,.fa-ava{width:56px;height:56px;border-radius:12px}
  .fa-ava img{width:100%;height:100%;object-fit:cover}
  .fa-name{font-size:20px;line-height:1.2}
  .fa-micro{font-size:12px;line-height:1.35}

  /* sidebar dissolves: tabs on top, content, help at the bottom */
  .fa-nav{display:contents}
  .fa-menu{order:1;margin:0 -14px;padding:0 14px}
  .fa-content{order:2}
  .fa-help{order:3;margin-top:0}
  .fa-menu ul{flex-direction:row;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
  .fa-menu ul::-webkit-scrollbar{display:none}
  .fa-menu li{flex:0 0 auto;scroll-snap-align:start}
  .fa-menu li a{min-height:44px;padding:0 14px;gap:8px;border-radius:999px;white-space:nowrap;font-size:14px;font-weight:600}
  .fa-menu li.is-active a{background:rgba(37,99,235,.16);border-color:var(--brand)}
  .fa-help{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
  .fa-help .t{margin:0}
  .fa-help .fa-btn-outline{flex:1 1 220px;height:44px}
}

@media(max-width:639px){
  .fa-sec-chip{display:none}
  .fa-card{padding:12px}
  .kpis{gap:8px}
  .kpi{padding:10px 8px;text-align:center}
  .kpi .v{font-size:16px}
  .kpi .l{font-size:11px;line-height:1.25}

  .fa-order{flex-direction:column;gap:12px}
  .fa-order .right{display:flex;flex-direction:column;gap:10px}
  .fa-order .sum{font-size:16px}
  .fa-order .act{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .fa-order .act .fa-btn,.fa-order .act .fa-btn-outline{width:100%;height:44px;padding:0 8px;font-size:14px;text-align:center}

  .fa-btn,.fa-btn-outline{min-height:44px}
  .mini{height:40px;min-width:56px}
  .cred .head{flex-wrap:wrap}
  .cred .row{flex-direction:column;align-items:stretch;gap:6px}
  .cred .val{justify-content:stretch}
  code.t{text-align:left;padding:10px;font-size:14px}
  .cred .foot .fa-btn-outline{flex:1 1 100%}
  .fa-form button.fa-btn{width:100%}
  .toast{left:14px;right:14px;bottom:calc(14px + env(safe-area-inset-bottom));text-align:center}
}
@media(max-width:360px){
  .kpis{grid-template-columns:1fr 1fr}
  .kpis .kpi:last-child{grid-column:1/-1}
  .fa-order .act{grid-template-columns:1fr}
}

/* Back link on single order */
.fa-back{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;min-height:44px;padding:0 16px;border-radius:12px;border:1px solid #2a3a5e;background:#0e131f;color:#cfe1ff;font-weight:700;text-decoration:none}
.fa-back:hover{border-color:var(--brand);color:#fff}
@media(max-width:639px){.fa-back{align-self:stretch;justify-content:center}}

/* ===== Login / Register ===== */
.fa-auth{display:flex;justify-content:center;padding:8px 0}
.fa-auth *{box-sizing:border-box}
.fa-auth-card{width:100%;max-width:440px;border:1px solid var(--border);background:linear-gradient(180deg,rgba(18,24,40,.9),rgba(11,14,22,.95));border-radius:20px;padding:24px;box-shadow:0 24px 60px rgba(0,0,0,.35)}
.fa-auth-head{text-align:center;margin-bottom:18px}
.fa-auth-logo{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:14px;background:linear-gradient(135deg,var(--brand),#27A3FF);font-weight:900;font-size:20px;color:#fff;margin-bottom:10px}
.fa-auth-title{margin:0;font-size:24px;font-weight:800;color:var(--txt)}
.fa-auth-sub{margin:6px 0 0;font-size:12px;color:var(--mut)}
.fa-auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin-bottom:16px;border:1px solid var(--border);border-radius:14px;background:#0b101a}
.fa-auth-tab{height:42px;border:0;border-radius:10px;background:transparent;color:var(--mut);font-weight:700;font-size:15px;cursor:pointer}
.fa-auth-tab.is-active{background:#16213a;color:#fff;box-shadow:inset 0 0 0 1px var(--brand)}
.fa-social{display:grid;gap:10px;margin-bottom:4px}
.fa-social a,.fa-social button,.fa-social .nsl-container-buttons a{min-height:46px;border-radius:12px}
.fa-or{display:flex;align-items:center;gap:12px;margin:14px 0;color:#7f93c2;font-size:12px}
.fa-or::before,.fa-or::after{content:"";flex:1;height:1px;background:var(--border)}
.fa-auth-form{display:grid;gap:14px;margin:0}
.fa-auth.js .fa-auth-form[data-panel="register"],.fa-auth.js:not(.is-register) .fa-auth-form[data-panel="register"]{display:none}
.fa-auth.js.is-register .fa-auth-form[data-panel="register"]{display:grid}
.fa-auth.js.is-register .fa-auth-form[data-panel="login"]{display:none}
.fa-auth.js:not(.is-register) [data-show="register"],.fa-auth.js.is-register [data-show="login"]{display:none}
.fa-auth:not(.js) .fa-auth-tabs,.fa-auth:not(.js) .fa-auth-switch{display:none}
.fa-auth:not(.js) .fa-auth-form+.fa-auth-form{margin-top:24px;padding-top:24px;border-top:1px solid var(--border)}
.fa-field{margin:0;display:grid;gap:6px}
.fa-field label{font-size:13px;font-weight:600;color:#cfe1ff}
.fa-auth input[type=text],.fa-auth input[type=email],.fa-auth input[type=password]{width:100%;height:50px;padding:0 14px;font-size:16px;border-radius:12px;border:1px solid var(--line);background:#0b101a;color:var(--txt);outline:0;transition:border-color .15s,box-shadow .15s}
.fa-auth input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(37,99,235,.2)}
.fa-pass{position:relative;display:block}
.fa-pass input{padding-right:70px!important}
.fa-eye{position:absolute;right:6px;top:6px;height:38px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:#8fb3ff;font-weight:700;font-size:13px;cursor:pointer}
.fa-auth-row{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px}
.fa-check{display:inline-flex;align-items:center;gap:8px;min-height:36px;color:var(--mut);cursor:pointer}
.fa-check input{width:18px;height:18px;accent-color:var(--brand)}
.fa-auth-submit{width:100%;height:50px;font-size:16px}
.fa-auth-note,.fa-auth .woocommerce-privacy-policy-text{margin:0;font-size:12px;line-height:1.5;color:#8fa3d1}
.fa-auth .woocommerce-privacy-policy-text p{margin:0}
.fa-auth .woocommerce-privacy-policy-text a{color:#c9dcff}
.fa-auth-switch{margin:16px 0 0;text-align:center;font-size:14px;color:var(--mut)}
.fa-auth-switch a{color:#8fb3ff;font-weight:700;text-decoration:none}
.fa-auth-switch:empty{display:none}
.woocommerce:has(.fa-auth) .woocommerce-notices-wrapper{max-width:440px;margin:0 auto}
.woocommerce:has(.fa-auth) .woocommerce-error,.woocommerce:has(.fa-auth) .woocommerce-message,.woocommerce:has(.fa-auth) .woocommerce-info{list-style:none;margin:0 0 12px;padding:12px 14px;border-radius:12px;border:1px solid var(--border);background:#0e131f;color:var(--txt);font-size:14px}
.woocommerce:has(.fa-auth) .woocommerce-error{border-color:#6b2a39;background:#1a0f14}
@media(max-width:480px){.fa-auth-card{padding:18px 16px;border-radius:18px}.fa-auth-title{font-size:22px}}
.woocommerce .fa-auth form.fa-auth-form,.fa-auth form.fa-auth-form{border:0;padding:0;margin:0;border-radius:0;background:transparent}
.fa-auth .password-input{display:block;position:static}
.fa-auth .show-password-input{display:none!important}
