body.page-profile {
    background:
        radial-gradient(circle at 10% 0%, rgba(139, 92, 246, 0.16), transparent 36rem),
        radial-gradient(circle at 90% 18%, rgba(217, 70, 239, 0.09), transparent 34rem),
        radial-gradient(circle at 50% 100%, rgba(124, 58, 237, 0.12), transparent 42rem),
        linear-gradient(180deg, #070918 0%, #050614 100%) !important;
    min-height: 100vh;
}

.profile-page {
    min-height: calc(100dvh - 72px);
    padding: 34px 0 60px;
}

.profile-container {
    max-width: 1220px;
    margin-inline: auto;
    padding-inline: 20px;
}

.profile-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.profile-page-heading .ea-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(147, 51, 234, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.28);
    color: #c084fc;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.15);
}

.profile-page-heading h1 {
    margin: 9px 0 6px;
    color: #ffffff;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: clamp(28px, 3.2vw, 38px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    background: linear-gradient(135deg, #ffffff 35%, #e9d5ff 70%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 32px rgba(168, 85, 247, 0.25);
}

.profile-page-heading p {
    margin: 0;
    color: #94a3b8;
    font-size: 14.5px;
    line-height: 1.5;
}

/* ==========================================================================
   MOBILE TABS NAVIGATION (HIDDEN ON DESKTOP)
   ========================================================================== */
.profile-mobile-tabs {
    display: none !important;
}

/* ==========================================================================
   DESKTOP MAIN LAYOUT & SIDEBAR RAIL
   ========================================================================== */
.profile-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.profile-rail {
    position: sticky;
    top: 96px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 22px 16px 18px;
    background: linear-gradient(165deg, rgba(22, 13, 44, 0.9), rgba(12, 7, 26, 0.96)) !important;
    border: 1px solid rgba(168, 85, 247, 0.26) !important;
    border-radius: 20px !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55), 0 0 25px rgba(147, 51, 234, 0.08) !important;
    backdrop-filter: blur(24px) !important;
}

.profile-rail-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 0 6px 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.16);
}

.profile-rail-identity > span:last-child,
.profile-rail-user-meta {
    min-width: 0;
}

.profile-rail-user-meta strong,
.profile-rail-user-meta small,
.profile-rail-identity strong,
.profile-rail-identity small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-rail-user-meta strong,
.profile-rail-identity strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 750;
}

.profile-rail-user-meta small,
.profile-rail-identity small {
    margin-top: 2px;
    color: #c084fc;
    font-size: 11.5px;
    font-weight: 600;
}

.profile-rail-nav {
    display: grid;
    gap: 4px;
}

.profile-nav-label {
    margin: 14px 12px 6px;
    color: #8b8fa8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.profile-nav-item {
    position: relative;
    width: 100%;
    min-height: 42px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 12px;
    padding: 8px 12px;
    color: #cbd5e1;
    background: transparent;
    font-size: 13.5px;
    font-weight: 650;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-nav-item > i {
    color: #a78bfa;
    font-size: 16px;
    text-align: center;
    transition: color 0.2s ease;
}

.profile-nav-item:hover,
.profile-nav-item:focus-visible {
    color: #ffffff;
    background: rgba(147, 51, 234, 0.16);
    transform: translateX(3px);
}

.profile-nav-item:hover > i {
    color: #e9d5ff;
}

.profile-nav-item.is-active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(147, 51, 234, 0.4), rgba(124, 58, 237, 0.15));
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 16px rgba(147, 51, 234, 0.2);
}

.profile-nav-item.is-active::before {
    content: "";
    position: absolute;
    inset: 7px auto 7px 0;
    width: 3.5px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, #d946ef, #a855f7);
    box-shadow: 0 0 8px #d946ef;
}

.profile-nav-item.is-active > i {
    color: #fde047;
}

.profile-rail-logout {
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(168, 85, 247, 0.16);
}

.profile-nav-item--danger {
    color: #fca5a5;
}

.profile-nav-item--danger > i {
    color: #f87171;
}

.profile-nav-item--danger:hover,
.profile-nav-item--danger:focus-visible {
    color: #fef2f2;
    background: rgba(239, 68, 68, 0.16);
}

/* ==========================================================================
   MAIN PROFILE CONTENT SURFACE
   ========================================================================== */
