/* ============================================================
   Arkan — My Account (auth card + dashboard)
   Spec: _build/specs/account.md
   Namespace: .arkan-acc__*  (prototype used acc-*)
   ============================================================ */

/* The account nav variant is the light/solid header — already global.
   Page owns only the two views below. */

.arkan-acc {
  background: var(--cream);
}

/* ---------- shared section paddings ---------- */
.arkan-acc__sec {
  width: 100%;
  background: var(--cream);
  padding-left: 48px;
  padding-right: 48px;
}

/* ============================================================
   VIEW A — LOGIN / REGISTER
   ============================================================ */
.arkan-acc__auth {
  padding-top: 58px;
  padding-bottom: 96px;
}

.arkan-acc__auth-head {
  text-align: center;
  margin-bottom: 40px;
}

.arkan-acc__kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--burgundy);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.arkan-acc__auth-title {
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}

.arkan-acc__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px 0 0;
}
.arkan-acc__divider span:first-child {
  width: 56px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(107, 29, 44, 0.5));
}
.arkan-acc__divider span:nth-child(2) {
  width: 9px;
  height: 9px;
  background: var(--burgundy);
  transform: rotate(45deg);
  display: block;
}
.arkan-acc__divider span:last-child {
  width: 56px;
  height: 1px;
  background: linear-gradient(to left, transparent, rgba(107, 29, 44, 0.5));
}

.arkan-acc__card {
  max-width: 460px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(45, 10, 18, 0.06);
  border-radius: 18px;
  box-shadow: 0 16px 50px rgba(45, 10, 18, 0.06);
  padding: 12px 12px 38px;
}

/* segmented tab switch */
.arkan-acc__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 30px;
}
.arkan-acc__tab {
  border: none;
  cursor: pointer;
  border-radius: 9px;
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
  background: transparent;
  color: #8a8078;
  box-shadow: none;
}
.arkan-acc__tab.is-active {
  background: #fff;
  color: var(--burgundy);
  box-shadow: 0 2px 8px rgba(45, 10, 18, 0.08);
}

/* form body */
.arkan-acc__form-body {
  padding: 0 30px;
}
.arkan-acc__field {
  margin-bottom: 16px;
}
.arkan-acc__field--pw {
  margin-bottom: 14px;
}
.arkan-acc__label {
  display: block;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--burgundy);
  text-transform: uppercase;
  margin-bottom: 9px;
}
.arkan-acc__input {
  width: 100%;
  border: 1.5px solid rgba(26, 22, 20, 0.16);
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 13px;
  font-family: var(--sans);
  color: #2c2420;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.arkan-acc__input::placeholder {
  color: var(--muted-2);
}
.arkan-acc__input:focus {
  border-color: var(--burgundy);
}
.arkan-acc__input.is-error {
  border-color: var(--err);
}
.arkan-acc__pw-wrap {
  position: relative;
}
.arkan-acc__input--pw {
  padding: 13px 44px 13px 15px;
}
.arkan-acc__eye {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  display: flex;
  color: #8a8078;
}
.arkan-acc__eye svg[hidden] {
  display: none;
}
.arkan-acc__err {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--err);
  margin-top: 6px;
}
.arkan-acc__err[hidden] {
  display: none;
}

/* remember row */
.arkan-acc__remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.arkan-acc__remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.arkan-acc__remember-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(26, 22, 20, 0.3);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.arkan-acc__remember.is-checked .arkan-acc__remember-box {
  background: var(--burgundy);
  border-color: var(--burgundy);
}
.arkan-acc__remember-box svg {
  display: none;
}
.arkan-acc__remember.is-checked .arkan-acc__remember-box svg {
  display: block;
}
.arkan-acc__remember-label {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--body);
}
.arkan-acc__forgot {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  color: #8a8078;
  transition: color 0.2s;
}
.arkan-acc__forgot:hover {
  color: var(--burgundy);
}

