.page-account .section-head {
    display: none;
}

.account-dashboard {
    display: grid;
    gap: 22px;
}

.account-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
    gap: 22px;
    padding: 26px;
    border: 1px solid rgba(201, 162, 39, 0.16);
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, rgba(201, 162, 39, 0.26), transparent 36%),
        radial-gradient(circle at bottom right, rgba(168, 123, 16, 0.18), transparent 28%),
        linear-gradient(135deg, #f8e8b3 0%, #f6de96 34%, #f5e8c3 100%);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.account-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(125deg, rgba(255, 255, 255, 0.34), transparent 36%),
        radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.4), transparent 18%);
    pointer-events: none;
}

.account-hero__visual,
.account-hero__content {
    position: relative;
    z-index: 1;
}

.account-hero__visual {
    min-height: 280px;
    display: grid;
    place-items: center;
}

.account-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}

.account-hero__orb--back {
    width: 230px;
    height: 230px;
    background: radial-gradient(circle, rgba(255, 235, 170, 0.9), rgba(201, 162, 39, 0.18) 72%, transparent 73%);
}

.account-hero__orb--front {
    inset-inline-start: 26px;
    inset-block-end: 18px;
    width: 110px;
    height: 110px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0));
}

.account-hero__totem {
    position: relative;
    display: grid;
    place-items: center;
    width: 170px;
    height: 170px;
    border-radius: 42px;
    background:
        linear-gradient(180deg, #fff6db, #d8a62f 46%, #9d6d08 100%);
    box-shadow:
        0 28px 48px rgba(136, 95, 10, 0.26),
        inset 0 8px 18px rgba(255, 255, 255, 0.5),
        inset 0 -18px 24px rgba(120, 79, 5, 0.28);
    transform: rotate(-8deg);
}

.account-hero__totem::before,
.account-hero__totem::after {
    content: "";
    position: absolute;
    inset-inline: 24px;
    inset-block-end: -24px;
    height: 28px;
    border-radius: 18px;
    background: linear-gradient(180deg, #d3a130, #8b620c);
    box-shadow: 0 12px 20px rgba(99, 67, 8, 0.16);
}

.account-hero__totem::after {
    inset-inline: 40px;
    inset-block-end: -44px;
    height: 18px;
    opacity: 0.82;
}

.account-hero__totem i {
    font-size: 74px;
    color: #6f4905;
    text-shadow: 0 12px 18px rgba(255, 255, 255, 0.35);
}

.account-hero__floating-card {
    position: absolute;
    inset-inline-end: 12px;
    inset-block-end: 16px;
    display: grid;
    gap: 5px;
    min-width: 146px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.account-hero__floating-card span,
.account-hero__floating-card small {
    color: rgba(70, 51, 8, 0.76);
}

.account-hero__floating-card strong {
    font-size: clamp(28px, 5vw, 34px);
    line-height: 1;
    color: #4f3504;
}

.account-hero__content {
    display: grid;
    gap: 16px;
    align-content: center;
}

.account-hero__content h1 {
    margin: 0;
    font-size: clamp(31px, 4vw, 44px);
    line-height: 1.28;
    color: #2d2107;
}

.account-hero__content p {
    margin: 0;
    max-width: 720px;
    color: rgba(71, 53, 11, 0.86);
    line-height: 2;
}

.account-hero__user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.account-hero__user strong {
    display: block;
    font-size: 22px;
    color: #1f1729;
}

.account-hero__user span {
    color: rgba(71, 53, 11, 0.84);
    font-size: 14px;
}

.account-hero__user-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.account-hero__user-badges span,
.account-hero__chips span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: #4b3911;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.account-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.account-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.account-board {
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(15, 23, 42, 0.03), transparent 28%),
        linear-gradient(180deg, rgba(248, 249, 252, 0.98), rgba(244, 246, 250, 0.96));
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.05);
}

.account-board__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.account-board__head h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.4;
}

.account-board__head p {
    margin: 8px 0 0;
    max-width: 680px;
    color: var(--text-muted);
    line-height: 1.9;
}

.account-board__summary {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.account-board__summary article {
    min-width: 104px;
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.account-board__summary span {
    color: var(--text-muted);
    font-size: 12px;
}

.account-board__summary strong {
    font-size: 20px;
}

.account-service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.account-service-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: 10px;
    min-height: 214px;
    padding: 18px 16px 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    text-align: right;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.05);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.account-service-card:hover,
.account-service-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(201, 162, 39, 0.28);
    box-shadow: 0 24px 46px rgba(15, 23, 42, 0.08);
}

