.auth-page {
    padding: 52px 0 90px;
    position: relative;
}

.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.auth-card {
    padding: 34px;
}

.auth-head h1 {
    font-size: 1.9rem;
    margin: 10px 0 6px;
}

.auth-head p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
    margin: 0 0 24px;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-form .btn-lg {
    margin-top: 4px;
}

.auth-switch {
    text-align: center;
    font-size: 12.5px;
    color: var(--muted);
    margin: 2px 0 0;
}

.auth-switch a {
    color: var(--gold-200);
    font-weight: 600;
}

.auth-switch a:hover {
    color: var(--gold-100);
}

.auth-aside {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 102px;
}

.auth-aside-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 30px;
    background:
        radial-gradient(420px 260px at 90% 0%, rgba(227, 195, 119, .09), transparent 65%),
        linear-gradient(165deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .006)),
        #0a0a10;
}

.auth-aside-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(227, 195, 119, .08);
    border: 1px solid var(--line-2);
    color: var(--gold-300);
    margin-bottom: 16px;
}

.auth-aside-icon .icon {
    width: 23px;
    height: 23px;
}

.auth-aside-card h2 {
    font-size: 1.2rem;
    margin: 0 0 18px;
}

.auth-aside-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.auth-aside-card li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12.5px;
    color: var(--text-2);
    line-height: 1.9;
}

.auth-aside-card li .icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 4px;
    color: var(--gold-300);
}

.auth-quote {
    border: 1px dashed var(--line);
    border-radius: 18px;
    padding: 20px 22px;
    background: rgba(227, 195, 119, .025);
}

.auth-quote p {
    font-size: 13px;
    color: var(--gold-100);
    margin: 0 0 6px;
}

.auth-quote span {
    font-size: 9.5px;
    letter-spacing: .2em;
    color: var(--muted);
    text-transform: uppercase;
}

.account-hero {
    padding: 38px 0 30px;
    border-bottom: 1px solid rgba(227, 195, 119, .08);
    background:
        radial-gradient(700px 320px at 88% -20%, rgba(227, 195, 119, .09), transparent 65%),
        rgba(255, 255, 255, .008);
}

.account-hero-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.account-identity {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.account-avatar-lg {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    flex: 0 0 auto;
    border-radius: 26px;
    overflow: hidden;
    background: var(--gold-grad);
    color: #1a1304;
    font-size: 1.7rem;
    font-weight: 800;
    box-shadow: 0 18px 40px -22px rgba(227, 195, 119, .6);
}

.account-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-identity h1 {
    font-size: 1.5rem;
    margin: 2px 0 2px;
}

.account-identity p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.account-hero-stats {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, .02);
}

.account-hero-stats > div {
    display: grid;
    gap: 2px;
    justify-items: center;
    padding: 12px 22px;
    border-inline-start: 1px solid var(--line);
    text-align: center;
}

.account-hero-stats > div:first-child {
    border-inline-start: 0;
}

.account-hero-stats strong {
    font-size: 14px;
    color: var(--gold-100);
    white-space: nowrap;
}

.account-hero-stats span {
    font-size: 9.5px;
    color: var(--dim);
}

.account-layout {
    display: grid;
    grid-template-columns: 288px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding-top: 28px;
    padding-bottom: 84px;
}

.account-side {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 96px;
}

.account-side-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(175deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008)), #0b0b11;
    overflow: hidden;
}

.account-side-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.account-side-user > div {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.account-side-user strong {
    font-size: 13px;
}

.account-side-user small {
    font-size: 10px;
    color: var(--muted);
}

.account-avatar-sm {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 14px;
    overflow: hidden;
    background: var(--gold-soft);
    border: 1px solid var(--line-2);
    color: var(--gold-200);
    font-weight: 700;
    font-size: 15px;
}

.account-avatar-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-nav {
    display: grid;
    gap: 4px;
    padding: 10px;
}

.account-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    color: var(--muted);
    font-size: 12.5px;
}

.account-nav a > .icon:first-child {
    width: 18px;
    height: 18px;
    color: var(--dim);
}

.account-nav a > .icon:last-child {
    width: 14px;
    height: 14px;
    margin-inline-start: auto;
    opacity: .55;
}

.account-nav a em {
    margin-inline-start: auto;
    font-style: normal;
    font-size: 9.5px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(227, 195, 119, .12);
    color: var(--gold-200);
}

.account-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .03);
}

.account-nav a.is-active {
    color: var(--gold-100);
    background: rgba(227, 195, 119, .08);
    border-color: var(--line);
}

.account-nav a.is-active > .icon:first-child {
    color: var(--gold-300);
}

.account-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    color: #e79d95;
    font-size: 11.5px;
}

.account-logout .icon {
    width: 16px;
    height: 16px;
}

.account-logout:hover {
    background: rgba(231, 122, 110, .07);
}

