/* NeuroSnax — Moje konto */

body.ns-account-page {
  background:var(--off);
}

.ns-account-wrap {
  width: 100%;
}

.ns-account-hero {
  background:var(--yellow);
  border-bottom:var(--border);
  padding: 40px 80px 36px;
  position: relative;
  overflow: hidden;
}

.ns-account-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:radial-gradient(circle, rgba(17,17,20,0.08) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  pointer-events: none;
}

.ns-account-hero > * {
  position: relative;
  z-index: 1;
}

.ns-account-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: 2px;
  line-height: 0.9;
  margin: 0 0 10px;
}

.ns-account-lead {
  max-width: 520px;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color:rgba(17,17,20,0.62);
}

.ns-account-main {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 80px 72px;
  box-sizing: border-box;
}

body.logged-in.ns-account-page .woocommerce {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

body.ns-account-page .woocommerce-notices-wrapper,
body.ns-account-page .woocommerce-message,
body.ns-account-page .woocommerce-info,
body.ns-account-page .woocommerce-error,
body.ns-account-page .woocommerce-error li {
  grid-column: 1 / -1;
}

body.ns-account-page .woocommerce-message,
body.ns-account-page .woocommerce-info {
  background:var(--yellow);
  border:var(--border);
  box-shadow:4px 4px 0 var(--black);
  color:var(--black);
  font-weight: 700;
  padding: 14px 18px;
  margin: 0 0 8px;
}

body.ns-account-page .woocommerce-error {
  background:var(--red);
  border:var(--border);
  color:var(--color-bg-primary,#FFFFFF);
  font-weight: 700;
  padding: 14px 18px;
}

/* ── Nav ── */
body.ns-account-page .woocommerce-MyAccount-navigation {
  background:var(--white);
  border:var(--border);
  box-shadow:5px 5px 0 var(--black);
}

body.ns-account-page .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.ns-account-page .woocommerce-MyAccount-navigation li {
  margin: 0;
  border-bottom:2px solid rgba(17,17,20,0.08);
}

body.ns-account-page .woocommerce-MyAccount-navigation li:last-child {
  border-bottom:none;
}

body.ns-account-page .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 14px 18px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color:var(--black);
  transition: background 0.15s, color 0.15s;
}

body.ns-account-page .woocommerce-MyAccount-navigation a:hover {
  background:var(--off);
}

body.ns-account-page .woocommerce-MyAccount-navigation li.is-active a {
  background:var(--yellow);
}

body.ns-account-page .woocommerce-MyAccount-navigation-link--customer-logout a {
  color:var(--red);
}

/* ── Content ── */
body.ns-account-page .woocommerce-MyAccount-content {
  background:var(--white);
  border:var(--border);
  box-shadow:5px 5px 0 var(--black);
  padding: 28px 32px 36px;
  min-width: 0;
}

body.ns-account-page .woocommerce-MyAccount-content > p:first-child {
  font-size: 16px;
  line-height: 1.55;
  color:rgba(17,17,20,0.7);
  margin-bottom: 20px;
}

body.ns-account-page .woocommerce-MyAccount-content h2,
body.ns-account-page .woocommerce-MyAccount-content h3,
body.ns-account-page .ns-account-sub h2,
body.ns-account-page .ns-account-sub h3 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1.5px;
  line-height: 1;
  margin: 0 0 16px;
}

body.ns-account-page .woocommerce-MyAccount-content h2,
body.ns-account-page .ns-account-sub h2 {
  font-size: 34px;
}

body.ns-account-page .woocommerce-MyAccount-content h3,
body.ns-account-page .ns-account-sub h3 {
  font-size: 24px;
  margin-top: 28px;
}

/* ── Dashboard cards ── */
.ns-account-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 28px;
}

.ns-account-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px 20px;
  border:var(--border);
  background:var(--off);
  box-shadow:4px 4px 0 var(--black);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.ns-account-card:hover {
  background:var(--yellow);
  transform: translate(-2px, -2px);
  box-shadow:6px 6px 0 var(--black);
}

