/**
 * NUCIFERA Profile — luxury account workspace (mock match).
 */

body.nucifera-profile,
body.woocommerce-account {
  background: #ffffff !important;
  color: #111111;
  font-family: var(--nucifera-font-body, "Manrope", "Segoe UI", sans-serif);
  overflow-x: clip;
}

body.nucifera-profile *:not(.nucifera-logo),
body.woocommerce-account .nprof-shell *:not(.nucifera-logo),
body.woocommerce-account .nucifera-profile-page *:not(.nucifera-logo),
.nucifera-profile-page,
.nucifera-profile-page *:not(.nucifera-logo) {
  font-family: var(--nucifera-font-body, "Manrope", "Segoe UI", sans-serif) !important;
}

body.nucifera-profile .nucifera-main,
body.woocommerce-account .nucifera-main {
  background: #ffffff !important;
}

/* Light account header — white stage, black type (mock) */
body.nucifera-profile .nucifera-header,
body.woocommerce-account .nucifera-header {
  background: #ffffff !important;
  color: #111111;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: none;
}

body.nucifera-profile .nucifera-header__inner,
body.woocommerce-account .nucifera-header__inner {
  min-height: 4.75rem;
}

body.nucifera-profile .nucifera-header__brand,
body.woocommerce-account .nucifera-header__brand,
body.nucifera-profile .nucifera-header .nucifera-logo,
body.woocommerce-account .nucifera-header .nucifera-logo {
  color: #111111 !important;
  font-family: var(--nucifera-font-display), "Playfair Display", Georgia, serif !important;
  font-weight: 500 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
}

body.nucifera-profile .nucifera-footer .nucifera-logo,
body.woocommerce-account .nucifera-footer .nucifera-logo {
  font-family: var(--nucifera-font-display), "Playfair Display", Georgia, serif !important;
  color: #f3eee4 !important;
}

/* Keep bottom nav seamless (no light hairline on white pages) */
body.nucifera-profile .nucifera-bottom-nav,
body.woocommerce-account .nucifera-bottom-nav {
  border-top: 0 !important;
}

body.nucifera-profile .nucifera-nav a,
body.woocommerce-account .nucifera-nav a {
  color: #111111 !important;
  border-bottom-color: transparent;
}

body.nucifera-profile .nucifera-nav a:hover,
body.nucifera-profile .nucifera-nav .current-menu-item > a,
body.woocommerce-account .nucifera-nav a:hover,
body.woocommerce-account .nucifera-nav .current-menu-item > a {
  color: #111111 !important;
  border-bottom-color: #111111;
}

body.nucifera-profile .nucifera-icon-btn,
body.woocommerce-account .nucifera-icon-btn {
  color: #111111 !important;
}

body.nucifera-profile .nucifera-cart-count,
body.woocommerce-account .nucifera-cart-count {
  background: #111111;
  color: #ffffff;
  min-width: 1.05rem;
  height: 1.05rem;
  font-size: 0.62rem;
  font-weight: 700;
}

body.nucifera-profile .nucifera-search-panel,
body.woocommerce-account .nucifera-search-panel {
  background: #ffffff;
  border-top: 1px solid #e8e8e8;
  color: #111111;
}

/* Ensure new sidebar is never hidden by legacy account chrome rules */
body.nucifera-profile .nprof-sidebar,
body.woocommerce-account .nprof-sidebar,
.nprof-sidebar.woocommerce-MyAccount-navigation {
  display: block !important;
}

.nucifera-profile-page {
  background: #ffffff;
  color: #111111;
  padding: 0 0 4rem;
}

@media (max-width: 899px) {
  .nucifera-profile-page {
    padding-bottom: 3rem;
    overflow-x: clip;
  }
}

@media (max-width: 767px) {
  .nucifera-profile-page {
    padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px) + var(--nucifera-bottom-nav-h, 4.5rem));
  }
}