.profile-content {
    min-width: 0;
    min-height: 560px;
    padding: clamp(24px, 2.5vw, 36px);
    background: linear-gradient(165deg, rgba(20, 12, 40, 0.88), rgba(10, 6, 22, 0.94)) !important;
    border: 1px solid rgba(168, 85, 247, 0.25) !important;
    border-radius: 22px !important;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.6), 0 0 32px rgba(147, 51, 234, 0.08) !important;
    backdrop-filter: blur(24px) !important;
}

.profile-view[hidden] {
    display: none !important;
}

.profile-view.is-active {
    animation: profileViewIn .22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes profileViewIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   AVATARS & IDENTITY HERO CARD
   ========================================================================== */
.profile-avatar {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 92px;
    border: 2.5px solid rgba(192, 132, 252, 0.55) !important;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(145deg, #7c3aed, #a855f7);
    box-shadow: 0 0 22px rgba(147, 51, 234, 0.4), 0 12px 28px rgba(0, 0, 0, 0.35) !important;
    font-size: 32px;
    font-weight: 800;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
}

.profile-avatar--rail {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-width: 2px !important;
    box-shadow: 0 0 14px rgba(147, 51, 234, 0.3) !important;
    font-size: 16px;
}

.profile-identity-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    border: 1px solid rgba(168, 85, 247, 0.28) !important;
    border-radius: 20px !important;
    background:
        radial-gradient(circle at 10% 20%, rgba(147, 51, 234, 0.18), transparent 20rem),
        linear-gradient(135deg, rgba(28, 16, 56, 0.85), rgba(16, 9, 36, 0.92)) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    transition: all 0.25s ease !important;
}

.profile-identity-card:hover {
    border-color: rgba(168, 85, 247, 0.45) !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 28px rgba(147, 51, 234, 0.18) !important;
}

.profile-avatar-wrap {
    position: relative;
}

.profile-avatar-edit {
    position: absolute;
    right: -2px;
    bottom: 0px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 2px solid #0f0a22;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #9333ea, #c026d3);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4), 0 0 10px rgba(147, 51, 234, 0.5);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-avatar-edit:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5), 0 0 14px rgba(217, 70, 239, 0.7);
}

.profile-identity-copy {
    min-width: 0;
}

.profile-identity-copy h2 {
    margin: 2px 0 4px;
    color: #ffffff;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: clamp(24px, 2.5vw, 30px);
    font-weight: 800;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
}

.profile-identity-copy p {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 450;
    overflow-wrap: anywhere;
}

.profile-identity-edit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(147, 51, 234, 0.14) !important;
    border: 1px solid rgba(168, 85, 247, 0.36) !important;
    color: #e9d5ff !important;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.profile-identity-edit:hover,
.profile-identity-edit:focus-visible {
    background: rgba(147, 51, 234, 0.28) !important;
    border-color: rgba(192, 132, 252, 0.6) !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.35);
    transform: translateY(-1px);
}

.profile-membership-pill,
.profile-role-badge,
.profile-status-badge,
.profile-device-count,
.device-status-pill,
.muted-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 999px;
    padding: 5px 11px;
    color: #cbd5e1;
    background: rgba(26, 16, 52, 0.6);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
}

.profile-role-badge {
    background: rgba(147, 51, 234, 0.16);
    border-color: rgba(168, 85, 247, 0.32);
    color: #e9d5ff;
    padding: 3.5px 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 750;
    margin-bottom: 8px;
    box-shadow: 0 0 12px rgba(147, 51, 234, 0.14);
}

.profile-role-badge i {
    font-size: 11px;
    color: #c084fc;
}

.profile-role-badge--admin {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.28), rgba(124, 58, 237, 0.2));
    border-color: rgba(192, 132, 252, 0.45);
    color: #f3e8ff;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.25);
}

.profile-role-badge--admin i {
    color: #fde047;
}

.profile-membership-pill {
    background: rgba(147, 51, 234, 0.16);
    border-color: rgba(168, 85, 247, 0.32);
    color: #e9d5ff;
    margin-bottom: 8px;
    box-shadow: 0 0 12px rgba(147, 51, 234, 0.15);
}

