img.is-img-error {
    opacity: .35;
    filter: grayscale(1);
}

.YXYH-pc-page-avatar-frame {
    position: relative;
    width: var(--ls-width);
    margin: 16px auto 36px;
    color: var(--ls-text, var(--ls-font-color, #1f2937));
}

body > .ls-empty {
    width: min(var(--ls-width, 1180px), calc(100% - 24px));
    margin: 24px auto 40px;
    min-height: 260px;
    padding: 42px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--ls-primary, #3b82f6) 12%, #e5e7eb);
    background:
        radial-gradient(circle at top, color-mix(in srgb, var(--ls-primary, #3b82f6) 10%, transparent), transparent 56%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
    text-align: center;
}

body > .ls-empty i {
    font-size: 42px;
    line-height: 1;
    color: color-mix(in srgb, var(--ls-primary, #3b82f6) 68%, #94a3b8);
}

body > .ls-empty span {
    max-width: 640px;
    color: var(--ls-text-primary, #1f2937);
    font-size: 14px;
    line-height: 1.8;
}

.YXYH-pc-page-avatar-frame::before {
    content: '';
    position: absolute;
    border-radius: var(--ls-border-radius, 12px);
    pointer-events: none;
    filter: blur(16px);
}

.YXYH-pc-page-avatar-frame::after {
    content: '';
    position: absolute;
    border-radius: var(--ls-border-radius, 12px);
    pointer-events: none;
    filter: blur(16px);
}

.YXYH-pc-page-avatar-frame::before {
    top: 32px;
    left: -14px;
    width: 130px;
    height: 130px;
    background: radial-gradient(circle, rgba(191, 219, 254, 0.24), rgba(191, 219, 254, 0));
}

.YXYH-pc-page-avatar-frame::after {
    top: 220px;
    right: -10px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(253, 230, 138, 0.18), rgba(253, 230, 138, 0));
}

.af-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.af-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 16px;
}

.af-side {
    position: sticky;
    top: 16px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.af-side::before,
.af-side::after {
    content: none;
}

.af-side .af-panel {
    position: relative;
    z-index: 1;
    border-radius: calc(var(--ls-border-radius, 12px) + 4px);
    background: #fff;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.94);
}

.af-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px;
    border: 1px solid rgba(226, 232, 240, 0.94);
    border-radius: var(--ls-border-radius, 12px);
    background: linear-gradient(135deg, #fcfdff 0%, #f6f9ff 58%, #ffffff 100%);
    box-shadow: 0 12px 28px rgba(148, 163, 184, 0.05);
}

.af-hero::before {
    content: '';
    position: absolute;
    top: -56px;
    right: -28px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(191, 219, 254, 0.36), rgba(191, 219, 254, 0));
    pointer-events: none;
}

.af-hero::after {
    content: '';
    position: absolute;
    inset: auto 24px 0 auto;
    width: 110px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(96, 165, 250, 0), rgba(96, 165, 250, 0.55), rgba(96, 165, 250, 0));
    pointer-events: none;
}

.af-hero-main {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.af-hero-side {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.af-hero-kicker {
    position: static;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: var(--ls-border-radius, 12px);
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    color: #4f46e5;
    font-size: 11px;
    font-weight: 600;
}

.af-manage-entry {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    box-shadow: 0 14px 26px rgba(79, 70, 229, 0.22);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.af-side-manage-slot {
    display: none;
}

.af-side-manage-slot.is-open {
    display: block;
}

.af-side-default {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.af-side-default.is-hidden {
    display: none;
}

.af-manage-entry:hover,
.af-manage-entry.is-active {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(79, 70, 229, 0.28);
}

.af-hero-kicker i {
    font-size: 13px;
}

.af-hero-main h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 30px;
    line-height: 1.08;
    color: #0f172a;
}

.af-hero-main h1 i {
    color: #4f46e5;
    font-size: 24px;
    flex-shrink: 0;
}

.af-hero-main p {
    max-width: 700px;
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #526079;
}


.af-side-note-panel::before {
    content: '';
    position: absolute;
    top: -36px;
    left: -32px;
    width: 126px;
    height: 126px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(191, 219, 254, 0.34), rgba(191, 219, 254, 0));
    pointer-events: none;
}

.af-manage-panel {
    padding: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 247, 255, 0.98));
}

.af-manage-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.af-manage-panel-copy {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.7;
}

.af-manage-close {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: var(--ls-border-radius, 12px);
    background: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
    cursor: pointer;
}

.af-manage-panel-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.af-manage-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.af-manage-filter {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 5px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: var(--ls-border-radius, 12px);
    background: rgba(248, 250, 252, 0.96);
    min-width: 0;
    flex: 1;
    justify-content: space-around;
}

.af-manage-filter-btn {
    flex: 1;
    height: 30px;
    border: 0;
    border-radius: var(--ls-border-radius, 12px);
    background: transparent;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.af-manage-filter-btn.is-active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 8px 18px rgba(148, 163, 184, 0.12);
}

.af-manage-add {
    width: auto;
    min-width: 0;
    min-height: 42px;
    flex: 0 1 auto;
    flex-shrink: 1;
}

.af-manage-add span {
    white-space: nowrap;
}

.af-manage-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    height: 580px;
    overflow: auto;
    align-content: start;
}

.af-manage-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 20px 12px 14px;
    border-radius: var(--ls-border-radius, 12px);
    border: 1px solid rgba(226, 232, 240, 0.96);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.98));
    text-align: center;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.af-manage-item:hover {
    border-color: rgba(99, 102, 241, 0.28);
    box-shadow: 0 12px 28px rgba(148, 163, 184, 0.12);
}

.af-manage-item-preview {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: var(--ls-border-radius, 12px);
    background: linear-gradient(180deg, #fff, #eef5ff);
}

.af-manage-item-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.af-manage-item-frame {
    position: absolute;
    inset: -30%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.af-manage-item-main {
    display: flex;
    min-width: 0;
    width: 100%;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    position: static;
}

.af-manage-item-name {
    display: block;
    width: 100%;
    min-width: 0;
    font-size: 14px;
    color: #0f172a;
    line-height: 1.5;
}

.af-manage-item-fee {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    width: auto;
    max-width: calc(100% - 42px);
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 999px 0 var(--ls-border-radius, 12px) 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    z-index: 2;
    background: transparent;
    box-shadow: none;
}

.af-manage-item-fee.is-paid {
    color: #f97316;
}

.af-manage-item-fee.is-free {
    color: #16a34a;
}

.af-manage-item-users {
    display: block;
    width: 100%;
    color: #64748b;
    font-size: 12px;
    line-height: 1.7;
}

.af-manage-status {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.96);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.96));
    box-shadow: 0 10px 22px rgba(148, 163, 184, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.af-manage-status::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 999px;
}

.af-manage-status.is-online::after {
    background: radial-gradient(circle at 35% 35%, #86efac 0%, #22c55e 62%, #15803d 100%);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.12), 0 0 16px rgba(34, 197, 94, 0.22);
}

.af-manage-status.is-offline::after {
    background: radial-gradient(circle at 35% 35%, #fdba74 0%, #f97316 58%, #dc2626 100%);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.12), 0 0 16px rgba(249, 115, 22, 0.22);
}

.af-manage-empty,
.af-manage-empty-inline,
.af-manage-empty-simple {
    padding: 18px 14px;
}

.af-manage-empty-simple {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 180px;
    color: #64748b;
    text-align: center;
}

.af-manage-empty-simple span:last-child {
    font-size: 13px;
    line-height: 1.6;
}

.af-manage-empty-inline {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    height: 100%;
    gap: 8px;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    text-align: center;
}

.af-side-note-panel::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 18px;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(253, 230, 138, 0.28), rgba(253, 230, 138, 0));
    pointer-events: none;
}

.af-side-note-shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.af-side-note-head {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 10px;
}

.af-side-note-title {
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    line-height: 1.2;
}

.af-side-note-copy {
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.85;
    word-break: break-word;
    white-space: pre-line;
}

.af-store {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.94);
    border-radius: var(--ls-border-radius, 12px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.98));
    padding: 20px;
    box-shadow: 0 12px 28px rgba(148, 163, 184, 0.05);
}

