/* =========================================================
   MYTHRA CRAFT — ACCOUNT / PROFILE / CREDITS
   Desktop-first account experience. All rules are scoped.
   ========================================================= */

:root {
    --ma-pink: #ff0f8f;
    --ma-pink-soft: #ff59bd;
    --ma-purple: #a421ff;
    --ma-violet: #6d22da;
    --ma-green: #21d997;
    --ma-red: #ff4c6a;
    --ma-panel: rgba(13, 9, 18, .94);
    --ma-panel-soft: rgba(24, 12, 30, .86);
    --ma-line: rgba(255, 39, 163, .22);
    --ma-line-soft: rgba(255, 255, 255, .07);
    --ma-muted: rgba(255, 255, 255, .58);
    --ma-shadow: 0 14px 34px rgba(0, 0, 0, .34);
}

body:has(.mythra-account-hero) #mythra-header {
    position: absolute;
    inset: 0 0 auto;
}

body:has(.mythra-account-hero) #mythra-mobile-header {
    position: absolute;
    inset: 0 0 auto;
}

body:has(.mythra-account-page) {
    overflow-x: clip;
}

/* Full-bleed profile cover */
.mythra-account-hero {
    position: relative;
    isolation: isolate;
    min-height: 570px;
    overflow: hidden;
    color: #fff;
    background: #120413;
}

.mythra-account-hero__media,
.mythra-account-hero__veil,
.mythra-account-hero__pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.mythra-account-hero__media {
    z-index: -4;
    background-image: var(--mythra-account-cover);
    background-position: center 42%;
    background-size: cover;
    transform: scale(1.015);
    animation: mythraAccountCover 16s ease-in-out infinite alternate;
}

.mythra-account-hero__veil {
    z-index: -3;
    background:
        radial-gradient(circle at 22% 68%, rgba(255, 16, 143, .24), transparent 31%),
        radial-gradient(circle at 82% 32%, rgba(139, 34, 255, .18), transparent 34%),
        linear-gradient(90deg, rgba(9, 2, 12, .9) 0%, rgba(10, 3, 13, .42) 47%, rgba(10, 2, 13, .82) 100%),
        linear-gradient(0deg, #110413 0%, rgba(17, 4, 19, .18) 56%, rgba(7, 2, 9, .5) 100%);
}

.mythra-account-hero__pattern {
    z-index: -2;
    opacity: .42;
    background-image:
        linear-gradient(135deg, transparent 0 48%, rgba(255, 40, 160, .09) 49% 50%, transparent 51%),
        linear-gradient(45deg, transparent 0 48%, rgba(139, 45, 255, .08) 49% 50%, transparent 51%);
    background-size: 96px 96px;
    mask-image: linear-gradient(to bottom, transparent 8%, #000 42%, #000 85%, transparent);
}

.mythra-account-hero__pattern span {
    position: absolute;
    width: 170px;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 56, 171, .18);
    transform: rotate(45deg);
    animation: mythraAccountOrbit 15s ease-in-out infinite;
}

.mythra-account-hero__pattern span:nth-child(1) { left: 7%; top: 50%; }
.mythra-account-hero__pattern span:nth-child(2) { right: 11%; top: 29%; animation-delay: -5s; }
.mythra-account-hero__pattern span:nth-child(3) { left: 55%; top: 15%; width: 110px; animation-delay: -9s; }

.mythra-account-hero__content {
    position: relative;
    z-index: 2;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 42px;
    padding-top: calc(var(--mythra-header-space, 214px) + 70px);
    padding-bottom: 48px;
}

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

.mythra-account-identity__avatar {
    position: relative;
    flex: 0 0 auto;
}

.mythra-account-avatar {
    display: block;
    width: 112px !important;
    height: 112px !important;
    object-fit: cover;
    border-radius: 22px;
    border: 2px solid rgba(255, 255, 255, .8);
    background: rgba(12, 7, 16, .86);
    box-shadow:
        0 0 0 6px rgba(255, 17, 146, .13),
        0 18px 45px rgba(0, 0, 0, .45),
        inset 0 1px rgba(255, 255, 255, .28);
}

.mythra-account-presence {
    position: absolute;
    right: -5px;
    bottom: 8px;
    width: 22px;
    height: 22px;
    border: 4px solid #170719;
    border-radius: 50%;
    background: var(--ma-green);
    box-shadow: 0 0 18px rgba(33, 217, 151, .8);
}

.mythra-account-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    color: var(--ma-pink-soft);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
}

.mythra-account-eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--ma-pink), var(--ma-purple));
    box-shadow: 0 0 12px rgba(255, 15, 143, .6);
}

.mythra-account-identity__copy h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 3vw, 46px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.045em;
    text-shadow: 0 5px 24px rgba(0, 0, 0, .45);
}

.mythra-account-identity__copy > p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, .68);
    font-size: 14px;
}

.mythra-account-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

.mythra-account-roles > span {
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 5px !important;
    background: rgba(9, 5, 12, .66);
    box-shadow: inset 0 1px rgba(255, 255, 255, .08);
    padding: 6px 10px !important;
    font-size: 10px !important;
    font-weight: 800;
    text-transform: uppercase;
}

