/* ============================================================
   SHARED PAGE SYSTEM — "px-"
   Powers auth (login / register / forgot), contact, cart and
   checkout. One field/button/card language across all of them.
   ============================================================ */

:root {
    --px-pine:   #1b4332;
    --px-pine-2: #2d6a4f;
    --px-pine-3: #40916c;
    --px-deep:   #071a13;
    --px-mint:   #52b788;
    --px-mint-2: #95d5b2;
    --px-mint-3: #d8f3dc;
    --px-ink:    #10241a;
    --px-pencil: #3d5a4b;
    --px-mute:   #6e8b7c;
    --px-line:   #cbe8d7;
    --px-canvas: #f6fbf8;
    --px-tint:   #eef8f1;
    --px-danger: #c0392b;
    --px-ease:   cubic-bezier(.22, 1, .36, 1);
}

/* ---------- shell ---------- */
/* `clip`, not `hidden` — `overflow: hidden` on an ancestor disables
   `position: sticky` on the checkout receipt. */
.px-page { position: relative; padding: 80px 0 96px; background: var(--px-canvas); overflow: clip; }
.px-page__glow {
    position: absolute; border-radius: 50%; pointer-events: none; filter: blur(80px); z-index: 0;
}
.px-page__glow--a { top: -180px; left: -120px; width: 440px; height: 440px; background: radial-gradient(circle, rgba(82,183,136,.22), transparent 68%); }
.px-page__glow--b { bottom: -200px; right: -140px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(116,198,157,.2), transparent 68%); }
.px-page > .container,
.px-page > .auto-container { position: relative; z-index: 1; }

.px-mono {
    font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}

