/* RC39.2 — floating left account workspace */
:root{--nd-blue:#1677f0;--nd-ink:#0f172a;--nd-muted:#64748b;--nd-line:#e7edf5;--nd-soft:#f7f9fc}
.nd-customer-panel-open{width:100%;min-height:44px;border:1px solid #dce8fb;border-radius:13px;background:#f7faff;color:#1667d9;font:800 12px Tahoma,Arial,sans-serif;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;margin:10px 0 8px;transition:.18s ease}
.nd-customer-panel-open:hover{background:#eef6ff;border-color:#b9d5fb}
.nd-customer-panel{position:fixed!important;inset:0!important;z-index:10050!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;transition:opacity .22s ease!important;font-family:Tahoma,Arial,sans-serif!important}
.nd-customer-panel.show{visibility:visible!important;opacity:1!important;pointer-events:auto!important}
.nd-customer-panel-backdrop{position:absolute!important;inset:0!important;background:rgba(15,23,42,.32)!important;backdrop-filter:blur(3px)!important}
.nd-customer-panel-card{position:absolute!important;top:0!important;left:18px!important;bottom:18px!important;top:18px!important;width:min(440px,calc(100vw - 36px))!important;background:rgba(255,255,255,.96)!important;border:1px solid rgba(15,23,42,.08)!important;border-radius:24px!important;box-shadow:24px 0 70px rgba(15,23,42,.16)!important;transform:translateX(-110%) scale(.985)!important;transition:transform .28s cubic-bezier(.22,.78,.26,1)!important;display:flex!important;flex-direction:column!important;direction:rtl!important;overflow:hidden!important}
.nd-customer-panel.show .nd-customer-panel-card{transform:translateX(0) scale(1)!important}
.nd-panel-open{overflow:hidden!important}
.nd-customer-panel-head{padding:22px 20px 18px!important;background:#fff!important;border-bottom:1px solid var(--nd-line)!important;display:block!important;position:relative!important}
.nd-customer-panel-close{position:absolute!important;top:18px!important;left:18px!important;width:36px!important;height:36px!important;border:1px solid var(--nd-line)!important;border-radius:12px!important;background:#fff!important;color:#64748b!important;display:grid!important;place-items:center!important;cursor:pointer!important;transition:.18s ease!important;padding:0!important}
.nd-customer-panel-close:hover{background:#f8fafc!important;color:#0f172a!important;border-color:#cbd5e1!important}
.nd-customer-panel-close svg{width:17px!important;height:17px!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important}
.nd-customer-profile{display:flex!important;align-items:center!important;gap:13px!important;padding-left:48px!important}
.nd-customer-avatar{width:48px!important;height:48px!important;border-radius:16px!important;background:linear-gradient(145deg,#eaf3ff,#f8fbff)!important;color:var(--nd-blue)!important;border:1px solid #dbeafe!important;display:grid!important;place-items:center!important;flex:0 0 auto!important}
.nd-customer-avatar svg{width:24px!important;height:24px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.9!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.nd-customer-panel-kicker{display:block!important;color:#2563eb!important;font-size:9px!important;font-weight:900!important;letter-spacing:.7px!important;margin-bottom:2px!important;text-transform:uppercase!important}
.nd-customer-panel-head h2{margin:0!important;color:var(--nd-ink)!important;font-size:18px!important;font-weight:900!important;line-height:1.5!important}
.nd-customer-panel-head p{margin:2px 0 0!important;color:#334155!important;font-size:11.5px!important;font-weight:800!important}
.nd-customer-panel-head small{display:block!important;margin-top:2px!important;color:#94a3b8!important;font-size:10px!important;direction:ltr!important;text-align:right!important}
.nd-customer-panel-body{padding:15px 14px 24px!important;overflow:auto!important;flex:1!important;background:var(--nd-soft)!important}
.nd-customer-panel-summary{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin-bottom:11px!important;padding:11px 12px!important;border:1px solid var(--nd-line)!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important}
.nd-customer-panel-summary div{display:flex!important;align-items:center!important;gap:8px!important}.nd-customer-panel-summary span{font-size:11px!important;font-weight:900!important;color:#334155!important}.nd-customer-panel-summary strong{min-width:25px!important;height:25px!important;padding:0 7px!important;border-radius:9px!important;background:#edf5ff!important;color:#176ee5!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:11px!important}
.nd-customer-panel-summary small{font-size:8.8px!important;color:#94a3b8!important;line-height:1.6!important;text-align:left!important}
.nd-customer-invoice-list{display:flex!important;flex-direction:column!important;gap:8px!important}
.nd-customer-invoice-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"main status" "total actions"!important;align-items:center!important;gap:10px 12px!important;background:#fff!important;border:1px solid var(--nd-line)!important;border-radius:15px!important;padding:12px!important;box-shadow:none!important}
.nd-customer-invoice-main{grid-area:main!important;display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important}.nd-customer-invoice-icon{width:36px!important;height:36px!important;border-radius:11px!important;display:grid!important;place-items:center!important;font-size:15px!important;font-weight:900!important;flex:0 0 auto!important}.nd-customer-invoice-icon.paid{background:#ecfdf5!important;color:#059669!important}.nd-customer-invoice-icon.unpaid{background:#fff7ed!important;color:#d97706!important}
.nd-customer-invoice-main h3{margin:0 0 4px!important;font-size:12.5px!important;color:#0f172a!important}.nd-customer-invoice-main p{margin:0!important;font-size:9px!important;color:#94a3b8!important;direction:ltr!important;text-align:right!important}
.nd-customer-invoice-status{grid-area:status!important;padding:4px 7px!important;border-radius:999px!important;font-size:8.5px!important;font-weight:900!important;white-space:nowrap!important}.nd-customer-invoice-status.paid{background:#ecfdf5!important;color:#047857!important;border:1px solid #bbf7d0!important}.nd-customer-invoice-status.unpaid{background:#fff7ed!important;color:#b45309!important;border:1px solid #fed7aa!important}
.nd-customer-invoice-total{grid-area:total!important}.nd-customer-invoice-total small{display:block!important;color:#94a3b8!important;font-size:8px!important;margin-bottom:2px!important}.nd-customer-invoice-total strong{font-size:12px!important;color:#0f172a!important;direction:ltr!important;display:block!important;text-align:right!important}.nd-customer-invoice-total strong span{font-size:8px!important;color:#64748b!important}
.nd-customer-invoice-actions{grid-area:actions!important}.nd-customer-invoice-actions button{height:34px!important;border:0!important;border-radius:10px!important;background:#176ee5!important;color:#fff!important;padding:0 11px!important;font:900 9.5px Tahoma,Arial,sans-serif!important;cursor:pointer!important;white-space:nowrap!important;transition:.18s ease!important}.nd-customer-invoice-actions button:hover{background:#0f5fcd!important;transform:none!important}.nd-customer-invoice-actions button:disabled{opacity:.6!important;cursor:wait!important}
.nd-customer-loading,.nd-customer-empty{min-height:170px!important;background:#fff!important;border:1px dashed #d7e0ec!important;border-radius:15px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:9px!important;color:#64748b!important;font-size:11px!important;text-align:center!important;padding:20px!important}.nd-customer-loading span{width:22px!important;height:22px!important;border:3px solid #dbeafe!important;border-top-color:#2563eb!important;border-radius:50%!important;animation:spin .8s linear infinite!important}.nd-customer-empty>span{width:42px!important;height:42px!important;border-radius:13px!important;background:#f1f5f9!important;color:#64748b!important;display:grid!important;place-items:center!important;font-size:18px!important}.nd-customer-empty.error{color:#b91c1c!important;border-color:#fecaca!important}.nd-customer-empty button{border:0!important;border-radius:9px!important;background:#0f172a!important;color:#fff!important;padding:8px 12px!important;cursor:pointer!important;font:800 9.5px Tahoma!important}
.nd-customer-pagination{display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;margin-top:14px!important}.nd-customer-pagination button{height:32px!important;border:1px solid #dbe3ee!important;background:#fff!important;border-radius:9px!important;padding:0 11px!important;color:#334155!important;cursor:pointer!important;font:800 9.5px Tahoma!important}.nd-customer-pagination button:disabled{opacity:.4!important}.nd-customer-pagination span{font-size:9.5px!important;color:#64748b!important}
@media(max-width:520px){.nd-customer-panel-card{width:100vw!important}.nd-customer-panel-head{padding:18px 16px 15px!important}.nd-customer-panel-close{top:15px!important;left:14px!important}.nd-customer-tabs{padding:10px!important;gap:5px!important}.nd-customer-panel-body{padding:12px 10px 20px!important}.nd-customer-panel-summary{align-items:flex-start!important;flex-direction:column!important}.nd-customer-panel-summary small{text-align:right!important}.nd-customer-invoice-card{padding:11px!important}}

/* RC39.3 Premium invoice actions */
.nd-customer-invoice-actions{display:flex;align-items:center;justify-content:center}
.nd-invoice-icon{width:42px;height:42px;border-radius:50%;border:0;display:flex;align-items:center;justify-content:center;font-size:18px;cursor:pointer;transition:.2s ease}
.nd-invoice-icon.view{background:#ecfdf5;color:#16a34a}
.nd-invoice-icon.pay{background:#fff7ed;color:#f97316}
.nd-invoice-icon:hover{transform:scale(1.08);box-shadow:0 6px 16px rgba(15,23,42,.12)}
.nd-customer-invoice-card{border-radius:20px!important}

/* RC39.5 Premium Invoice Cards */
.nd-customer-invoice-card{grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"main action" "total status"!important;padding:14px!important;border-radius:20px!important}
.nd-customer-invoice-main h3{font-size:14px!important;margin:0 0 3px!important}
.nd-customer-invoice-main p{font-size:11px!important;color:#94a3b8!important}
.nd-customer-invoice-total strong{font-size:17px!important;color:#0f172a!important}
.nd-customer-invoice-total small{display:none!important}
.nd-invoice-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.nd-invoice-icon.view{background:#ecfdf5;color:#16a34a}
.nd-invoice-icon.pay{background:#fff7ed;color:#f97316}

/* RC39.9.4 header source fix */
.nd-customer-panel-head .nd-customer-profile{direction:rtl!important;text-align:right!important;justify-content:flex-start!important}
.nd-customer-panel-head .nd-customer-profile>div:last-child{align-items:flex-end!important}
.nd-customer-panel-kicker{display:none!important}
#ndCustomerPanelTitle{font-size:0!important;height:0!important;margin:0!important}
#ndCustomerProfileName{margin:0!important;text-align:right!important}
#ndCustomerProfileEmail{text-align:right!important;display:block!important}


/* RC39.13 Final Workspace Navigation */
.nd-workspace-nav{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-around!important;
    height:56px!important;
    padding:8px 14px!important;
    background:#fff!important;
    border-bottom:1px solid var(--nd-line)!important;
}

.nd-workspace-nav button{
    flex:1!important;
    height:40px!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    color:#64748b!important;
    font:800 13px Tahoma,Arial,sans-serif!important;
    position:relative!important;
    padding:0 8px!important;
}

.nd-workspace-nav button svg{
    width:18px!important;
    height:18px!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:1.9!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
}

.nd-workspace-nav button:not(:last-child)::after{
    content:"|"!important;
    position:absolute!important;
    left:0!important;
    color:#d1d5db!important;
}

.nd-workspace-nav button.active{
    color:#176ee5!important;
}

.nd-workspace-nav button.active::after{
    content:""!important;
    position:absolute!important;
    bottom:-8px!important;
    left:30%!important;
    right:30%!important;
    height:3px!important;
    background:#176ee5!important;
    border-radius:5px!important;
}
.nd40-nav{
    height:70px!important;
    display:flex!important;
    border-bottom:1px solid #edf2f7!important;
    padding:0 12px!important;
    direction:rtl!important;
}

.nd40-nav-item{
    flex:1!important;
    border:0!important;
    background:none!important;
    color:#64748b!important;
    font-family:inherit!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    position:relative!important;
    cursor:pointer!important;
    padding:0!important;
}

.nd40-nav-item span{
    font-size:16px!important;
}

.nd40-nav-item b{
    font-size:12px!important;
    font-weight:700!important;
}

.nd40-nav-item.active{
    color:#176ee5!important;
}

.nd40-nav-item.active:after{
    content:""!important;
    position:absolute!important;
    bottom:0!important;
    width:38px!important;
    height:3px!important;
    background:#176ee5!important;
    border-radius:5px!important;
}
/* NEDA RC40.2 Navigation refinement */

.nd40-nav{
    flex-direction:row-reverse!important;
}

.nd40-nav-item{
    gap:7px!important;
}

.nd40-nav-item b{
    font-size:13px!important;
    font-weight:800!important;
}
/* NEDA RC40.4 Header Refinement */

.nd-customer-panel-head{
    padding:18px 20px!important;
    border-bottom:1px solid #edf2f7!important;
}

.nd-customer-panel-close{
    width:34px!important;
    height:34px!important;
    border-radius:10px!important;
    border:1px solid #e5eaf2!important;
    background:#fff!important;
    color:#64748b!important;
}

.nd-customer-profile{
    gap:12px!important;
    align-items:center!important;
}

.nd-customer-avatar{
    width:46px!important;
    height:46px!important;
    border-radius:50%!important;
    background:#eef6ff!important;
    color:#176ee5!important;
}

.nd-customer-profile h2{
    font-size:15px!important;
    font-weight:800!important;
    margin:0 0 3px!important;
}

.nd-customer-profile p{
    display:none!important;
}

.nd-customer-profile small{
    font-size:11px!important;
    color:#94a3b8!important;
}
/* RC50.38 profile header activity layout */
.nd-customer-panel-head{display:flex!important;align-items:center!important;gap:12px!important}
.nd-customer-profile{display:flex!important;align-items:center!important;flex:1!important;min-width:0!important}
.nd-customer-profile-info{min-width:0!important}
.nd-customer-profile-info p,.nd-customer-profile-info small{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}


/* RC50.40 — spacious account header + safe logout */
.nd-customer-panel-head{
  min-height:98px!important;
  padding:20px 20px 19px!important;
}
.nd-customer-profile{
  min-height:58px!important;
  gap:14px!important;
  padding-left:92px!important;
}
.nd-customer-avatar{
  width:50px!important;
  height:50px!important;
}
.nd-customer-profile-info p{
  display:block!important;
  font-size:15px!important;
  line-height:1.55!important;
  font-weight:900!important;
  color:#172033!important;
}
.nd-customer-profile-info small{
  margin-top:1px!important;
  font-size:10.5px!important;
  line-height:1.5!important;
}
.nd-customer-panel-close{top:17px!important;left:16px!important}
.nd539-customer-logout{
  position:absolute!important;
  left:16px!important;
  bottom:17px!important;
  width:36px!important;
  height:36px!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid #fee2e2!important;
  border-radius:11px!important;
  background:#fffafa!important;
  color:#dc2626!important;
  cursor:pointer!important;
  transition:background .18s ease,border-color .18s ease,transform .18s ease!important;
}
.nd539-customer-logout:hover{background:#fff1f2!important;border-color:#fecaca!important;transform:translateY(-1px)!important}
.nd539-customer-logout svg{width:17px!important;height:17px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.9!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.nd539-logout-confirm{position:absolute;inset:0;z-index:30;display:grid;place-items:center;padding:22px;direction:rtl}
.nd539-logout-confirm[hidden]{display:none!important}
.nd539-logout-confirm-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.36);backdrop-filter:blur(3px)}
.nd539-logout-confirm-card{position:relative;width:min(320px,100%);padding:22px 20px 18px;border:1px solid #e7edf5;border-radius:20px;background:#fff;box-shadow:0 24px 70px rgba(15,23,42,.22);text-align:center}
.nd539-logout-confirm-icon{width:46px;height:46px;margin:0 auto 10px;display:grid;place-items:center;border-radius:15px;background:#fff1f2;color:#dc2626;font-size:23px;font-weight:900}
.nd539-logout-confirm-card h3{margin:0;color:#172033;font-size:16px;font-weight:900}
.nd539-logout-confirm-card p{margin:8px 0 17px;color:#64748b;font-size:11px;line-height:1.9}
.nd539-logout-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.nd539-logout-confirm-actions button{height:42px;border:1px solid #dfe7f1;border-radius:12px;background:#fff;color:#475569;font:800 11px Tahoma,Arial,sans-serif;cursor:pointer}
.nd539-logout-confirm-actions .danger{border-color:#dc2626;background:#dc2626;color:#fff}
.nd539-logout-confirm-actions button:disabled{opacity:.6;cursor:wait}
@media(max-width:420px){
  .nd-customer-panel-head{min-height:94px!important;padding:18px 16px!important}
  .nd-customer-profile{padding-left:86px!important;gap:10px!important}
  .nd-customer-avatar{width:48px!important;height:48px!important}
  .nd-customer-profile-info p{font-size:14px!important}
  .nd-customer-panel-close{top:14px!important;left:13px!important}
  .nd539-customer-logout{left:13px!important;bottom:14px!important}
}


/* RC50.40 — spacious profile header + quick actions + editable profile */
.nd540-profile-head{min-height:154px!important;padding:24px 22px 18px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:17px!important}
.nd540-profile-main{display:flex;align-items:center;justify-content:flex-start;gap:13px;padding-inline:52px 6px;direction:rtl}
.nd540-avatar-button{padding:0;border:0;background:transparent;cursor:pointer;border-radius:50%}
.nd540-avatar-button .nd-customer-avatar{width:58px!important;height:58px!important;border-radius:20px!important;background:#f3f8ff!important;border:1px solid #cfe0ff!important;display:grid!important;place-items:center!important}
.nd540-avatar-button .nd-customer-avatar svg{width:28px!important;height:28px!important;stroke:#1672f3!important;fill:none!important;stroke-width:1.65!important}
.nd540-profile-main .nd-customer-profile-info p{font-size:19px!important;line-height:1.45!important;font-weight:950!important;color:#15213a!important;margin:0!important}
.nd540-profile-main .nd-customer-profile-info small{font-size:11px!important;margin-top:2px!important;color:#8291a8!important}
.nd540-quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;direction:rtl}
.nd540-quick-action{position:relative;min-height:48px;padding:7px 9px;border:1px solid #e2e9f3;border-radius:15px;background:#fff;display:flex;align-items:center;justify-content:center;gap:7px;color:#334155;cursor:pointer;transition:.18s ease;font-family:inherit}
.nd540-quick-action:hover{border-color:#bfd5fb;background:#f8fbff;transform:translateY(-1px)}
.nd540-quick-action span:nth-child(2){display:flex;flex-direction:column;text-align:right;line-height:1.25}
.nd540-quick-action b{font-size:10.5px;font-weight:900}.nd540-quick-action small{font-size:8.5px;color:#8b98aa;margin-top:2px!important;direction:rtl!important;text-align:right!important}
.nd540-quick-icon{width:29px;height:29px;border-radius:10px;display:grid;place-items:center;background:#f3f7fd;font-size:14px}
.nd540-quick-action.support .nd540-quick-icon{background:#fff8e7}.nd540-quick-action.profile .nd540-quick-icon{background:#eef6ff}.nd540-quick-action.logout .nd540-quick-icon{background:#fff1f2;color:#dc2626}
.nd540-quick-action.logout:hover{border-color:#fecaca;background:#fff8f8}.nd540-quick-action em{position:absolute;top:-6px;left:-5px;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:#ef4444;color:#fff;font:900 9px/19px Tahoma;text-align:center;font-style:normal;box-shadow:0 3px 10px rgba(239,68,68,.25)}
.nd540-profile-view{padding:18px 16px 26px;overflow:auto;direction:rtl;background:#f8fafc;flex:1;min-height:0}
.nd540-profile-view-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.nd540-profile-view-head h3{margin:1px 0 0;font-size:21px;color:#172033}.nd540-profile-view-head small{color:#94a3b8;font-size:10px}
.nd540-profile-back{width:35px;height:35px;border:1px solid #dce6f2;border-radius:12px;background:#fff;color:#64748b;font-size:20px;cursor:pointer}
.nd540-profile-form{display:flex;flex-direction:column;gap:12px}.nd540-profile-card{padding:16px;border:1px solid #dfe8f4;border-radius:19px;background:#fff}.nd540-profile-card h4{margin:0 0 13px;color:#1e293b;font-size:13px;font-weight:900}
.nd540-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.nd540-field{display:flex;flex-direction:column;gap:6px}.nd540-field>span{font-size:9.5px;color:#64748b;font-weight:850}.nd540-field i{color:#ef4444;font-style:normal}.nd540-field input{height:43px;padding:0 12px;border:1px solid #dbe5f1;border-radius:12px;background:#fff;color:#1e293b;font:800 11px Tahoma,Arial,sans-serif;outline:none}.nd540-field input:focus{border-color:#6ea7ff;box-shadow:0 0 0 3px rgba(37,117,246,.08)}.nd540-field.locked input{background:#f6f8fb;color:#8793a5}.nd540-field small{font-size:8px!important;color:#94a3b8!important;line-height:1.7!important;direction:rtl!important;text-align:right!important;margin:0!important}
.nd540-profile-save{height:49px;border:0;border-radius:15px;background:#2477f3;color:#fff;font:900 13px Tahoma,Arial,sans-serif;cursor:pointer;box-shadow:0 10px 24px rgba(36,119,243,.18)}.nd540-profile-save:disabled{opacity:.65;cursor:wait}.nd540-profile-message{min-height:20px;padding:0 4px;font-size:10px;font-weight:800}.nd540-profile-message.success{color:#16865b}.nd540-profile-message.error{color:#dc2626}
.nd539-customer-logout{display:none!important}
@media(max-width:520px){.nd540-profile-head{min-height:160px!important;padding:22px 16px 16px!important}.nd540-profile-main{padding-inline:47px 3px}.nd540-quick-actions{gap:6px}.nd540-quick-action{padding:6px 5px}.nd540-quick-action b{font-size:9.5px}.nd540-quick-action small{font-size:7.5px}.nd540-form-grid{grid-template-columns:1fr}.nd540-profile-view{padding:15px 13px 24px}}


/* RC50.41 — minimal spacious account header; profile remains fully interactive */
.nd540-profile-head{
  min-height:142px!important;
  padding:22px 20px 16px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:17px!important;
  direction:rtl!important;
  background:#fff!important;
}
.nd541-profile-row{
  min-height:58px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:13px!important;
  padding-left:52px!important;
}
.nd541-avatar-button{
  width:56px!important;height:56px!important;padding:0!important;border:1px solid #cfe0ff!important;
  border-radius:18px!important;background:#f5f9ff!important;display:grid!important;place-items:center!important;
  cursor:pointer!important;flex:0 0 auto!important;transition:.18s ease!important
}
.nd541-avatar-button:hover{background:#edf5ff!important;border-color:#9fc3ff!important;transform:translateY(-1px)!important}
.nd541-avatar-button .nd-customer-avatar{width:54px!important;height:54px!important;border:0!important;background:transparent!important}
.nd541-profile-row .nd-customer-profile-info{display:flex!important;flex-direction:column!important;align-items:flex-start!important;text-align:right!important;min-width:0!important}
.nd541-profile-row .nd-customer-profile-info p{font-size:18px!important;line-height:1.5!important;font-weight:950!important;color:#172033!important;margin:0!important;max-width:240px!important}
.nd541-profile-row .nd-customer-profile-info small{font-size:10.5px!important;line-height:1.5!important;color:#8190a5!important;margin-top:1px!important;max-width:240px!important}
.nd541-account-actions{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:22px!important;
  padding:0 3px!important;direction:rtl!important
}
.nd541-account-action{
  position:relative!important;min-height:31px!important;padding:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;display:inline-flex!important;align-items:center!important;
  justify-content:flex-start!important;gap:6px!important;color:#506078!important;cursor:pointer!important;font-family:inherit!important;
  transition:color .16s ease,transform .16s ease!important
}
.nd541-account-action:hover{color:#1768d8!important;transform:translateY(-1px)!important;background:transparent!important}
.nd541-account-action.logout:hover{color:#dc2626!important}
.nd541-account-icon{width:24px!important;height:24px!important;display:grid!important;place-items:center!important;border-radius:8px!important;background:#f3f6fb!important;font-size:13px!important;line-height:1!important}
.nd541-account-action.support .nd541-account-icon{background:#fff8e9!important}
.nd541-account-action.profile .nd541-account-icon{background:#eef6ff!important}
.nd541-account-action.logout .nd541-account-icon{background:#fff1f2!important;color:#dc2626!important}
.nd541-account-label{font-size:10.5px!important;font-weight:900!important;color:inherit!important;white-space:nowrap!important}
.nd541-account-action small{font-size:8px!important;color:#9aa6b6!important;white-space:nowrap!important;margin:0!important}
.nd541-account-action em{position:absolute!important;top:-7px!important;right:15px!important;min-width:18px!important;height:18px!important;padding:0 5px!important;border-radius:10px!important;background:#ef4444!important;color:#fff!important;font:900 9px/18px Tahoma!important;text-align:center!important;font-style:normal!important;box-shadow:0 3px 10px rgba(239,68,68,.25)!important}
.nd540-quick-actions,.nd540-profile-main{display:none!important}
.nd-customer-panel-close{top:20px!important;left:16px!important}
@media(max-width:520px){
  .nd540-profile-head{min-height:142px!important;padding:20px 16px 15px!important;gap:15px!important}
  .nd541-profile-row{padding-left:45px!important;gap:11px!important}
  .nd541-avatar-button{width:54px!important;height:54px!important;border-radius:17px!important}
  .nd541-avatar-button .nd-customer-avatar{width:52px!important;height:52px!important}
  .nd541-profile-row .nd-customer-profile-info p{font-size:17px!important;max-width:205px!important}
  .nd541-profile-row .nd-customer-profile-info small{font-size:10px!important;max-width:205px!important}
  .nd541-account-actions{gap:17px!important}
  .nd541-account-action small{display:none!important}
  .nd541-account-label{font-size:10px!important}
}


/* RC50.42 — visually separated dark account header */
.nd540-profile-head{
  background:linear-gradient(145deg,#172235 0%,#111a29 100%)!important;
  border-bottom-left-radius:22px!important;
  border-bottom-right-radius:22px!important;
  box-shadow:0 12px 30px rgba(15,23,42,.20)!important;
  color:#fff!important;
  position:relative!important;
  z-index:3!important;
}
.nd541-avatar-button{
  background:rgba(255,255,255,.10)!important;
  border-color:rgba(255,255,255,.22)!important;
}
.nd541-avatar-button:hover{
  background:rgba(255,255,255,.17)!important;
  border-color:rgba(255,255,255,.38)!important;
}
.nd541-avatar-button .nd-customer-avatar svg{
  stroke:#fff!important;
}
.nd541-profile-row .nd-customer-profile-info p{
  color:#fff!important;
}
.nd541-profile-row .nd-customer-profile-info small{
  color:rgba(255,255,255,.68)!important;
}
.nd541-account-action{
  color:rgba(255,255,255,.90)!important;
}
.nd541-account-action:hover{
  color:#fff!important;
}
.nd541-account-action.logout:hover{
  color:#fecaca!important;
}
.nd541-account-icon,
.nd541-account-action.support .nd541-account-icon,
.nd541-account-action.profile .nd541-account-icon,
.nd541-account-action.logout .nd541-account-icon{
  background:rgba(255,255,255,.10)!important;
  color:#fff!important;
}
.nd541-account-action small{
  color:rgba(255,255,255,.54)!important;
}
.nd-customer-panel-close{
  background:rgba(255,255,255,.09)!important;
  border-color:rgba(255,255,255,.18)!important;
  color:#fff!important;
}
.nd-customer-panel-close:hover{
  background:rgba(255,255,255,.16)!important;
  border-color:rgba(255,255,255,.30)!important;
}
.nd-customer-panel-close svg{stroke:#fff!important}

/* RC50.43 — dark user header, discoverable account dropdown and headset support */
.nd540-profile-head{min-height:126px!important;padding:20px 18px 16px!important;gap:0!important;overflow:visible!important}
.nd543-header-main{display:flex;align-items:center;justify-content:space-between;gap:12px;direction:rtl;padding-left:48px;min-height:72px}
.nd543-account-toggle{min-width:0;display:flex;align-items:center;gap:11px;padding:4px 3px;border:0;background:transparent;color:#fff;font-family:inherit;cursor:pointer;text-align:right;border-radius:16px;transition:background .18s ease}
.nd543-account-toggle:hover,.nd543-account-toggle[aria-expanded="true"]{background:rgba(255,255,255,.07)}
.nd543-account-toggle .nd541-avatar-button{display:grid!important;place-items:center!important;width:56px!important;height:56px!important;flex:0 0 56px!important;pointer-events:none!important}
.nd543-account-toggle .nd-customer-profile-info{display:flex!important;flex-direction:column!important;align-items:flex-start!important;min-width:0!important;max-width:245px!important}
.nd543-account-toggle .nd-customer-profile-info strong{display:block!important;color:#fff!important;font-size:17px!important;font-weight:950!important;line-height:1.45!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important}
.nd543-account-toggle .nd-customer-profile-info small{display:block!important;color:rgba(255,255,255,.76)!important;font-size:11px!important;line-height:1.55!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important;margin:0!important}
.nd543-account-chevron{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:rgba(255,255,255,.82);stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round;transition:transform .22s ease}
.nd543-account-toggle[aria-expanded="true"] .nd543-account-chevron{transform:rotate(180deg)}
.nd543-support-button{position:relative;display:flex;align-items:center;gap:8px;flex:0 0 auto;padding:7px 8px;border:0;border-radius:13px;background:transparent;color:#fff;font-family:inherit;cursor:pointer;transition:background .18s ease,transform .18s ease}
.nd543-support-button:hover{background:rgba(255,255,255,.08);transform:translateY(-1px)}
.nd543-support-icon{position:relative;width:32px;height:32px;border-radius:10px;background:rgba(255,255,255,.11);display:grid;place-items:center}
.nd543-support-icon svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nd543-support-icon em{position:absolute!important;top:-7px!important;right:-7px!important;min-width:19px!important;height:19px!important;padding:0 5px!important;border:2px solid #152033!important;border-radius:11px!important;background:#ef3340!important;color:#fff!important;font:900 9px/15px Tahoma,Arial,sans-serif!important;text-align:center!important;font-style:normal!important;box-shadow:0 4px 12px rgba(239,51,64,.42)!important}
.nd543-support-copy{display:flex;flex-direction:column;align-items:flex-start;text-align:right;line-height:1.35}
.nd543-support-copy b{font-size:11px;font-weight:950;color:#fff;white-space:nowrap}
.nd543-support-copy small{font-size:8.5px;color:rgba(255,255,255,.62);white-space:nowrap}
.nd543-account-menu{position:absolute;z-index:30;top:88px;right:18px;width:min(270px,calc(100% - 36px));padding:8px;border:1px solid rgba(148,163,184,.24);border-radius:17px;background:rgba(255,255,255,.98);box-shadow:0 20px 50px rgba(2,8,23,.28);direction:rtl;transform-origin:top right;animation:nd543MenuIn .2s cubic-bezier(.2,.8,.2,1)}
.nd543-account-menu[hidden]{display:none!important}
@keyframes nd543MenuIn{from{opacity:0;transform:translateY(-8px) scale(.98)}to{opacity:1;transform:none}}
.nd543-account-menu button{position:relative;width:100%;min-height:45px;display:flex;align-items:center;gap:10px;padding:8px 10px;border:0;border-radius:12px;background:transparent;color:#273449;font-family:inherit;text-align:right;cursor:pointer;transition:background .15s ease,color .15s ease}
.nd543-account-menu button:hover{background:#f1f6fd;color:#1768d8}
.nd543-account-menu button>span{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:#f1f5f9;font-size:13px;flex:0 0 28px}
.nd543-account-menu button>b{font-size:11.5px;font-weight:900;flex:1}
.nd543-account-menu button>small{font-size:8px;color:#94a3b8}
.nd543-account-menu button>em{min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:#ef3340;color:#fff;font:900 9px/19px Tahoma,Arial,sans-serif;text-align:center;font-style:normal}
.nd543-account-menu button.danger{color:#d92d3a}.nd543-account-menu button.danger:hover{background:#fff1f2;color:#c81e2b}
.nd543-menu-separator{display:block;height:1px;margin:5px 8px;background:#e9eef5}
.nd541-profile-row,.nd541-account-actions{display:none!important}
@media(max-width:520px){.nd540-profile-head{min-height:124px!important;padding:18px 14px 15px!important}.nd543-header-main{padding-left:42px;gap:6px}.nd543-account-toggle{gap:8px;max-width:72%}.nd543-account-toggle .nd541-avatar-button{width:52px!important;height:52px!important;flex-basis:52px!important}.nd543-account-toggle .nd-customer-profile-info strong{font-size:15px!important}.nd543-account-toggle .nd-customer-profile-info small{font-size:9.5px!important}.nd543-support-button{gap:5px;padding:6px 5px}.nd543-support-copy small{display:none}.nd543-support-copy b{font-size:10px}.nd543-account-menu{top:82px;right:14px;width:min(265px,calc(100% - 28px))}}


/* RC50.44 — compact luxury account card, explicit close and tighter controls */
.nd540-profile-head{
  min-height:108px!important;
  padding:16px 16px 14px!important;
  border-radius:0 0 24px 24px!important;
  box-shadow:0 12px 30px rgba(15,23,42,.20)!important;
}
.nd543-header-main{
  min-height:68px!important;
  padding-left:48px!important;
  gap:12px!important;
}
.nd-customer-panel-close{
  top:17px!important;
  left:15px!important;
  width:36px!important;
  height:36px!important;
  border-radius:11px!important;
  display:grid!important;
  place-items:center!important;
  background:rgba(255,255,255,.10)!important;
  border:1px solid rgba(255,255,255,.24)!important;
  color:#fff!important;
  opacity:1!important;
}
.nd-customer-panel-close:hover{
  background:rgba(255,255,255,.18)!important;
  border-color:rgba(255,255,255,.38)!important;
  transform:none!important;
}
.nd544-close-mark{
  display:block!important;
  color:#fff!important;
  font:300 25px/1 Arial,sans-serif!important;
  transform:translateY(-1px)!important;
}
.nd543-account-toggle{
  gap:10px!important;
  padding:5px 7px!important;
  border-radius:16px!important;
}
.nd543-account-toggle .nd541-avatar-button{
  width:54px!important;
  height:54px!important;
  flex-basis:54px!important;
  border-radius:16px!important;
}
.nd543-account-toggle .nd-customer-profile-info{
  align-items:flex-start!important;
  max-width:225px!important;
}
.nd544-account-name-row{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  min-width:0!important;
  max-width:100%!important;
}
.nd544-account-name-row strong{
  color:#fff!important;
  font-size:16px!important;
  font-weight:950!important;
  text-shadow:0 1px 1px rgba(0,0,0,.12)!important;
}
.nd544-account-name-row .nd543-account-chevron{
  width:16px!important;
  height:16px!important;
  flex:0 0 16px!important;
  stroke:#fff!important;
}
.nd543-account-toggle .nd-customer-profile-info small{
  color:rgba(255,255,255,.78)!important;
  font-size:10.5px!important;
}
.nd543-support-button{
  min-width:94px!important;
  justify-content:center!important;
  gap:8px!important;
  padding:7px 9px!important;
  border:1px solid rgba(255,255,255,.08)!important;
  background:rgba(255,255,255,.045)!important;
}
.nd543-support-button:hover{
  background:rgba(255,255,255,.10)!important;
  border-color:rgba(255,255,255,.14)!important;
}
.nd543-support-icon{
  width:34px!important;
  height:34px!important;
  border-radius:11px!important;
  background:rgba(255,255,255,.12)!important;
}
.nd543-support-icon svg{
  width:21px!important;
  height:21px!important;
  stroke-width:1.9!important;
}
.nd543-support-icon em{
  top:-7px!important;
  right:-7px!important;
  border-color:#162236!important;
}
.nd543-support-copy b{font-size:11px!important;color:#fff!important}
.nd543-support-copy small{font-size:8px!important;color:rgba(255,255,255,.64)!important}
.nd543-account-menu{
  top:79px!important;
  right:18px!important;
  width:min(270px,calc(100% - 36px))!important;
  border-radius:18px!important;
  box-shadow:0 22px 56px rgba(2,8,23,.34)!important;
}
@media(max-width:520px){
  .nd540-profile-head{min-height:106px!important;padding:15px 13px 13px!important}
  .nd543-header-main{min-height:66px!important;padding-left:42px!important;gap:5px!important}
  .nd-customer-panel-close{top:15px!important;left:12px!important;width:34px!important;height:34px!important}
  .nd543-account-toggle{gap:7px!important;padding:4px!important;max-width:73%!important}
  .nd543-account-toggle .nd541-avatar-button{width:50px!important;height:50px!important;flex-basis:50px!important}
  .nd544-account-name-row strong{font-size:14px!important}
  .nd543-account-toggle .nd-customer-profile-info small{font-size:9.3px!important}
  .nd543-support-button{min-width:83px!important;padding:6px 5px!important;gap:5px!important}
  .nd543-support-icon{width:32px!important;height:32px!important}
  .nd543-account-menu{top:76px!important;right:13px!important;width:min(265px,calc(100% - 26px))!important}
}


/* RC50.45 — readable account identity and mutually exclusive panel views */
#ndCustomerAccountToggle,
#ndCustomerAccountToggle .nd-customer-profile-info,
#ndCustomerAccountToggle .nd544-account-name-row{
  opacity:1!important;
  filter:none!important;
}
#ndCustomerAccountToggle #ndCustomerProfileName{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
  visibility:visible!important;
  text-shadow:0 1px 2px rgba(0,0,0,.22)!important;
}
#ndCustomerAccountToggle #ndCustomerProfileEmail{
  color:rgba(255,255,255,.82)!important;
  -webkit-text-fill-color:rgba(255,255,255,.82)!important;
  opacity:1!important;
}


/* RC50.46 — always-visible close controls for panel and account drawer */
.nd-customer-panel-close{
  color:#fff!important;
  opacity:1!important;
  visibility:visible!important;
}
.nd-customer-panel-close .nd546-close-icon{
  display:block!important;
  width:20px!important;
  height:20px!important;
  fill:none!important;
  stroke:#fff!important;
  stroke-width:2.25!important;
  stroke-linecap:round!important;
  pointer-events:none!important;
  opacity:1!important;
  visibility:visible!important;
}
.nd543-account-menu{padding-top:7px!important}
.nd546-menu-head{
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:2px 5px 6px 10px;
  margin-bottom:3px;
  border-bottom:1px solid #edf1f6;
}
.nd546-menu-head>b{
  color:#334155;
  font-size:11.5px;
  font-weight:950;
}
.nd543-account-menu .nd546-menu-close{
  width:30px!important;
  min-height:30px!important;
  height:30px!important;
  flex:0 0 30px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  border:1px solid #e4eaf2!important;
  border-radius:9px!important;
  background:#f8fafc!important;
  color:#64748b!important;
}
.nd543-account-menu .nd546-menu-close:hover{
  background:#fff1f2!important;
  border-color:#fecdd3!important;
  color:#dc2626!important;
}
.nd546-menu-close svg{
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  pointer-events:none;
}

/* RC50.47 — shared WHMCS client/custom-field profile form */
.nd540-field select,.nd540-field textarea{width:100%;border:1px solid #dbe5f1;border-radius:12px;background:#fff;color:#1e293b;font:800 11px Tahoma,Arial,sans-serif;outline:none}
.nd540-field select{height:43px;padding:0 12px}.nd540-field textarea{min-height:86px;padding:11px 12px;resize:vertical}
.nd540-field select:focus,.nd540-field textarea:focus{border-color:#6ea7ff;box-shadow:0 0 0 3px rgba(37,117,246,.08)}
.nd540-check{height:43px;display:flex;align-items:center;gap:9px;padding:0 12px;border:1px solid #dbe5f1;border-radius:12px;background:#fff;cursor:pointer}
.nd540-check input{width:17px!important;height:17px!important;min-width:17px;padding:0!important;margin:0;accent-color:#2477f3}.nd540-check b{font-size:10px;color:#475569}


/* RC50.56 — focused card details for domains and invoices */
.nd-customer-panel-card{isolation:isolate!important}
.nd-detail-focus-backdrop{position:absolute!important;inset:0!important;z-index:80!important;display:block!important;width:100%!important;height:100%!important;padding:0!important;border:0!important;border-radius:inherit!important;background:rgba(15,23,42,.42)!important;-webkit-backdrop-filter:blur(3.5px)!important;backdrop-filter:blur(3.5px)!important;opacity:1!important;cursor:default!important}
.nd-detail-focus-backdrop[hidden]{display:none!important}
.nd-detail-focus-open .nd-domain-card.open,.nd-detail-focus-open .nd-unpaid-invoice-card.open{position:relative!important;z-index:90!important;isolation:isolate!important;box-shadow:0 18px 52px rgba(15,23,42,.28),0 0 0 2px rgba(255,255,255,.95)!important}
.nd-detail-focus-open .nd-domain-card.open .nd-domain-card-toggle,.nd-detail-focus-open .nd-unpaid-invoice-card.open [data-panel-invoice-toggle]{position:relative!important;z-index:2!important}
.nd-domain-card.open .nd-domain-chevron,.nd-unpaid-invoice-card.open .nd-panel-invoice-chevron{font-size:0!important;transform:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:26px!important;height:26px!important;border-radius:8px!important;background:#eef2f7!important;color:#334155!important}
.nd-domain-card.open .nd-domain-chevron::before,.nd-unpaid-invoice-card.open .nd-panel-invoice-chevron::before{content:'×'!important;font-size:20px!important;font-weight:500!important;line-height:1!important}