.mythra-account-hero__quick {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.mythra-account-balance {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 220px;
    border: 1px solid rgba(255, 49, 169, .24);
    border-radius: 12px;
    background: rgba(12, 7, 16, .76);
    box-shadow: inset 0 1px rgba(255, 255, 255, .07), 0 18px 34px rgba(0, 0, 0, .25);
    backdrop-filter: blur(12px);
    padding: 12px 15px;
}

.mythra-account-balance__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: linear-gradient(145deg, #ff1a9a, #b516e6);
    box-shadow: inset 0 1px rgba(255, 255, 255, .3);
}

.mythra-account-balance small,
.mythra-account-balance strong {
    display: block;
}

.mythra-account-balance small {
    color: rgba(255, 255, 255, .48);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
}

.mythra-account-balance strong {
    margin-top: 3px;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}

.mythra-account-primary-action,
.mythra-account-page :is(.form-footer button, #paymentButton),
.mythra-credit-page button[type="submit"],
.mythra-credit-page a.bg-indigo-500 {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    border: 1px solid #ff72cb !important;
    border-radius: 11px !important;
    color: #fff !important;
    background: linear-gradient(180deg, #ff1a9e 0%, #d700d7 100%) !important;
    box-shadow:
        inset 0 2px rgba(255, 255, 255, .28),
        inset 0 -3px rgba(91, 0, 125, .36),
        0 6px 0 #680582,
        0 13px 24px rgba(0, 0, 0, .28);
    padding: 13px 18px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-align: center;
    text-transform: uppercase;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.mythra-account-primary-action::before,
.mythra-account-page :is(.form-footer button, #paymentButton)::before,
.mythra-credit-page button[type="submit"]::before,
.mythra-credit-page a.bg-indigo-500::before {
    content: "";
    position: absolute;
    inset: 1px auto 1px -55%;
    width: 38%;
    transform: skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
    transition: left .5s ease;
}

.mythra-account-primary-action:hover,
.mythra-account-page :is(.form-footer button, #paymentButton):hover,
.mythra-credit-page button[type="submit"]:hover,
.mythra-credit-page a.bg-indigo-500:hover {
    filter: brightness(1.1) saturate(1.06);
    transform: translateY(-2px);
}

.mythra-account-primary-action:hover::before,
.mythra-account-page :is(.form-footer button, #paymentButton):hover::before,
.mythra-credit-page button[type="submit"]:hover::before,
.mythra-credit-page a.bg-indigo-500:hover::before {
    left: 125%;
}

.mythra-account-primary-action:active,
.mythra-account-page :is(.form-footer button, #paymentButton):active,
.mythra-credit-page button[type="submit"]:active,
.mythra-credit-page a.bg-indigo-500:active {
    transform: translateY(4px) scale(.985);
    box-shadow: inset 0 2px rgba(255, 255, 255, .2), 0 2px 0 #680582, 0 6px 12px rgba(0, 0, 0, .22);
}

.mythra-account-tabs-wrap {
    position: relative;
    z-index: 4;
    border-top: 1px solid rgba(255, 255, 255, .06);
    border-bottom: 1px solid var(--ma-line);
    background: rgba(9, 5, 13, .88);
    box-shadow: 0 -18px 42px rgba(0, 0, 0, .25);
    backdrop-filter: blur(14px);
}

.mythra-account-tabs {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.mythra-account-tabs a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: rgba(255, 255, 255, .62);
    padding: 0 17px;
    font-size: 12px;
    font-weight: 750;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.mythra-account-tabs a:hover {
    color: #fff;
    border-color: rgba(255, 55, 170, .18);
    background: rgba(255, 255, 255, .035);
    transform: translateY(-1px);
}

.mythra-account-tabs a.is-active {
    color: #fff;
    border-color: rgba(255, 111, 203, .62);
    background: linear-gradient(180deg, #fb249e, #b816e2);
    box-shadow: inset 0 2px rgba(255, 255, 255, .24), 0 4px 0 #5c0878, 0 10px 22px rgba(185, 13, 190, .25);
}

/* Account page canvas */
.mythra-account-page {
    position: relative;
    isolation: isolate;
    padding-top: 64px !important;
    padding-bottom: 110px !important;
}

.mythra-account-page::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0 calc(50% - 50vw);
    pointer-events: none;
    opacity: .7;
    background:
        radial-gradient(circle at 12% 15%, rgba(255, 13, 143, .08), transparent 26%),
        radial-gradient(circle at 88% 65%, rgba(119, 23, 239, .07), transparent 28%),
        linear-gradient(135deg, transparent 0 49.4%, rgba(255, 28, 154, .035) 49.6% 50.4%, transparent 50.6%);
    background-size: auto, auto, 92px 92px;
}

.mythra-account-layout {
    align-items: start;
    gap: 28px !important;
    margin-top: 0 !important;
}

.mythra-account-layout__sidebar {
    position: sticky;
    top: 22px;
}

.mythra-account-layout__content {
    min-width: 0;
}

.mythra-account-welcome {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
    border: 1px solid var(--ma-line);
    border-radius: 16px;
    background:
        radial-gradient(circle at 82% 20%, rgba(255, 20, 150, .13), transparent 32%),
        linear-gradient(145deg, rgba(34, 12, 40, .88), rgba(10, 8, 14, .97) 62%);
    box-shadow: var(--ma-shadow), inset 0 1px rgba(255, 255, 255, .055);
    margin-bottom: 16px;
    padding: 28px;
}

.mythra-account-welcome::after {
    content: "";
    position: absolute;
    right: 20%;
    bottom: -95px;
    width: 175px;
    height: 175px;
    border: 1px solid rgba(255, 47, 166, .12);
    transform: rotate(45deg);
    animation: mythraAccountDiamond 12s ease-in-out infinite reverse;
    pointer-events: none;
}

.mythra-account-welcome__copy {
    position: relative;
    z-index: 1;
    max-width: 570px;
}

.mythra-account-welcome h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 2.25vw, 34px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.04em;
}

.mythra-account-welcome p {
    max-width: 535px;
    margin: 10px 0 0;
    color: var(--ma-muted);
    font-size: 12px;
    line-height: 1.65;
}

.mythra-account-welcome__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
}

.mythra-account-ghost-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 45px;
    border: 1px solid rgba(255, 62, 174, .28);
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, .035);
    box-shadow: inset 0 1px rgba(255, 255, 255, .055);
    padding: 0 16px;
    font-size: 11px;
    font-weight: 800;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.mythra-account-ghost-action:hover {
    color: #fff;
    border-color: rgba(255, 78, 184, .64);
    background: rgba(255, 19, 149, .08);
    transform: translateY(-2px);
}

.mythra-account-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 34px;
}

.mythra-account-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    border: 1px solid rgba(255, 47, 169, .15);
    border-radius: 12px;
    background: rgba(10, 8, 13, .82);
    box-shadow: inset 0 1px rgba(255, 255, 255, .04);
    padding: 14px;
    transition: border-color .18s ease, transform .18s ease;
}

.mythra-account-stat:hover {
    border-color: rgba(255, 73, 181, .4);
    transform: translateY(-2px);
}

.mythra-account-stat__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    color: var(--ma-pink-soft);
    border: 1px solid rgba(255, 77, 184, .21);
    background: linear-gradient(145deg, rgba(255, 20, 149, .14), rgba(126, 27, 216, .09));
}

.mythra-account-stat small,
.mythra-account-stat strong {
    display: block;
}

.mythra-account-stat small {
    color: rgba(255, 255, 255, .36);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .09em;
}

.mythra-account-stat strong {
    overflow: hidden;
    margin-top: 3px;
    color: #fff;
    font-size: 11px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* New left navigation */
.mythra-account-sidebar {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--ma-line);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(32, 13, 38, .82), rgba(10, 8, 14, .96) 55%),
        var(--ma-panel);
    box-shadow: var(--ma-shadow), inset 0 1px rgba(255, 255, 255, .055);
    padding: 15px;
}

.mythra-account-sidebar::after {
    content: "";
    position: absolute;
    right: -55px;
    top: -55px;
    width: 130px;
    height: 130px;
    border: 1px solid rgba(255, 54, 170, .13);
    transform: rotate(45deg);
    animation: mythraAccountDiamond 11s ease-in-out infinite;
    pointer-events: none;
}

.mythra-account-sidebar__brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid var(--ma-line-soft);
    padding: 4px 3px 15px;
}

.mythra-account-sidebar__brand-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    border: 1px solid rgba(255, 104, 202, .55);
    border-radius: 9px;
    background: linear-gradient(145deg, #fb1a98, #8c16dc);
    box-shadow: inset 0 1px rgba(255, 255, 255, .26), 0 5px 0 rgba(75, 4, 101, .9);
}

.mythra-account-sidebar__brand small,
.mythra-account-sidebar__brand strong {
    display: block;
}

.mythra-account-sidebar__brand small,
.mythra-account-sidebar__label {
    color: rgba(255, 255, 255, .38);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .13em;
}

.mythra-account-sidebar__brand strong {
    overflow: hidden;
    max-width: 125px;
    color: #fff;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mythra-account-sidebar__group {
    position: relative;
    z-index: 1;
    margin-top: 18px;
}

.mythra-account-sidebar__label {
    display: block;
    margin: 0 8px 8px;
    text-transform: uppercase;
}

.mythra-account-sidebar nav {
    display: grid;
    gap: 5px;
}

.mythra-account-sidebar nav a,
.mythra-account-sidebar nav button {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 45px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: rgba(255, 255, 255, .63);
    background: transparent;
    padding: 5px 8px;
    font-size: 12px;
    text-align: left;
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.mythra-account-sidebar nav a:hover,
.mythra-account-sidebar nav button:hover {
    color: #fff;
    border-color: rgba(255, 48, 165, .15);
    background: rgba(255, 255, 255, .035);
    transform: translateX(2px);
}

.mythra-account-sidebar nav a.is-active {
    color: #fff;
    border-color: rgba(255, 75, 181, .32);
    background: linear-gradient(90deg, rgba(255, 17, 145, .18), rgba(149, 25, 228, .07));
    box-shadow: inset 3px 0 var(--ma-pink);
}

.mythra-account-sidebar__icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 7px;
    color: var(--ma-pink-soft);
    background: rgba(255, 255, 255, .035);
}

.mythra-account-sidebar__arrow {
    color: rgba(255, 255, 255, .18);
    font-size: 8px;
}

.mythra-account-sidebar__credit {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 36px 1fr 16px;
    align-items: center;
    gap: 10px;
    margin-top: 17px;
    border: 1px solid rgba(255, 83, 187, .35);
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 19, 149, .18), rgba(125, 24, 209, .13));
    box-shadow: inset 0 1px rgba(255, 255, 255, .07);
    padding: 12px;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.mythra-account-sidebar__credit:hover {
    color: #fff;
    border-color: rgba(255, 103, 199, .72);
    background: linear-gradient(135deg, rgba(255, 19, 149, .27), rgba(125, 24, 209, .19));
    transform: translateY(-2px);
}