/* primary CTA */
.arkan-acc__cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--burgundy);
  color: #fff;
  border: none;
  border-radius: 10px;
  height: 54px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s;
}
.arkan-acc__cta:hover {
  background: var(--burgundy-dark);
}

/* or separator */
.arkan-acc__or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
}
.arkan-acc__or span:first-child,
.arkan-acc__or span:last-child {
  flex: 1;
  height: 1px;
  background: rgba(26, 22, 20, 0.12);
}
.arkan-acc__or-text {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  text-transform: uppercase;
}

/* social */
.arkan-acc__social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.arkan-acc__social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #fff;
  border: 1.5px solid rgba(26, 22, 20, 0.16);
  border-radius: 10px;
  height: 48px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.2s;
}
.arkan-acc__social-btn:hover {
  border-color: var(--burgundy);
}

.arkan-acc__legal {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  color: #8a8078;
  text-align: center;
  line-height: 1.7;
  margin-top: 22px;
}

/* WooCommerce reveals both login + register forms; JS shows one at a time. */
.arkan-acc__pane[hidden] {
  display: none;
}

/* ============================================================
   VIEW B — DASHBOARD
   ============================================================ */

/* header band */
.arkan-acc__band {
  padding-top: 40px;
  padding-bottom: 22px;
}
.arkan-acc__band-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.arkan-acc__hello {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.arkan-acc__tier {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  background: var(--maroon);
  border-radius: 24px;
  padding: 7px 15px;
}
.arkan-acc__tier-text {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #f6ede0;
  text-transform: uppercase;
}
.arkan-acc__signout {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: 1.5px solid rgba(26, 22, 20, 0.2);
  border-radius: 30px;
  padding: 11px 24px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.arkan-acc__signout:hover {
  border-color: var(--burgundy);
  color: var(--burgundy);
}

/* stat row */
.arkan-acc__stats-sec {
  padding-top: 4px;
  padding-bottom: 8px;
}
.arkan-acc__stats {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.arkan-acc__stat {
  background: #fff;
  border: 1px solid rgba(45, 10, 18, 0.06);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(45, 10, 18, 0.04);
  padding: 20px 22px;
}
.arkan-acc__stat-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #8a8078;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.arkan-acc__stat-value {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.arkan-acc__stat-value--burgundy {
  color: var(--burgundy);
}
.arkan-acc__stat-bar {
  height: 5px;
  border-radius: 5px;
  background: #eadfd2;
  overflow: hidden;
  margin-top: 12px;
}
.arkan-acc__stat-bar > span {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #c9a24a, #6b1d2c);
}
.arkan-acc__stat-caption {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  color: #8a8078;
  margin-top: 8px;
}

/* main grid */
.arkan-acc__main {
  padding-top: 18px;
  padding-bottom: 90px;
}
.arkan-acc__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 256px 1fr;
  gap: 30px;
  align-items: start;
}

/* Grid/flex children default to min-width:auto, so they refuse to shrink below
   their content's min-content width — the horizontally scrolling nav row then
   forced the whole account column (and the page) to ~608px at 390. */
.arkan-acc__side,
.arkan-acc__content {
  min-width: 0;
}

/* sidebar */
.arkan-acc__side {
  background: #fff;
  border: 1px solid rgba(45, 10, 18, 0.06);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(45, 10, 18, 0.05);
  padding: 16px;
  position: sticky;
  top: 96px;
}
.arkan-acc__profile {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 14px 18px;
  border-bottom: 1px solid rgba(26, 22, 20, 0.08);
  margin-bottom: 12px;
}
.arkan-acc__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--burgundy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  flex-shrink: 0;
}
.arkan-acc__profile-meta {
  min-width: 0;
}
.arkan-acc__profile-name {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.arkan-acc__profile-email {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  color: #8a8078;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arkan-acc__navlist {
  display: flex;
  flex-direction: column;
}
.arkan-acc__navitem {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 13px 14px;
  margin-bottom: 4px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
  color: var(--body);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 400;
}
.arkan-acc__navlist > .arkan-acc__navitem:last-child {
  margin-bottom: 0;
}
.arkan-acc__navitem svg {
  color: var(--body);
  flex-shrink: 0;
}
.arkan-acc__navitem.is-active {
  background: var(--cream);
  color: var(--burgundy);
  font-weight: 600;
}
.arkan-acc__navitem.is-active svg {
  color: var(--burgundy);
}
.arkan-acc__navitem-label {
  color: inherit;
}
.arkan-acc__navitem-badge {
  margin-left: auto;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: var(--burgundy);
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- content headings ---------- */
.arkan-acc__content-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
.arkan-acc__h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
}
.arkan-acc__count {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  color: #8a8078;
}
.arkan-acc__h2--mb {
  margin-bottom: 22px;
}

/* ---------- Orders ---------- */
.arkan-acc__filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.arkan-acc__pills {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.arkan-acc__pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1.5px solid rgba(26, 22, 20, 0.2);
  color: var(--ink);
  border-radius: 30px;
  padding: 9px 17px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.arkan-acc__pill.is-active {
  background: var(--burgundy);
  color: #fff;
  border-color: var(--burgundy);
}
.arkan-acc__pill-count {
  opacity: 0.6;
  font-size: 10px;
}
.arkan-acc__search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 210px;
}
.arkan-acc__search svg {
  position: absolute;
  left: 14px;
  pointer-events: none;
}
.arkan-acc__search-input {
  width: 100%;
  border: 1.5px solid rgba(26, 22, 20, 0.16);
  border-radius: 30px;
  padding: 11px 16px 11px 40px;
  font-size: 12.5px;
  font-family: var(--sans);
  color: #2c2420;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.arkan-acc__search-input:focus {
  border-color: var(--burgundy);
}

/* empty state */
.arkan-acc__empty {
  background: #fff;
  border: 1px solid rgba(45, 10, 18, 0.06);
  border-radius: 16px;
  padding: 60px 30px;
  text-align: center;
}
.arkan-acc__empty[hidden] {
  display: none;
}
.arkan-acc__empty svg {
  margin: 0 auto 18px;
  display: block;
}
.arkan-acc__empty-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}
.arkan-acc__empty-text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: #8a8078;
}