.af-store::before {
    content: '';
    position: absolute;
    top: -34px;
    left: -28px;
    width: 132px;
    height: 132px;
    border-radius: 999px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(191, 219, 254, 0.26), rgba(191, 219, 254, 0));
}

.af-store::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 18px;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(167, 243, 208, 0.18), rgba(167, 243, 208, 0));
}

.af-title-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    flex-shrink: 0;
}

.af-title-icon i {
    font-size: 18px;
    line-height: 1;
}

.af-store-head {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.af-store-head-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(203, 213, 225, 0.72);
}

.af-store-head-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.af-store-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    line-height: 1.2;
    color: #0f172a;
}

.af-store-subtitle {
    font-size: 12px;
    line-height: 1.7;
    color: #64748b;
}

.af-user-assets {
    display: flex;
    gap: 10px;
}

.af-user-assets span {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 10px;
    overflow: hidden;
    line-height: 25px;
    border-radius: 25px;
    border: 1px solid transparent;
    font-size: 12px;
}

.af-user-assets span::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .18;
    pointer-events: none;
}

.af-user-assets span:nth-child(1) {
    border-color: rgba(250, 204, 21, 0.16);
    background: linear-gradient(135deg, #fffdf4, #fff7d6);
    color: #a16207;
}

.af-user-assets span:nth-child(1)::before {
    background: radial-gradient(circle at top right, rgba(250, 204, 21, 0.34), rgba(250, 204, 21, 0));
}

.af-user-assets span:nth-child(2) {
    border-color: rgba(59, 130, 246, 0.14);
    background: linear-gradient(135deg, #f7fbff, #e8f2ff);
    color: #1d4ed8;
}

.af-user-assets span:nth-child(2)::before {
    background: radial-gradient(circle at top right, rgba(96, 165, 250, 0.3), rgba(96, 165, 250, 0));
}

.af-user-assets span:nth-child(3) {
    border-color: rgba(52, 211, 153, 0.15);
    background: linear-gradient(135deg, #f5fffb, #dcfce7);
    color: #047857;
}

.af-user-assets span:nth-child(3)::before {
    background: radial-gradient(circle at top right, rgba(52, 211, 153, 0.28), rgba(52, 211, 153, 0));
}

.af-store-head-side {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.af-tab-rail {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.af-tab-list {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 4px;
}

.af-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 12px;
    color: #475569;
    cursor: pointer;
    font-size: 12px;
    transition: .18s;
}

.af-tab::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 3px;
    height: 3px;
    border-radius: 999px;
    background: transparent;
    transition: background .18s ease, opacity .18s ease;
    opacity: 0;
}

.af-tab:hover {
    transform: translateY(-1px);
    color: var(--ls-primary, #4f46e5);
}

.af-tab.is-active {
    color: var(--ls-primary, #4f46e5);
}

.af-tab.is-active::after {
    background: var(--ls-primary, #4f46e5);
    opacity: 1;
}

.af-store-toolbar {
    display: flex;
    min-width: 0;
    flex: 0 1 350px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.af-search-box {
    position: relative;
    display: flex;
    flex: 1 1 180px;
    align-items: center;
}

.af-search-box i {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}

.af-search-box input {
    width: 100%;
    min-height: 40px;
    padding: 0 14px 0 38px;
    border: 1px solid rgba(226, 232, 240, 0.98);
    border-radius: 12px;
    background: #fff;
    color: #1f2937;
    font-size: 13px;
}

.af-search-box input:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.72);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.12);
}

.af-sort-box {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid rgba(226, 232, 240, 0.98);
    border-radius: 12px;
    background: #fff;
}

.af-sort-box select {
    min-width: 112px;
    border: 0;
    background: transparent;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
}

.af-sort-box select:focus {
    outline: none;
}


.af-grid-wrap {
    min-height: 420px;
}

.af-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    height: 540px;
    align-content: start;
}

.af-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed rgba(203, 213, 225, 0.72);
}

.af-pagination-meta {
    color: #64748b;
    font-size: 12px;
    line-height: 1.7;
}

.af-pagination-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.af-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(226, 232, 240, 0.94);
    border-radius: 10px;
    background: #fff;
    color: #475569;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.af-page-btn:hover {
    border-color: rgba(79, 70, 229, 0.2);
    background: rgba(79, 70, 229, 0.06);
    color: var(--ls-primary, #4f46e5);
    transform: translateY(-1px);
}

.af-page-btn.is-active {
    border-color: transparent;
    background: var(--ls-primary, #4f46e5);
    color: #fff;
}

.af-page-btn.is-disabled,
.af-page-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

.af-page-btn.is-disabled:hover,
.af-page-btn:disabled:hover {
    border-color: rgba(226, 232, 240, 0.94);
    background: #fff;
    color: #475569;
}

.af-card {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 100%;
    flex-direction: column;
    gap: 12px;
    border-radius: var(--ls-border-radius, 12px);
    border: 1px solid rgba(226, 232, 240, 0.5);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    align-items: stretch;
}

.af-card:hover {
    transform: translateY(-2px);
    border-color: rgba(219, 234, 254, 0.98);
    box-shadow: 0 16px 30px rgba(148, 163, 184, 0.08);
}

.af-card-flags {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    display: flex;
    max-width: calc(100% - 16px);
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    pointer-events: none;
}

.af-card-flag {
    display: inline-flex;
    align-items: center;
    line-height: 20px;
    padding: 0 5px;
    border-radius: 15px;
    font-size: 11px;
}

.af-card-flag.is-warm {
    background: #fef08a;
    color: #b45309;
}

.af-card-flag.is-green {
    background: #bbf7d0;
    color: #047857;
}

.af-card-flag.is-owned {
    background: rgba(255, 87, 34, 0.14);
    color: #ff5722;
}

.af-card-flag.is-dark {
    background: rgba(250, 204, 21, 0.18);
    color: #b45309;
}

.af-card-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    border-radius: var(--ls-border-radius, 12px);
    background: linear-gradient(180deg, #fbfdff, #f3f8ff);
    overflow: hidden;
}

.af-card-preview::before {
    content: '';
    position: absolute;
    top: -34px;
    left: -22px;
    width: 118px;
    height: 118px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.20), rgba(96, 165, 250, 0));
    pointer-events: none;
}

.af-card-preview::after {
    content: '';
    position: absolute;
    right: 12px;
    bottom: 10px;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.14), rgba(129, 140, 248, 0));
    pointer-events: none;
}