.mythra-account-sidebar__credit > span:first-child {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #fff;
    background: linear-gradient(145deg, var(--ma-pink), var(--ma-purple));
}

.mythra-account-sidebar__credit small,
.mythra-account-sidebar__credit strong { display: block; }
.mythra-account-sidebar__credit small { color: var(--ma-pink-soft); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.mythra-account-sidebar__credit strong { margin-top: 2px; font-size: 11px; }

/* Content cards, titles and empty states */
.mythra-account-page :is(.page-header, .page-subheader),
.mythra-account-layout__content > h4 {
    color: #fff !important;
    font-weight: 900 !important;
    letter-spacing: -.025em;
}

.mythra-account-page .page-header {
    font-size: clamp(30px, 3vw, 44px) !important;
}

.mythra-account-page .page-subheader,
.mythra-account-layout__content > h4 {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 14px !important;
    font-size: 17px !important;
}

.mythra-account-page .page-subheader::before,
.mythra-account-layout__content > h4::before {
    content: "";
    width: 24px;
    height: 3px;
    flex: 0 0 auto;
    background: linear-gradient(90deg, var(--ma-pink), var(--ma-purple));
    box-shadow: 0 0 12px rgba(255, 15, 143, .48);
}

.mythra-account-layout__content > h4 > span {
    display: none !important;
}

.mythra-account-page :is(.flat-card, .card),
.mythra-account-dashboard .bg-indigo-900\/10,
.mythra-account-dashboard .table-responsive {
    border: 1px solid var(--ma-line) !important;
    border-radius: 15px !important;
    background:
        linear-gradient(145deg, rgba(28, 12, 34, .72), rgba(10, 8, 13, .96) 62%) !important;
    box-shadow: var(--ma-shadow), inset 0 1px rgba(255, 255, 255, .045) !important;
}

.mythra-account-page .flat-card {
    padding: 27px !important;
}

.mythra-account-dashboard .flat-card.\!px-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    padding: 1px !important;
    background: var(--ma-line-soft) !important;
}