.profile-membership-pill.is-active,
.profile-status-badge.is-active {
    background: rgba(74, 222, 128, 0.12);
    border-color: rgba(74, 222, 128, 0.35);
    color: #86efac;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.18);
}

/* ==========================================================================
   STATS ROW (3 EQUAL COLUMNS)
   ========================================================================== */
.profile-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0 0;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.profile-facts .profile-fact-item,
.profile-facts div {
    min-width: 0;
    padding: 18px 20px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(24, 14, 48, 0.75), rgba(14, 8, 30, 0.88)) !important;
    border: 1px solid rgba(168, 85, 247, 0.22) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.2s ease !important;
}

.profile-facts div:hover {
    border-color: rgba(168, 85, 247, 0.42) !important;
    background: linear-gradient(145deg, rgba(32, 18, 64, 0.85), rgba(18, 10, 40, 0.94)) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 18px rgba(147, 51, 234, 0.12) !important;
}

.profile-facts dt {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8b8fa8;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.profile-facts dt i {
    color: #a78bfa;
    font-size: 13px;
}

.profile-facts dd {
    margin: 8px 0 0;
    color: #f8fafc;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-wrap: anywhere;
}

.profile-status-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.profile-status-dot.is-active {
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
}

.profile-mobile-groups {
    display: none;
}

/* ==========================================================================
   2-COLUMN BOTTOM OVERVIEW (YOUR DETAILS & QUICK DESTINATIONS)
   ========================================================================== */
.profile-desktop-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.profile-desktop-overview > section,
.profile-overview-card {
    min-width: 0;
    padding: 24px;
    border-radius: 18px !important;
    background: linear-gradient(145deg, rgba(24, 14, 48, 0.72), rgba(14, 8, 30, 0.88)) !important;
    border: 1px solid rgba(168, 85, 247, 0.22) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35) !important;
    transition: all 0.25s ease !important;
}

.profile-desktop-overview > section:hover,
.profile-overview-card:hover {
    border-color: rgba(168, 85, 247, 0.44) !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.45), 0 0 24px rgba(147, 51, 234, 0.15) !important;
    transform: translateY(-2px);
}

.profile-subheading .ea-eyebrow {
    font-size: 10px;
    color: #a78bfa;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.profile-subheading h3 {
    margin: 6px 0 18px;
    color: #ffffff;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.profile-detail-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.profile-detail-list div,
.profile-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(168, 85, 247, 0.12);
}

.profile-detail-list div:last-child,
.profile-detail-row:last-child {
    border-bottom: 0;
    padding-bottom: 2px;
}

.profile-detail-list dt {
    color: #8b8fa8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.profile-detail-list dd {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 650;
    text-align: right;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 70%;
}

.profile-plan-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(147, 51, 234, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #e9d5ff;
    font-size: 12px;
    font-weight: 700;
}

.profile-quick-links {
    display: grid;
    gap: 8px;
}