.account-service-card__icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    font-size: 34px;
    background: rgba(15, 23, 42, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.account-service-card strong {
    font-size: 22px;
    line-height: 1.45;
}

.account-service-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.85;
    font-size: 14px;
}

.account-service-card__meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-muted);
}

.account-service-card__meta em {
    font-style: normal;
    font-weight: 800;
    font-size: 13px;
}

.account-service-card__meta i {
    font-size: 18px;
}

.account-service-card--gold .account-service-card__icon {
    background: linear-gradient(180deg, rgba(247, 217, 135, 0.45), rgba(201, 162, 39, 0.18));
    color: #8b620c;
}

.account-service-card--rose .account-service-card__icon {
    background: linear-gradient(180deg, rgba(251, 207, 232, 0.5), rgba(244, 114, 182, 0.14));
    color: #be185d;
}

.account-service-card--indigo .account-service-card__icon {
    background: linear-gradient(180deg, rgba(199, 210, 254, 0.56), rgba(79, 70, 229, 0.14));
    color: #4338ca;
}

.account-service-card--emerald .account-service-card__icon {
    background: linear-gradient(180deg, rgba(187, 247, 208, 0.56), rgba(16, 185, 129, 0.14));
    color: #047857;
}

.account-service-card--violet .account-service-card__icon {
    background: linear-gradient(180deg, rgba(233, 213, 255, 0.56), rgba(147, 51, 234, 0.14));
    color: #7e22ce;
}

.account-service-card--sky .account-service-card__icon {
    background: linear-gradient(180deg, rgba(191, 219, 254, 0.56), rgba(14, 165, 233, 0.14));
    color: #0369a1;
}

.account-service-card--slate .account-service-card__icon {
    background: linear-gradient(180deg, rgba(226, 232, 240, 0.72), rgba(71, 85, 105, 0.14));
    color: #334155;
}

body.page-account.has-account-modal {
    overflow: hidden;
}

.account-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: 24px;
}

.account-modal[hidden] {
    display: none;
}

.account-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(12px);
}

.account-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 36px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 247, 251, 0.96));
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.2);
    overflow: hidden;
}

.account-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.account-modal__header h2 {
    margin: 6px 0 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.35;
}

.account-modal__close {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-primary);
    font-size: 18px;
}

.account-modal__nav {
    display: flex;
    gap: 8px;
    padding: 10px 24px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.68);
}

.account-modal__nav::-webkit-scrollbar {
    display: none;
}

.account-modal__nav-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 14px;
    border: 0;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-muted);
    font: inherit;
    font-weight: 700;
    white-space: nowrap;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.account-modal__nav-button.is-active {
    background: #0f172a;
    color: #ffffff;
    transform: translateY(-1px);
}

.account-modal__body {
    min-height: 0;
    overflow: auto;
    padding: 24px;
}

.account-modal-panel[hidden] {
    display: none;
}

.account-sheet {
    display: grid;
    gap: 18px;
}

.account-sheet__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.account-sheet__head h3,
.account-sheet__mini-head h4,
.loyalty-panel__head h4,
.loyalty-referral-block h4,
.form-card__section h4 {
    margin: 0;
    font-size: 24px;
    line-height: 1.45;
}

.account-sheet__head p,
.account-sheet__mini-head p,
.loyalty-panel__head p,
.loyalty-referral-block p {
    margin: 8px 0 0;
    color: var(--text-muted);
    line-height: 1.9;
}

.account-sheet__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.account-sheet__grid--club {
    align-items: start;
}

.account-sheet__grid--addresses {
    align-items: start;
}

.account-sheet__card,
.account-sheet__wallet,
.account-stat-card {
    border-radius: 28px;
}

.account-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.account-stat-card {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.04);
}

.account-stat-card span,
.account-sheet__mini-head .eyebrow,
.activity-row p,
.saved-address span,
.saved-address p,
.wallet-card__stats span,
.wallet-card__note,
.loyalty-invite-box span,
.loyalty-archive__item span,
.loyalty-history-row span {
    color: var(--text-muted);
}

.account-stat-card strong {
    font-size: 28px;
    line-height: 1.15;
}