.mythra-account-dashboard .user-data {
    position: relative;
    min-height: 76px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    color: var(--ma-pink-soft) !important;
    background: rgba(10, 8, 13, .96);
    padding: 17px 20px;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mythra-account-dashboard .user-data span {
    overflow: hidden;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

.mythra-account-dashboard .user-data a {
    position: absolute;
    top: 50%;
    right: 17px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin: 0 !important;
    border: 1px solid rgba(255, 103, 196, .42);
    border-radius: 7px !important;
    background: linear-gradient(145deg, var(--ma-pink), var(--ma-purple)) !important;
    transform: translateY(-50%);
}

/* Tables become a coherent account surface */
.mythra-account-page .table-responsive {
    overflow: auto;
    border: 1px solid var(--ma-line);
    border-radius: 15px;
    background: rgba(9, 7, 12, .92);
    box-shadow: var(--ma-shadow);
}

.mythra-account-page table {
    width: 100%;
    border-collapse: collapse;
    color: rgba(255, 255, 255, .72);
}

.mythra-account-page table thead {
    background: linear-gradient(90deg, rgba(255, 16, 145, .13), rgba(123, 28, 223, .11));
}

.mythra-account-page table th {
    border-bottom: 1px solid rgba(255, 66, 175, .16) !important;
    color: rgba(255, 255, 255, .48) !important;
    padding: 16px 18px !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.mythra-account-page table td {
    border-bottom: 1px solid rgba(255, 255, 255, .045) !important;
    padding: 17px 18px !important;
    font-size: 12px;
}

.mythra-account-page table tbody tr {
    transition: background .18s ease, transform .18s ease;
}

.mythra-account-page table tbody tr:hover {
    background: rgba(255, 26, 151, .045);
}

.mythra-account-page table tbody tr:last-child td { border-bottom: 0 !important; }

.mythra-account-page .btn-circle-primary {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255, 83, 188, .47);
    border-radius: 8px !important;
    color: #fff;
    background: linear-gradient(145deg, #fc1695, #9c17df) !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, .25), 0 4px 0 rgba(74, 4, 102, .85);
    transition: transform .17s ease, filter .17s ease;
}

.mythra-account-page .btn-circle-primary:hover { color: #fff; filter: brightness(1.13); transform: translateY(-2px); }
.mythra-account-page .btn-circle-primary:active { transform: translateY(3px); box-shadow: inset 0 1px rgba(255,255,255,.2), 0 1px 0 rgba(74,4,102,.85); }

.mythra-account-page .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    border: 1px solid currentColor;
    border-radius: 6px !important;
    background: color-mix(in srgb, currentColor 10%, transparent) !important;
    padding: 6px 9px !important;
    font-size: 9px !important;
    font-weight: 850 !important;
}

.mythra-account-page .flat-card.text-red-500 {
    min-height: 110px;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .48) !important;
}

/* Forms */
.mythra-account-page :is(.form-group, .pb-6) {
    margin-bottom: 22px;
}

.mythra-account-page .form-label {
    color: rgba(255, 255, 255, .72) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

.mythra-account-page :is(.form-control, select) {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(255, 55, 170, .2) !important;
    border-radius: 10px !important;
    color: #fff !important;
    background: rgba(7, 6, 10, .78) !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, .035) !important;
    padding: 0 15px !important;
    font-size: 12px !important;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.mythra-account-page :is(.form-control, select):focus {
    outline: none;
    border-color: rgba(255, 70, 180, .74) !important;
    background: rgba(13, 7, 17, .94) !important;
    box-shadow: 0 0 0 4px rgba(255, 20, 145, .09), inset 0 1px rgba(255,255,255,.04) !important;
}

.mythra-account-page .form-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid var(--ma-line-soft);
    margin-top: 25px;
    padding-top: 22px;
}

.mythra-account-page input[type="checkbox"] {
    appearance: none;
    position: relative;
    flex: 0 0 auto;
    width: 19px !important;
    height: 19px !important;
    border: 1px solid rgba(255, 69, 179, .28) !important;
    border-radius: 5px !important;
    background: rgba(8, 7, 10, .85) !important;
}

.mythra-account-page input[type="checkbox"]:checked {
    border-color: #d55aff !important;
    background: linear-gradient(145deg, #fb1a9b, #9222ed) !important;
    box-shadow: 0 0 0 3px rgba(191, 45, 255, .1);
}

.mythra-account-page input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.mythra-account-page label a {
    color: #b64aff !important;
    font-weight: 700;
    text-decoration: underline;
}

/* Credit charge */
.mythra-credit-page {
    max-width: 1180px;
}

.mythra-account-standalone {
    max-width: 980px;
}

.mythra-credit-form {
    position: relative;
    overflow: hidden;
    padding: 32px !important;
}

.mythra-credit-form::before {
    content: "";
    position: absolute;
    top: -90px;
    right: -80px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 38, 157, .12);
    transform: rotate(45deg);
    pointer-events: none;
}

.mythra-credit-form [x-data*="paymentMethod"] > div {
    gap: 12px !important;
}

.mythra-credit-form [paymentGatewayID],
.mythra-credit-form [x-data*="paymentMethod"] > div > div {
    min-height: 82px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 54, 168, .2) !important;
    border-radius: 11px !important;
    background: rgba(8, 7, 11, .76) !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, .04);
    padding: 17px !important;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.mythra-credit-form [paymentGatewayID]:hover {
    border-color: rgba(255, 73, 180, .65) !important;
    background: rgba(38, 10, 38, .78) !important;
    transform: translateY(-2px);
}

.mythra-credit-form [paymentGatewayID]#active {
    border-color: var(--ma-pink) !important;
    background: linear-gradient(135deg, rgba(255, 16, 143, .17), rgba(133, 32, 229, .12)) !important;
    box-shadow: inset 0 1px rgba(255,255,255,.08), 0 0 0 3px rgba(255,15,143,.07);
}