/* ---------- buttons ---------- */
.px-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 11px;
    padding: 15px 28px; border-radius: 100px; border: 1.5px solid transparent;
    font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
    transition: all .3s var(--px-ease);
}
.px-btn i { font-size: 12px; transition: transform .3s var(--px-ease); }
.px-btn:hover i { transform: translateX(4px); }
.px-btn--go {
    background: var(--px-pine) !important; color: #fff !important;
    box-shadow: 0 14px 32px -18px rgba(27,67,50,.9);
}
.px-btn--go:hover { background: var(--px-mint) !important; color: #06231a !important; text-decoration: none !important; }
.px-btn--ghost { background: #fff; border-color: var(--px-line); color: var(--px-pine-2) !important; }
.px-btn--ghost:hover { border-color: var(--px-mint); background: var(--px-mint-3); color: var(--px-pine) !important; text-decoration: none !important; }
.px-btn--block { width: 100%; }

/* ---------- fields ---------- */
.px-field { display: block; margin-bottom: 20px; }
.px-field--full { grid-column: 1 / -1; }

.px-label {
    display: flex; align-items: center; gap: 9px; margin-bottom: 9px;
    font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--px-pine-2);
}
.px-label i { font-size: 12px; color: var(--px-mint); }
.px-label .px-req { color: var(--px-danger); }

.px-control { position: relative; display: block; }
.px-input {
    width: 100%; padding: 15px 18px; border-radius: 14px;
    background: #fff; border: 1.5px solid var(--px-line);
    font-size: 15px; font-weight: 500; color: var(--px-ink);
    transition: border-color .25s var(--px-ease), box-shadow .25s var(--px-ease), background .25s var(--px-ease);
    appearance: none;
}
.px-input::placeholder { color: var(--px-mute); font-weight: 400; }
.px-input:focus {
    outline: 0; border-color: var(--px-mint);
    box-shadow: 0 0 0 4px rgba(82,183,136,.16);
}
.px-input.error, .px-control.is-invalid .px-input, .px-field.is-invalid .px-input {
    border-color: var(--px-danger); background: rgba(192,57,43,.04);
}
textarea.px-input { min-height: 148px; resize: vertical; line-height: 1.65; }
select.px-input {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232d6a4f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 18px center;
    padding-right: 44px; cursor: pointer;
}

.px-eye {
    position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent;
    color: var(--px-mute); cursor: pointer; font-size: 14px;
    transition: color .25s var(--px-ease), background .25s var(--px-ease);
}
.px-eye:hover { color: var(--px-pine-2); background: var(--px-mint-3); }

.px-error, label.px-error {
    display: block; margin-top: 8px;
    font-size: 13px; font-weight: 600; color: var(--px-danger) !important;
}
.px-error i { margin-right: 5px; }

.px-hint { display: block; margin-top: 8px; font-size: 12.5px; color: var(--px-mute); }

/* captcha */
.px-captcha { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.px-captcha .px-control { flex: 1 1 180px; }
.px-captcha__img {
    flex: none; padding: 6px 10px; border-radius: 12px;
    background: #fff; border: 1.5px solid var(--px-line); line-height: 0;
}
.px-captcha__img img { border-radius: 7px; max-height: 46px; width: auto; }

/* checkbox rows */
.px-check { display: block; margin-bottom: 14px; }
.px-check__row { display: flex; align-items: flex-start; gap: 12px; }
.px-check__box {
    flex: none; width: 20px; height: 20px; margin-top: 2px;
    accent-color: var(--px-pine-2); cursor: pointer;
}
.px-check label { font-size: 14px; line-height: 1.6; color: var(--px-pencil); cursor: pointer; margin: 0; }
.px-check label a { color: var(--px-pine-2); font-weight: 700; text-decoration: underline; }
.px-check label a:hover { color: var(--px-mint); }

/* ============================================================
   AUTH — split rail + form card (login / register / forgot)
   ============================================================ */
.px-auth {
    display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    background: #fff; border: 1px solid var(--px-line);
    border-radius: 28px; overflow: hidden;
    box-shadow: 0 40px 80px -54px rgba(16,36,26,.6);
}

.px-rail {
    position: relative; overflow: hidden;
    padding: 52px 44px;
    background: linear-gradient(160deg, #14382a 0%, var(--px-pine) 55%, #0d2a1f 100%);
    display: flex; flex-direction: column;
}
.px-rail__mesh {
    position: absolute; inset: 0; opacity: .45; pointer-events: none;
    background-image:
        linear-gradient(rgba(149,213,178,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(149,213,178,.08) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(100% 80% at 20% 20%, #000, transparent 70%);
    mask-image: radial-gradient(100% 80% at 20% 20%, #000, transparent 70%);
}
.px-rail > * { position: relative; z-index: 1; }

.px-rail__badge {
    width: 56px; height: 56px; border-radius: 18px; margin-bottom: 26px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(149,213,178,.14); border: 1px solid rgba(149,213,178,.28);
    color: var(--px-mint-2) !important; font-size: 21px;
}
.px-rail__eyebrow {
    display: inline-flex; align-items: center; gap: 11px; margin-bottom: 16px;
    font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
    color: var(--px-mint-2) !important;
}
.px-rail__eyebrow-bar { width: 26px; height: 2px; background: var(--px-mint); }
.px-rail__title {
    font-size: clamp(25px, 2.6vw, 33px); line-height: 1.14; font-weight: 800;
    letter-spacing: -.02em; color: #fff !important; margin: 0 0 14px;
}
.px-rail__lede {
    font-size: 15px; line-height: 1.75; margin: 0;
    color: rgba(216,243,220,.75) !important;
}

.px-rail__points { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 4px; }
.px-rail__point {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px;
    padding: 16px 0; border-top: 1px solid rgba(149,213,178,.16);
}
.px-rail__point:last-child { border-bottom: 1px solid rgba(149,213,178,.16); }
.px-rail__point-mark {
    grid-row: span 2; width: 34px; height: 34px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(149,213,178,.13); border: 1px solid rgba(149,213,178,.24);
    color: var(--px-mint-2) !important; font-size: 11px; font-weight: 800;
}
.px-rail__point-title { font-size: 14.5px; font-weight: 700; color: #fff !important; }
.px-rail__point-desc { font-size: 13px; line-height: 1.6; color: rgba(216,243,220,.64) !important; }

.px-rail__foot {
    margin-top: auto; padding-top: 32px;
    display: flex; flex-direction: column; gap: 4px;
}
.px-rail__brand { font-size: 15px; font-weight: 800; color: #fff !important; }
.px-rail__tag { font-size: 12.5px; color: rgba(216,243,220,.6) !important; }

/* form side */
.px-form-side { padding: 52px 46px; }
.px-form-side__head { margin-bottom: 32px; }
.px-form-side__title {
    font-size: clamp(22px, 2.3vw, 28px); font-weight: 800; letter-spacing: -.02em;
    color: var(--px-ink); margin: 0 0 8px;
}
.px-form-side__sub { font-size: 14.5px; line-height: 1.7; color: var(--px-pencil); margin: 0; }

.px-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

.px-inline { display: flex; align-items: center; justify-content: flex-end; margin: -6px 0 22px; }
.px-link {
    font-size: 13.5px; font-weight: 700; color: var(--px-pine-2) !important; text-decoration: none;
    border-bottom: 1.5px solid transparent; transition: all .25s var(--px-ease);
}
.px-link:hover { color: var(--px-mint) !important; border-color: var(--px-mint); text-decoration: none !important; }

.px-divider {
    display: flex; align-items: center; gap: 16px; margin: 28px 0 20px;
    color: var(--px-mute); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.px-divider::before, .px-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--px-line);
}
.px-switch { text-align: center; font-size: 14.5px; color: var(--px-pencil); margin: 0; }
.px-switch a { font-weight: 800; color: var(--px-pine-2) !important; }
.px-switch a:hover { color: var(--px-mint) !important; text-decoration: none !important; }

/* ============================================================
   CONTACT
   ============================================================ */
.px-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 26px; }

.px-info {
    position: relative; overflow: hidden;
    padding: 44px 38px; border-radius: 26px;
    background: linear-gradient(160deg, #14382a 0%, var(--px-pine) 55%, #0d2a1f 100%);
    display: flex; flex-direction: column;
}
.px-info > * { position: relative; z-index: 1; }
.px-info__title {
    font-size: clamp(24px, 2.5vw, 31px); font-weight: 800; letter-spacing: -.02em;
    color: #fff !important; margin: 0 0 14px; line-height: 1.15;
}
.px-info__lede { font-size: 15px; line-height: 1.75; color: rgba(216,243,220,.75) !important; margin: 0 0 34px; }

.px-info__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.px-info__row {
    display: flex; align-items: flex-start; gap: 15px;
    padding: 17px 18px; border-radius: 16px;
    background: rgba(149,213,178,.08); border: 1px solid rgba(149,213,178,.16);
    transition: background .3s var(--px-ease), border-color .3s var(--px-ease);
}
.px-info__row:hover { background: rgba(149,213,178,.14); border-color: rgba(149,213,178,.32); }
.px-info__ico {
    flex: none; width: 40px; height: 40px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    background: var(--px-mint); color: #06231a !important; font-size: 15px;
}
.px-info__label {
    display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .16em;
    text-transform: uppercase; color: var(--px-mint-2) !important; margin-bottom: 5px;
}
.px-info__value {
    display: block; font-size: 14.5px; font-weight: 600; line-height: 1.55;
    color: #fff !important; word-break: break-word;
}
a.px-info__value:hover { color: var(--px-mint-2) !important; text-decoration: none !important; }

.px-info__foot {
    margin-top: auto; padding-top: 30px;
    display: flex; align-items: center; gap: 13px;
    font-size: 13px; color: rgba(216,243,220,.6) !important;
}
.px-info__foot i { color: var(--px-mint); }

.px-panel {
    background: #fff; border: 1px solid var(--px-line); border-radius: 26px;
    padding: 44px 42px;
    box-shadow: 0 34px 70px -54px rgba(16,36,26,.55);
}
.px-panel__head { margin-bottom: 30px; }
.px-panel__title {
    font-size: clamp(22px, 2.3vw, 28px); font-weight: 800; letter-spacing: -.02em;
    color: var(--px-ink); margin: 0 0 8px;
}
.px-panel__sub { font-size: 14.5px; line-height: 1.7; color: var(--px-pencil); margin: 0; }

/* ============================================================
   CART
   ============================================================ */
.px-wallet {
    position: relative; overflow: hidden;
    border-radius: 26px; padding: 36px 38px; margin-bottom: 26px;
    background: linear-gradient(150deg, #14382a 0%, var(--px-pine) 58%, #0d2a1f 100%);
}
.px-wallet__figures {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
    margin-bottom: 26px;
}
.px-wallet__label {
    display: block; margin-bottom: 9px;
    color: rgba(216,243,220,.6) !important;
}
.px-wallet__value { display: block; font-size: 30px; font-weight: 800; color: #fff !important; line-height: 1; }
.px-wallet__value--cost { color: var(--px-mint-2) !important; }
.px-wallet__value.is-negative { color: #ff8a7a !important; }

.px-meter {
    height: 8px; border-radius: 100px; overflow: hidden;
    background: rgba(216,243,220,.14); margin-bottom: 22px;
}
.px-meter__fill {
    display: block; height: 100%; border-radius: 100px;
    background: linear-gradient(90deg, var(--px-mint), var(--px-mint-2));
    transition: width .6s var(--px-ease);
}
.is-short .px-meter__fill { background: linear-gradient(90deg, #e07a5f, #ff8a7a); }

.px-wallet__foot {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.px-wallet__note {
    display: flex; align-items: center; gap: 10px; margin: 0;
    font-size: 14px; color: rgba(228,247,234,.82) !important;
}
.px-wallet__note i { color: var(--px-mint); }
.is-short .px-wallet__note i { color: #ff8a7a; }
.px-wallet__topup {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 11px 20px; border-radius: 100px;
    background: var(--px-mint); color: #06231a !important; text-decoration: none;
    transition: background .25s var(--px-ease), transform .25s var(--px-ease);
}
.px-wallet__topup:hover { background: #fff; transform: translateY(-2px); text-decoration: none !important; }

.px-ledger {
    background: #fff; border: 1px solid var(--px-line); border-radius: 24px;
    overflow: hidden; margin-bottom: 22px;
}
.px-ledger__head {
    display: grid; grid-template-columns: 46px minmax(0, 1fr) 130px 150px 52px;
    align-items: center; gap: 14px; padding: 16px 22px;
    background: var(--px-tint); border-bottom: 1px solid var(--px-line);
    color: var(--px-pine-2);
}
.px-ledger__rows { list-style: none; margin: 0; padding: 0; }
.px-row-item {
    display: grid; grid-template-columns: 46px minmax(0, 1fr) 130px 150px 52px;
    align-items: center; gap: 14px; padding: 20px 22px;
    border-bottom: 1px solid var(--px-line);
    transition: background .25s var(--px-ease);
}
.px-row-item:last-child { border-bottom: 0; }
.px-row-item:hover { background: var(--px-canvas); }
.px-row-item__index { color: var(--px-mint); }
.px-row-item__title {
    display: block; font-size: 15.5px; font-weight: 700; color: var(--px-ink) !important;
    text-decoration: none; margin-bottom: 4px;
}
a.px-row-item__title:hover { color: var(--px-pine-2) !important; text-decoration: none !important; }
.px-row-item__type { display: block; color: var(--px-mute); }
.px-tag {
    display: inline-flex; padding: 6px 13px; border-radius: 100px;
    background: var(--px-mint-3); color: var(--px-pine-2);
    font-size: 12px; font-weight: 700;
}
.px-row-item__dash { color: var(--px-line); }
.px-row-item__cost { text-align: right; }
.px-row-item__cost-num { display: block; font-size: 17px; font-weight: 800; color: var(--px-pine-2); }
.px-row-item__cost-unit { display: block; margin-top: 3px; color: var(--px-mute); }
.px-row-item__remove {
    justify-self: end; width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--px-line); color: var(--px-mute) !important; font-size: 12px;
    transition: all .25s var(--px-ease);
}
.px-row-item__remove:hover {
    background: var(--px-danger); border-color: var(--px-danger); color: #fff !important;
    text-decoration: none !important;
}

.px-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    padding: 26px 32px; border-radius: 22px;
    background: #fff; border: 1px solid var(--px-line);
}
.px-bar__label { display: block; margin-bottom: 7px; color: var(--px-mute); }
.px-bar__value { display: block; font-size: 28px; font-weight: 800; color: var(--px-pine-2); }
.px-bar__value span { font-size: 13px; color: var(--px-mute); margin-left: 4px; }
.px-bar__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.px-empty {
    text-align: center; padding: 66px 32px; border-radius: 26px;
    background: #fff; border: 1px solid var(--px-line);
}
.px-empty__ico {
    width: 78px; height: 78px; margin: 0 auto 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--px-mint-3); color: var(--px-pine-2); font-size: 30px;
}
.px-empty__label { display: block; margin-bottom: 12px; color: var(--px-mint); }
.px-empty__title { font-size: 25px; font-weight: 800; color: var(--px-ink); margin: 0 0 10px; }
.px-empty__text { font-size: 15px; line-height: 1.7; color: var(--px-pencil); margin: 0 auto 28px; max-width: 46ch; }

/* ============================================================
   CHECKOUT
   ============================================================ */
.px-pay { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .75fr); gap: 26px; align-items: start; }
/* The receipt is first in the DOM so it leads on small screens; on desktop
   `order` moves it into the right-hand column. */
.px-pay > .px-steps { order: 1; }
.px-pay > .px-receipt { order: 2; }

.px-steps { display: grid; gap: 20px; }
.px-block {
    background: #fff; border: 1px solid var(--px-line); border-radius: 24px;
    padding: 34px 34px 30px;
}
.px-block__head {
    display: flex; align-items: center; gap: 15px; margin-bottom: 26px;
    padding-bottom: 18px; border-bottom: 1px solid var(--px-line);
}
.px-block__num {
    flex: none; width: 38px; height: 38px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--px-pine); color: #fff !important; font-size: 12px; font-weight: 800;
}
.px-block__title { font-size: 19px; font-weight: 800; color: var(--px-ink); margin: 0; }

.px-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

.px-expiry { display: flex; align-items: center; gap: 10px; }
.px-expiry .px-input { text-align: center; }
.px-expiry__sep { color: var(--px-mute); font-weight: 700; }

.px-note {
    display: flex; align-items: flex-start; gap: 11px; margin: 18px 0 0;
    padding: 15px 18px; border-radius: 14px; background: var(--px-tint);
    font-size: 13px; line-height: 1.65; color: var(--px-pencil);
}
.px-note i { color: var(--px-mint); margin-top: 2px; }

.px-dba { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--px-line); }
.px-dba__title { display: block; margin-bottom: 8px; color: var(--px-pine-2); }
.px-dba__text { font-size: 13.5px; line-height: 1.7; color: var(--px-pencil); margin: 0; }
.px-dba__text img { height: 20px; width: auto; vertical-align: middle; margin-left: 4px; }

/* receipt */
.px-receipt { position: sticky; top: 130px; }
.px-receipt__inner {
    position: relative; overflow: hidden;
    padding: 32px 30px; border-radius: 24px;
    background: linear-gradient(160deg, #14382a 0%, var(--px-pine) 58%, #0d2a1f 100%);
    box-shadow: 0 34px 70px -46px rgba(16,36,26,.8);
}
.px-receipt__label { display: block; margin-bottom: 20px; color: var(--px-mint-2) !important; }
.px-receipt__lines { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.px-receipt__line {
    display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
    padding-bottom: 12px; border-bottom: 1px dashed rgba(149,213,178,.2);
}
.px-receipt__name { font-size: 14.5px; font-weight: 700; color: #fff !important; }
.px-receipt__name span { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(216,243,220,.55) !important; margin-left: 5px; }
.px-receipt__value { font-size: 14.5px; font-weight: 700; color: var(--px-mint-2) !important; white-space: nowrap; }

.px-receipt__total {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 18px 20px; border-radius: 16px; margin-bottom: 22px;
    background: rgba(82,183,136,.16); border: 1px solid rgba(149,213,178,.34);
}
.px-receipt__total-label { color: var(--px-mint-2) !important; }
.px-receipt__total-value { font-size: 23px; font-weight: 800; color: #fff !important; }

.px-receipt .px-label { color: var(--px-mint-2); }
.px-receipt .px-captcha__img { border-color: rgba(149,213,178,.3); }

.px-receipt__submit {
    width: 100%; margin-top: 4px;
    display: inline-flex; align-items: center; justify-content: center; gap: 11px;
    padding: 16px 24px; border-radius: 100px; border: 0; cursor: pointer;
    background: var(--px-mint); color: #06231a !important;
    font-size: 15.5px; font-weight: 800;
    transition: background .3s var(--px-ease), transform .3s var(--px-ease);
}
.px-receipt__submit:hover { background: #fff; transform: translateY(-2px); }
.px-receipt__submit i { font-size: 12px; }

.px-receipt__back {
    display: inline-flex; align-items: center; gap: 9px; margin-top: 18px;
    color: rgba(216,243,220,.7) !important; text-decoration: none;
    transition: color .25s var(--px-ease);
}
.px-receipt__back:hover { color: #fff !important; text-decoration: none !important; }
.px-receipt__back i { font-size: 10px; }

.px-receipt__assure {
    display: flex; align-items: center; gap: 9px; margin: 20px 0 0;
    font-size: 12.5px; color: rgba(216,243,220,.6) !important;
}
.px-receipt__assure i { color: var(--px-mint); }
.px-receipt__methods { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(149,213,178,.18); }
.px-receipt__methods img { max-width: 100%; height: auto; opacity: .9; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
    .px-pay { grid-template-columns: 1fr; }
    .px-receipt { position: static; order: -1; }
}

@media (max-width: 991px) {
    .px-page { padding: 60px 0 76px; }
    .px-auth { grid-template-columns: 1fr; }
    .px-rail { padding: 40px 30px; }
    .px-form-side { padding: 40px 30px; }
    .px-contact { grid-template-columns: 1fr; }
    .px-info, .px-panel { padding: 36px 28px; }

    .px-ledger__head { display: none; }
    .px-row-item {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        grid-template-areas: "idx item rm" ". lvl lvl" ". cost cost";
        gap: 10px 12px;
    }
    .px-row-item__index { grid-area: idx; }
    .px-row-item__body { grid-area: item; }
    .px-row-item__level { grid-area: lvl; }
    .px-row-item__cost { grid-area: cost; text-align: left; }
    .px-row-item__remove { grid-area: rm; }
    .px-row-item__cost-num, .px-row-item__cost-unit { display: inline-block; margin-right: 6px; }
}

/* ============================================================
   SEAFOAM GUARD
   seafoam.css styles BEM parts structurally — `[class*="__eyebrow"]`,
   `[class*="__badge"]`, `[class*="__title"]`, `[class*="__lede"]`,
   `[class*="__card"]` — so any class of that shape inherits its light
   pill/card treatment. These components live on dark panels and have to
   opt out. Matching `.sf-theme` specificity + later load order wins.
   ============================================================ */
.sf-theme .px-rail__eyebrow,
.sf-theme .px-rail__badge {
    background: rgba(149,213,178,.14) !important;
    border: 1px solid rgba(149,213,178,.28) !important;
    color: var(--px-mint-2) !important;
    box-shadow: none !important;
}
.sf-theme .px-rail__eyebrow {
    gap: 11px; padding: 0; border: 0 !important; background: transparent !important;
    margin-bottom: 16px; border-radius: 0;
}
.sf-theme .px-rail__badge {
    width: 56px; height: 56px; padding: 0; border-radius: 18px;
    justify-content: center; font-size: 21px; letter-spacing: 0; margin-bottom: 26px;
}

.sf-theme .px-rail__title,
.sf-theme .px-info__title {
    color: #fff !important;
    font-size: clamp(25px, 2.6vw, 33px) !important;
    font-weight: 800 !important;
    margin-bottom: 14px !important;
}
.sf-theme .px-rail__lede,
.sf-theme .px-info__lede {
    color: rgba(216,243,220,.75) !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
}
.sf-theme .px-info__lede { margin-bottom: 34px !important; }

.sf-theme .px-form-side__title,
.sf-theme .px-panel__title {
    color: var(--px-ink) !important;
    font-size: clamp(22px, 2.3vw, 28px) !important;
    font-weight: 800 !important;
    margin-bottom: 8px !important;
}
.sf-theme .px-block__title {
    font-size: 19px !important; font-weight: 800 !important;
    color: var(--px-ink) !important; margin-bottom: 0 !important;
}
.sf-theme .px-empty__title {
    font-size: 25px !important; font-weight: 800 !important;
    color: var(--px-ink) !important; margin-bottom: 10px !important;
}
.sf-theme .px-panel__sub {
    color: var(--px-pencil) !important; font-size: 14.5px !important; margin-bottom: 0 !important;
}

@media (max-width: 767px) {
    .px-row, .px-fields { grid-template-columns: 1fr; }
    .px-wallet__figures { grid-template-columns: 1fr; gap: 16px; }
    .px-wallet, .px-block, .px-empty { padding-left: 24px; padding-right: 24px; }
    .px-bar { padding: 22px 24px; }
    .px-bar__actions { width: 100%; }
    .px-bar__actions .px-btn { flex: 1; }
}