.profile-quick-links a,
.profile-quick-link {
    min-height: 58px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border-radius: 14px;
    padding: 10px 14px;
    background: rgba(147, 51, 234, 0.06);
    border: 1px solid rgba(168, 85, 247, 0.14);
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.profile-quick-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(147, 51, 234, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: #c084fc;
    font-size: 16px;
    transition: all 0.2s ease;
}

.profile-quick-links a:hover,
.profile-quick-link:hover,
.profile-quick-link:focus-visible {
    color: #ffffff;
    background: rgba(147, 51, 234, 0.16);
    border-color: rgba(168, 85, 247, 0.38);
    transform: translateX(3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 16px rgba(147, 51, 234, 0.15);
}

.profile-quick-link:hover .profile-quick-icon {
    background: rgba(147, 51, 234, 0.3);
    color: #e9d5ff;
    border-color: rgba(192, 132, 252, 0.5);
    transform: scale(1.05);
}

.profile-quick-link strong,
.profile-quick-links strong {
    display: block;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 750;
}

.profile-quick-link small,
.profile-quick-links small {
    display: block;
    margin-top: 1px;
    color: #8b8fa8;
    font-size: 11.5px;
}

.profile-quick-arrow {
    color: #8b8fa8;
    font-size: 14px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.profile-quick-link:hover .profile-quick-arrow,
.profile-quick-links a:hover i.bi-arrow-up-right {
    color: #c084fc;
    transform: translate(2px, -2px);
}

.profile-view-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 18px;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ea-border-neutral);
}

.profile-view-heading > div {
    grid-column: 1;
}

.profile-view-heading h2 {
    margin: 6px 0 5px;
    color: #fff;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: clamp(23px, 2.5vw, 29px);
    font-weight: 750;
    letter-spacing: -.03em;
}

.profile-view-heading p {
    margin: 0;
    color: var(--ea-text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.profile-back {
    display: none;
}

.profile-editor-avatar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--ea-border-neutral);
    border-radius: 15px;
    background: rgba(255, 255, 255, .018);
}

.profile-editor-avatar .profile-avatar {
    width: 78px;
    height: 78px;
    flex-basis: 78px;
    font-size: 24px;
}

.profile-editor-avatar strong {
    color: #f5f4fa;
    font-size: 15px;
}

.profile-editor-avatar p {
    margin: 4px 0 0;
    color: var(--ea-text-secondary);
    font-size: 12px;
    line-height: 1.5;
}

.profile-editor-form,
.profile-security-form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.profile-editor-form .ea-field > small,
.profile-security-form .ea-field > small {
    color: #74768a;
    font-size: 11px;
    line-height: 1.4;
}

.profile-readonly-field {
    position: relative;
    display: block;
}

.profile-readonly-field > i {
    position: absolute;
    top: 50%;
    left: 13px;
    z-index: 1;
    color: #74768a;
    transform: translateY(-50%);
}

.profile-readonly-field .ea-input {
    padding-left: 37px;
    color: #a3a4b2;
    cursor: default;
}

.profile-form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.profile-membership-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 17px;
    padding: 22px;
    border: 1px solid rgba(139, 92, 246, .16);
    border-radius: 17px;
    background:
        radial-gradient(circle at 5% 0%, rgba(139, 92, 246, .15), transparent 20rem),
        rgba(255, 255, 255, .018);
}

.profile-membership-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(214, 168, 75, .2);
    border-radius: 16px;
    color: #e4c67e;
    background: rgba(214, 168, 75, .08);
    font-size: 23px;
}

.profile-membership-card span:not(.profile-status-badge) {
    color: #85879a;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.profile-membership-card h3 {
    margin: 3px 0 2px;
    color: #fff;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 20px;
    font-weight: 720;
}

.profile-membership-card p {
    margin: 0;
    color: #c8b8f7;
    font-size: 13px;
    font-weight: 650;
}

.profile-membership-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 0;
}

.profile-membership-facts > div {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--ea-border-neutral);
    border-radius: 13px;
    background: rgba(255, 255, 255, .016);
}

.profile-membership-facts dd small {
    display: block;
    margin-top: 3px;
    color: #77798c;
    font-size: 10px;
    font-weight: 500;
}

.profile-membership-actions {
    justify-content: flex-start;
    margin-top: 18px;
}

.profile-payment-history {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.profile-payment-history > article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 15px;
    border: 1px solid var(--ea-border-neutral);
    border-radius: 12px;
    background: rgba(255, 255, 255, .018);
}

.profile-payment-history span,
.profile-payment-history strong,
.profile-payment-history small {
    display: block;
}

.profile-payment-history span,
.profile-payment-history small {
    color: #7f8194;
    font-size: 10px;
}

.profile-payment-history strong {
    margin: 2px 0;
    color: #ededf3;
    font-size: 13px;
}

.profile-payment-history > article > div:last-child {
    flex: 0 0 auto;
    text-align: right;
}

.profile-empty-state,
.settings-empty-state {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 18px;
    border: 1px solid var(--ea-border-neutral);
    border-radius: 14px;
    background: rgba(255, 255, 255, .018);
}

.profile-empty-state h3,
.settings-empty-state strong {
    display: block;
    margin: 0;
    color: #f1f1f6;
    font-size: 14px;
}

.profile-empty-state p,
.settings-empty-state span {
    display: block;
    margin: 4px 0 0;
    color: var(--ea-text-secondary);
    font-size: 12px;
    line-height: 1.45;
}

.profile-empty-state--compact {
    padding: 14px;
}

.profile-security-list {
    display: grid;
    gap: 10px;
}