.arkan-acc__orders {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.arkan-acc__order {
  background: #fff;
  border: 1px solid rgba(45, 10, 18, 0.06);
  border-radius: 16px;
  box-shadow: 0 8px 34px rgba(45, 10, 18, 0.04);
  overflow: hidden;
}
.arkan-acc__order[hidden] {
  display: none;
}
.arkan-acc__order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 26px;
  background: var(--cream);
  border-bottom: 1px solid rgba(26, 22, 20, 0.07);
}
.arkan-acc__order-meta {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}
.arkan-acc__meta-label {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #8a8078;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.arkan-acc__meta-value {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
}
.arkan-acc__meta-value--id {
  font-weight: 600;
  letter-spacing: 0.03em;
}
.arkan-acc__meta-value--total {
  font-weight: 600;
}
.arkan-acc__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 15px;
  border-radius: 20px;
}
.arkan-acc__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: block;
}
.arkan-acc__status--delivered {
  color: #2f8f5b;
  background: #e7f4ec;
}
.arkan-acc__status--delivered .arkan-acc__status-dot {
  background: #2f8f5b;
}
.arkan-acc__status--processing {
  color: #b8863b;
  background: #f7efdf;
}
.arkan-acc__status--processing .arkan-acc__status-dot {
  background: #b8863b;
}
.arkan-acc__status--shipped {
  color: #6b1d2c;
  background: #f4e6e9;
}
.arkan-acc__status--shipped .arkan-acc__status-dot {
  background: #6b1d2c;
}