/* Credit packages */
.mythra-credit-packages > div > .grid {
    gap: 18px !important;
}

.mythra-credit-packages > div > .grid > div {
    overflow: hidden;
    border: 1px solid var(--ma-line);
    border-radius: 15px;
    background: linear-gradient(160deg, rgba(30, 12, 37, .86), rgba(9, 8, 12, .97) 60%);
    box-shadow: var(--ma-shadow), inset 0 1px rgba(255,255,255,.045);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.mythra-credit-packages > div > .grid > div:hover {
    border-color: rgba(255, 65, 177, .58);
    box-shadow: 0 28px 70px rgba(0,0,0,.44), 0 0 30px rgba(255,13,143,.08);
    transform: translateY(-5px);
}

.mythra-credit-packages > div > .grid > div > div:first-child {
    min-height: 230px;
    border-radius: 0 !important;
    background:
        radial-gradient(circle at 50% 48%, rgba(255, 22, 154, .18), transparent 38%),
        linear-gradient(135deg, rgba(255, 27, 151, .08), rgba(125, 25, 216, .08)),
        repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,255,255,.035) 19px 20px) !important;
}

.mythra-credit-packages > div > .grid > div > .p-2 {
    margin: 0 !important;
    padding: 20px !important;
}

/* Linked providers, avatar block and security switch */
.mythra-account-page .card-header {
    padding: 0 !important;
}

.mythra-account-page .card-title {
    color: #fff !important;
    font-weight: 800;
}

.mythra-account-page :is(.btn-primary, .btn-success, .rounded-xl.bg-indigo-600) {
    border: 1px solid rgba(255, 100, 195, .52) !important;
    border-radius: 9px !important;
    color: #fff !important;
    background: linear-gradient(180deg, #fb1b9a, #ac18dc) !important;
    box-shadow: inset 0 1px rgba(255,255,255,.25), 0 4px 0 #5c0877;
}

.mythra-account-page :is(.btn-danger, .rounded-xl.bg-red-500) {
    border: 1px solid rgba(255, 109, 132, .5) !important;
    border-radius: 9px !important;
    color: #fff !important;
    background: linear-gradient(180deg, #ff526c, #b51b4b) !important;
    box-shadow: inset 0 1px rgba(255,255,255,.2), 0 4px 0 #650d31;
}

/* Order detail and package checkout */
.mythra-order-detail > div > .flex,
.mythra-credit-product .row {
    align-items: start;
}

.mythra-order-detail .flat-card,
.mythra-credit-product .card {
    border-radius: 15px !important;
}

.mythra-order-detail .col-span-3,
.mythra-credit-product .col-md-4 {
    position: sticky;
    top: 22px;
}

/* =========================================================
   PERFORMANCE PASS
   Large layers are static. Motion is limited to small elements
   and short entrance/interaction animations.
   ========================================================= */
.mythra-account-hero__media {
    animation: none;
    transform: scale(1.015);
}

.mythra-account-hero__pattern span,
.mythra-account-sidebar::after,
.mythra-account-welcome::after {
    animation: none;
}

.mythra-account-balance,
.mythra-account-tabs-wrap {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.mythra-account-balance {
    background: rgba(12, 7, 16, .94);
}

.mythra-account-tabs-wrap {
    background: rgba(9, 5, 13, .97);
}

.mythra-account-layout__content > section,
.mythra-account-layout__content > .table-responsive,
.mythra-account-layout__content > .relative,
.mythra-account-layout__content > .flat-card {
    content-visibility: auto;
    contain-intrinsic-size: 1px 300px;
}

/* Exact user-panel emboss button architecture */
.mythra-account-primary-action,
.mythra-account-page .form-footer button,
.mythra-account-page #paymentButton,
.mythra-account-page :is(.btn-primary, .btn-success, .bg-indigo-500, .rounded-xl.bg-indigo-600),
.mythra-credit-page button[type="submit"],
.mythra-credit-page a.bg-indigo-500 {
    position: relative;
    z-index: 1;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    border: 1px solid rgba(255, 140, 210, .58) !important;
    border-radius: 12px !important;
    color: #fff !important;
    background-color: #ff0099 !important;
    background-image: linear-gradient(
        180deg,
        rgba(255, 255, 255, .30) 0%,
        rgba(255, 255, 255, .09) 34%,
        rgba(255, 255, 255, 0) 54%,
        rgba(105, 0, 63, .28) 100%
    ) !important;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, .40),
        inset 2px 0 0 rgba(255, 255, 255, .12),
        inset -2px 0 0 rgba(105, 0, 63, .18),
        inset 0 -3px 0 rgba(105, 0, 63, .40),
        0 3px 0 #a80065,
        0 8px 18px rgba(255, 0, 153, .22),
        0 0 22px rgba(255, 0, 153, .10) !important;
    padding: 0 14px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    text-shadow: 0 1px 1px rgba(80, 0, 48, .50);
    text-transform: none;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        filter 180ms ease !important;
}

.mythra-account-primary-action::before,
.mythra-account-page .form-footer button::before,
.mythra-account-page #paymentButton::before,
.mythra-account-page :is(.btn-primary, .btn-success, .bg-indigo-500, .rounded-xl.bg-indigo-600)::before,
.mythra-credit-page button[type="submit"]::before,
.mythra-credit-page a.bg-indigo-500::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -70%;
    left: -55%;
    width: 36%;
    height: 240%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .46), transparent);
    transform: skewX(-22deg);
    transition: left 500ms cubic-bezier(.22, 1, .36, 1);
}

.mythra-account-primary-action:hover::before,
.mythra-account-page .form-footer button:hover::before,
.mythra-account-page #paymentButton:hover::before,
.mythra-account-page :is(.btn-primary, .btn-success, .bg-indigo-500, .rounded-xl.bg-indigo-600):hover::before,
.mythra-credit-page button[type="submit"]:hover::before,
.mythra-credit-page a.bg-indigo-500:hover::before {
    left: 125%;
}