.profile-security-item {
    overflow: hidden;
    border: 1px solid var(--ea-border-neutral);
    border-radius: 14px;
    background: rgba(255, 255, 255, .018);
}

.profile-security-item summary {
    min-height: 70px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    list-style: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.profile-security-item summary::-webkit-details-marker {
    display: none;
}

.profile-security-item summary strong,
.profile-security-item summary small {
    display: block;
}

.profile-security-item summary strong {
    color: #f1f1f6;
    font-size: 14px;
}

.profile-security-item summary small {
    margin-top: 2px;
    color: #85879a;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.profile-security-item summary > i:last-child {
    color: #74768a;
    transition: transform .18s ease;
}

.profile-security-item[open] summary > i:last-child {
    transform: rotate(180deg);
}

.profile-security-item[open] summary {
    border-bottom: 1px solid var(--ea-border-neutral);
    background: rgba(139, 92, 246, .035);
}

.profile-security-form {
    margin: 0;
    padding: 18px;
}

.profile-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.profile-security-form .ea-button {
    justify-self: start;
}

.profile-device-count {
    grid-column: 2;
    grid-row: 1;
}

.device-summary-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.device-summary-copy {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.device-summary-copy > span {
    border-radius: 999px;
    padding: 5px 9px;
    color: #85879a;
    background: rgba(255, 255, 255, .035);
    font-size: 10px;
    font-weight: 700;
}

.device-session-list {
    display: grid;
    gap: 8px;
}

.device-session-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 13px 14px;
    border: 1px solid var(--ea-border-neutral);
    border-radius: 13px;
    background: rgba(255, 255, 255, .018);
}

.device-session-row.current {
    border-color: rgba(139, 92, 246, .2);
    background: linear-gradient(90deg, rgba(139, 92, 246, .075), transparent 55%), rgba(255, 255, 255, .018);
}

.settings-action-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(139, 92, 246, .13);
    border-radius: 12px;
    color: #bca9f1;
    background: rgba(139, 92, 246, .09);
}

.device-session-copy {
    min-width: 0;
}

.device-session-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.device-session-title strong {
    color: #efeff4;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.device-session-details {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 12px;
    margin-top: 3px;
    color: #7f8194;
    font-size: 10px;
}

.device-status-pill {
    padding: 4px 7px;
    color: #aaaaba;
    font-size: 9px;
}

.device-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #74768a;
}

.device-status-pill.status-current .device-status-dot { background: #a78bfa; }
.device-status-pill.status-active .device-status-dot { background: #4ade80; }
.device-status-pill.status-recent .device-status-dot { background: #e4c67e; }

.device-session-action {
    margin: 0;
}

.device-session-action .btn,
.device-summary-strip .btn {
    min-height: 34px;
    border-color: rgba(251, 113, 133, .18);
    border-radius: 9px;
    color: #fda4af;
    background: rgba(251, 113, 133, .055);
    font-size: 10px;
    font-weight: 700;
}

.device-session-action .btn:hover,
.device-summary-strip .btn:hover {
    border-color: rgba(251, 113, 133, .35);
    color: #fecdd3;
    background: rgba(251, 113, 133, .1);
}

.muted-action {
    color: #898b9c;
    font-size: 9px;
}

.profile-avatar-modal {
    z-index: 1140;
}

.profile-avatar-modal .modal-dialog {
    width: min(720px, calc(100% - 32px));
    max-width: 720px;
}

.profile-avatar-modal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, .2);
    border-radius: 20px;
    color: var(--ea-text);
    background:
        radial-gradient(circle at 12% 0%, rgba(139, 92, 246, .14), transparent 22rem),
        #0a0d20;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .58);
}

.profile-avatar-modal .modal-header,
.profile-avatar-modal .modal-footer {
    border-color: var(--ea-border-neutral);
    padding: 18px 20px;
}

.profile-avatar-modal .modal-header {
    align-items: flex-start;
}

.profile-avatar-modal .modal-header h2 {
    margin: 5px 0 2px;
    color: #fff;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 21px;
    font-weight: 730;
}

.profile-avatar-modal .modal-header p {
    margin: 0;
    color: var(--ea-text-secondary);
    font-size: 12px;
}

.profile-avatar-modal .modal-body {
    padding: 20px;
}

.profile-avatar-fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

.profile-avatar-fieldset legend {
    margin-bottom: 12px;
    color: #b7b8c6;
    font-size: 11px;
    font-weight: 750;
}

.profile-avatar-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
}