.arkan-acc__order-body {
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.arkan-acc__order-thumbs {
  display: flex;
  gap: 14px;
  flex: 1;
  min-width: 200px;
  flex-wrap: wrap;
}
.arkan-acc__item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.arkan-acc__thumb {
  width: 52px;
  height: 64px;
  border-radius: 8px;
  background-color: var(--well);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.arkan-acc__item-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
}
.arkan-acc__item-meta {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 400;
  color: #8a8078;
  margin-top: 2px;
}
.arkan-acc__order-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.arkan-acc__reorder {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--burgundy);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 11px 22px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s;
}
.arkan-acc__reorder:hover {
  background: var(--burgundy-dark);
}
.arkan-acc__reorder[disabled] {
  opacity: 0.6;
  cursor: default;
}
.arkan-acc__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(26, 22, 20, 0.2);
  border-radius: 24px;
  padding: 11px 20px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.arkan-acc__toggle:hover {
  border-color: var(--burgundy);
  color: var(--burgundy);
}
.arkan-acc__toggle-chev {
  display: inline-flex;
  transform: rotate(0deg);
  transition: transform 0.25s;
}
.arkan-acc__order.is-open .arkan-acc__toggle-chev {
  transform: rotate(180deg);
}

/* expanded detail */
.arkan-acc__detail {
  padding: 4px 26px 26px;
  animation: arkanAccExpand 0.25s ease;
}
.arkan-acc__detail[hidden] {
  display: none;
}
@keyframes arkanAccExpand {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* tracking */
.arkan-acc__track {
  background: var(--cream);
  border-radius: 12px;
  padding: 24px 24px 20px;
  margin-bottom: 20px;
}
.arkan-acc__track-title {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--burgundy);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.arkan-acc__stepper {
  display: flex;
  position: relative;
}
.arkan-acc__step {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.arkan-acc__step-line-l,
.arkan-acc__step-line-r {
  position: absolute;
  top: 9px;
  height: 2px;
  background: #e3d9cd;
}
.arkan-acc__step-line-l {
  left: 0;
  right: 50%;
}
.arkan-acc__step-line-r {
  left: 50%;
  right: 0;
}
.arkan-acc__step.is-done .arkan-acc__step-line-l,
.arkan-acc__step.is-done .arkan-acc__step-line-r,
.arkan-acc__step.is-current .arkan-acc__step-line-l {
  background: var(--burgundy);
}
.arkan-acc__step:first-child .arkan-acc__step-line-l {
  background: transparent;
}
.arkan-acc__step:last-child .arkan-acc__step-line-r {
  background: transparent;
}
.arkan-acc__step-dot {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cream-2);
  border: 2px solid #e3d9cd;
  display: flex;
  align-items: center;
  justify-content: center;
}
.arkan-acc__step.is-done .arkan-acc__step-dot,
.arkan-acc__step.is-current .arkan-acc__step-dot {
  background: var(--burgundy);
  border-color: var(--burgundy);
}
.arkan-acc__step-dot svg {
  display: none;
}
.arkan-acc__step.is-done .arkan-acc__step-dot svg {
  display: block;
}
.arkan-acc__step-dot-inner {
  display: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}
.arkan-acc__step.is-current .arkan-acc__step-dot-inner {
  display: block;
}
.arkan-acc__step-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted-2);
  margin-top: 10px;
}
.arkan-acc__step.is-done .arkan-acc__step-label {
  color: var(--ink);
}
.arkan-acc__step.is-current .arkan-acc__step-label {
  color: var(--ink);
  font-weight: 600;
}
.arkan-acc__step-sub {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 400;
  color: var(--muted-2);
  margin-top: 2px;
  min-height: 12px;
}