.account-stat-card small {
    color: var(--text-muted);
    line-height: 1.75;
}

.account-stat-card--gold {
    background:
        radial-gradient(circle at top left, rgba(201, 162, 39, 0.16), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 231, 0.96));
}

.account-sheet__mini-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.account-empty-state {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 26px 18px;
    text-align: center;
}

.account-empty-state i {
    font-size: 34px;
    color: var(--action-primary);
}

.account-empty-state strong {
    font-size: 20px;
}

.account-empty-state p {
    margin: 0;
    max-width: 420px;
    color: var(--text-muted);
    line-height: 1.9;
}

.wallet-card {
    background:
        radial-gradient(circle at top left, rgba(201, 162, 39, 0.2), transparent 38%),
        linear-gradient(160deg, #ffffff, #fbfbfc);
}

.wallet-card--club {
    position: relative;
    overflow: hidden;
}

.wallet-card--club::after {
    content: "";
    position: absolute;
    inset-inline-end: -24px;
    bottom: -24px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.18), transparent 70%);
    pointer-events: none;
}

.wallet-card__top,
.loyalty-plan-card__body,
.loyalty-reward-card__head,
.loyalty-reward-card__meta,
.loyalty-invite-box,
.loyalty-invite-link,
.loyalty-history-row,
.activity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.wallet-card__top {
    align-items: flex-start;
}

.wallet-card__top strong {
    font-size: clamp(32px, 5vw, 44px);
}

.wallet-card__actions {
    display: flex;
    gap: 8px;
}

.wallet-card__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.wallet-card__stats div {
    padding: 12px 14px;
    border: 1px solid rgba(201, 162, 39, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.wallet-card__stats strong {
    display: block;
    margin-top: 6px;
    font-size: 20px;
}

.wallet-card__note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    font-size: 13px;
}

.activity-list,
.loyalty-plan-list,
.loyalty-reward-list,
.loyalty-archive__list,
.loyalty-referral-list {
    display: grid;
    gap: 14px;
}

.activity-row {
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-soft);
}

.activity-row:first-child {
    padding-top: 0;
}

.activity-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.activity-row strong {
    display: block;
    font-size: 16px;
    line-height: 1.55;
}

.activity-row__meta {
    display: grid;
    justify-items: end;
    gap: 6px;
    text-align: end;
    flex-shrink: 0;
}

.saved-addresses {
    display: grid;
    gap: 14px;
}

.saved-address {
    padding: 16px 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
}

.saved-address__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.saved-address p {
    margin: 0 0 8px;
    line-height: 1.9;
}

.loyalty-panel {
    display: grid;
    gap: 18px;
}

.loyalty-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.loyalty-plan-card,
.loyalty-reward-card {
    position: relative;
    padding: 18px;
    border: 1px solid rgba(201, 162, 39, 0.18);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 245, 247, 0.94));
    overflow: hidden;
}

.loyalty-plan-card.is-available {
    border-color: rgba(201, 162, 39, 0.34);
    background:
        radial-gradient(circle at top left, rgba(201, 162, 39, 0.18), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 242, 228, 0.94));
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.loyalty-plan-card.is-available::after {
    content: "";
    position: absolute;
    inset-inline-end: -14px;
    inset-block-start: -14px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.2), transparent 70%);
    pointer-events: none;
}

.loyalty-plan-card.is-locked {
    border-color: rgba(148, 163, 184, 0.26);
    background: linear-gradient(180deg, rgba(250, 250, 251, 0.98), rgba(242, 244, 247, 0.94));
    filter: grayscale(1);
    opacity: 0.92;
}

.loyalty-plan-card__copy {
    display: grid;
    gap: 8px;
}

.loyalty-plan-card strong,
.loyalty-reward-card strong,
.loyalty-referral-block h4 {
    font-size: 18px;
}

.loyalty-plan-card__type {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding-inline: 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--action-primary);
    font-size: 11px;
    font-weight: 800;
}

.loyalty-plan-card p,
.loyalty-reward-card p,
.loyalty-referral-block p,
.loyalty-history-row p {
    margin: 8px 0 0;
    color: var(--text-muted);
    line-height: 1.9;
}

.loyalty-plan-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
}

.loyalty-plan-card__meta {
    display: grid;
    justify-items: end;
    gap: 10px;
    min-width: 136px;
}

