/* Account access (login, register, forgot, reset) and My Account pages */
.auth { max-width: 480px; margin: 0 auto; padding: var(--s6) 0 var(--s8); }
.auth .panel { padding: clamp(20px, 4vw, 36px); }
.auth .sign { margin-bottom: var(--s3); }
.auth h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 6px; }
.auth .lead { color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--s5); }
.auth .switch { text-align: center; font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s4); }
.pw { position: relative; }
.pw .input { padding-right: 78px; }
.pw .show { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); padding: 6px 8px; min-height: 32px; }
.strength { display: flex; gap: 4px; margin-top: 6px; }
.strength i { flex: 1; height: 4px; border-radius: 2px; background: var(--line-2); }
.strength.s1 i:nth-child(1) { background: var(--bad); }
.strength.s2 i:nth-child(-n+2) { background: var(--warn); }
.strength.s3 i:nth-child(-n+3) { background: var(--ok); }
.strength.s4 i { background: var(--ok); }

.acct { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; padding-top: var(--s4); }
.acct-nav { position: sticky; top: calc(var(--header-h, 120px) + 16px); display: flex; flex-direction: column; gap: 2px; }
.acct-nav a { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: var(--r-md); font-weight: 600; font-size: var(--fs-sm); color: var(--cream-2); min-height: var(--tap); border: 1px solid transparent; }
.acct-nav a:hover { background: var(--glass); color: var(--cream); }
.acct-nav a[aria-current="page"] { background: var(--glass); border-color: var(--line-2); color: var(--core); box-shadow: inset 3px 0 0 var(--neon); }
.acct-nav a small { color: var(--muted); font-weight: 500; }
.acct-nav .out { margin-top: var(--s3); color: var(--muted); }
.acct-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: var(--s5); }
.acct-head h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tile-card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 8px; min-height: 150px; }
.tile-card h3 { font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; }
.tile-card p { margin: 0; color: var(--cream-2); font-size: var(--fs-sm); }
.tile-card .foot { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.orders { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.order-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.order-row .ref { display: flex; flex-direction: column; gap: 2px; }
.order-row .ref b { font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: .03em; }
.order-row .ref small { color: var(--muted); }
.order-row .items { color: var(--cream-2); }
.order-row .items small { display: block; color: var(--muted); }
.order-row .total { font-family: var(--display); font-weight: 900; font-size: 1.2rem; }
.orders-head { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr auto; gap: 12px; padding: 8px 0; font: 600 var(--fs-xs)/1 var(--body); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--brass); }
.orders-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: var(--s4); font-size: var(--fs-sm); color: var(--muted); }

.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: var(--s4) 0; }
.timeline li { list-style: none; font-size: var(--fs-xs); color: var(--muted); padding-top: 12px; position: relative; border-top: 3px solid var(--line-2); }
.timeline li::before { content: ""; position: absolute; top: -8px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--wall); border: 2px solid var(--line-2); }
.timeline li.done { color: var(--cream-2); border-color: var(--brass); }
.timeline li.done::before { background: var(--brass); border-color: var(--brass); }
.timeline li.now { color: var(--core); border-color: var(--neon); }
.timeline li.now::before { background: var(--neon); border-color: var(--neon); box-shadow: 0 0 10px var(--neon); }
.timeline li b { display: block; font-size: var(--fs-sm); }
.timeline li small { display: block; }
.order-lines .cart-line .bottom { justify-content: flex-start; gap: 14px; }
.order-lines .cart-line .nm .badge { margin-left: 6px; vertical-align: middle; }
.historic { border: 1px dashed var(--brass-2); border-radius: var(--r-md); padding: 10px 12px; font-size: var(--fs-xs); color: var(--brass); background: var(--info-bg); }

.addr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.addr { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-sm); color: var(--cream-2); position: relative; }
.addr.default { border-color: var(--brass-2); }
.addr .lbl { display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--cream); }
.addr address { font-style: normal; line-height: 1.5; }
.addr .foot { margin-top: auto; padding-top: 10px; display: flex; gap: 12px; }
.addr .foot button { font-size: var(--fs-xs); color: var(--brass); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; min-height: var(--tap); }
.addr .foot button.danger { color: var(--muted); }
.addr .foot button.danger:hover { color: var(--bad); }
.addr.add { border-style: dashed; align-items: center; justify-content: center; text-align: center; color: var(--muted); cursor: pointer; min-height: 160px; }
.addr.add:hover { border-color: var(--brass); color: var(--brass); }

@media (max-width: 900px) {
  .acct { grid-template-columns: 1fr; }
  .acct-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
  .acct-nav a { white-space: nowrap; padding: 10px 12px; }
  .acct-nav a small, .acct-nav .out { display: none; }
  .orders-head { display: none; }
  .order-row { grid-template-columns: 1fr auto; grid-template-areas: "ref status" "items items" "total action"; }
  .order-row .ref { grid-area: ref; } .order-row .status { grid-area: status; justify-self: end; } .order-row .items { grid-area: items; } .order-row .total { grid-area: total; } .order-row .action { grid-area: action; justify-self: end; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline li { border-top: 0; border-left: 3px solid var(--line-2); padding: 0 0 14px 16px; }
  .timeline li::before { top: 0; left: -8px; }
  .tiles, .addr-grid { grid-template-columns: 1fr; }
}