/* line items + totals */
.arkan-acc__lines {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.arkan-acc__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(26, 22, 20, 0.07);
}
.arkan-acc__line-name {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--body);
}
.arkan-acc__line-price {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
}
.arkan-acc__totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  max-width: 300px;
  margin-left: auto;
}
.arkan-acc__total-row {
  display: flex;
  justify-content: space-between;
}
.arkan-acc__total-row span:first-child {
  font-family: var(--sans);
  font-size: 12px;
  color: #8a8078;
}
.arkan-acc__total-row span:last-child {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink);
}
.arkan-acc__total-row--grand {
  padding-top: 8px;
  border-top: 1px solid rgba(26, 22, 20, 0.1);
}
.arkan-acc__total-row--grand span:first-child {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.arkan-acc__total-row--grand span:last-child {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--burgundy);
}
.arkan-acc__detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.arkan-acc__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--burgundy);
  border: 1.5px solid rgba(107, 29, 44, 0.3);
  border-radius: 24px;
  padding: 10px 20px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.2s;
}
.arkan-acc__live:hover {
  border-color: var(--burgundy);
}
.arkan-acc__invoice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(26, 22, 20, 0.2);
  border-radius: 24px;
  padding: 10px 20px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.arkan-acc__invoice:hover {
  border-color: var(--burgundy);
  color: var(--burgundy);
}

/* ---------- Addresses ---------- */
.arkan-acc__addrgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.arkan-acc__addr {
  background: #fff;
  border: 1px solid rgba(45, 10, 18, 0.06);
  border-radius: 16px;
  box-shadow: 0 8px 34px rgba(45, 10, 18, 0.04);
  padding: 26px;
}
.arkan-acc__addr-tags {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}
.arkan-acc__addr-default {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--burgundy);
  background: var(--cream-2);
  padding: 5px 12px;
  border-radius: 16px;
  text-transform: uppercase;
}
.arkan-acc__addr-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.arkan-acc__addr-text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--body);
  line-height: 1.8;
}
.arkan-acc__addr-actions {
  display: flex;
  gap: 18px;
  margin-top: 18px;
}
.arkan-acc__addr-edit {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--burgundy);
  text-transform: uppercase;
}
.arkan-acc__addr-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #8a8078;
  text-transform: uppercase;
}
.arkan-acc__addr-add {
  grid-column: 1 / -1;
  background: transparent;
  border: 1.5px dashed rgba(107, 29, 44, 0.35);
  border-radius: 16px;
  padding: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.arkan-acc__addr-add:hover {
  border-color: var(--burgundy);
  background: var(--cream);
}
.arkan-acc__addr-add-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.arkan-acc__addr-add-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--burgundy);
  text-transform: uppercase;
}

/* ---------- Wishlist ---------- */
.arkan-acc__wishgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.arkan-acc__wish {
  background: #fff;
  border: 1px solid rgba(45, 10, 18, 0.06);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(45, 10, 18, 0.04);
  overflow: hidden;
}
.arkan-acc__wish-img {
  display: block;
  background: var(--well);
  aspect-ratio: 3 / 4;
}
.arkan-acc__wish-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.arkan-acc__wish-info {
  padding: 16px 16px 18px;
}
.arkan-acc__wish-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
}
.arkan-acc__wish-price {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--burgundy);
  margin: 6px 0 14px;
}
.arkan-acc__wish-add {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(26, 22, 20, 0.22);
  border-radius: 24px;
  height: 42px;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.arkan-acc__wish-add:hover {
  background: var(--burgundy);
  color: #fff;
  border-color: var(--burgundy);
}
.arkan-acc__wish-empty {
  background: #fff;
  border: 1px solid rgba(45, 10, 18, 0.06);
  border-radius: 16px;
  padding: 60px 30px;
  text-align: center;
  font-family: var(--sans);
  font-size: 13px;
  color: #8a8078;
}

/* ---------- Account Details ---------- */
.arkan-acc__details {
  max-width: 640px;
}
.arkan-acc__details-card {
  background: #fff;
  border: 1px solid rgba(45, 10, 18, 0.06);
  border-radius: 16px;
  box-shadow: 0 8px 34px rgba(45, 10, 18, 0.04);
  padding: 32px;
}
.arkan-acc__details-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.arkan-acc__details-field {
  margin-bottom: 18px;
}
.arkan-acc__details-field--last {
  margin-bottom: 26px;
}
.arkan-acc__save {
  background: var(--burgundy);
  color: #fff;
  border: none;
  border-radius: 10px;
  height: 50px;
  padding: 0 40px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s;
}
.arkan-acc__save:hover {
  background: var(--burgundy-dark);
}
/* WooCommerce password fieldset (kept for functionality; styled to match). */
.arkan-acc__details-card fieldset {
  border: none;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid rgba(26, 22, 20, 0.08);
}
.arkan-acc__details-card legend {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--burgundy);
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 0;
}