.mythra-account-primary-action:hover,
.mythra-account-page .form-footer button:hover,
.mythra-account-page #paymentButton:hover,
.mythra-account-page :is(.btn-primary, .btn-success, .bg-indigo-500, .rounded-xl.bg-indigo-600):hover,
.mythra-credit-page button[type="submit"]:hover,
.mythra-credit-page a.bg-indigo-500:hover {
    color: #fff !important;
    border-color: rgba(255, 210, 237, .9) !important;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, .56),
        inset 0 -3px 0 rgba(105, 0, 63, .42),
        0 4px 0 #9a005d,
        0 10px 22px rgba(255, 0, 153, .30),
        0 0 34px rgba(255, 0, 153, .20) !important;
    filter: saturate(1.08) brightness(1.05);
    transform: translateY(-2px) !important;
}

.mythra-account-primary-action:active,
.mythra-account-page .form-footer button:active,
.mythra-account-page #paymentButton:active,
.mythra-account-page :is(.btn-primary, .btn-success, .bg-indigo-500, .rounded-xl.bg-indigo-600):active,
.mythra-credit-page button[type="submit"]:active,
.mythra-credit-page a.bg-indigo-500:active {
    filter: brightness(.94);
    transform: translateY(2px) scale(.98) !important;
    box-shadow:
        inset 0 4px 7px rgba(91, 0, 55, .46),
        inset 0 -1px 0 rgba(255, 255, 255, .34),
        0 1px 0 #870052,
        0 3px 8px rgba(255, 0, 153, .14) !important;
}

/* Exact red logout-style destructive buttons */
.mythra-account-page :is(.btn-danger, .rounded-xl.bg-red-500) {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 42px;
    border: 1px solid rgba(255, 131, 150, .62) !important;
    border-radius: 12px !important;
    color: #fff !important;
    background-color: #d92752 !important;
    background-image: linear-gradient(
        180deg,
        rgba(255, 255, 255, .30) 0%,
        rgba(255, 255, 255, .08) 34%,
        rgba(255, 255, 255, 0) 54%,
        rgba(92, 0, 28, .30) 100%
    ) !important;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, .38),
        inset 2px 0 0 rgba(255, 255, 255, .10),
        inset -2px 0 0 rgba(92, 0, 28, .18),
        inset 0 -3px 0 rgba(92, 0, 28, .42),
        0 3px 0 #8e1538,
        0 8px 18px rgba(217, 39, 82, .20),
        0 0 22px rgba(217, 39, 82, .09) !important;
    padding: 0 14px !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    text-shadow: 0 1px 1px rgba(79, 0, 25, .48);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        filter 180ms ease !important;
}

.mythra-account-page :is(.btn-danger, .rounded-xl.bg-red-500)::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -70%;
    left: -55%;
    width: 36%;
    height: 240%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .46), transparent);
    transform: skewX(-22deg);
    transition: left 500ms cubic-bezier(.22, 1, .36, 1);
}

.mythra-account-page :is(.btn-danger, .rounded-xl.bg-red-500):hover::before {
    left: 125%;
}

.mythra-account-page :is(.btn-danger, .rounded-xl.bg-red-500):hover {
    border-color: rgba(255, 207, 216, .88) !important;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, .52),
        inset 0 -3px 0 rgba(92, 0, 28, .44),
        0 4px 0 #7d1231,
        0 10px 22px rgba(217, 39, 82, .28),
        0 0 34px rgba(217, 39, 82, .18) !important;
    filter: saturate(1.08) brightness(1.05);
    transform: translateY(-2px) !important;
}

.mythra-account-page :is(.btn-danger, .rounded-xl.bg-red-500):active {
    filter: brightness(.94);
    transform: translateY(2px) scale(.98) !important;
    box-shadow:
        inset 0 4px 7px rgba(79, 0, 24, .48),
        inset 0 -1px 0 rgba(255, 255, 255, .32),
        0 1px 0 #70102c,
        0 3px 8px rgba(217, 39, 82, .13) !important;
}

/* Visible, lightweight motion: finite entrance + hover-only reactions */
.mythra-account-hero__content {
    animation: mythraAccountRise .62s cubic-bezier(.22, 1, .36, 1) both;
}

.mythra-account-tabs-wrap {
    animation: mythraAccountTabsIn .56s .08s cubic-bezier(.22, 1, .36, 1) both;
}

.mythra-account-welcome {
    animation: mythraAccountCardIn .56s .12s cubic-bezier(.22, 1, .36, 1) both;
}

.mythra-account-welcome::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: -65px;
    right: 18%;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    pointer-events: none;
    opacity: .38;
    background: radial-gradient(circle, rgba(255, 35, 164, .40), rgba(137, 24, 230, .12) 45%, transparent 70%);
    animation: mythraAccountGlowTravel 4.8s ease-in-out 2 alternate;
}

.mythra-account-stat {
    animation: mythraAccountStatIn .46s cubic-bezier(.22, 1, .36, 1) both;
}

.mythra-account-stat:nth-child(1) { animation-delay: .18s; }
.mythra-account-stat:nth-child(2) { animation-delay: .25s; }
.mythra-account-stat:nth-child(3) { animation-delay: .32s; }

.mythra-account-balance__icon {
    animation: mythraAccountIconBeat 1.8s .55s ease-in-out 3;
}

.mythra-account-stat__icon,
.mythra-account-sidebar__icon,
.mythra-account-sidebar__brand-icon {
    transition: transform .24s cubic-bezier(.22, 1, .36, 1), filter .24s ease;
}

.mythra-account-stat:hover .mythra-account-stat__icon,
.mythra-account-sidebar nav :is(a, button):hover .mythra-account-sidebar__icon {
    filter: brightness(1.16) drop-shadow(0 0 9px rgba(255, 29, 156, .32));
    transform: translateY(-2px) rotate(-5deg) scale(1.08);
}

.mythra-account-page .page-subheader::before,
.mythra-account-layout__content > h4::before {
    transform-origin: left center;
    animation: mythraAccountTitlePulse 2.4s ease-in-out 3;
}