.nprof-shell {
  width: min(1440px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding: 48px 56px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  align-items: start;
  box-sizing: border-box;
  min-width: 0;
}

.nprof-sidebar {
  position: sticky;
  top: calc(var(--nucifera-header-h, 4.5rem) + 1rem);
  padding: 0 28px 0 0;
  border-right: 1px solid #e8e8e8;
  min-height: 28rem;
}

.nprof-sidebar__user {
  margin-bottom: 1.75rem;
}

.nprof-avatar {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f5f5f5;
  color: #111111;
  border: 1px solid #e8e8e8;
}

.nprof-avatar--sm {
  width: 64px;
  height: 64px;
  margin-bottom: 0.85rem;
}

.nprof-avatar--lg {
  width: 130px;
  height: 130px;
}

.nprof-sidebar__hello {
  margin: 0;
  font-family: var(--nucifera-font-body, Manrope, sans-serif);
  font-size: 0.82rem;
  color: #666666;
}

.nprof-sidebar__name {
  margin: 0.15rem 0 0;
  font-family: var(--nucifera-font-body, Manrope, sans-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #111111;
}

.nprof-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nprof-nav a {
  display: grid;
  grid-template-columns: 22px 1fr 16px;
  align-items: center;
  gap: 0.7rem;
  padding: 14px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: #111111;
  font-family: var(--nucifera-font-body, Manrope, sans-serif);
  font-size: 0.92rem;
  font-weight: 500;
  background: transparent;
  transition: background 180ms ease;
}

.nprof-nav a:hover {
  background: #fafafa;
}

.nprof-nav li.is-active > a,
.nprof-nav a.is-active {
  background: #f7f7f7;
}

.nprof-nav__icon,
.nprof-nav__chevron {
  display: inline-flex;
  color: #111111;
}

.nprof-nav__chevron {
  opacity: 0.45;
  justify-content: flex-end;
}

.nprof-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2.25rem;
  padding: 14px 16px;
  color: #111111;
  text-decoration: none;
  font-family: var(--nucifera-font-body, Manrope, sans-serif);
  font-size: 0.92rem;
  font-weight: 500;
}

.nprof-logout:hover {
  opacity: 0.7;
}

.nprof-main {
  padding: 0 0 0 48px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Hide old account chrome */
body.woocommerce-account .napp-account-panel,
body.woocommerce-account .nucifera-app .nucifera-commerce__header {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

body.woocommerce-account .napp-account-nav:not(.nprof-sidebar),
body.woocommerce-account .nucifera-account-nav:not(.nprof-sidebar) {
  display: none;
}

/* Dashboard */
.nprof-hero {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.nprof-hero__avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

.nprof-hero__edit {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  text-decoration: none;
  border: 2px solid #ffffff;
}

.nprof-hero__name {
  margin: 0;
  font-family: var(--nucifera-font-body, Manrope, sans-serif);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #111111;
}

.nprof-hero__email {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--nucifera-font-body, Manrope, sans-serif);
  font-size: 0.95rem;
  color: #666666;
}

.nprof-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.25rem 0.85rem;
  border-radius: 20px;
  background: #f5f5f5;
  color: #111111;
  font-family: var(--nucifera-font-body, Manrope, sans-serif);
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.02em;
}

.nprof-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 1.75rem;
  padding: 0 0 1.75rem;
  border-bottom: 1px solid #e8e8e8;
}

.nprof-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.25rem 1.25rem;
  border-right: 1px solid #e8e8e8;
}

.nprof-stat:first-child {
  padding-left: 0;
}

.nprof-stat:last-child {
  border-right: 0;
  padding-right: 0;
}

.nprof-stat__icon {
  display: inline-flex;
  color: #111111;
  margin-bottom: 0.15rem;
}

.nprof-stat__value {
  font-family: var(--nucifera-font-body, Manrope, sans-serif);
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #111111;
}

.nprof-stat__label {
  font-family: var(--nucifera-font-body, Manrope, sans-serif);
  font-size: 0.78rem;
  color: #666666;
}