/* ---------- Edit Address form (real WC fields, Arkan styling) ---------- */
.arkan-acc__addr-form .woocommerce-address-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}
.arkan-acc__addr-form .form-row {
  margin: 0;
  display: flex;
  flex-direction: column;
}
/* Full-width rows: address lines + the hidden country field. */
.arkan-acc__addr-form .form-row-wide,
.arkan-acc__addr-form #billing_address_1_field,
.arkan-acc__addr-form #shipping_address_1_field,
.arkan-acc__addr-form #billing_address_2_field,
.arkan-acc__addr-form #shipping_address_2_field {
  grid-column: 1 / -1;
}
.arkan-acc__addr-form .arkan-hidden-field {
  display: none;
}
.arkan-acc__addr-form label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--burgundy);
  text-transform: uppercase;
  margin-bottom: 9px;
}
.arkan-acc__addr-form label .required {
  color: var(--burgundy);
  border: none;
}
.arkan-acc__addr-form .input-text,
.arkan-acc__addr-form select,
.arkan-acc__addr-form .select2-container .select2-selection {
  width: 100%;
  border: 1.5px solid rgba(26, 22, 20, 0.16);
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 13px;
  font-family: var(--sans);
  color: #2c2420;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.arkan-acc__addr-form .input-text:focus,
.arkan-acc__addr-form select:focus {
  border-color: var(--burgundy);
}
.arkan-acc__addr-form .arkan-acc__save {
  margin-top: 4px;
}
/* select2 (WC's state dropdown) — match the input height and clear the next label. */
.arkan-acc__addr-form .select2-container {
  width: 100% !important;
}
.arkan-acc__addr-form .select2-container .select2-selection--single {
  height: auto;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.arkan-acc__addr-form .select2-container--default .select2-selection__rendered {
  line-height: 1.4;
  padding-left: 0;
}
.arkan-acc__addr-form .select2-container--default .select2-selection__arrow {
  height: 100%;
}

@media (max-width: 640px) {
  .arkan-acc__addr-form .woocommerce-address-fields__field-wrapper {
    grid-template-columns: 1fr;
  }
}

/* WooCommerce notices restyled to sit above the panels. */
.arkan-acc .woocommerce-message,
.arkan-acc .woocommerce-error,
.arkan-acc .woocommerce-info {
  list-style: none;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(45, 10, 18, 0.06);
  border-left: 3px solid var(--burgundy);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 0 auto 18px;
  max-width: 1200px;
  box-shadow: 0 8px 30px rgba(45, 10, 18, 0.04);
}
.arkan-acc .woocommerce-error {
  border-left-color: var(--err);
  color: var(--err);
}
.arkan-acc__auth .woocommerce-message,
.arkan-acc__auth .woocommerce-error,
.arkan-acc__auth .woocommerce-info {
  max-width: 460px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .arkan-acc__grid {
    grid-template-columns: 1fr;
  }
  .arkan-acc__side {
    position: static;
  }
  /* Nav becomes a horizontally scrollable strip; min-width:0 is what actually
     lets it scroll instead of stretching its parent. */
  .arkan-acc__navlist {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
    min-width: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .arkan-acc__navlist::-webkit-scrollbar {
    display: none;
  }
  .arkan-acc__navitem {
    white-space: nowrap;
    flex-shrink: 0;
    width: auto;
    margin-bottom: 0;
  }
  /* The badge's margin-left:auto would push it to the strip end once the items
     sit in a row — keep it beside its label. */
  .arkan-acc__navitem-badge {
    margin-left: 0;
  }
  html[dir='rtl'] .arkan-acc__navitem-badge {
    margin-right: 0;
  }
  .arkan-acc__stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .arkan-acc__wishgrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .arkan-acc__addrgrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .arkan-acc__sec {
    padding-left: 18px;
    padding-right: 18px;
  }
  .arkan-acc__order-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
  }
  /* 34px between Order/Placed/Total overflowed 390; wrap them evenly instead. */
  .arkan-acc__order-meta {
    gap: 10px 22px;
    width: 100%;
  }
  .arkan-acc__order-body {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    gap: 16px;
  }
  .arkan-acc__order-thumbs {
    min-width: 0;
    width: 100%;
    gap: 12px;
  }
  .arkan-acc__item {
    min-width: 0;
  }
  .arkan-acc__item-name {
    font-size: 16px;
  }
  /* Reorder / View Details share the row and clear the 44px tap floor. */
  .arkan-acc__order-actions {
    width: 100%;
    gap: 8px;
  }
  .arkan-acc__reorder,
  .arkan-acc__toggle {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    min-height: 44px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .arkan-acc__filterbar {
    flex-direction: column;
    align-items: stretch;
  }
  .arkan-acc__search {
    min-width: 0;
  }
  /* Filter chips and sign-out are the primary controls here — measured 33px and
     39px, both under the 44px touch comfort size. Mobile only; desktop stays. */
  .arkan-acc__pill {
    min-height: 44px;
  }
  .arkan-acc__signout {
    min-height: 44px;
  }
  .arkan-acc__stats {
    grid-template-columns: 1fr 1fr;
  }
  .arkan-acc__stat {
    padding: 16px;
  }
  .arkan-acc__stat-value {
    font-size: 28px;
  }
  .arkan-acc__h2 {
    font-size: 26px;
  }

  /* Expanded order detail */
  .arkan-acc__detail {
    padding: 4px 18px 18px;
  }
  .arkan-acc__track {
    padding: 18px 14px 16px;
  }
  .arkan-acc__step-label {
    font-size: 10px;
  }
  .arkan-acc__step-sub {
    font-size: 9px;
  }
  .arkan-acc__line {
    align-items: flex-start;
  }
  .arkan-acc__line-name {
    min-width: 0;
    word-break: break-word;
  }
  .arkan-acc__line-price {
    white-space: nowrap;
  }
  .arkan-acc__totals {
    max-width: none;
  }
  .arkan-acc__detail-actions .arkan-acc__live,
  .arkan-acc__detail-actions .arkan-acc__invoice {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 44px;
  }

  /* Account details / address forms: one column, full-width save. */
  .arkan-acc__details-row {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }
  .arkan-acc__details-card {
    padding: 20px 18px;
  }
  .arkan-acc__save {
    width: 100%;
    padding: 0 20px;
  }
  .arkan-acc__addr {
    padding: 20px 18px;
  }
  .arkan-acc__addr-actions {
    gap: 14px;
  }
  .arkan-acc__addr-edit,
  .arkan-acc__addr-remove {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Header band: title + sign-out stack rather than squeeze. */
  .arkan-acc__band-inner {
    align-items: stretch;
  }
  .arkan-acc__signout {
    align-self: flex-start;
  }

  /* iOS Safari zooms the viewport when focusing a field under 16px — that zoom
     is what makes a form feel "broken" on a phone. 16px is the threshold. */
  .arkan-acc__input,
  .arkan-acc__search-input,
  .arkan-acc__addr-form .input-text,
  .arkan-acc__addr-form select {
    font-size: 16px;
  }
}

/* ============================================================
   WooCommerce fallback templates inside the account shell.
   view-order/ has no Arkan override, so it renders Woo's raw
   markup: default serif, yellow <mark> highlights, bare tables.
   This is not a redesign — just enough of the theme's own tokens
   that the page reads as Arkan and cannot blow the 390 viewport
   open. A proper view-order design is still outstanding.
   ============================================================ */
.arkan-acc__content table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
}

.arkan-acc__content .woocommerce-order-details,
.arkan-acc__content .woocommerce-customer-details,
.arkan-acc__content .woocommerce-order-details + .woocommerce-customer-details {
  margin-top: 26px;
}

.arkan-acc__content .woocommerce-order-details__title,
.arkan-acc__content .woocommerce-column__title,
.arkan-acc__content .woocommerce-columns--addresses h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
}

/* Woo highlights the order number/date/status with <mark> — the UA default is a
   yellow background, which reads as a rendering bug next to the design. */
.arkan-acc__content mark {
  background: transparent;
  color: var(--burgundy);
  font-weight: 600;
}

.arkan-acc__content .woocommerce-order-details p,
.arkan-acc__content .woocommerce-customer-details address {
  font-family: var(--sans);
  font-size: 13px;
  font-style: normal;
  color: var(--body);
  line-height: 1.8;
}

.arkan-acc__content .woocommerce-table--order-details {
  background: #fff;
  border: 1px solid rgba(45, 10, 18, 0.06);
  border-radius: 14px;
  overflow: hidden;
}

.arkan-acc__content .woocommerce-table--order-details th,
.arkan-acc__content .woocommerce-table--order-details td {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--body);
  text-align: start;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(26, 22, 20, 0.07);
}

.arkan-acc__content .woocommerce-table--order-details thead th {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8078;
  background: var(--cream);
}

.arkan-acc__content .woocommerce-table--order-details tfoot th,
.arkan-acc__content .woocommerce-table--order-details tfoot td {
  font-weight: 600;
  color: var(--ink);
}

.arkan-acc__content .woocommerce-table--order-details a {
  color: var(--ink);
  text-decoration: none;
}

.arkan-acc__content .woocommerce-table--order-details a:hover {
  color: var(--burgundy);
}

@media (max-width: 640px) {
  /* The order-details table is 2 columns and fits 390 by wrapping — it must NOT
     become display:block to scroll, or the table box shrinks to fit its content
     while its background still spans 100%, leaving the header row half-painted.
     Long product names wrap instead. */
  .arkan-acc__content .woocommerce-table--order-details th,
  .arkan-acc__content .woocommerce-table--order-details td {
    padding: 12px 14px;
    overflow-wrap: anywhere;
  }
  .arkan-acc__content .woocommerce-columns--addresses {
    display: block;
  }
  .arkan-acc__content .woocommerce-columns--addresses .col-1,
  .arkan-acc__content .woocommerce-columns--addresses .col-2 {
    width: 100%;
    float: none;
    margin-bottom: 18px;
  }
}

/* ============================================================
   RTL — mirror directional geometry
   ============================================================ */
html[dir='rtl'] .arkan-acc__eye {
  right: auto;
  left: 12px;
}
html[dir='rtl'] .arkan-acc__input--pw {
  padding: 13px 15px 13px 44px;
}
html[dir='rtl'] .arkan-acc__search svg {
  left: auto;
  right: 14px;
}
html[dir='rtl'] .arkan-acc__search-input {
  padding: 11px 40px 11px 16px;
}
html[dir='rtl'] .arkan-acc__navitem-badge,
html[dir='rtl'] .arkan-acc__totals {
  margin-left: 0;
}
html[dir='rtl'] .arkan-acc__navitem-badge {
  margin-right: auto;
}
html[dir='rtl'] .arkan-acc__totals {
  margin-right: auto;
}
/* stepper connector halves swap sides so the "done" fill flows start→end. */
html[dir='rtl'] .arkan-acc__step-line-l {
  left: auto;
  right: 0;
}
html[dir='rtl'] .arkan-acc__step-line-r {
  right: auto;
  left: 0;
}