.af-card-preview > img {
    display: block;
    width: 70px;
    height: 70px;
    border-radius: 70px;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.af-card-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 126px;
    height: 126px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
}

.af-card-body {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 10px;
}

.af-card-name {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 5px;
}

.af-card-desc {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
    line-height: 1.6;
    color: #b8c2cf;
    padding: 0 5px;
}

.af-card-status,
.af-card-window {
    display: inline-flex;
    align-items: center;
    line-height: 20px;
    padding: 0 5px;
    border-radius: 15px;
    font-size: 11px;
}

.af-card-status {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 2;
    box-shadow: none;
}

.af-card-status.is-available {
    background: rgba(34, 197, 94, 0.14);
    color: #16a34a;
}

.af-card-status.is-renewable {
    background: rgba(59, 130, 246, 0.14);
    color: #2563eb;
}

.af-card-status.is-owned {
    background: rgba(168, 85, 247, 0.14);
    color: #9333ea;
}

.af-card-status.is-renew {
    background: rgba(255, 87, 34, 0.12);
    color: #ff5722;
}

.af-card-status.is-wearing {
    left: auto;
    right: 8px;
    top: unset;
    bottom: 8px;
    background: rgba(34, 197, 94, 0.16);
    color: #15803d;
}

.af-card-window {
    background: rgba(241, 245, 249, 0.96);
    color: #64748b;
    width: fit-content;
    margin-left: 5px;
}