.loyalty-plan-card__points {
    min-height: 34px;
    padding-inline: 12px;
}

.loyalty-plan-card__availability {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding-inline: 11px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.loyalty-plan-card__availability.is-ready {
    background: rgba(34, 197, 94, 0.14);
    color: #166534;
}

.loyalty-plan-card__form {
    width: 100%;
    margin: 0;
}

.loyalty-plan-card__form .button {
    justify-content: center;
}

.loyalty-plan-card__locked-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.loyalty-reward-card__code {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.loyalty-reward-card__code code,
.loyalty-invite-box strong {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 16px;
    background: #0f172a;
    color: #fff;
    font-size: 16px;
    direction: ltr;
    letter-spacing: 0.08em;
}

.loyalty-invite-box {
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(201, 162, 39, 0.08);
}

.loyalty-history-row__tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-top: 10px;
    padding-inline: 10px;
    border-radius: 999px;
    background: rgba(201, 162, 39, 0.12);
    color: var(--gold-deep) !important;
    font-size: 12px !important;
    font-weight: 800;
}

.loyalty-invite-link {
    margin-top: 14px;
}

.loyalty-invite-link .field {
    direction: ltr;
    text-align: left;
}

.loyalty-referral-card {
    border-style: dashed;
}

.loyalty-archive {
    border-top: 1px solid var(--border-soft);
    padding-top: 14px;
}

.loyalty-archive summary {
    cursor: pointer;
    font-weight: 700;
}

.loyalty-archive__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
}

.loyalty-archive__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.loyalty-history-row {
    align-items: flex-start;
}

.loyalty-history-row.is-negative {
    opacity: 0.88;
}

.button--small {
    min-height: 40px;
    padding-inline: 14px;
    font-size: 13px;
}

.account-guest-preview {
    position: relative;
    isolation: isolate;
}

.account-guest-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(245, 245, 247, 0.18), rgba(255, 255, 255, 0.66));
}

.account-guest-preview__canvas {
    display: grid;
    gap: 20px;
    filter: blur(10px) saturate(0.86);
    opacity: 0.8;
    transform: scale(0.985);
    transform-origin: center top;
    pointer-events: none;
    user-select: none;
}

.account-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: stretch;
}

.account-overview--preview .wallet-card,
.account-overview--preview .info-card,
.account-guest-preview .summary-card,
.account-guest-preview .form-card {
    box-shadow: none;
}

.account-guest-preview__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 24px;
}

@media (max-width: 1199px) {
    .account-service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .account-sheet__grid,
    .account-sheet__grid--club,
    .account-sheet__grid--addresses,
    .account-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    .account-hero {
        grid-template-columns: 1fr;
    }

    .account-hero__visual {
        min-height: 240px;
    }

    .account-modal {
        padding: 0;
    }

    .account-modal__dialog {
        width: 100vw;
        max-height: 100dvh;
        height: 100dvh;
        border-radius: 28px 28px 0 0;
        align-self: end;
    }

    .account-modal__body {
        padding-bottom: calc(28px + env(safe-area-inset-bottom));
    }

    .account-guest-preview__canvas {
        filter: blur(8px) saturate(0.88);
        opacity: 0.74;
        transform: scale(0.992);
    }

    .account-guest-preview__overlay {
        align-items: start;
        padding-top: 28px;
    }
}