.nprof-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.nprof-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 8.5rem;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 200ms ease, transform 200ms ease;
}

.nprof-action:hover {
  border-color: #111111;
  transform: translateY(-2px);
}

.nprof-action__icon {
  display: inline-flex;
  color: #111111;
  margin-bottom: 0.35rem;
}

.nprof-action__title {
  font-family: var(--nucifera-font-body, Manrope, sans-serif);
  font-size: 1rem;
  font-weight: 650;
  color: #111111;
}

.nprof-action__text {
  font-family: var(--nucifera-font-body, Manrope, sans-serif);
  font-size: 0.86rem;
  color: #666666;
  line-height: 1.4;
}

.nprof-action__chevron {
  position: absolute;
  top: 22px;
  right: 20px;
  color: #111111;
  opacity: 0.45;
}

.nprof-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  padding: 40px;
  background: #f7f7f7;
  border-radius: 14px;
}

.nprof-banner__title {
  margin: 0 0 0.65rem;
  font-family: var(--nucifera-font-body, Manrope, sans-serif);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #111111;
}

.nprof-banner__text {
  margin: 0 0 1.25rem;
  max-width: 36rem;
  font-family: var(--nucifera-font-body, Manrope, sans-serif);
  font-size: 0.95rem;
  line-height: 1.55;
  color: #666666;
}

.nprof-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.85rem;
  padding: 14px 22px;
  border-radius: 8px;
  background: #111111;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--nucifera-font-body, Manrope, sans-serif);
  font-size: 0.88rem;
  font-weight: 650;
}

.nprof-banner__btn:hover {
  background: #2a2a2a;
  color: #ffffff;
}

.nprof-banner__art {
  position: absolute;
  right: -8%;
  top: 50%;
  width: 18rem;
  height: 18rem;
  transform: translateY(-50%);
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  pointer-events: none;
}

.nprof-banner__art::before,
.nprof-banner__art::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.07);
}

.nprof-banner__art::after {
  inset: 36%;
}

/* Endpoint pages inside profile shell */
.nprof-main .woocommerce-Addresses,
.nprof-main .woocommerce-EditAccountForm,
.nprof-main .woocommerce-MyAccount-orders,
.nprof-main .napp-empty,
.nprof-main .nucifera-account-form,
.nprof-main .nucifera-orders-table,
.nprof-main .nprof-endpoint,
.nprof-main .napp-receipt {
  max-width: 56rem;
}

.nprof-main h2,
.nprof-main h3 {
  font-family: var(--nucifera-font-body, Manrope, sans-serif);
  font-weight: 500;
  color: #111111;
}

/* ===== Shared endpoint chrome ===== */
.nprof-endpoint__head {
  margin: 0 0 1.35rem;
}

.nprof-endpoint__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #888888;
}

.nprof-endpoint__title {
  margin: 0;
  font-family: var(--nucifera-font-body, Manrope, sans-serif) !important;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #111111;
}

.nprof-endpoint__lede {
  margin: 0.45rem 0 0;
  color: #666666;
  font-size: 0.92rem;
  line-height: 1.5;
}

.nprof-endpoint__section {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #666666;
}

.nprof-order-view__steps {
  margin: 0 0 1.5rem;
  max-width: 28rem;
}

.nprof-order-notes {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fafafa;
}

.nprof-order-notes__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.nprof-order-notes__list time {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888888;
}

.nprof-order-notes__list p {
  margin: 0;
  font-size: 0.9rem;
  color: #333333;
  line-height: 1.5;
}

/* ===== Orders cards ===== */
.nprof-orders__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nprof-orders__card {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.nprof-orders__link {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) 1.25rem;
  gap: 0.85rem;
  align-items: center;
  padding: 0.95rem 1rem;
  text-decoration: none;
  color: inherit;
}

.nprof-orders__thumb {
  width: 4rem;
  height: 4rem;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f0f0;
  border: 1px solid #e8e8e8;
}