.af-card-meta {
    display: flex;
    justify-content: space-between;
    border-top: 1px dashed #f5f5f5;
    padding: 10px;
}

.af-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.af-card-meta span.is-price {
    color: #ff9800;
    font-weight: 600;
}

.af-card-meta span.is-price.is-free {
    color: #16a34a;
}

.af-card-meta span.is-price.is-money {
    color: #2563eb;
}

.af-card-meta span.is-price.is-extcredits {
    color: #7c3aed;
}

.af-card-meta i {
    font-size: 12px;
    color: currentColor;
}

.af-log-panel::before {
    content: '';
    position: absolute;
    top: -28px;
    left: -22px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(167, 243, 208, 0.28), rgba(167, 243, 208, 0));
}

.af-log-panel::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 16px;
    width: 76px;
    height: 76px;
    border-radius: 999px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(191, 219, 254, 0.22), rgba(191, 219, 254, 0));
}

.af-log-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 20px 14px;
}

.af-log-head-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.af-log-title {
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.af-log-feed {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 18px 18px;
}

.af-log-scroll {
    position: relative;
    height: 450px;
    overflow-y: auto;
    padding-right: 4px;
    margin-right: -4px;
    scroll-behavior: smooth;
}

.af-log-scroll::-webkit-scrollbar {
    width: 6px;
}

.af-log-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.34);
}