@media (max-width: 719px) {
    .account-dashboard {
        gap: 16px;
    }

    .account-hero,
    .account-board {
        margin-inline: -4px;
        padding: 18px;
        border-radius: 28px;
    }

    .account-hero__visual {
        min-height: 200px;
    }

    .account-hero__totem {
        width: 136px;
        height: 136px;
        border-radius: 34px;
    }

    .account-hero__totem i {
        font-size: 58px;
    }

    .account-hero__floating-card {
        min-width: 128px;
        padding: 12px;
    }

    .account-hero__content h1 {
        font-size: 28px;
    }

    .account-hero__user,
    .wallet-card__top,
    .loyalty-plan-card__body,
    .loyalty-reward-card__head,
    .loyalty-reward-card__meta,
    .loyalty-invite-box,
    .loyalty-invite-link,
    .activity-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .account-service-card {
        min-height: 178px;
        padding: 16px 12px 14px;
        border-radius: 24px;
    }

    .account-service-card__icon {
        width: 56px;
        height: 56px;
        border-radius: 18px;
        font-size: 26px;
    }

    .account-service-card strong {
        font-size: 18px;
        line-height: 1.45;
    }

    .account-service-card p {
        font-size: 12px;
        line-height: 1.8;
    }

    .account-service-card__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .account-board__summary {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .account-board__summary article {
        min-width: 0;
    }

    .account-modal__header,
    .account-modal__body {
        padding-inline: 18px;
    }

    .account-modal__nav {
        padding-inline: 18px;
    }

    .account-sheet__grid,
    .account-sheet__grid--club,
    .account-sheet__grid--addresses,
    .account-stat-grid,
    .wallet-card__stats,
    .mini-grid--club-stats {
        grid-template-columns: 1fr;
    }

    .activity-row__meta {
        justify-items: start;
        text-align: start;
    }

    .loyalty-reward-card__code {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-overview {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media (max-width: 479px) {
    .account-service-card {
        aspect-ratio: 1 / 1.12;
        min-height: 0;
    }

    .account-service-card strong {
        font-size: 16px;
    }

    .account-service-card__icon {
        width: 50px;
        height: 50px;
        font-size: 23px;
    }

    .account-modal__dialog {
        border-radius: 24px 24px 0 0;
    }
}

/* Account panel refresh */

.page-account .section-stack {
    gap: 18px;
}

.page-account .breadcrumbs {
    margin-bottom: 6px;
}

.page-account .account-dashboard {
    gap: clamp(18px, 2.4vw, 28px);
}

.page-account .account-hero {
    grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
    gap: clamp(18px, 2vw, 28px);
    padding: clamp(20px, 3vw, 32px);
    border-radius: 38px;
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 249, 227, 0.84), transparent 26%),
        radial-gradient(circle at 84% 82%, rgba(210, 167, 54, 0.18), transparent 34%),
        linear-gradient(115deg, #f7e4ab 0%, #f8e7ba 34%, #f4deb0 58%, #f5ebd0 100%);
    box-shadow: 0 28px 60px rgba(46, 32, 6, 0.09);
}

.page-account .account-hero__visual {
    min-height: clamp(250px, 30vw, 356px);
}

.page-account .account-hero__totem {
    width: clamp(168px, 20vw, 196px);
    height: clamp(168px, 20vw, 196px);
    border-radius: 44px;
    box-shadow:
        0 30px 50px rgba(136, 95, 10, 0.24),
        inset 0 8px 18px rgba(255, 255, 255, 0.56),
        inset 0 -18px 24px rgba(120, 79, 5, 0.28);
}

.page-account .account-hero__totem i {
    font-size: clamp(68px, 7vw, 82px);
}

.page-account .account-hero__floating-card {
    min-width: 166px;
    padding: 16px 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
}

.page-account .account-hero__content {
    gap: 18px;
}

.page-account .account-hero__content h1 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.32;
}

.page-account .account-hero__content p {
    max-width: 700px;
    font-size: 15px;
}

.page-account .account-hero__user {
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.44);
    backdrop-filter: blur(12px);
}

.page-account .account-hero__chips span,
.page-account .account-hero__user-badges span {
    min-height: 38px;
    padding-inline: 13px;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.page-account .account-hero__actions .button {
    min-height: 50px;
}

.page-account .account-board {
    gap: 20px;
    padding: clamp(18px, 3vw, 30px);
    border-radius: 38px;
    background:
        radial-gradient(circle at top right, rgba(15, 23, 42, 0.04), transparent 24%),
        linear-gradient(180deg, #f0f2f6 0%, #eff1f5 42%, #f6f7fa 100%);
    box-shadow: 0 26px 54px rgba(15, 23, 42, 0.05);
}

.page-account .account-board__head {
    align-items: center;
}

.page-account .account-board__head > div:first-child {
    max-width: 760px;
}

.page-account .account-board__head h2 {
    margin-top: 4px;
}

.page-account .account-board__summary {
    gap: 12px;
}

.page-account .account-board__summary article {
    min-width: 112px;
    border-radius: 20px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.04);
}

.page-account .account-service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.page-account .account-service-card {
    isolation: isolate;
    justify-items: center;
    align-content: start;
    min-height: 226px;
    padding: 20px 16px 18px;
    border-radius: 30px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
}

.page-account .account-service-card::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-start: 0;
    height: 86px;
    border-radius: 30px 30px 0 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), transparent);
    opacity: 0.8;
    z-index: -1;
}

