/* Founders 50 — public identity (badge, name, card) */

:root {
    --f50-gold: #e8c56b;
    --f50-gold-deep: #b8860b;
    --f50-platinum: #f7f1d6;
    --f50-ice: #8ec5ff;
    --f50-ink: #1a1406;
}

.forum-uname {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
    vertical-align: middle;
}
.forum-uname__text { display: inline-block; }

.f50-badge {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    text-decoration: none;
    color: var(--f50-ink);
    vertical-align: middle;
    isolation: isolate;
}
.f50-badge__ring {
    position: absolute;
    inset: -2px;
    border-radius: 999px;
    background: conic-gradient(from var(--f50-angle, 0deg), #5ba3f5, #f5d76e, #fff8dc, #7dd3fc, #d4af37, #5ba3f5);
    animation: f50-spin 3.6s linear infinite;
    z-index: 0;
}
.f50-badge__ring::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background: #12151c;
}
.f50-badge__core {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--f50-ink);
    background: linear-gradient(160deg, #fff6d0, #e8c56b 42%, #c9a24a 70%, #fff1b0);
    box-shadow: 0 0 10px rgba(232, 195, 106, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.f50-badge__num {
    position: relative;
    z-index: 1;
    margin-top: 0.12rem;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--f50-gold);
    text-shadow: 0 0 8px rgba(232, 195, 106, 0.45);
}
.f50-badge--sm {
    width: 1.4rem;
    height: 1.4rem;
}
.f50-badge--sm .f50-badge__num { display: none; }
.f50-badge--md {
    width: auto;
    min-width: 2.4rem;
    padding: 0.15rem 0.2rem 0.2rem;
    gap: 0;
}
.f50-badge--md .f50-badge__core {
    width: 1.55rem;
    height: 1.55rem;
    font-size: 0.58rem;
}
.f50-badge--lg {
    width: auto;
    padding: 0.25rem 0.3rem 0.35rem;
}
.f50-badge--lg .f50-badge__core {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 0.82rem;
}
.f50-badge--lg .f50-badge__num { font-size: 0.72rem; }

.f50-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 100%;
    margin: 0.35rem 0 0.15rem;
    padding: 0.28rem 0.55rem 0.28rem 0.28rem;
    border-radius: 999px;
    text-decoration: none;
    color: inherit;
    background:
        linear-gradient(135deg, rgba(232, 195, 106, 0.16), rgba(91, 163, 245, 0.1));
    border: 1px solid rgba(232, 195, 106, 0.38);
    box-shadow: 0 0 18px rgba(232, 195, 106, 0.12);
    vertical-align: middle;
}
.f50-label__mark {
    display: grid;
    place-items: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    flex-shrink: 0;
    font-size: 0.55rem;
    font-weight: 800;
    color: var(--f50-ink);
    background: linear-gradient(160deg, #fff6d0, #e8c56b 50%, #c9a24a);
    animation: f50-badge-pulse 2.6s ease-in-out infinite;
}
.f50-label__copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}
.f50-label__copy strong {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--f50-gold);
}
.f50-label__copy em {
    font-style: normal;
    font-size: 0.68rem;
    opacity: 0.72;
}
.f50-label--sm {
    margin: 0.2rem 0 0;
    padding: 0.15rem 0.45rem 0.15rem 0.15rem;
    gap: 0.35rem;
}
.f50-label--sm .f50-label__mark {
    width: 1.15rem;
    height: 1.15rem;
    font-size: 0.45rem;
}
.f50-label--sm .f50-label__copy strong { font-size: 0.58rem; letter-spacing: 0.12em; }
.f50-label--sm .f50-label__copy em { font-size: 0.58rem; }
.f50-label--lg {
    padding: 0.4rem 0.75rem 0.4rem 0.4rem;
    gap: 0.6rem;
}
.f50-label--lg .f50-label__mark {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.7rem;
}
.f50-label--lg .f50-label__copy strong { font-size: 0.78rem; }
.f50-label--lg .f50-label__copy em { font-size: 0.78rem; }