.af-log-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.af-log-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border: 1px solid rgba(237, 242, 247, 0.92);
    border-radius: calc(var(--ls-border-radius, 12px) + 2px);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color .18s ease, background .18s ease;
}

.af-log-card:last-child {
    border-bottom: 1px solid rgba(237, 242, 247, 0.92);
}

.af-log-card:hover {
    transform: none;
    border-color: rgba(226, 232, 240, 0.9);
    box-shadow: none;
    background: rgba(255, 255, 255, 0.8);
}

.af-log-card-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 13px;
}

.af-log-user-block {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

.af-log-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.af-log-card-body {
    display: flex;
    min-width: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.ls-avatar-frame {
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(100% * 1.6);
    height: calc(100% * 1.6);
    transform: translate(-50%, -50%);
    display: block;
    pointer-events: none;
    z-index: 2;
}

.ls-avatar-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 50%;
    border: unset;
}
.af-log-avatar {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 250, 0.92));
    box-shadow: none;
}

.af-log-avatar .lsaf-avatar-hook {
    display: block;
    width: 100%;
    height: 100%;
}

.af-log-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.af-log-user {
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.af-log-action {
    margin: 0;
    min-width: 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.7;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.af-log-time {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
    flex-shrink: 0;
}

.af-log-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 100%;
    padding: 22px 18px;
    border: 1px dashed rgba(203, 213, 225, 0.9);
    border-radius: calc(var(--ls-border-radius, 12px) + 2px);
    background: rgba(255, 255, 255, 0.88);
    text-align: center;
}

.af-log-empty-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(241, 245, 249, 0.98);
    color: #475569;
    font-size: 16px;
    box-shadow: none;
}

.af-log-empty strong {
    color: #0f172a;
    font-size: 14px;
    line-height: 1.4;
}

.af-log-empty span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.7;
}

.af-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px dashed rgba(203, 213, 225, 0.96);
    border-radius: var(--ls-border-radius, 12px);
    background: rgba(248, 250, 252, 0.92);
    color: #6b7280;
    text-align: center;
    min-height: 280px;
    padding: 34px 24px;
}

.af-empty-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px dashed rgba(203, 213, 225, 0.96);
    border-radius: var(--ls-border-radius, 12px);
    background: rgba(255, 255, 255, 0.98);
    color: #6b7280;
    text-align: center;
    min-height: 184px;
    padding: 24px 20px;
}

.af-empty-title {
    font-size: 14px;
    color: #1f2937;
}

.af-empty span,
.af-empty-compact span {
    font-size: 12px;
    line-height: 1.7;
    color: #64748b;
}

.af-empty i,
.af-empty-compact i {
    font-size: 30px;
    color: #cbd5e1;
}

.af-init-empty-wrap {
    width: var(--ls-width);
    min-height: calc(100vh - 220px);
    margin: 16px auto 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.af-init-empty {
    width: min(100%, 520px);
    min-height: 220px;
    padding: 32px 28px;
    border-radius: calc(var(--ls-border-radius, 12px) + 4px);
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.af-init-empty i {
    font-size: 34px;
    color: #f97316;
}

.af-init-empty span {
    max-width: 320px;
    font-size: 14px;
    line-height: 1.8;
    color: #475569;
}

.af-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--ls-border-radius, 12px);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: transform .18s ease, opacity .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.af-btn:hover {
    opacity: .7;
}

.af-btn:disabled {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
}

.af-btn-primary {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: #fff;
}

.af-btn-ghost {
    border: 1px solid rgba(226, 232, 240, 0.98);
    background: #fff;
    color: #1f2937;
}

.af-btn-renew {
    border: 1px solid rgba(251, 146, 60, 0.32);
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #ea580c;
    box-shadow: 0 8px 16px rgba(251, 146, 60, 0.12);
}

.af-btn-gift {
    border: 1px solid rgba(124, 58, 237, 0.22);
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
    color: #6d28d9;
    box-shadow: 0 8px 16px rgba(124, 58, 237, 0.1);
}

.af-btn-gift:hover {
    border-color: rgba(109, 40, 217, 0.34);
    color: #5b21b6;
}

.af-btn:focus-visible,
.af-tab:focus-visible,
.af-card:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 3px;
}

.af-confirm-dialog-overlay {
    z-index: 10040;
}

.af-manage-confirm-overlay {
    z-index: 10040;
    background: transparent;
}