.profile-avatar-choice {
    position: relative;
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 7px;
    border: 1px solid var(--ea-border-neutral);
    border-radius: 13px;
    padding: 10px 6px 9px;
    color: #a6a7b6;
    background: rgba(255, 255, 255, .018);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.profile-avatar-choice:hover,
.profile-avatar-choice:focus-within,
.profile-avatar-choice.is-selected,
.profile-avatar-choice:has(input:checked) {
    border-color: rgba(168, 85, 247, .42);
    background: rgba(139, 92, 246, .085);
    transform: translateY(-1px);
}

.profile-avatar-choice input {
    position: absolute;
    opacity: 0;
}

.profile-avatar-choice > span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(3, 5, 17, .56);
}

.profile-avatar-choice img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.profile-avatar-choice strong {
    max-width: 100%;
    font-size: 9px;
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-avatar-choice > i {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    display: none;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #8b5cf6;
    font-size: 11px;
}

.profile-avatar-choice.is-selected > i,
.profile-avatar-choice:has(input:checked) > i {
    display: grid;
}

.profile-avatar-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
    color: #6f7185;
    font-size: 10px;
    text-transform: uppercase;
}

.profile-avatar-divider::before,
.profile-avatar-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ea-border-neutral);
}

.profile-upload-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px dashed rgba(139, 92, 246, .25);
    border-radius: 13px;
    background: rgba(139, 92, 246, .035);
}

.profile-upload-card strong,
.profile-upload-card small,
.profile-upload-card [data-avatar-filename] {
    display: block;
}

.profile-upload-card strong {
    color: #eeeef4;
    font-size: 12px;
}

.profile-upload-card small,
.profile-upload-card [data-avatar-filename] {
    margin-top: 2px;
    color: #77798c;
    font-size: 9px;
}

.profile-upload-card [data-avatar-filename] {
    color: #bca9f1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 768px) {
    body.page-profile .profile-page {
        max-height: none !important;
        overflow: visible !important;
        scrollbar-gutter: auto !important;
    }
}