.f50-name,
.forum-uname--founder .forum-uname__text {
    background: linear-gradient(90deg, #7dd3fc, #fff6d0, #e8c56b, #8ec5ff, #fff1b0, #7dd3fc);
    background-size: 260% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: f50-name-shimmer 2.2s linear infinite;
    filter: drop-shadow(0 0 8px rgba(232, 195, 106, 0.35));
    font-weight: 800;
}
.forum-uname--admin.forum-uname--founder .forum-uname__text {
    background: linear-gradient(90deg, #b8860b, #fff4c2, #f5d76e, #d4af37, #fff1b0, #b8860b);
    background-size: 260% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: f50-name-shimmer 1.7s linear infinite;
}

.is-founder-card {
    position: relative;
    isolation: isolate;
}
.forum-post.is-founder-card,
.forum-member.is-founder-card,
.mp-creator-card.is-founder-card,
.f50-identity-preview.is-founder-card,
.forum-rank-card.is-founder-card {
    animation: f50-card-breathe 4.8s ease-in-out infinite;
}
.is-founder-card > *:not(.f50-card__orbit):not(.f50-card__sheen):not(.f50-card__ribbon) {
    position: relative;
    z-index: 1;
}
.f50-card__orbit,
.f50-card__sheen,
.f50-card__ribbon {
    position: absolute;
    pointer-events: none;
    z-index: 2;
}
.f50-card__orbit {
    inset: 0;
    border-radius: inherit;
    box-shadow:
        inset 0 0 0 1px rgba(232, 195, 106, 0.45),
        0 0 0 1px rgba(91, 163, 245, 0.18);
    background:
        linear-gradient(90deg, transparent, rgba(232, 195, 106, 0.35), transparent) top / 40% 1px no-repeat,
        linear-gradient(180deg, transparent, rgba(125, 211, 252, 0.3), transparent) right / 1px 40% no-repeat;
    animation: f50-orbit 3.8s linear infinite;
}
.f50-card__sheen {
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(110deg, transparent 32%, rgba(255, 246, 208, 0.14) 48%, transparent 64%);
    background-size: 220% 100%;
    animation: f50-sheen 4.2s ease-in-out infinite;
    mix-blend-mode: screen;
    z-index: 3;
}
.f50-card__ribbon {
    top: 0.55rem;
    left: 0.55rem;
    z-index: 4;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--f50-ink);
    background: linear-gradient(90deg, #f5d76e, #fff4c2, #d4af37);
    background-size: 200% auto;
    animation: f50-name-shimmer 2.8s linear infinite;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
}

.mp-card.is-founder-card .f50-card__ribbon,
.mp-seller-card.is-founder-card .f50-card__ribbon,
.forum-thread-row.is-founder-card .f50-card__ribbon,
.forum-comment.is-founder-card .f50-card__ribbon,
.forum-thread-hero.is-founder-card .f50-card__ribbon,
.dash-hero.is-founder-card .f50-card__ribbon {
    display: none;
}

.mp-card.is-founder-card,
.mp-seller-card.is-founder-card,
.mp-creator-card.is-founder-card {
    border-color: rgba(232, 195, 106, 0.42);
    box-shadow:
        0 0 0 1px rgba(232, 195, 106, 0.18),
        0 18px 40px rgba(0, 0, 0, 0.32),
        0 0 28px rgba(232, 195, 106, 0.08);
}
.mp-card.is-founder-card:hover,
.mp-seller-card.is-founder-card:hover {
    border-color: rgba(245, 215, 110, 0.7);
    box-shadow:
        0 0 0 1px rgba(245, 215, 110, 0.35),
        0 22px 48px rgba(0, 0, 0, 0.4),
        0 0 36px rgba(91, 163, 245, 0.16);
}
.mp-card.is-founder-card .mp-card__seller {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    overflow: visible;
}
.mp-seller-card.is-founder-card .mp-seller-card__body h3 {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: normal;
    overflow: visible;
}
.dash-hero.is-founder-card {
    padding: 1rem 1.1rem 1.15rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(232, 195, 106, 0.32);
    overflow: hidden;
}
.forum-post__meta .f50-label {
    margin: 0.15rem 0 0;
}
.mp-card.is-founder-card .mp-card__icon,
.mp-seller-card.is-founder-card .mp-seller-card__avatar,
.mp-creator-card.is-founder-card .mp-creator-card__avatar {
    box-shadow: 0 0 0 1px rgba(232, 195, 106, 0.45), 0 0 16px rgba(232, 195, 106, 0.25);
}

.forum-post.is-founder-card {
    border-color: rgba(232, 195, 106, 0.5);
    box-shadow:
        0 0 0 1px rgba(91, 163, 245, 0.12),
        0 16px 40px rgba(232, 195, 106, 0.08),
        0 10px 28px rgba(0, 0, 0, 0.12);
}
.forum-post.is-founder-card .forum-post__sidebar {
    background:
        linear-gradient(180deg, rgba(232, 195, 106, 0.14), rgba(91, 163, 245, 0.05) 55%, transparent),
        rgba(0, 0, 0, 0.2);
}
.forum-comment.is-founder-card {
    border-color: rgba(232, 195, 106, 0.4);
}
.forum-comment.is-founder-card .forum-comment__rail {
    background: linear-gradient(180deg, #e8c56b, #5ba3f5);
}
.forum-member.is-founder-card,
.forum-rank-card.is-founder-card {
    border-color: rgba(232, 195, 106, 0.5);
    overflow: hidden;
}
.forum-member.is-founder-card .forum-member__id {
    flex-wrap: wrap;
}
.forum-thread-row.is-founder-card {
    background: linear-gradient(90deg, rgba(232, 195, 106, 0.08), transparent 42%);
}

.is-founder-avatar,
.forum-avatar--founder {
    position: relative;
    box-shadow: 0 0 0 2px rgba(232, 195, 106, 0.55), 0 0 16px rgba(91, 163, 245, 0.25);
}
.is-founder-avatar::after,
.forum-avatar--founder::after {
    content: "50";
    position: absolute;
    right: -0.28rem;
    bottom: -0.22rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 999px;
    font-size: 0.42rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--f50-ink);
    background: linear-gradient(160deg, #fff6d0, #e8c56b 55%, #c9a24a);
    box-shadow: 0 0 8px rgba(232, 195, 106, 0.7);
    animation: f50-badge-pulse 2.4s ease-in-out infinite;
}
.nav-profile-avatar.is-founder-avatar::after,
.forum-avatar--sm.forum-avatar--founder::after {
    width: 0.85rem;
    height: 0.85rem;
    font-size: 0.36rem;
    right: -0.18rem;
    bottom: -0.16rem;
}
.forum-avatar--lg.forum-avatar--founder::after,
.mp-creator-card__avatar.is-founder-avatar::after {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.5rem;
}

.nav-profile-name {
    display: inline-flex;
    align-items: center;
    max-width: 168px;
    overflow: visible;
}
.nav-profile-name .forum-uname__text {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-profile-toggle .f50-badge { transform: scale(0.92); }
.nav-dropdown-menu .f50-label { display: flex; width: fit-content; }
.dropdown-profile-header .forum-uname { flex-wrap: wrap; }

.f50-identity-preview {
    padding: 1.15rem 1.2rem 1.25rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(232, 195, 106, 0.4);
    background: linear-gradient(165deg, rgba(232, 195, 106, 0.12), rgba(10, 12, 18, 0.55) 48%, rgba(91, 163, 245, 0.08));
    overflow: hidden;
}
.f50-identity-preview .f50-card__ribbon {
    left: auto;
    right: 0.75rem;
}
.f50-identity-preview__kicker {
    margin: 0 0 0.75rem;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--f50-gold);
}
.f50-identity-preview__row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.forum-post.is-founder-card .f50-card__ribbon { top: 0.7rem; left: auto; right: 3.4rem; }
.forum-member.is-founder-card .f50-card__ribbon { top: 0.85rem; right: 0.85rem; left: auto; }
.mp-creator-card.is-founder-card .f50-card__ribbon { left: auto; right: 0.75rem; }
.forum-rank-card.is-founder-card .f50-card__ribbon { left: auto; right: 0.85rem; }

@keyframes f50-spin { to { --f50-angle: 360deg; transform: rotate(360deg); } }
@keyframes f50-name-shimmer { to { background-position: 200% center; } }
@keyframes f50-sheen {
    0%, 22% { background-position: 120% 0; opacity: 0.15; }
    48% { background-position: -20% 0; opacity: 0.85; }
    100% { background-position: -40% 0; opacity: 0.15; }
}
@keyframes f50-orbit {
    0% { opacity: 0.55; filter: hue-rotate(0deg); }
    50% { opacity: 1; filter: hue-rotate(18deg); }
    100% { opacity: 0.55; filter: hue-rotate(0deg); }
}
@keyframes f50-card-breathe {
    0%, 100% { box-shadow: 0 0 0 1px rgba(232, 195, 106, 0.22), 0 12px 32px rgba(0, 0, 0, 0.12); }
    50% { box-shadow: 0 0 0 1px rgba(245, 215, 110, 0.55), 0 16px 40px rgba(232, 195, 106, 0.14); }
}
@keyframes f50-badge-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(232, 195, 106, 0.35)); }
    50% { transform: scale(1.06); filter: drop-shadow(0 0 10px rgba(232, 195, 106, 0.8)); }
}