.af-confirm-dialog-overlay .ls-dialog,
.af-manage-confirm-overlay .ls-dialog {
    min-width: 420px;
    border-radius: var(--ls-border-radius, 12px);
    border: 1px solid rgba(226, 232, 240, 0.94);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.98));
    box-shadow: 0 26px 56px rgba(15, 23, 42, 0.14);
}

.af-confirm-dialog-overlay .ls-dialog-body,
.af-manage-confirm-overlay .ls-dialog-body {
    padding: 30px 28px 18px;
}

.af-confirm-dialog-overlay .ls-dialog-footer,
.af-manage-confirm-overlay .ls-dialog-footer {
    justify-content: center;
    gap: 12px;
    padding: 0 28px 26px;
}

.af-confirm-dialog-overlay .ls-dialog-btn,
.af-manage-confirm-overlay .ls-dialog-btn {
    min-width: 128px;
    min-height: 44px;
    border-radius: var(--ls-border-radius, 12px);
    font-size: 14px;
    font-weight: 700;
}

.af-confirm-dialog-overlay .ls-dialog-btn-cancel,
.af-manage-confirm-overlay .ls-dialog-btn-cancel {
    background: #fff;
    border-color: rgba(226, 232, 240, 0.96);
    color: #475569;
}

.af-confirm-dialog-overlay .ls-dialog-btn-primary,
.af-manage-confirm-overlay .ls-dialog-btn-primary {
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.18);
}

.af-confirm-dialog {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}

.af-confirm-dialog-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: var(--ls-border-radius, 12px);
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
    color: #f59e0b;
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.14);
}

.af-confirm-dialog-icon i {
    font-size: 24px;
}

.af-confirm-dialog-title {
    display: block;
    color: #1f2937;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.45;
}

.af-confirm-dialog-summary {
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
}


.af-detail-mask {
    position: fixed;
    inset: 0;
    z-index: 101;
    background: rgba(15, 23, 42, 0.24);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.YXYH-pc-page-avatar-frame.is-detail-open .af-detail-mask {
    opacity: 1;
    pointer-events: auto;
}

.af-manage-dialog-overlay {
    z-index: 10030;
}

body.af-manage-dialog-open .ls-at-overlay {
    z-index: 10031;
}

.af-manage-dialog-overlay .ls-dialog {
    width: min(580px, calc(100vw - 40px));
    max-width: none;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border-radius: var(--ls-border-radius, 12px);
    border: 1px solid rgba(226, 232, 240, 0.96);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.98));
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
}

.af-manage-dialog-overlay .ls-dialog-body {
    padding: 0;
    overflow: hidden;
}

.af-manage-dialog-panel {
    max-height: calc(100vh - 48px);
    overflow: hidden;
}

.af-detail-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 102;
    width: min(520px, calc(100vw - 48px));
    max-height: calc(100vh - 70px);
    overflow: auto;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: var(--ls-border-radius, 12px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.98));
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.16);
    transform: translate(-50%, calc(-50% + 20px)) scale(.96);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
}

.af-manage-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.af-manage-dialog-head strong {
    display: block;
    font-size: 20px;
    line-height: 1.3;
    color: #0f172a;
}

.af-manage-dialog-head span {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.7;
}

.af-manage-dialog-body {
    overflow: auto;
    padding: 18px;
    max-height: calc(100vh - 140px);
    background: #fff;
}

.af-manage-dialog-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    padding: 4px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: var(--ls-border-radius, 12px);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.92));
    align-items: center;
}

.af-manage-dialog-tab {
    flex: 1;
    min-height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--ls-border-radius, 12px);
    background: transparent;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.af-manage-dialog-tab.is-active {
    background: #fff;
    color: #0f172a;
}

.af-manage-dialog-panels {
    display: flex;
    flex-direction: column;
}

.af-manage-dialog-tab-panel {
    display: none;
    min-height: 500px;
    height: 500px;
}

.af-manage-dialog-tab-panel.is-active {
    display: flex;
    flex-direction: column;
}

.af-manage-dialog-tab:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

.af-manage-dialog-overlay .ls-at-overlay {
    z-index: 10031;
}

.af-manage-dialog-overlay .ls-at-modal {
    max-height: min(80vh, 680px);
}