.nprof-orders__thumb img,
.nprof-orders__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nprof-orders__thumb-fallback {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0f0f0, #e4e4e4);
}

.nprof-orders__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.nprof-orders__num {
  font-size: 1rem;
  font-weight: 700;
  color: #111111;
}

.nprof-orders__badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #f0f0f0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #111111;
  white-space: nowrap;
}

.nprof-orders__card--processing .nprof-orders__badge,
.nprof-orders__card--on-hold .nprof-orders__badge {
  background: #111111;
  color: #ffffff;
}

.nprof-orders__card--shipped .nprof-orders__badge {
  background: #dbeafe;
  color: #1e3a8a;
}

.nprof-orders__card--completed .nprof-orders__badge {
  background: #eaf6ef;
  color: #14532d;
}

.nprof-orders__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #888888;
}

.nprof-orders__total {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111111;
}

.nprof-orders__chevron {
  color: #111111;
  opacity: 0.35;
  display: inline-flex;
}

.nprof-orders__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 1rem 0.9rem;
}

.nprof-orders__action {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  background: #ffffff;
  color: #111111;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 650;
}

.nprof-orders__action--pay,
.nprof-orders__action--view {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.nprof-orders__pager {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.nprof-empty {
  padding: 2.5rem 1.25rem;
  text-align: center;
  border: 1px dashed #e0e0e0;
  border-radius: 12px;
  background: #fafafa;
}

.nprof-empty__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 650;
  color: #111111;
}

.nprof-empty__text {
  margin: 0.45rem 0 1.15rem;
  color: #666666;
}

/* ===== Addresses ===== */
.nprof-addresses__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.nprof-addresses__card {
  padding: 1.15rem 1.2rem;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #ffffff;
}

.nprof-addresses__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.nprof-addresses__card-head h2 {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #666666;
}

.nprof-addresses__edit {
  font-size: 0.82rem;
  font-weight: 650;
  color: #111111;
  text-decoration: none;
  border-bottom: 1px solid #111111;
}

.nprof-addresses__card address {
  margin: 0;
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #333333;
}

/* ===== Forms ===== */
.nprof-form-card {
  padding: 1.25rem 1.25rem 1.35rem;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #ffffff;
}

.nprof-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.nprof-form-grid .form-row {
  width: 100% !important;
  float: none !important;
}

.nucifera-account-form .form-row {
  margin: 0 0 1rem;
}

.nucifera-account-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: #444444;
}

.nucifera-account-form .nucifera-input,
.nucifera-account-form input.input-text,
.nucifera-account-form select,
.nucifera-account-form textarea,
.nprof-main .woocommerce-Input,
.nprof-main .input-text,
.nprof-main select {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  font-family: inherit;
  font-size: 0.95rem;
  box-shadow: none;
}

.nucifera-account-form .nucifera-input:focus,
.nprof-main .input-text:focus,
.nprof-main select:focus {
  outline: none;
  border-color: #111111;
}

.nucifera-account-form__password {
  margin: 1.25rem 0 0;
  padding: 1.1rem 1rem 0.25rem;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fafafa;
}

.nucifera-account-form__password legend {
  padding: 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666666;
}

.nprof-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.nprof-form-actions .button,
.nprof-main .button.napp-btn {
  float: none;
}

/* Hide default WC mark highlights / leftover order tables */
.nprof-main mark {
  background: transparent;
  color: inherit;
  font-weight: 700;
}

.nprof-order-view .woocommerce-order-details,
.nprof-order-view .woocommerce-customer-details,
.nprof-order-view .woocommerce-table--order-details,
.nprof-orders .woocommerce-orders-table {
  display: none !important;
}