.account-help {
    display: grid;
    justify-items: center;
    gap: 4px;
    text-align: center;
    padding: 20px;
    border: 1px dashed var(--line);
    border-radius: 20px;
    background: rgba(227, 195, 119, .02);
}

.account-help > span:first-child {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: rgba(227, 195, 119, .07);
    color: var(--gold-300);
    margin-bottom: 4px;
}

.account-help > span:first-child .icon {
    width: 19px;
    height: 19px;
}

.account-help strong {
    font-size: 13px;
}

.account-help p {
    margin: 0;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.9;
}

.account-help a {
    margin-top: 4px;
    color: var(--gold-200);
    font-size: 12.5px;
    font-weight: 700;
}

.account-main {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.account-main > .alert {
    margin: 0;
}

.account-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 22px 24px;
}

.account-welcome h2 {
    font-size: 1.15rem;
    margin: 0 0 4px;
}

.account-welcome p {
    margin: 0;
    max-width: 540px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
}

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

.account-quick > a {
    display: grid;
    gap: 3px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(165deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .006)), #0b0b11;
    transition: transform .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}

.account-quick > a:hover {
    transform: translateY(-2px);
    border-color: var(--line-2);
}

.account-quick-ic {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    margin-bottom: 6px;
    border: 1px solid var(--line);
    background: rgba(227, 195, 119, .07);
    color: var(--gold-300);
}

.account-quick-ic .icon {
    width: 18px;
    height: 18px;
}

.account-quick strong {
    font-size: 12.5px;
}

.account-quick small {
    color: var(--dim);
    font-size: 10px;
    line-height: 1.8;
}

.account-panel {
    overflow: hidden;
}

.account-empty {
    display: grid;
    justify-items: center;
    text-align: center;
    padding: 36px 18px;
}

.account-empty > span {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    background: var(--gold-soft);
    color: var(--gold-300);
}

.account-empty > span .icon {
    width: 24px;
    height: 24px;
}

.account-empty h3 {
    font-size: 15px;
    margin: 0 0 4px;
}

.account-empty p {
    margin: 0 0 16px;
    max-width: 340px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.9;
}

.account-orders {
    margin: -6px 0;
}

.account-order-row {
    display: grid;
    grid-template-columns: minmax(104px, auto) minmax(0, 1fr) auto auto 16px;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, .06);
    font-size: 11.5px;
    color: var(--muted);
}

.account-order-row:last-child {
    border-bottom: 0;
}

.account-order-code {
    color: var(--text-2);
    font-weight: 600;
    letter-spacing: .04em;
}

.account-order-meta {
    color: var(--dim);
    font-size: 10.5px;
}

.account-order-row strong {
    color: var(--gold-100);
    font-size: 12.5px;
    white-space: nowrap;
}

.account-order-row > .icon {
    width: 14px;
    height: 14px;
    color: var(--dim);
}

.account-order-row:hover .account-order-code {
    color: var(--gold-200);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .035);
    color: var(--text-2);
    font-size: 9.5px;
    white-space: nowrap;
}

.status-pill::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.status-pill.status-new {
    color: #a4cbe6;
    border-color: rgba(127, 180, 216, .3);
}

.status-pill.status-confirmed {
    color: var(--gold-200);
    border-color: rgba(227, 195, 119, .3);
}

.status-pill.status-shipped {
    color: #c4b0ff;
    border-color: rgba(167, 139, 250, .3);
}

.status-pill.status-delivered {
    color: #94ddbd;
    border-color: rgba(107, 201, 160, .3);
}

.status-pill.status-canceled {
    color: #f2a49a;
    border-color: rgba(231, 122, 110, .3);
}

.account-form {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.account-avatar-edit {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(255, 255, 255, .07);
}

.account-avatar-xl {
    display: grid;
    place-items: center;
    width: 110px;
    height: 110px;
    flex: 0 0 auto;
    border-radius: 30px;
    overflow: hidden;
    background: var(--gold-grad);
    color: #1a1304;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 18px 40px -24px rgba(227, 195, 119, .65);
}

.account-avatar-xl img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-avatar-edit > div {
    min-width: 0;
}

.account-avatar-edit strong {
    display: block;
    font-size: 13px;
}

.account-avatar-edit p {
    margin: 2px 0 10px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

.account-upload {
    position: relative;
    display: inline-flex;
    overflow: hidden;
    cursor: pointer;
}

.account-upload input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.account-remove-avatar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-inline-start: 10px;
    color: var(--muted);
    font-size: 10.5px;
    cursor: pointer;
}

.account-remove-avatar input {
    width: 15px;
    height: 15px;
    accent-color: var(--gold-400);
}

.account-order-page {
    display: grid;
    gap: 18px;
    padding-top: 32px;
    padding-bottom: 84px;
}

.account-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-self: start;
    color: var(--muted);
    font-size: 12px;
}