.mythra-account-page :is(.flat-card, .card),
.mythra-account-page .table-responsive,
.mythra-credit-packages > div > .grid > div {
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease !important;
}

.mythra-account-page :is(.flat-card, .card):hover,
.mythra-account-page .table-responsive:hover {
    border-color: rgba(255, 60, 175, .34) !important;
}

.mythra-account-page button:disabled,
.mythra-credit-page button:disabled {
    pointer-events: none;
    filter: grayscale(.42) brightness(.72);
    opacity: .62;
    box-shadow: inset 0 2px 0 rgba(255,255,255,.12), 0 2px 0 rgba(72,0,45,.72) !important;
}

/* =========================================================
   MYTHRA ENERGY STAGE
   Prominent decoration without full-screen blur/repaint work.
   Every continuous motion below is transform/opacity only.
   ========================================================= */

/* A bright energy comet crossing the profile cover. */
.mythra-account-hero__veil::before {
    content: "";
    position: absolute;
    left: -360px;
    top: 43%;
    width: 310px;
    height: 3px;
    border-radius: 999px;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 21, 153, .18) 18%, #ff51bd 72%, #fff 100%);
    box-shadow: 0 0 9px rgba(255, 20, 151, .68), 0 0 24px rgba(168, 31, 255, .28);
    transform: translate3d(0, 0, 0) rotate(-11deg);
    transform-origin: right center;
    will-change: transform, opacity;
    animation: mythraEnergyComet 8.6s cubic-bezier(.3, 0, .18, 1) infinite;
}

/* A constellation of colored energy shards travelling as one cheap layer. */
.mythra-account-hero__veil::after {
    content: "";
    position: absolute;
    right: 17%;
    top: 24%;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    pointer-events: none;
    opacity: .68;
    background: #ff4cb8;
    box-shadow:
        48px 31px 0 -1px #9b3cff,
        -38px 63px 0 -2px #fff,
        86px 88px 0 -2px #ff168f,
        -82px 116px 0 -1px #722bdb,
        21px 148px 0 -2px #ff73c7;
    will-change: transform, opacity;
    animation: mythraEnergyShards 7.8s ease-in-out infinite alternate;
}

/* Rotating neon frame around the profile avatar. */
.mythra-account-identity__avatar::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -11px;
    border: 1px dashed rgba(255, 86, 190, .52);
    border-radius: 28px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(130, 34, 238, .16);
    will-change: transform, opacity;
    animation: mythraAvatarOrbit 10s linear infinite;
}

/* Large holographic portal visible behind the account canvas. */
.mythra-account-page::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: max(22px, calc(50% - 690px));
    top: 145px;
    width: 260px;
    height: 260px;
    pointer-events: none;
    opacity: .20;
    clip-path: polygon(50% 0, 88% 18%, 100% 50%, 82% 88%, 50% 100%, 12% 82%, 0 50%, 18% 12%);
    border: 1px solid rgba(255, 55, 174, .55);
    background:
        linear-gradient(45deg, transparent 47%, rgba(255, 31, 160, .54) 49% 51%, transparent 53%),
        linear-gradient(-45deg, transparent 47%, rgba(127, 42, 236, .48) 49% 51%, transparent 53%),
        radial-gradient(circle, transparent 0 37%, rgba(255, 60, 176, .18) 38% 39%, transparent 40%);
    box-shadow: inset 0 0 0 10px rgba(255, 23, 151, .025);
    transform: rotate(0deg) scale(.92);
    will-change: transform, opacity;
    animation: mythraPortalTurn 18s linear infinite;
}

/* Re-purpose the welcome diamond as a visible floating portal. */
.mythra-account-welcome::after {
    right: 16%;
    bottom: -82px;
    width: 185px;
    height: 185px;
    border-color: rgba(255, 64, 178, .24);
    box-shadow: inset 0 0 0 12px rgba(146, 32, 234, .035);
    will-change: transform, opacity;
    animation: mythraWelcomePortal 9s ease-in-out infinite alternate;
}

/* Credit form portal and package scanners. */
.mythra-credit-form::before {
    border-color: rgba(255, 52, 169, .22);
    background:
        linear-gradient(45deg, transparent 48%, rgba(255, 46, 168, .30) 49% 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(132, 39, 230, .25) 49% 51%, transparent 52%);
    will-change: transform, opacity;
    animation: mythraCreditPortal 12s ease-in-out infinite alternate;
}

.mythra-credit-packages > div > .grid > div > div:first-child {
    position: relative;
    isolation: isolate;
}

.mythra-credit-packages > div > .grid > div > div:first-child::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 50%;
    width: 145px;
    height: 145px;
    margin: -72px 0 0 -72px;
    border: 1px dashed rgba(255, 80, 185, .32);
    border-radius: 34%;
    pointer-events: none;
    box-shadow: inset 0 0 0 11px rgba(145, 37, 228, .035);
    will-change: transform, opacity;
    animation: mythraPackageScanner 11s linear infinite;
}

.mythra-credit-packages > div > .grid > div:nth-child(n + 5) > div:first-child::after {
    animation: none;
    opacity: .16;
}

.mythra-credit-form [paymentGatewayID]#active {
    position: relative;
    overflow: hidden;
}

.mythra-credit-form [paymentGatewayID]#active::after {
    content: "";
    position: absolute;
    left: -42%;
    bottom: 0;
    width: 42%;
    height: 2px;
    pointer-events: none;
    opacity: .9;
    background: linear-gradient(90deg, transparent, #ff28a2, #fff, transparent);
    box-shadow: 0 0 10px rgba(255, 27, 157, .7);
    will-change: transform;
    animation: mythraPaymentRail 3.8s ease-in-out infinite;
}

@keyframes mythraEnergyComet {
    0%, 8% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-11deg) scaleX(.65); }
    14% { opacity: .95; }
    38% { opacity: .72; }
    48%, 100% { opacity: 0; transform: translate3d(calc(100vw + 700px), -155px, 0) rotate(-11deg) scaleX(1.05); }
}