@media (max-width: 991.98px) {
    .profile-layout {
        display: block;
    }

    .profile-rail {
        display: none !important;
    }

    .profile-mobile-tabs {
        display: flex !important;
        align-items: center;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 4px 4px 16px;
        margin-bottom: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .profile-mobile-tabs::-webkit-scrollbar {
        display: none;
    }

    .profile-mobile-tab {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 18px;
        border-radius: 999px;
        background: linear-gradient(135deg, rgba(26, 16, 52, 0.85), rgba(16, 10, 36, 0.95));
        border: 1px solid rgba(168, 85, 247, 0.25);
        color: #cbd5e1;
        font-size: 13.5px;
        font-weight: 600;
        text-decoration: none;
        min-height: 44px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
        transition: all 0.2s ease;
        white-space: nowrap;
    }

    .profile-mobile-tab i {
        font-size: 15px;
        color: #c084fc;
    }

    .profile-mobile-tab:hover,
    .profile-mobile-tab:focus-visible {
        color: #ffffff;
        border-color: rgba(168, 85, 247, 0.5);
        background: linear-gradient(135deg, rgba(38, 22, 75, 0.9), rgba(24, 14, 52, 0.95));
        box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
    }

    .profile-mobile-tab.is-active {
        background: linear-gradient(135deg, rgba(147, 51, 234, 0.65), rgba(217, 70, 239, 0.45));
        border-color: #c084fc;
        color: #ffffff;
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    .profile-mobile-tab.is-active i {
        color: #fde047;
    }

    .profile-content {
        min-height: auto;
        padding: 24px;
        border-radius: 20px;
    }

    .profile-desktop-overview {
        display: none !important;
    }

    .profile-mobile-tabs {
        display: none !important;
    }

    .profile-mobile-groups {
        display: flex !important;
        flex-direction: column !important;
        gap: 18px;
        margin-top: 18px;
    }

    .profile-menu-group {
        display: flex;
        flex-direction: column;
        gap: 7px;
    }

    .profile-menu-group h3 {
        margin: 0 0 2px 6px;
        color: #94a3b8;
        font-size: 11px;
        font-weight: 750;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .profile-settings-list {
        background: linear-gradient(165deg, rgba(22, 14, 46, 0.85), rgba(12, 7, 28, 0.94)) !important;
        border: 1px solid rgba(168, 85, 247, 0.22) !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
    }

    .profile-setting-row {
        display: grid !important;
        grid-template-columns: 36px minmax(0, 1fr) 20px !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 13px 16px !important;
        color: #f1f5f9 !important;
        text-decoration: none !important;
        border-bottom: 1px solid rgba(168, 85, 247, 0.1) !important;
        transition: background-color 0.18s ease, transform 0.15s ease !important;
        background: transparent !important;
        width: 100% !important;
        text-align: left !important;
        border-top: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
    }

    .profile-setting-row:last-child {
        border-bottom: 0 !important;
    }

    .profile-setting-row:hover,
    .profile-setting-row:active {
        background: rgba(147, 51, 234, 0.15) !important;
        color: #ffffff !important;
    }

    .profile-setting-row .ea-icon {
        width: 34px !important;
        height: 34px !important;
        display: grid !important;
        place-items: center !important;
        border-radius: 10px !important;
        background: rgba(147, 51, 234, 0.16) !important;
        border: 1px solid rgba(168, 85, 247, 0.24) !important;
        color: #c084fc !important;
        font-size: 15px !important;
        flex-shrink: 0 !important;
    }

    .profile-setting-row > span:nth-child(2) {
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1px !important;
    }

    .profile-setting-row strong {
        color: #f8fafc !important;
        font-size: 13.5px !important;
        font-weight: 650 !important;
        line-height: 1.25 !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }

    .profile-setting-row small {
        color: #8b8fa8 !important;
        font-size: 11.5px !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }

    .profile-setting-row .bi-chevron-right {
        color: #64748b !important;
        font-size: 13px !important;
        justify-self: end !important;
    }

    .profile-setting-row--danger .ea-icon {
        background: rgba(239, 68, 68, 0.14) !important;
        border-color: rgba(239, 68, 68, 0.25) !important;
        color: #f87171 !important;
    }

    .profile-setting-row--danger strong {
        color: #fca5a5 !important;
    }

    .profile-setting-row--danger:active {
        background: rgba(239, 68, 68, 0.12) !important;
    }
}

@media (max-width: 767.98px) {
    body.page-profile main {
        padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .profile-page {
        min-height: 0;
        padding: 16px 0 24px;
    }

    .profile-page-heading {
        align-items: flex-start;
        margin-bottom: 14px;
    }

    .profile-page-heading h1 {
        margin-top: 4px;
        font-size: 24px;
    }

    .profile-page-heading p {
        font-size: 12.5px;
    }

    .profile-content {
        padding: 16px 12px !important;
        border-radius: 18px !important;
    }

    .profile-identity-card {
        grid-template-columns: 72px minmax(0, 1fr) !important;
        gap: 14px !important;
        padding: 18px 14px !important;
        border-radius: 18px !important;
    }

    .profile-avatar {
        width: 72px !important;
        height: 72px !important;
        flex-basis: 72px !important;
        font-size: 24px !important;
    }

    .profile-avatar-edit {
        width: 26px !important;
        height: 26px !important;
        font-size: 10px !important;
    }

    .profile-identity-copy h2 {
        font-size: 20px !important;
    }

    .profile-identity-copy p {
        font-size: 12.5px !important;
    }

    .profile-facts {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-top: 14px !important;
    }

    .profile-facts .profile-fact-item,
    .profile-facts div {
        padding: 10px 6px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        border-radius: 14px !important;
        background: linear-gradient(145deg, rgba(24, 14, 48, 0.75), rgba(14, 8, 30, 0.88)) !important;
        border: 1px solid rgba(168, 85, 247, 0.2) !important;
        min-width: 0 !important;
    }

    .profile-facts dt {
        font-size: 9px !important;
        letter-spacing: 0.04em !important;
        gap: 3px !important;
        color: #8b8fa8 !important;
        white-space: nowrap !important;
        justify-content: center !important;
    }

    .profile-facts dt i {
        font-size: 10px !important;
    }

    .profile-facts dd {
        margin: 4px 0 0 !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        justify-content: center !important;
        gap: 4px !important;
    }

    .profile-facts .profile-status-badge {
        padding: 2px 6px !important;
        font-size: 9.5px !important;
    }

    .profile-overview-card {
        padding: 18px 14px;
        border-radius: 16px;
    }

    .profile-view-heading {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
        margin-bottom: 19px;
        padding-bottom: 16px;
    }

    .profile-view-heading > div {
        grid-column: 2;
    }

    .profile-view-heading h2 {
        margin-top: 4px;
        font-size: 21px;
    }

    .profile-view-heading p {
        font-size: 12px;
    }

    .profile-back {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        grid-column: 1;
        grid-row: 1;
        border: 1px solid var(--ea-border-neutral);
        border-radius: 11px;
        color: #d6d3e0;
        background: rgba(255, 255, 255, .025);
        text-decoration: none;
    }

    .profile-device-count {
        grid-column: 2;
        grid-row: 2;
        margin-top: -8px;
    }

    .profile-editor-avatar {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 13px;
        padding: 14px;
    }

    .profile-editor-avatar .profile-avatar {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }

    .profile-editor-avatar .ea-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .profile-editor-form,
    .profile-security-form {
        gap: 15px;
        margin-top: 18px;
    }

    .profile-form-actions,
    .profile-membership-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .profile-form-actions .ea-button {
        width: 100%;
    }

    .profile-membership-card {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .profile-membership-icon {
        width: 46px;
        height: 46px;
        border-radius: 13px;
        font-size: 19px;
    }

    .profile-membership-card h3 {
        font-size: 17px;
    }

    .profile-membership-card .profile-status-badge {
        grid-column: 2;
    }

    .profile-membership-facts,
    .profile-field-grid {
        grid-template-columns: 1fr;
    }

    .profile-payment-history > article {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .profile-payment-history > article > div:last-child {
        text-align: left;
    }

    .profile-security-item summary {
        min-height: 66px;
        padding: 11px 12px;
    }

    .profile-security-form {
        padding: 14px;
    }

    .profile-security-form .ea-button {
        width: 100%;
    }

    .device-summary-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .device-session-row {
        grid-template-columns: 38px minmax(0, 1fr);
        align-items: start;
        gap: 10px;
        padding: 12px;
    }

    .settings-action-icon {
        width: 38px;
        height: 38px;
    }

    .device-session-action,
    .muted-action {
        grid-column: 2;
        justify-self: start;
    }

    .device-session-details {
        display: grid;
        gap: 2px;
    }

    .profile-avatar-modal .modal-dialog {
        width: auto;
        min-height: calc(100% - 12px);
        align-items: end;
        margin: 6px;
    }

    .profile-avatar-modal .modal-content {
        max-height: calc(100dvh - 12px - env(safe-area-inset-bottom, 0px));
        border-radius: 19px 19px 0 0;
    }

    .profile-avatar-modal .modal-header,
    .profile-avatar-modal .modal-footer,
    .profile-avatar-modal .modal-body {
        padding: 15px;
    }

    .profile-avatar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .profile-avatar-choice {
        grid-template-columns: 48px minmax(0, 1fr);
        justify-items: start;
        align-items: center;
        gap: 9px;
        padding: 8px;
    }

    .profile-avatar-choice > span {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .profile-avatar-choice strong {
        font-size: 10px;
    }

    .profile-upload-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .profile-upload-card > label {
        grid-column: 1 / -1;
        width: 100%;
    }

    .profile-avatar-modal .modal-footer {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 359.98px) {
    .profile-container {
        padding-inline: 12px !important;
    }

    .profile-content {
        padding: 14px 10px !important;
    }

    .profile-identity-card {
        grid-template-columns: 60px minmax(0, 1fr) !important;
        gap: 10px !important;
        padding: 14px 10px !important;
    }

    .profile-avatar {
        width: 60px !important;
        height: 60px !important;
        flex-basis: 60px !important;
        font-size: 20px !important;
    }

    .profile-identity-copy h2 {
        font-size: 18px !important;
    }

    .profile-setting-row {
        padding: 11px 12px !important;
        gap: 10px !important;
    }

    .profile-avatar-grid {
        grid-template-columns: 1fr;
    }
}