.account-back .icon {
    width: 15px;
    height: 15px;
}

.account-back:hover {
    color: var(--gold-200);
}

.account-order-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 24px 26px;
}

.account-order-head h1 {
    font-size: 1.45rem;
    letter-spacing: .06em;
    margin: 6px 0 2px;
}

.account-order-head p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.account-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 24px 18px;
}

.account-step {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 7px;
    color: var(--dim);
    font-size: 10.5px;
    text-align: center;
}

.account-step::before {
    content: "";
    position: absolute;
    top: 15px;
    inset-inline-start: 50%;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, .07);
    z-index: 0;
}

.account-step:last-child::before {
    display: none;
}

.account-step > span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .08);
    background: #14141d;
    font-size: 10px;
}

.account-step > span .icon {
    width: 14px;
    height: 14px;
}

.account-step.is-done {
    color: var(--gold-200);
}

.account-step.is-done > span {
    background: var(--gold-grad);
    border-color: transparent;
    color: #1a1304;
}

.account-step.is-done::before {
    background: rgba(227, 195, 119, .45);
}

.account-step.is-current strong {
    color: var(--gold-100);
}

.account-order-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

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

.account-order-items .panel-body {
    padding-top: 10px;
    padding-bottom: 10px;
}

.account-order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, .06);
    font-size: 12.5px;
}

.account-order-item small {
    color: var(--dim);
    font-size: 10.5px;
}

.account-order-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    font-size: 13px;
}

.account-order-total strong {
    color: var(--gold-100);
    font-size: 15px;
}

.account-order-actions {
    display: grid;
    gap: 10px;
}

.account-details {
    margin: 0;
    display: grid;
    gap: 10px;
}

.account-details > div {
    display: grid;
    gap: 2px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, .06);
}

.account-details > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.account-details dt {
    font-size: 10px;
    color: var(--dim);
}

.account-details dd {
    margin: 0;
    color: var(--text-2);
    font-size: 12.5px;
    line-height: 1.9;
}

@media (max-width: 1023px) {
    .auth-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .auth-aside {
        position: static;
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    }
    .account-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .account-side {
        position: static;
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
        align-items: start;
    }
    .account-side-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        align-items: start;
    }
    .account-side-user {
        grid-column: 1 / -1;
    }
    .account-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .account-logout {
        align-self: end;
    }
    .account-order-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .auth-page {
        padding: 32px 0 72px;
    }
    .auth-card {
        padding: 24px;
    }
    .auth-head h1 {
        font-size: 1.55rem;
    }
    .auth-aside {
        grid-template-columns: minmax(0, 1fr);
    }
    .account-hero {
        padding: 28px 0 24px;
    }
    .account-hero-in {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }
    .account-avatar-lg {
        width: 70px;
        height: 70px;
        border-radius: 22px;
        font-size: 1.4rem;
    }
    .account-identity h1 {
        font-size: 1.25rem;
    }
    .account-hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .account-hero-stats > div {
        padding: 10px 8px;
    }
    .account-layout {
        padding-top: 20px;
        padding-bottom: 64px;
    }
    .account-side {
        grid-template-columns: minmax(0, 1fr);
    }
    .account-side-card {
        display: block;
    }
    .account-quick {
        grid-template-columns: minmax(0, 1fr);
    }
    .account-quick > a {
        grid-template-columns: 38px minmax(0, 1fr);
        column-gap: 12px;
        align-items: center;
    }
    .account-quick-ic {
        grid-row: span 2;
        margin-bottom: 0;
    }
    .account-welcome {
        padding: 18px;
    }
    .account-form,
    .panel-body {
        padding: 18px;
    }
    .account-avatar-edit {
        flex-direction: column;
        align-items: flex-start;
    }
    .account-order-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 10px;
    }
    .account-order-code {
        grid-column: 1;
        grid-row: 1;
    }
    .account-order-meta {
        grid-column: 1;
        grid-row: 2;
    }
    .account-order-row .status-pill {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }
    .account-order-row strong {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
    }
    .account-order-row > .icon {
        display: none;
    }
    .account-order-page {
        padding-top: 24px;
        padding-bottom: 64px;
    }
    .account-order-head {
        padding: 18px;
    }
    .account-steps {
        padding: 18px 8px;
    }
    .account-step {
        font-size: 9px;
    }
    .account-step > span {
        width: 27px;
        height: 27px;
    }
    .account-step::before {
        top: 13px;
    }
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }
    .auth-card {
        padding: 20px;
    }
    .account-identity {
        gap: 14px;
    }
    .account-hero-stats strong {
        font-size: 12px;
    }
    .account-hero-stats span {
        font-size: 8.5px;
    }
    .account-order-head h1 {
        font-size: 1.2rem;
    }
}