@keyframes mythraEnergyShards {
    0% { opacity: .34; transform: translate3d(0, 0, 0) rotate(0deg); }
    48% { opacity: .8; }
    100% { opacity: .46; transform: translate3d(-58px, 46px, 0) rotate(115deg); }
}

@keyframes mythraAvatarOrbit {
    0% { opacity: .34; transform: rotate(0deg) scale(.98); }
    50% { opacity: .82; transform: rotate(180deg) scale(1.04); }
    100% { opacity: .34; transform: rotate(360deg) scale(.98); }
}

@keyframes mythraPortalTurn {
    0% { opacity: .12; transform: rotate(0deg) scale(.88); }
    50% { opacity: .27; transform: rotate(180deg) scale(1.04); }
    100% { opacity: .12; transform: rotate(360deg) scale(.88); }
}

@keyframes mythraWelcomePortal {
    0% { opacity: .22; transform: translate3d(-18px, 8px, 0) rotate(32deg) scale(.92); }
    100% { opacity: .52; transform: translate3d(24px, -14px, 0) rotate(76deg) scale(1.08); }
}

@keyframes mythraCreditPortal {
    0% { opacity: .28; transform: translate3d(-12px, 12px, 0) rotate(32deg) scale(.9); }
    100% { opacity: .7; transform: translate3d(18px, -14px, 0) rotate(78deg) scale(1.08); }
}

@keyframes mythraPackageScanner {
    0% { opacity: .24; transform: rotate(0deg) scale(.88); }
    50% { opacity: .62; transform: rotate(180deg) scale(1.08); }
    100% { opacity: .24; transform: rotate(360deg) scale(.88); }
}

@keyframes mythraPaymentRail {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(340%, 0, 0); }
}

@keyframes mythraAccountRise {
    from { opacity: 0; transform: translate3d(0, 24px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes mythraAccountTabsIn {
    from { opacity: 0; transform: translate3d(0, 14px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes mythraAccountCardIn {
    from { opacity: 0; transform: translate3d(18px, 0, 0) scale(.985); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes mythraAccountStatIn {
    from { opacity: 0; transform: translate3d(0, 15px, 0) scale(.97); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes mythraAccountGlowTravel {
    from { opacity: .24; transform: translate3d(-35px, 8px, 0) scale(.9); }
    to { opacity: .52; transform: translate3d(35px, -8px, 0) scale(1.12); }
}

@keyframes mythraAccountIconBeat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    45% { transform: translate3d(0, -3px, 0) scale(1.08); }
}

@keyframes mythraAccountTitlePulse {
    0%, 100% { opacity: .72; transform: scaleX(.72); }
    50% { opacity: 1; transform: scaleX(1.16); }
}

/* Safe first-pass responsive behavior; dedicated mobile/tablet art direction follows approval. */
@media (max-width: 1023px) {
    body:has(.mythra-account-hero) #mythra-header { position: relative; }
    .mythra-account-hero { min-height: auto; }
    .mythra-account-hero__content {
        min-height: 410px;
        align-items: flex-end;
        padding-top: 80px;
    }
    .mythra-account-layout__sidebar,
    .mythra-order-detail .col-span-3,
    .mythra-credit-product .col-md-4 { position: static; }
    .mythra-account-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .mythra-account-sidebar__brand,
    .mythra-account-sidebar__credit { grid-column: 1 / -1; }
    .mythra-account-sidebar__group { margin-top: 4px; }
    .mythra-account-welcome { align-items: flex-start; }
    .mythra-account-welcome__actions { flex-direction: column; align-items: stretch; }
}

@media (max-width: 639px) {
    body:has(.mythra-account-hero) #mythra-mobile-header { position: absolute; }
    .mythra-account-hero__content {
        min-height: 520px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-end;
        gap: 20px;
        padding-top: 170px;
        padding-bottom: 28px;
    }
    .mythra-account-identity { align-items: flex-end; gap: 15px; }
    .mythra-account-avatar { width: 82px !important; height: 82px !important; border-radius: 17px; }
    .mythra-account-identity__copy h1 { font-size: 29px; }
    .mythra-account-identity__copy > p { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .mythra-account-hero__quick { display: grid; grid-template-columns: 1fr auto; }
    .mythra-account-balance { min-width: 0; }
    .mythra-account-tabs { justify-content: flex-start; overflow-x: auto; padding-top: 10px; padding-bottom: 15px; }
    .mythra-account-tabs a { flex: 0 0 auto; min-height: 44px; padding: 0 13px; }
    .mythra-account-page { padding-top: 38px !important; }
    .mythra-account-sidebar { grid-template-columns: 1fr; }
    .mythra-account-sidebar__brand,
    .mythra-account-sidebar__credit { grid-column: auto; }
    .mythra-account-dashboard .flat-card.\!px-2 { grid-template-columns: 1fr; }
    .mythra-account-welcome { display: block; padding: 22px; }
    .mythra-account-welcome__actions { display: grid; grid-template-columns: 1fr; margin-top: 20px; }
    .mythra-account-stats { grid-template-columns: 1fr; }
    .mythra-account-page .flat-card { padding: 19px !important; }
    .mythra-account-page .table-responsive { border-radius: 12px; }
    .mythra-account-hero__veil::before { width: 190px; }
    .mythra-account-hero__veil::after { right: 22%; transform: scale(.78); }
    .mythra-account-page::after {
        right: -58px;
        top: 185px;
        width: 170px;
        height: 170px;
        opacity: .15;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mythra-account-hero__media,
    .mythra-account-hero__pattern span,
    .mythra-account-sidebar::after,
    .mythra-account-welcome::after {
        animation: none !important;
    }
    .mythra-account-hero__veil::before,
    .mythra-account-hero__veil::after,
    .mythra-account-identity__avatar::before,
    .mythra-account-page::after,
    .mythra-credit-form::before,
    .mythra-credit-packages > div > .grid > div > div:first-child::after,
    .mythra-credit-form [paymentGatewayID]#active::after {
        animation: none !important;
    }
    .mythra-account-page *,
    .mythra-account-hero * {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