.af-manage-section-title {
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.af-manage-form-body,
.af-manage-users-list {
    flex: 1 1 auto;
    min-height: 0;
}

.af-manage-basic-layout {
    display: grid;
    grid-template-columns: 192px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}


.af-manage-basic-preview {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    min-height: 0;
}


.af-manage-basic-title {
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}

.af-manage-basic-preview .af-manage-frame-preview {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    flex: 0 0 auto;
    min-height: 0;
}

.af-manage-basic-fields {
    min-width: 0;
}

.af-manage-form-grid,
.af-manage-form-grid-basic,
.af-manage-form-grid-config {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.af-manage-form-grid-basic {
    height: 100%;
    align-content: start;
}

.af-manage-frame-url-field,
.af-manage-form-grid-config {
    margin-top: 14px;
}

.af-manage-field.is-disabled,
.af-manage-switch.is-disabled {
    opacity: 0.56;
}

.af-manage-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.af-manage-field-full {
    grid-column: 1 / -1;
}

.af-manage-field span,
.af-manage-switch span {
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}

.af-manage-field input,
.af-manage-field select {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: var(--ls-border-radius, 12px);
    background: #fff;
    color: #0f172a;
    font-size: 13px;
}

.af-manage-field-tip {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.5;
}

.af-manage-frame-upload {
    display: flex;
    align-items: center;
    gap: 12px;
}

.af-manage-frame-upload .af-manage-frame-upload-btn {
    white-space: nowrap;
}

.af-manage-frame-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: var(--ls-border-radius, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.af-manage-frame-preview-avatar {
    position: relative;
    z-index: 1;
    width: 50%;
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(148, 163, 184, 0.16);
}

.af-manage-frame-preview-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.af-manage-frame-preview-frame {
    position: absolute;
    inset: 50%;
    width: calc(100% * 0.8);
    height: calc(100% * 0.8);
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}

.af-manage-frame-preview-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.af-manage-frame-preview-placeholder {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 2;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}

.af-manage-frame-input {
    flex: 1;
    min-width: 0;
}

.af-manage-frame-upload-btn {
    flex: 0 0 auto;
}

.af-manage-form-actions,
.af-manage-user-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.af-manage-form-actions {
    margin-top: 16px;
    justify-content: flex-end;
}

.af-manage-users-actions {
    margin-top: 16px;
    justify-content: flex-end;
}

.af-manage-users-actions .js-af-manage-clear-users {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

.af-manage-form-actions .js-af-manage-delete {
    margin-right: 0;
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

.af-manage-users-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-content: start;
    overflow: auto;
}

.af-manage-user-item {
    position: relative;
    min-height: 148px;
    padding: 16px 12px 12px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: var(--ls-border-radius, 12px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    box-shadow: 0 10px 24px rgba(148, 163, 184, 0.08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.af-manage-user-item:hover {
    border-color: rgba(59, 130, 246, 0.22);
    box-shadow: 0 16px 32px rgba(148, 163, 184, 0.14);
}

.af-manage-grant-dialog {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.af-manage-grant-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.af-manage-user-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    height: 100%;
    text-align: center;
}

.af-manage-user-main img {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
}

.af-manage-user-main strong {
    display: block;
    width: 100%;
    max-width: 100%;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.af-manage-user-main span {
    display: block;
    width: 100%;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.af-manage-user-expire {
    color: #64748b;
}

.af-manage-user-expire.is-permanent {
    color: #16a34a;
}

.af-manage-user-expire.is-expiring-mid {
    color: #f59e0b;
}

.af-manage-user-expire.is-expiring-soon {
    color: #ef4444;
}

.af-manage-user-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, background .18s ease;
}

.af-manage-user-item:hover .af-manage-user-remove,
.af-manage-user-item:focus-within .af-manage-user-remove {
    opacity: 1;
    pointer-events: auto;
}

.af-manage-user-remove:hover {
    background: rgba(239, 68, 68, 0.16);
    transform: scale(1.04);
}

.YXYH-pc-page-avatar-frame[data-tab="my"] .af-detail-modal {
    width: min(520px, calc(100vw - 48px));
}

.af-detail-modal.is-compact-modal {
    width: min(340px, calc(100vw - 48px));
}

.YXYH-pc-page-avatar-frame[data-tab="my"] .af-detail-actions.is-my-compact-actions {
    justify-content: stretch;
}

.YXYH-pc-page-avatar-frame[data-tab="my"].is-detail-open .af-detail-modal.is-compact-modal {
    width: min(340px, calc(100vw - 48px));
}

.YXYH-pc-page-avatar-frame.is-detail-open .af-detail-modal {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.af-detail-grid {
    display: block;
    margin: 0 auto;
}

.af-detail-preview-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
    padding: 18px;
    border-radius: var(--ls-border-radius, 12px);
    border: 1px solid rgba(226, 232, 240, 0.96);
    background: linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(244, 248, 255, 0.98));
    overflow: hidden;
}

.af-detail-preview-card::before {
    content: '';
    position: absolute;
    top: -48px;
    left: -26px;
    width: 152px;
    height: 152px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.18), rgba(96, 165, 250, 0));
    pointer-events: none;
}

.af-detail-preview-card::after {
    content: '';
    position: absolute;
    right: -12px;
    bottom: -18px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.14), rgba(129, 140, 248, 0));
    pointer-events: none;
}

.af-detail-avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    height: 132px;
    margin: 0 auto;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #eef5ff);
    overflow: visible;
}

.af-detail-avatar img {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 70px;
    object-fit: cover;
}

.af-detail-frame {
    position: absolute;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
    inset: -18%;
}

.af-detail-preview-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.af-detail-preview-copy strong {
    font-size: 20px;
    line-height: 1.3;
    color: #0f172a;
}

.af-detail-preview-copy span {
    font-size: 13px;
    line-height: 1.75;
    color: #64748b;
}

.af-detail-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 16px;
    padding-top: 0;
}

.af-detail-info-simple {
    gap: 16px;
}

.af-detail-actions {
    display: flex;
    gap: 10px;
}

.af-detail-actions.is-my-actions .af-btn {
    flex: 1 1 0;
}

.af-detail-actions.is-my-actions .af-btn:last-child {
    flex: 2 1 0;
}

.af-detail-info-simple .af-detail-actions .af-btn {
    width: 100%;
    min-height: 44px;
    font-size: 13px;
}

.af-detail-purchase {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: var(--ls-border-radius, 12px);
    border: 1px solid rgba(226, 232, 240, 0.96);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98));
    box-shadow: 0 10px 22px rgba(148, 163, 184, 0.07);
}