.page-account .account-service-card::after {
    content: "";
    position: absolute;
    inset-inline: 20px;
    inset-block-end: 16px;
    height: 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    opacity: 0;
    transform: scaleX(0.6);
    transition: opacity 180ms ease, transform 180ms ease;
}

.page-account .account-service-card:hover::after,
.page-account .account-service-card:focus-visible::after,
.page-account .account-service-card.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.page-account .account-service-card:hover,
.page-account .account-service-card:focus-visible,
.page-account .account-service-card.is-active {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.1);
}

.page-account .account-service-card__icon {
    width: 84px;
    height: 84px;
    border-radius: 28px;
    font-size: 38px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 14px 28px rgba(15, 23, 42, 0.08);
}

.page-account .account-service-card strong {
    font-size: 21px;
    line-height: 1.45;
}

.page-account .account-service-card p {
    max-width: 17ch;
    font-size: 13px;
    line-height: 1.85;
}

.page-account .account-service-card__meta {
    width: 100%;
    margin-top: auto;
    color: #4b5563;
}

.page-account .account-service-card__meta i {
    font-size: 20px;
}

.page-account .account-service-card--gold {
    border-color: rgba(201, 162, 39, 0.16);
}

.page-account .account-service-card--gold::before {
    background: linear-gradient(180deg, rgba(201, 162, 39, 0.16), transparent);
}

.page-account .account-service-card--rose {
    border-color: rgba(244, 114, 182, 0.16);
}

.page-account .account-service-card--rose::before {
    background: linear-gradient(180deg, rgba(244, 114, 182, 0.12), transparent);
}

.page-account .account-service-card--indigo {
    border-color: rgba(79, 70, 229, 0.16);
}

.page-account .account-service-card--indigo::before {
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.12), transparent);
}

.page-account .account-service-card--emerald {
    border-color: rgba(16, 185, 129, 0.16);
}

.page-account .account-service-card--emerald::before {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.12), transparent);
}

.page-account .account-service-card--violet {
    border-color: rgba(147, 51, 234, 0.16);
}

.page-account .account-service-card--violet::before {
    background: linear-gradient(180deg, rgba(147, 51, 234, 0.12), transparent);
}

.page-account .account-service-card--sky {
    border-color: rgba(14, 165, 233, 0.16);
}

.page-account .account-service-card--sky::before {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.12), transparent);
}

.page-account .account-service-card--slate {
    border-color: rgba(71, 85, 105, 0.14);
}

.page-account .account-service-card--slate::before {
    background: linear-gradient(180deg, rgba(71, 85, 105, 0.1), transparent);
}

.page-account .account-modal {
    padding: 18px;
}

.page-account .account-modal__dialog {
    width: min(1180px, calc(100vw - 36px));
    max-height: calc(100dvh - 36px);
    border-radius: 40px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 247, 251, 0.98));
}

.page-account .account-modal__header {
    padding: 22px 26px 18px;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(14px);
}

.page-account .account-modal__nav {
    padding: 10px 26px 16px;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(14px);
}

.page-account .account-modal__nav-button {
    min-height: 48px;
    border-radius: 18px;
}

.page-account .account-modal__nav-button i {
    font-size: 15px;
}

.page-account .account-modal__body {
    padding: 24px 26px 30px;
    background:
        radial-gradient(circle at top right, rgba(201, 162, 39, 0.06), transparent 20%),
        linear-gradient(180deg, rgba(247, 248, 251, 0.84), rgba(245, 246, 249, 0.98));
}

.page-account .account-modal-panel.is-active {
    animation: accountModalPanelIn 220ms ease;
}

@keyframes accountModalPanelIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-account .account-sheet {
    gap: 20px;
}

.page-account .account-sheet__grid,
.page-account .account-stat-grid {
    gap: 14px;
}

.page-account .account-stat-card,
.page-account .summary-card.account-sheet__card,
.page-account .form-card.account-sheet__card,
.page-account .account-sheet__wallet {
    border-radius: 26px;
}

.page-account .account-stat-card {
    padding: 20px;
}

.page-account .account-sheet__card,
.page-account .account-sheet__wallet {
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.04);
}

.page-account .activity-row,
.page-account .saved-address,
.page-account .loyalty-plan-card,
.page-account .loyalty-reward-card {
    border-radius: 22px;
}