/* Payment methods / leftover WC blocks */
.nprof-main .woocommerce-PaymentMethods,
.nprof-main .woocommerce-MyAccount-paymentMethods,
.nprof-main .woocommerce-Message,
.nprof-main .woocommerce-info,
.nprof-main .woocommerce-message {
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 1100px) {
  .nprof-shell {
    padding: 36px 28px;
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .nprof-main {
    padding-left: 32px;
  }
}

@media (max-width: 899px) {
  .nprof-shell {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 0 0;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .nprof-sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-right: 0;
    padding: 0 16px 0.65rem;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    background: #ffffff;
    margin: 0;
    border-bottom: 1px solid #e8e8e8;
    overflow: hidden;
    box-sizing: border-box;
  }

  .nprof-sidebar__user {
    display: none;
  }

  .nprof-nav {
    position: relative;
    min-width: 0;
    max-width: 100%;
  }

  .nprof-nav::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0.55rem;
    width: 2rem;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff 85%);
    z-index: 1;
  }

  .nprof-nav__list {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    gap: 0.4rem;
    padding: 0.15rem 0 0.55rem;
    margin: 0;
    max-width: 100%;
    min-width: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nprof-nav__list::-webkit-scrollbar {
    display: none;
  }

  .nprof-nav a {
    grid-template-columns: 18px auto;
    white-space: nowrap;
    padding: 0.7rem 0.9rem;
    border: 1px solid #e8e8e8;
    border-radius: 999px;
    background: #ffffff;
    font-size: 0.82rem;
  }

  .nprof-nav li.is-active > a,
  .nprof-nav a.is-active {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
  }

  .nprof-nav li.is-active > a .nprof-nav__icon,
  .nprof-nav a.is-active .nprof-nav__icon {
    color: #ffffff;
  }

  .nprof-nav__chevron {
    display: none;
  }

  .nprof-logout {
    display: none;
  }

  .nprof-main {
    padding: 0 16px 1rem;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
  }

  .nprof-stats,
  .nprof-actions,
  .nprof-banner,
  .nprof-hero {
    max-width: 100%;
    min-width: 0;
  }

  .nprof-main .napp-receipt,
  .nprof-main .nprof-endpoint {
    max-width: none;
  }

  .nprof-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.15rem;
  }

  .nprof-avatar--lg {
    width: 96px;
    height: 96px;
  }

  .nprof-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 0;
    column-gap: 0;
  }

  .nprof-stat {
    border-right: 0;
    padding: 0.55rem 1.15rem;
    box-sizing: border-box;
  }

  .nprof-stat:first-child,
  .nprof-stat:nth-child(odd) {
    padding-left: 0;
  }

  .nprof-stat:nth-child(odd) {
    border-right: 1px solid #e8e8e8;
    padding-right: 1.25rem;
  }

  .nprof-stat:nth-child(even) {
    padding-left: 1.25rem;
    padding-right: 0;
  }

  .nprof-stat__label {
    max-width: 100%;
    line-height: 1.35;
  }

  .nprof-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nprof-banner {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }

  .nprof-banner__art {
    display: none;
  }

  .nprof-addresses__grid,
  .nprof-form-grid {
    grid-template-columns: 1fr;
  }

  .nprof-orders__link {
    grid-template-columns: 3.5rem minmax(0, 1fr) 1rem;
    padding: 0.85rem;
  }

  .nprof-form-actions {
    position: sticky;
    bottom: 0.75rem;
    z-index: 15;
    margin: 1.25rem 0 0;
    padding: 0.65rem 0 0.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 28%);
  }

  .nprof-form-actions .napp-btn,
  .nprof-form-actions .button {
    flex: 1 1 auto;
    min-width: 0;
  }

  .nprof-order-view__steps {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .nprof-form-actions {
    bottom: calc(var(--nucifera-bottom-nav-h, 4.5rem) + 0.5rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 520px) {
  .nprof-actions {
    grid-template-columns: 1fr;
  }

  .nprof-orders__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nprof-orders__action {
    justify-content: center;
  }

  .nprof-endpoint__title {
    font-size: 1.45rem;
  }

  .nprof-avatar--lg {
    width: 84px;
    height: 84px;
  }

  .nprof-stat__value {
    font-size: 1.55rem;
  }
}