.af-purchase-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.af-purchase-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    line-height: 30px;
}

.af-purchase-price-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #94a9c8;
    font-size: 12px;
}

.af-purchase-price-item {
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    line-height: 24px;
    font-weight: 700;
}

.af-purchase-price-item.is-monthly {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}

.af-purchase-price-item.is-permanent {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.af-purchase-price-item.is-owned {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.af-purchase-price-item.is-expire {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.af-purchase-price-divider {
    color: #cbd5e1;
}

.af-purchase-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--ls-border-radius, 12px);
    background: rgba(255, 87, 34, 0.08);
    border: 1px solid rgba(255, 87, 34, 0.22);
    color: #ff5722;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}

.af-purchase-summary.is-my-summary {
    align-items: flex-start;
}

.af-purchase-summary.is-free {
    background: rgba(22, 163, 74, 0.08);
    border-color: rgba(22, 163, 74, 0.22);
    color: #16a34a;
}

.af-purchase-expire-text {
    justify-content: flex-end;
    color: #fb7185;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
    line-height: 1.5;
}

.af-detail-type-hint {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    border-radius: var(--ls-border-radius, 14px);
    border: 1px solid rgba(226, 232, 240, 0.94);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

.af-detail-type-hint.is-free {
    border-color: rgba(22, 163, 74, 0.18);
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.98), rgba(255, 255, 255, 0.98));
}

.af-detail-type-hint.is-renew {
    border-color: rgba(255, 87, 34, 0.18);
    background: linear-gradient(180deg, rgba(255, 247, 237, 0.98), rgba(255, 255, 255, 0.98));
}

.af-detail-type-hint.is-renew .af-detail-type-badge {
    background: rgba(255, 87, 34, 0.12);
    color: #ff5722;
}

.af-detail-type-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.af-detail-type-hint.is-free .af-detail-type-badge {
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
}

.af-detail-type-hint.is-permanent .af-detail-type-badge {
    background: rgba(124, 58, 237, 0.12);
    color: #7c3aed;
}

.af-detail-type-copy {
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
}

.af-months-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.af-months-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid rgba(226, 232, 240, 0.94);
    border-radius: var(--ls-border-radius, 12px);
    background: #fff;
    color: #475569;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.af-months-btn.is-active,
.af-months-btn:hover {
    border-color: rgba(79, 70, 229, 0.2);
    background: rgba(79, 70, 229, 0.06);
    color: var(--ls-primary, #4f46e5);
    transform: translateY(-1px);
}