.page-account .account-empty-state {
    padding: 34px 18px;
    border: 1px dashed rgba(148, 163, 184, 0.34);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.68);
}

.page-account .account-favorites-grid {
    gap: 14px;
}

.page-account .account-guest-preview {
    border-radius: 34px;
    overflow: hidden;
}

.page-account .account-guest-preview__canvas {
    padding: 10px 4px 4px;
}

.page-account .account-login-inline {
    width: min(100%, 380px);
    padding: 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(229, 231, 235, 0.96);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(20px);
}

.page-account .account-login-inline .field {
    min-height: 56px;
    text-align: center;
}

.page-account .account-login-inline .button {
    min-height: 56px;
}

@media (max-width: 1199px) {
    .page-account .account-service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .page-account .account-stat-grid,
    .page-account .account-sheet__grid,
    .page-account .account-sheet__grid--club,
    .page-account .account-sheet__grid--addresses {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    .page-account .account-hero {
        grid-template-columns: 1fr;
        text-align: right;
    }

    .page-account .account-hero__visual {
        order: -1;
        min-height: 236px;
    }

    .page-account .account-modal {
        padding: 0;
    }

    .page-account .account-modal__dialog {
        width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 28px 28px 0 0;
    }

    .page-account .account-modal__header {
        position: sticky;
        top: 0;
        z-index: 4;
    }

    .page-account .account-modal__nav {
        position: sticky;
        top: 88px;
        z-index: 3;
    }

    .page-account .account-modal-panel[data-account-modal-panel="club"] .account-sheet__grid,
    .page-account .account-modal-panel[data-account-modal-panel="club"] .account-sheet__grid.account-sheet__grid--club {
        grid-template-columns: 1fr !important;
    }

    .page-account .account-modal-panel[data-account-modal-panel="club"] .summary-card.account-sheet__card,
    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-plan-card,
    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-reward-card {
        min-width: 0;
    }

    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-plan-list,
    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-reward-list {
        gap: 16px;
    }

    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-plan-card {
        padding: 18px 16px 16px;
    }

    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-plan-card__body,
    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-plan-card__footer,
    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-reward-card__head,
    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-reward-card__meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-plan-card__meta {
        width: 100%;
        min-width: 0;
        justify-items: start;
        gap: 8px;
    }

    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-plan-card__availability,
    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-plan-card__points,
    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-plan-card__locked-note {
        align-self: flex-start;
    }

    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-plan-card__locked-note {
        width: 100%;
    }

    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-plan-card__form,
    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-plan-card__form .button {
        width: 100%;
    }

    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-plan-card__form .button,
    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-reward-card__meta .button {
        min-height: 48px;
        justify-content: center;
    }

    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-reward-card__code {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-reward-card__code code {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-archive {
        margin-top: 10px;
    }

    .page-account .account-modal-panel[data-account-modal-panel="addresses"] .account-sheet__grid,
    .page-account .account-modal-panel[data-account-modal-panel="addresses"] .account-sheet__grid.account-sheet__grid--addresses {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .page-account .account-modal-panel[data-account-modal-panel="addresses"] .form-card__section,
    .page-account .account-modal-panel[data-account-modal-panel="addresses"] .field-grid,
    .page-account .account-modal-panel[data-account-modal-panel="addresses"] .saved-addresses,
    .page-account .account-modal-panel[data-account-modal-panel="addresses"] label,
    .page-account .account-modal-panel[data-account-modal-panel="addresses"] .saved-address,
    .page-account .account-modal-panel[data-account-modal-panel="addresses"] .ui-select {
        min-width: 0;
        width: 100%;
    }

    .page-account .account-modal-panel[data-account-modal-panel="addresses"] .field-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .page-account .account-modal-panel[data-account-modal-panel="addresses"] .saved-address__head {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .page-account .account-modal-panel[data-account-modal-panel="addresses"] .saved-address p,
    .page-account .account-modal-panel[data-account-modal-panel="addresses"] .saved-address span {
        overflow-wrap: anywhere;
    }

    .page-account .account-modal-panel[data-account-modal-panel="addresses"] .ui-select__button,
    .page-account .account-modal-panel[data-account-modal-panel="addresses"] .field {
        min-width: 0;
    }

    .page-account .account-modal-panel[data-account-modal-panel="addresses"] .ui-select__menu {
        min-width: 0;
    }
}

@media (max-width: 719px) {
    .page-account .account-hero,
    .page-account .account-board {
        margin-inline: -4px;
        padding: 18px;
        border-radius: 30px;
    }

    .page-account .account-hero__visual {
        min-height: 208px;
    }

    .page-account .account-hero__floating-card {
        inset-inline-end: 8px;
        inset-block-end: 10px;
        min-width: 132px;
        padding: 12px 14px;
    }

    .page-account .account-hero__content h1 {
        font-size: 29px;
    }

    .page-account .account-hero__content p,
    .page-account .account-board__head p {
        line-height: 1.95;
    }

    .page-account .account-board__head p {
        display: none;
    }

    .page-account .account-board__summary {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .page-account .account-board__summary article {
        min-width: 0;
        padding: 10px 8px;
    }

    .page-account .account-service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .page-account .account-service-card {
        min-height: 0;
        aspect-ratio: 1 / 1.14;
        padding: 14px 10px 12px;
        gap: 8px;
        border-radius: 24px;
    }

    .page-account .account-service-card::before {
        height: 72px;
        border-radius: 24px 24px 0 0;
    }

    .page-account .account-service-card__icon {
        width: 58px;
        height: 58px;
        border-radius: 18px;
        font-size: 27px;
    }

    .page-account .account-service-card strong {
        font-size: 17px;
        line-height: 1.55;
    }

    .page-account .account-service-card p,
    .page-account .account-service-card__meta {
        display: none;
    }

    .page-account .account-modal__header {
        padding: 18px 18px 14px;
    }

    .page-account .account-modal__header h2 {
        font-size: 26px;
    }

    .page-account .account-modal__nav {
        top: 80px;
        padding: 8px 18px 14px;
    }

    .page-account .account-modal__nav-button {
        min-height: 44px;
        padding-inline: 12px;
        border-radius: 15px;
    }

    .page-account .account-modal__body {
        padding: 18px 18px calc(26px + env(safe-area-inset-bottom));
    }

    .page-account .account-sheet__head h3,
    .page-account .account-sheet__mini-head h4,
    .page-account .loyalty-panel__head h4,
    .page-account .loyalty-referral-block h4,
    .page-account .form-card__section h4 {
        font-size: 21px;
    }

    .page-account .account-modal-panel[data-account-modal-panel="club"] .account-sheet {
        gap: 16px;
    }

    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-panel__head p {
        font-size: 13px;
        line-height: 1.9;
    }

    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-plan-card strong,
    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-reward-card strong {
        font-size: 20px;
        line-height: 1.6;
    }

    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-plan-card p,
    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-reward-card p {
        font-size: 14px;
        line-height: 2;
    }

    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-plan-card__availability,
    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-plan-card__points {
        min-height: 34px;
    }

    .page-account .account-modal-panel[data-account-modal-panel="club"] .loyalty-plan-card__form .button {
        min-height: 50px;
        border-radius: 16px;
    }

    .page-account .account-modal-panel[data-account-modal-panel="addresses"] .form-card.account-sheet__card {
        padding: 18px;
    }

    .page-account .account-modal-panel[data-account-modal-panel="addresses"] .form-card__section {
        gap: 12px;
    }

    .page-account .account-modal-panel[data-account-modal-panel="addresses"] .saved-address {
        padding: 14px 16px;
        border-radius: 20px;
    }

    .page-account .account-modal-panel[data-account-modal-panel="addresses"] .ui-select__button,
    .page-account .account-modal-panel[data-account-modal-panel="addresses"] .field {
        min-height: 52px;
        border-radius: 16px;
        font-size: 13px;
    }

    .page-account .account-modal-panel[data-account-modal-panel="addresses"] .field--textarea {
        min-height: 130px;
    }
}

@media (max-width: 479px) {
    .page-account .account-dashboard {
        gap: 14px;
    }

    .page-account .account-hero__chips,
    .page-account .account-hero__user-badges,
    .page-account .account-hero__actions {
        gap: 8px;
    }

    .page-account .account-hero__chips span,
    .page-account .account-hero__user-badges span {
        min-height: 34px;
        padding-inline: 10px;
        font-size: 12px;
    }

    .page-account .account-service-card {
        aspect-ratio: 1 / 1.18;
    }

    .page-account .account-service-card strong {
        font-size: 15px;
    }

    .page-account .account-service-card__icon {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }
}