@property --f50-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@media (prefers-reduced-motion: reduce) {
    .f50-badge__ring,
    .f50-name,
    .forum-uname--founder .forum-uname__text,
    .f50-card__orbit,
    .f50-card__sheen,
    .f50-card__ribbon,
    .is-founder-card,
    .f50-label__mark,
    .is-founder-avatar::after,
    .forum-avatar--founder::after {
        animation: none !important;
    }
}

[data-theme="light"] .f50-badge__ring::after { background: #eef2f8; }
[data-theme="light"] .f50-label {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(91, 163, 245, 0.1));
    border-color: rgba(168, 132, 30, 0.4);
}
[data-theme="light"] .f50-label__copy strong { color: #8a6620; }
[data-theme="light"] .forum-uname--founder .forum-uname__text,
[data-theme="light"] .f50-name {
    background-image: linear-gradient(90deg, #1d4ed8, #8a6620, #b8902a, #1d4ed8, #8a6620);
}
[data-theme="light"] .f50-identity-preview {
    background: linear-gradient(165deg, rgba(212, 175, 55, 0.18), #fff 50%, rgba(91, 163, 245, 0.08));
}
[data-theme="light"] .forum-post.is-founder-card .forum-post__sidebar {
    background: linear-gradient(180deg, rgba(232, 195, 106, 0.16), transparent 70%);
}
[data-theme="light"] .f50-card__sheen { mix-blend-mode: multiply; opacity: 0.35; }