.ns-account-card__tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color:var(--pink);
}

.ns-account-card__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  font-weight: 400;
}

.ns-account-card__text {
  font-size: 13px;
  line-height: 1.45;
  color:rgba(17,17,20,0.58);
}

/* ── Tables / orders ── */
body.ns-account-page table.shop_table {
  width: 100%;
  border-collapse: collapse;
  border:var(--border);
  margin: 8px 0 20px;
}

body.ns-account-page table.shop_table th,
body.ns-account-page table.shop_table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom:2px solid rgba(17,17,20,0.08);
  font-size: 14px;
  vertical-align: middle;
}

body.ns-account-page table.shop_table th {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background:var(--off);
}

body.ns-account-page table.shop_table tr:last-child td {
  border-bottom:none;
}

body.ns-account-page .woocommerce-pagination {
  margin-top: 16px;
}

/* ── Buttons ── */
body.ns-account-page .woocommerce-button,
body.ns-account-page .button,
body.ns-account-page button[type="submit"],
body.ns-account-page .woocommerce-form-login__submit,
body.ns-account-page .woocommerce-EditAccountForm button,
body.ns-account-page .ns-account-sub .button {
  display: inline-block;
  background:var(--yellow);
  color:var(--black);
  border:var(--border);
  box-shadow:3px 3px 0 var(--black);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 16px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

body.ns-account-page .woocommerce-button:hover,
body.ns-account-page .button:hover,
body.ns-account-page button[type="submit"]:hover {
  transform: translate(-1px, -1px);
  box-shadow:4px 4px 0 var(--black);
  background:var(--white);
}

body.ns-account-page .ns-account-sub__cancel .button {
  background:var(--color-bg-primary,#FFFFFF);
  color:var(--red);
}

/* ── Forms / addresses ── */
body.ns-account-page .woocommerce-address-fields,
body.ns-account-page .woocommerce-address-fields-label,
body.ns-account-page .u-columns,
body.ns-account-page .woocommerce-Addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.ns-account-page .woocommerce-Address,
body.ns-account-page address {
  background:var(--off);
  border:var(--border);
  padding: 18px 20px;
  font-style: normal;
  line-height: 1.5;
}

body.ns-account-page .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

body.ns-account-page .woocommerce-Address-title h2,
body.ns-account-page .woocommerce-column__title {
  font-size: 22px;
  margin: 0;
}

body.ns-account-page .woocommerce-form-row,
body.ns-account-page .form-row {
  margin: 0 0 14px;
}

body.ns-account-page label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
  color:rgba(17,17,20,0.55);
}

body.ns-account-page input[type="text"],
body.ns-account-page input[type="email"],
body.ns-account-page input[type="tel"],
body.ns-account-page input[type="password"],
body.ns-account-page input[type="number"],
body.ns-account-page select,
body.ns-account-page textarea {
  width: 100%;
  border:var(--border);
  background:var(--color-bg-primary,#FFFFFF);
  padding: 12px 14px;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color:var(--black);
}

body.ns-account-page input:focus,
body.ns-account-page select:focus,
body.ns-account-page textarea:focus {
  outline:none;
  border-color:var(--pink);
  background:var(--off);
}

/* ── Login (guest on account page) ── */
body.ns-account-page .woocommerce-form-login,
body.ns-account-page .woocommerce-form-register {
  background:var(--white);
  border:var(--border);
  box-shadow:5px 5px 0 var(--black);
  padding: 28px;
  max-width: 480px;
}

/* ── Subscriptions ── */
.ns-account-sub__empty {
  padding: 8px 0 4px;
  color:rgba(17,17,20,0.65);
}

.ns-account-sub__back {
  display: inline-block;
  margin-bottom: 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
}

.ns-account-sub__back:hover {
  color:var(--pink);
}

.ns-account-status {
  display: inline-block;
  padding: 4px 10px;
  border:2px solid var(--black);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background:var(--off);
}

.ns-account-status--active {
  background:var(--yellow);
}

.ns-account-status--on-hold,
.ns-account-status--pending_payment {
  background:var(--color-bg-primary,#FFFFFF);
}

.ns-account-status--cancelled {
  background:var(--color-bg-secondary,#F3F3EF);
  color:rgba(17,17,20,0.5);
}

.ns-account-sub__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 24px;
}

.ns-account-sub__meta p {
  margin: 0;
  background:var(--off);
  border:2px solid rgba(17,17,20,0.12);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
}

.ns-account-sub__meta strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color:rgba(17,17,20,0.5);
  margin-bottom: 4px;
}

.ns-account-sub__config {
  grid-column: 1 / -1;
  background:var(--off);
  border:2px solid rgba(17,17,20,0.12);
  padding: 12px 14px;
}

.ns-account-sub__config p {
  margin: 0 0 8px;
  background:none;
  border:0;
  padding: 0;
}

.ns-account-sub__items {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
}

.ns-account-sub__cancel {
  margin: 8px 0 28px;
}

/* ── MailPoet manage-subscription on account ── */
.ns-account-main > .mailpoet_manage_subscription,
.ns-account-main > .mailpoet-manage-subscription,
body.ns-account-page .mailpoet_manage_subscription,
body.ns-account-page .mailpoet-manage-subscription,
body.ns-account-page [class*="mailpoet_manage"] {
  margin-top: 28px;
  padding: 20px 22px;
  background:var(--white);
  border:var(--border);
  box-shadow:5px 5px 0 var(--black);
}

body.ns-account-page .woocommerce .mailpoet_manage_subscription,
body.ns-account-page .woocommerce .mailpoet-manage-subscription {
  grid-column: 1 / -1;
}

body.ns-account-page .mailpoet_manage_subscription h2,
body.ns-account-page .mailpoet-manage-subscription h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 1px;
  margin: 0 0 12px;
}

body.ns-account-page .mailpoet-manage-subscription button,
body.ns-account-page .mailpoet_manage_subscription button {
  background:var(--black);
  color:var(--yellow);
  border:var(--border);
  box-shadow:4px 4px 0 var(--pink);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 20px;
}

@media (max-width: 900px) {
  .ns-account-hero,
  .ns-account-main {
    padding-left: 20px;
    padding-right: 20px;
  }

  body.ns-account-page .woocommerce {
    grid-template-columns: 1fr;
  }

  body.ns-account-page .woocommerce-MyAccount-navigation ul {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.ns-account-page .woocommerce-MyAccount-navigation li {
    border-bottom:none;
    border-right:2px solid rgba(17,17,20,0.08);
    flex: 0 0 auto;
  }

  body.ns-account-page .woocommerce-MyAccount-navigation a {
    white-space: nowrap;
    padding: 12px 16px;
  }

  body.ns-account-page .woocommerce-MyAccount-content {
    padding: 20px 18px 28px;
  }

  .ns-account-cards,
  .ns-account-sub__meta,
  body.ns-account-page .woocommerce-Addresses,
  body.ns-account-page .u-columns {
    grid-template-columns: 1fr;
  }

  body.ns-account-page table.shop_table,
  body.ns-account-page table.shop_table thead,
  body.ns-account-page table.shop_table tbody,
  body.ns-account-page table.shop_table th,
  body.ns-account-page table.shop_table td,
  body.ns-account-page table.shop_table tr {
    display: block;
  }

  body.ns-account-page table.shop_table thead {
    display: none;
  }

  body.ns-account-page table.shop_table tr {
    border-bottom:3px solid var(--black);
    padding: 10px 0;
  }

  body.ns-account-page table.shop_table td {
    border:none;
    padding: 6px 0;
  }
}
