/* ProfileNext v6.0.0 — STOSSACHSE NEXTGEN Dark/Bronze RPG Identity Runtime */

.profilenext-nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:16px;
    border-color:rgba(190,116,39,.55) !important;
    background:linear-gradient(135deg,rgba(34,22,13,.95),rgba(11,11,11,.96)) !important;
}

.profilenext-nav-title{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.profilenext-nav-title small{
    color:#b9a892;
    opacity:.85;
}

.profilenext-nav-links{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.profilenext-nav-links a,
.profilenext-card-link,
.profilenext-reset,
.profilenext-widget-card a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    border:1px solid rgba(190,116,39,.55);
    border-radius:12px;
    padding:9px 12px;
    background:linear-gradient(180deg,rgba(49,31,18,.9),rgba(16,16,16,.95));
    color:#ffd9a0;
    text-decoration:none;
    font-weight:700;
}

.profilenext-nav-links a.is-active,
.profilenext-nav-links a:hover,
.profilenext-card-link:hover,
.profilenext-widget-card a:hover{
    border-color:#ff9d35;
    color:#fff2d6;
    box-shadow:0 0 18px rgba(255,124,0,.18);
}

.profilenext-v6-hero{
    position:relative;
    overflow:hidden;
    min-height:260px;
    border-color:rgba(190,116,39,.75) !important;
    background:
        linear-gradient(135deg,rgba(5,5,5,.88),rgba(28,15,7,.75)),
        var(--profile-banner, radial-gradient(circle at 25% 15%,rgba(255,123,0,.25),transparent 38%), linear-gradient(135deg,#1b120b,#060606));
    background-size:cover;
    background-position:center;
}

.profilenext-v6-hero-overlay{
    position:absolute;
    inset:0;
    background:radial-gradient(circle at 80% 20%,rgba(255,175,62,.18),transparent 35%), linear-gradient(90deg,rgba(0,0,0,.82),rgba(0,0,0,.28));
    pointer-events:none;
}

.profilenext-v6-hero-content{
    position:relative;
    z-index:1;
    min-height:220px;
    display:flex;
    align-items:flex-end;
    gap:24px;
}

.profilenext-v6-avatar-wrap{
    flex:0 0 auto;
}

.profilenext-v6-avatar,
.profilenext-v6-avatar-placeholder{
    width:132px;
    height:132px;
    border-radius:26px;
    border:2px solid rgba(255,164,66,.75);
    background:linear-gradient(135deg,#21150c,#090909);
    object-fit:cover;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:56px;
    box-shadow:0 18px 42px rgba(0,0,0,.55);
}

.profilenext-v6-hero-main h2,
.profilenext-directory-hero h2{
    margin:.2rem 0 .4rem;
    font-size:clamp(1.8rem,4vw,3.2rem);
    color:#fff2d6;
    letter-spacing:.03em;
}

.profilenext-eyebrow{
    text-transform:uppercase;
    letter-spacing:.14em;
    color:#ffad55;
    font-size:.8rem;
    font-weight:800;
}

.profilenext-statusline,
.profilenext-directory-stats{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:8px 0;
}

.profilenext-statusline span,
.profilenext-directory-stats span{
    border:1px solid rgba(255,164,66,.25);
    border-radius:999px;
    padding:6px 10px;
    background:rgba(0,0,0,.36);
}

.profilenext-quote{
    max-width:760px;
    color:#e9d3b4;
    font-size:1.05rem;
}

.profilenext-dashboard-grid,
.profilenext-grid,
.profilenext-member-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:16px;
    margin-top:16px;
}

.profilenext-member-grid{
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
}

.profilenext-card,
.profilenext-member-card,
.profilenext-widget-card,
.profilenext-filter-panel,
.profilenext-bio-panel,
.profilenext-edit-panel{
    background:linear-gradient(180deg,rgba(22,22,22,.96),rgba(10,10,10,.98)) !important;
    border-color:rgba(190,116,39,.35) !important;
}

.profilenext-level-number{
    font-size:2rem;
    font-weight:900;
    color:#ffbd66;
}

.profilenext-online{
    color:#7fffa5;
    font-weight:bold;
}

.profilenext-offline{
    color:#999;
    font-weight:bold;
}

.profilenext-xpbar{
    width:100%;
    height:12px;
    background:#090909;
    border:1px solid rgba(255,164,66,.22);
    border-radius:999px;
    overflow:hidden;
    margin:12px 0;
}

.profilenext-xpbar-fill{
    height:100%;
    background:linear-gradient(90deg,#ff6600,#ffcc00);
    box-shadow:0 0 14px rgba(255,123,0,.45);
}

.profilenext-equipment-grid,
.profilenext-widget-equipment{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:8px;
    margin-top:14px;
}

.profilenext-equipment-grid span,
.profilenext-widget-equipment span{
    min-height:58px;
    background:radial-gradient(circle at 50% 20%,rgba(255,150,42,.18),transparent 58%),#111;
    border:1px solid rgba(190,116,39,.38);
    border-radius:14px;
    padding:10px;
    text-align:center;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

.profilenext-equipment-grid small{
    margin-top:5px;
    color:#b9a892;
    font-size:.72rem;
}

.profilenext-stats{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.profilenext-stats span{
    background:#111;
    border:1px solid rgba(190,116,39,.35);
    border-radius:12px;
    padding:9px 12px;
}

.profilenext-form,
.profilenext-filter-form{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.profilenext-form-grid,
.profilenext-filter-form{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:12px;
}

.profilenext-form label,
.profilenext-filter-form label{
    display:flex;
    flex-direction:column;
    gap:6px;
    color:#f1d9b8;
    font-weight:700;
}

.profilenext-form input,
.profilenext-form textarea,
.profilenext-form select,
.profilenext-filter-form input,
.profilenext-filter-form select{
    width:100%;
    background:#0d0d0d;
    border:1px solid rgba(190,116,39,.36);
    color:#eee;
    border-radius:12px;
    padding:10px;
}

.profilenext-form input:focus,
.profilenext-form textarea:focus,
.profilenext-form select:focus,
.profilenext-filter-form input:focus,
.profilenext-filter-form select:focus{
    outline:0;
    border-color:#ff9d35;
    box-shadow:0 0 0 3px rgba(255,123,0,.12);
}

.profilenext-form button,
.profilenext-filter-form button{
    align-self:flex-start;
    background:linear-gradient(180deg,#ff912a,#bd5600);
    color:#fff;
    border:0;
    border-radius:12px;
    padding:11px 16px;
    font-weight:bold;
    cursor:pointer;
}

.profilenext-checkline{
    justify-content:center;
}

.profilenext-checkline input{
    width:auto;
}

.profilenext-muted{
    color:#b9a892;
}

.profilenext-error,
.profilenext-warning{
    color:#ffb2a2;
    border-color:#8a3d2d !important;
    background:linear-gradient(180deg,rgba(70,19,9,.35),rgba(12,12,12,.95)) !important;
}

.profilenext-success{
    color:#9dffb4;
    border-color:#2f7a45 !important;
    background:linear-gradient(180deg,rgba(17,68,30,.35),rgba(12,12,12,.95)) !important;
}

.profilenext-directory-hero{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:16px;
    flex-wrap:wrap;
    border-color:rgba(190,116,39,.55) !important;
    background:radial-gradient(circle at 85% 10%,rgba(255,123,0,.18),transparent 34%),linear-gradient(135deg,rgba(26,17,10,.96),rgba(9,9,9,.98)) !important;
}

.profilenext-member-card{
    padding:0 !important;
    overflow:hidden;
}

.profilenext-member-banner{
    height:82px;
    background:var(--member-banner, linear-gradient(135deg,#241509,#080808));
    background-size:cover;
    background-position:center;
    border-bottom:1px solid rgba(190,116,39,.32);
}

.profilenext-member-card-body{
    padding:16px;
    position:relative;
}

.profilenext-member-avatar-wrap{
    margin-top:-48px;
}

.profilenext-member-avatar,
.profilenext-member-avatar-placeholder{
    width:82px;
    height:82px;
    border-radius:18px;
    border:2px solid rgba(255,164,66,.75);
    background:#111;
    object-fit:cover;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:36px;
}

.profilenext-widget-head{
    display:flex;
    gap:12px;
    align-items:center;
}

.profilenext-widget-avatar,
.profilenext-widget-avatar-placeholder{
    width:52px;
    height:52px;
    border-radius:14px;
    border:1px solid rgba(255,164,66,.6);
    object-fit:cover;
    background:#111;
    display:flex;
    align-items:center;
    justify-content:center;
}

@media (max-width:720px){
    .profilenext-v6-hero-content{
        align-items:flex-start;
        flex-direction:column;
    }

    .profilenext-v6-avatar,
    .profilenext-v6-avatar-placeholder{
        width:104px;
        height:104px;
    }

    .profilenext-nav{
        align-items:flex-start;
        flex-direction:column;
    }
}


/* ProfileNext v6.5.0 — Inventory/Profile Bridge */
.profilenext-inventory-bridge{
    min-width:0;
    width:100%;
}

.profilenext-inventory-bridge .inventory-next-profile-card,
.profilenext-inventory-fallback.inventory-next-profile-card{
    height:100%;
    min-height:100%;
    box-sizing:border-box;
}

.profilenext-inventory-bridge .inventory-next-profile-card-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
}

.profilenext-inventory-bridge .inventory-next-profile-stats{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
}

.profilenext-inventory-bridge .inventory-next-profile-equipped{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.profilenext-inventory-bridge .inventory-next-profile-equipped span{
    width:36px;
    height:36px;
    display:grid;
    place-items:center;
    border:1px solid rgba(190,116,39,.35);
    background:rgba(0,0,0,.28);
    border-radius:12px;
}

.profilenext-inventory-bridge .inventory-next-widget-link,
.profilenext-inventory-fallback .inventory-next-widget-link{
    white-space:nowrap;
}

.profilenext-card-slot{
    align-self:stretch;
}

@media (max-width:720px){
    .profilenext-inventory-bridge .inventory-next-profile-stats{
        grid-template-columns:1fr !important;
    }

    .profilenext-inventory-bridge .inventory-next-profile-card-head{
        flex-direction:column;
    }
}


/* ProfileNext v6.6.0 — CharacterCore/Profile Bridge */
.profilenext-charactercore-bridge{
    min-width:0;
    width:100%;
}

.profilenext-charactercore-bridge .charactercore-profile-card,
.profilenext-charactercore-fallback.charactercore-profile-card{
    height:100%;
    min-height:100%;
    box-sizing:border-box;
}

.profilenext-charactercore-bridge .charactercore-card-head,
.profilenext-charactercore-fallback-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
    margin-bottom:12px;
}

.profilenext-charactercore-bridge .charactercore-card-head h3,
.profilenext-charactercore-fallback-head h3{
    margin:.2rem 0 .1rem;
}

.profilenext-charactercore-bridge .charactercore-mini-stats{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    margin:12px 0;
}

.profilenext-charactercore-bridge .charactercore-mini-stats span{
    background:#111;
    border:1px solid rgba(190,116,39,.35);
    border-radius:12px;
    padding:9px 10px;
    text-align:center;
}

.profilenext-charactercore-bridge .charactercore-equipment-mini{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:12px 0;
}

.profilenext-charactercore-bridge .charactercore-equipment-mini span{
    border:1px solid rgba(190,116,39,.35);
    background:rgba(0,0,0,.28);
    border-radius:12px;
    padding:7px 9px;
}

.profilenext-charactercore-bridge .charactercore-muted{
    color:#b9a892;
}

.profilenext-profile-foundation-panel{
    border-style:dashed !important;
    opacity:.96;
}

@media (max-width:720px){
    .profilenext-charactercore-bridge .charactercore-card-head,
    .profilenext-charactercore-fallback-head{
        flex-direction:column;
    }

    .profilenext-charactercore-bridge .charactercore-mini-stats{
        grid-template-columns:1fr !important;
    }
}


/* ProfileNext v6.6.2 — Hero Tabs Navigation Standard
   Reiter sitzen direkt an der jeweiligen ProfileNext-Überschrifts-/Hero-Card.
   Keine separate generische Modulnavigation und keine doppelte Linkleiste. */
.profilenext-hero-tabs{
    position:relative;
    z-index:5;
    display:flex;
    align-items:flex-end;
    flex-wrap:wrap;
    gap:0;
    margin:18px 0 -1px 22px;
    padding:0;
}

.profilenext-hero-tabs a{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:54px;
    padding:13px 24px 14px;
    margin:0 7px 0 0;
    border:1px solid rgba(190,116,39,.58);
    border-bottom-color:rgba(190,116,39,.38);
    border-radius:20px 20px 0 0;
    color:#d9c7aa;
    text-decoration:none;
    font-weight:900;
    font-size:1.02rem;
    background:
        radial-gradient(circle at 50% 0%, rgba(255,176,83,.12), transparent 56%),
        linear-gradient(180deg, rgba(37,24,14,.96), rgba(11,10,9,.98));
    box-shadow:
        inset 0 1px 0 rgba(255,220,150,.09),
        0 -4px 16px rgba(0,0,0,.26);
    transition:color .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .16s ease;
}

.profilenext-hero-tabs a:hover{
    color:#fff2d6;
    border-color:rgba(255,176,83,.72);
    background:
        radial-gradient(circle at 50% 0%, rgba(255,188,105,.18), transparent 58%),
        linear-gradient(180deg, rgba(52,32,17,.98), rgba(15,12,9,.98));
    transform:translateY(-1px);
}

.profilenext-hero-tabs a.is-active{
    color:#fff4dc;
    border-color:rgba(255,189,105,.92);
    border-bottom-color:rgba(54,29,14,.98);
    background:
        radial-gradient(circle at 50% 0%, rgba(255,205,128,.28), transparent 62%),
        linear-gradient(180deg, rgba(92,52,22,.98), rgba(45,24,12,.99));
    box-shadow:
        inset 0 1px 0 rgba(255,232,176,.20),
        0 -6px 24px rgba(255,124,0,.12),
        0 0 0 1px rgba(255,189,105,.08);
    transform:translateY(-1px);
}

.profilenext-hero-tabs a.is-active::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:-2px;
    height:3px;
    background:linear-gradient(90deg, rgba(255,189,105,.0), rgba(255,189,105,.75), rgba(255,189,105,.0));
}

.profilenext-hero-tab-icon{
    display:inline-grid;
    place-items:center;
    min-width:20px;
}

.profilenext-hero-tabs + .profilenext-v6-hero,
.profilenext-hero-tabs + .profilenext-directory-hero{
    margin-top:0;
    border-top-color:rgba(255,189,105,.75) !important;
}

.profilenext-hero-with-tabs{
    box-shadow:
        0 22px 60px rgba(0,0,0,.56),
        inset 0 1px 0 rgba(255,225,160,.08) !important;
}

@media (max-width:720px){
    .profilenext-hero-tabs{
        margin:14px 0 -1px 10px;
        overflow-x:auto;
        flex-wrap:nowrap;
        padding-bottom:0;
        scrollbar-width:thin;
    }

    .profilenext-hero-tabs a{
        flex:0 0 auto;
        min-height:48px;
        padding:11px 16px 12px;
        font-size:.94rem;
        white-space:nowrap;
    }
}


/* ==========================================================
   ProfileNext v6.6.3 — Hero Tabs Content Shell
   Nutzt den zentralen STOSSACHSE Hero-Tab-Standard und fasst
   den Modulinhalt in einer gemeinsamen Content-Card zusammen.
   ========================================================== */
.profilenext-hero-tabs{
    width:auto !important;
    max-width:100% !important;
    display:inline-flex !important;
    align-items:flex-end !important;
    justify-content:flex-start !important;
    flex-wrap:wrap !important;
    gap:var(--st-hero-tab-gap, 8px) !important;
    margin:18px 0 -1px 22px !important;
    padding:0 !important;
    border-bottom:0 !important;
    overflow:visible !important;
}

.profilenext-hero-tabs a{
    min-height:var(--st-hero-tab-height, 58px) !important;
    height:var(--st-hero-tab-height, 58px) !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:10px !important;
    padding:0 var(--st-hero-tab-pad-x, 24px) !important;
    margin:0 !important;
    border:1px solid rgba(215,151,70,.38) !important;
    border-bottom-color:var(--origin-line-strong, rgba(241,181,94,.55)) !important;
    border-radius:var(--st-hero-tab-radius, 18px) var(--st-hero-tab-radius, 18px) 0 0 !important;
    color:var(--origin-muted, #b8a98e) !important;
    background:radial-gradient(circle at 50% 0%, rgba(255,207,115,.10), transparent 55%), linear-gradient(180deg, rgba(27,19,13,.96), rgba(8,7,6,.98)) !important;
    box-shadow:inset 0 1px 0 rgba(255,225,160,.10), 0 12px 28px rgba(0,0,0,.26) !important;
    font-size:var(--st-hero-tab-font-size, 1rem) !important;
    font-weight:850 !important;
    line-height:1 !important;
    white-space:nowrap !important;
    text-decoration:none !important;
    transform:translateY(1px) !important;
}

.profilenext-hero-tabs a:hover{
    color:var(--origin-gold-2, #ffcc7a) !important;
    border-color:var(--origin-line-strong, rgba(241,181,94,.55)) !important;
    background:radial-gradient(circle at 50% 0%, rgba(255,207,115,.20), transparent 58%), linear-gradient(180deg, rgba(58,35,18,.98), rgba(15,10,7,.98)) !important;
    box-shadow:inset 0 1px 0 rgba(255,225,160,.18), 0 16px 34px rgba(0,0,0,.32), 0 0 0 1px rgba(255,209,121,.07) !important;
    transform:translateY(-1px) !important;
}

.profilenext-hero-tabs a.is-active,
.profilenext-hero-tabs a.active,
.profilenext-hero-tabs a.nav-active,
.profilenext-hero-tabs a[aria-current="page"]{
    color:#fff3d0 !important;
    border-color:var(--origin-line-strong, rgba(241,181,94,.55)) !important;
    border-bottom-color:rgba(33,21,13,.98) !important;
    background:radial-gradient(circle at 50% 0%, rgba(255,214,135,.30), transparent 62%), linear-gradient(180deg, rgba(77,42,18,.98), rgba(34,21,13,.98)) !important;
    box-shadow:inset 0 1px 0 rgba(255,235,180,.24), 0 -1px 0 rgba(255,222,150,.12), 0 16px 36px rgba(0,0,0,.34) !important;
    transform:translateY(1px) !important;
}

.profilenext-hero-tabs a.is-active::after{
    display:none !important;
}

.profilenext-hero-tabs + .profilenext-v6-hero,
.profilenext-hero-tabs + .profilenext-directory-hero{
    margin-top:0 !important;
    border-top-color:var(--origin-line-strong, rgba(241,181,94,.55)) !important;
    border-top-left-radius:0 !important;
}

.profilenext-content-shell{
    margin:18px 0 0;
    padding:22px;
    border:1px solid var(--origin-line, rgba(214,152,69,.30));
    border-radius:var(--origin-radius, 18px);
    background:linear-gradient(180deg, rgba(18,13,9,.94), rgba(7,6,5,.96));
    box-shadow:var(--origin-shadow, 0 22px 60px rgba(0,0,0,.56)), inset 0 1px 0 rgba(255,225,160,.07);
}

.profilenext-content-shell > .profilenext-dashboard-grid:first-child,
.profilenext-content-shell > .profilenext-filter-panel:first-child,
.profilenext-content-shell > .profilenext-warning:first-child,
.profilenext-content-shell > .profilenext-error:first-child,
.profilenext-content-shell > .profilenext-success:first-child{
    margin-top:0;
}

.profilenext-content-shell .profilenext-dashboard-grid,
.profilenext-content-shell .profilenext-member-grid{
    margin-top:0;
}

.profilenext-content-shell > .panel:last-child,
.profilenext-content-shell > .profilenext-member-grid:last-child{
    margin-bottom:0;
}

.profilenext-content-shell .panel{
    box-shadow:0 12px 32px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,225,160,.06) !important;
}

@media (max-width:720px){
    .profilenext-hero-tabs{
        width:100% !important;
        margin:14px 0 -1px 10px !important;
        padding:0 0 0 0 !important;
        gap:6px !important;
        overflow-x:auto !important;
        flex-wrap:nowrap !important;
        scrollbar-width:thin;
    }

    .profilenext-hero-tabs a{
        min-height:48px !important;
        height:48px !important;
        padding:0 14px !important;
        font-size:.92rem !important;
        flex:0 0 auto !important;
    }

    .profilenext-content-shell{
        padding:14px;
        margin-top:14px;
    }
}


/* ==========================================================
   ProfileNext v6.6.6 — Outer Module Shell Alignment
   Tabs, Hero und kompletter Modulinhalt liegen in einer
   großen äußeren Sammel-Card wie im UserPanelNext-Referenzlayout.
   ========================================================== */
.profilenext-page-frame,
.profilenext-outer-module-shell{
    position:relative;
    width:100%;
    margin:0 0 24px 0 !important;
    padding:0 !important;
    border:1px solid var(--origin-line, rgba(214,152,69,.30)) !important;
    border-radius:24px !important;
    background:
        radial-gradient(circle at 78% 0%, rgba(217,154,67,.11), transparent 38%),
        linear-gradient(180deg, rgba(20,14,9,.94), rgba(5,5,4,.96)) !important;
    box-shadow:var(--origin-shadow, 0 22px 60px rgba(0,0,0,.56)), inset 0 1px 0 rgba(255,225,160,.07) !important;
    overflow:visible !important;
}

.profilenext-page-frame > .profilenext-hero-tabs{
    margin:22px 0 -1px 28px !important;
    padding:0 !important;
    width:auto !important;
    max-width:calc(100% - 56px) !important;
    border-bottom:0 !important;
    background:transparent !important;
    box-shadow:none !important;
}

.profilenext-page-frame > .profilenext-v6-hero,
.profilenext-page-frame > .profilenext-directory-hero{
    margin:0 22px 18px 22px !important;
    border-top-left-radius:0 !important;
    border-top-color:var(--origin-line-strong, rgba(241,181,94,.55)) !important;
}

.profilenext-page-frame > .profilenext-content-shell{
    margin:0 22px 22px 22px !important;
    padding:22px !important;
    border:1px solid rgba(214,152,69,.28) !important;
    border-radius:20px !important;
    background:linear-gradient(180deg, rgba(17,12,8,.86), rgba(6,5,4,.92)) !important;
    box-shadow:inset 0 1px 0 rgba(255,225,160,.055), 0 16px 44px rgba(0,0,0,.30) !important;
}

.profilenext-page-frame > .profilenext-content-shell .profilenext-filter-panel{
    margin-top:0 !important;
}

.profilenext-page-frame .profilenext-dashboard-grid,
.profilenext-page-frame .profilenext-member-grid{
    margin-top:0 !important;
}

.profilenext-page-frame .profilenext-v6-hero + .profilenext-content-shell,
.profilenext-page-frame .profilenext-directory-hero + .profilenext-content-shell{
    margin-top:0 !important;
}

/* Mitgliederansicht: Filter und Karten in derselben äußeren Modul-Shell halten. */
.profilenext-members-page-frame .profilenext-filter-panel{
    margin-bottom:18px !important;
}

.profilenext-members-page-frame .profilenext-member-grid{
    gap:18px !important;
}

@media (max-width:720px){
    .profilenext-page-frame{
        border-radius:18px !important;
    }
    .profilenext-page-frame > .profilenext-hero-tabs{
        margin:14px 0 -1px 12px !important;
        max-width:calc(100% - 24px) !important;
        overflow-x:auto !important;
        flex-wrap:nowrap !important;
    }
    .profilenext-page-frame > .profilenext-v6-hero,
    .profilenext-page-frame > .profilenext-directory-hero,
    .profilenext-page-frame > .profilenext-content-shell{
        margin-left:12px !important;
        margin-right:12px !important;
    }
    .profilenext-page-frame > .profilenext-content-shell{
        padding:14px !important;
    }
}


/* ==========================================================
   ProfileNext v6.6.7 — Hero Tab Inner Clearance Fix
   Ziel:
   - Abstand zwischen äußerer Modul-Sammelcard und Reitern schaffen.
   - Reiter bleiben direkt mit der Hero-/Überschriftsbox verbunden.
   - Fix bewusst im Modul, weil ProfileNext die Tabs als direkte
     Kinder der äußeren Shell rendert und ältere Modulregeln Theme-
     Abstände überschreiben konnten.
   ========================================================== */
:root{
    --profilenext-outer-shell-pad-top:30px;
    --profilenext-outer-shell-pad-x:28px;
    --profilenext-outer-shell-pad-bottom:28px;
    --profilenext-inner-tab-inset:46px;
}

body.st-origin .profilenext-page-frame,
body.st-origin .profilenext-outer-module-shell{
    padding:
        var(--profilenext-outer-shell-pad-top)
        var(--profilenext-outer-shell-pad-x)
        var(--profilenext-outer-shell-pad-bottom) !important;
    overflow:visible !important;
}

body.st-origin .profilenext-page-frame > .profilenext-hero-tabs{
    margin:0 0 -1px var(--profilenext-inner-tab-inset) !important;
    padding:0 !important;
    width:auto !important;
    max-width:calc(100% - var(--profilenext-inner-tab-inset)) !important;
    border-bottom:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    overflow:visible !important;
}

body.st-origin .profilenext-page-frame > .profilenext-v6-hero,
body.st-origin .profilenext-page-frame > .profilenext-directory-hero{
    margin:0 0 18px 0 !important;
    border-top-left-radius:0 !important;
    border-top-color:var(--origin-line-strong, rgba(241,181,94,.55)) !important;
}

body.st-origin .profilenext-page-frame > .profilenext-content-shell{
    margin:0 !important;
    padding:22px !important;
}

body.st-origin .profilenext-page-frame > .profilenext-hero-tabs > a,
body.st-origin .profilenext-page-frame > .profilenext-hero-tabs > a.is-active,
body.st-origin .profilenext-page-frame > .profilenext-hero-tabs > a.active,
body.st-origin .profilenext-page-frame > .profilenext-hero-tabs > a.nav-active,
body.st-origin .profilenext-page-frame > .profilenext-hero-tabs > a[aria-current="page"]{
    transform:translateY(1px) !important;
}

@media (max-width:720px){
    :root{
        --profilenext-outer-shell-pad-top:16px;
        --profilenext-outer-shell-pad-x:12px;
        --profilenext-outer-shell-pad-bottom:16px;
        --profilenext-inner-tab-inset:12px;
    }

    body.st-origin .profilenext-page-frame > .profilenext-hero-tabs{
        margin:0 0 -1px 0 !important;
        padding-left:var(--profilenext-inner-tab-inset) !important;
        padding-right:var(--profilenext-inner-tab-inset) !important;
        max-width:100% !important;
        flex-wrap:nowrap !important;
        overflow-x:auto !important;
        scrollbar-width:thin;
    }

    body.st-origin .profilenext-page-frame > .profilenext-v6-hero,
    body.st-origin .profilenext-page-frame > .profilenext-directory-hero,
    body.st-origin .profilenext-page-frame > .profilenext-content-shell{
        margin-left:0 !important;
        margin-right:0 !important;
    }

    body.st-origin .profilenext-page-frame > .profilenext-content-shell{
        padding:14px !important;
    }
}


/* ==========================================================
   ProfileNext v6.6.8 — Restore Hero Corner Radius
   Ziel:
   - Die sichtbare obere linke Ecke der Hero-/Überschriftsbox wieder rund machen.
   - Abstand zwischen äußerer Sammelcard und Reitern aus v6.6.7 behalten.
   - Reiter bleiben optisch direkt mit der Hero-/Überschriftsbox verbunden.
   ========================================================== */
:root{
    --profilenext-hero-corner-radius:20px;
}

body.st-origin .profilenext-page-frame > .profilenext-hero-tabs + .profilenext-v6-hero,
body.st-origin .profilenext-page-frame > .profilenext-hero-tabs + .profilenext-directory-hero{
    border-top-left-radius:var(--profilenext-hero-corner-radius) !important;
    border-top-right-radius:var(--profilenext-hero-corner-radius) !important;
    overflow:hidden !important;
}

/* Falls globale Theme-Regeln nachladen oder ältere ProfileNext-Regeln greifen:
   diese gezielte Modulregel setzt die sichtbare Hero-Ecke wieder durch,
   ohne die Tab-Leiste oder die äußere Sammelcard zu verschieben. */
body.st-origin .profilenext-profile-page-frame > .profilenext-v6-hero,
body.st-origin .profilenext-member-page-frame > .profilenext-v6-hero,
body.st-origin .profilenext-members-page-frame > .profilenext-directory-hero{
    border-top-left-radius:var(--profilenext-hero-corner-radius) !important;
}

/* ProfileNext v6.6.9 RichEditorNext Bridge */
.profilenext-rich-field{
    display:flex;
    flex-direction:column;
    gap:8px;
    padding:12px;
    border:1px solid rgba(190,116,39,.22);
    border-radius:14px;
    background:linear-gradient(180deg,rgba(255,145,42,.055),rgba(8,8,8,.22));
}

.profilenext-rich-label{
    color:#f1d9b8;
    font-weight:800;
}

.profilenext-rich-field .profilenext-muted{
    margin:0;
}

.profilenext-rich-field .richeditor-next{
    width:100%;
}

.profilenext-richtext-body{
    color:#e9ddcf;
    line-height:1.65;
    overflow-wrap:anywhere;
}

.profilenext-richtext-body > :first-child{
    margin-top:0;
}

.profilenext-richtext-body > :last-child{
    margin-bottom:0;
}

.profilenext-richtext-body img{
    max-width:100%;
    height:auto;
    border-radius:12px;
    border:1px solid rgba(190,116,39,.28);
}

.profilenext-richtext-body table{
    width:100%;
    border-collapse:collapse;
    margin:10px 0;
}

.profilenext-richtext-body th,
.profilenext-richtext-body td{
    border:1px solid rgba(190,116,39,.28);
    padding:8px 10px;
}



/* ProfileNext v6.6.11 — Member Profile: Hero Tabs Removed
   Ziel: Auf ?route=/profile-next/member&id=... keine oberen Reiter mehr anzeigen.
   Die allgemeine ProfileNext-Tab-Navigation für /profile-next und /members bleibt unverändert. */
.profilenext-member-no-tabs > .profilenext-v6-hero{
    margin-top:22px !important;
    border-top-left-radius:var(--profilenext-hero-corner-radius, 20px) !important;
    border-top-right-radius:var(--profilenext-hero-corner-radius, 20px) !important;
    border-top-color:var(--origin-line-strong, rgba(241,181,94,.55)) !important;
}

body.st-origin .profilenext-member-no-tabs > .profilenext-v6-hero{
    border-top-left-radius:var(--profilenext-hero-corner-radius, 20px) !important;
    border-top-right-radius:var(--profilenext-hero-corner-radius, 20px) !important;
}

@media (max-width:720px){
    .profilenext-member-no-tabs > .profilenext-v6-hero{
        margin-top:14px !important;
    }
}

/* ProfileNext v6.6.12 — Member Profile: Single Profile Hero Tab
   Ziel: Auf ?route=/profile-next/member&id=... wieder genau einen Reiter "Profil" anzeigen.
   Keine Mitglieder-/Bearbeiten-Reiter auf der Mitgliedsprofilseite. */
.profilenext-member-single-profile-tab > .profilenext-hero-tabs{
    margin-bottom:-1px !important;
}

.profilenext-member-single-profile-tab > .profilenext-v6-hero{
    margin-top:0 !important;
}



/* ProfileNext v6.6.13 — Charname Display Polish
   Ziel: Charname als primären Charakter-/Profilnamen anzeigen, Benutzername bleibt als Account-Hinweis erhalten. */
.profilenext-account-subline{
    display:inline-flex;
    align-items:center;
    width:max-content;
    max-width:100%;
    margin:2px 0 8px;
    padding:4px 9px;
    border:1px solid rgba(241,181,94,.24);
    border-radius:999px;
    background:rgba(9,6,4,.32);
    color:rgba(245,225,190,.72);
    font-size:.82rem;
    line-height:1.25;
}

.profilenext-v6-hero-main .profilenext-account-subline{
    margin-top:-4px;
    margin-bottom:9px;
}

.profilenext-member-account-subline,
.profilenext-widget-account-subline{
    display:inline-flex;
    margin:0 0 8px;
    font-size:.78rem;
}

.profilenext-widget-head .profilenext-account-subline{
    background:rgba(255,255,255,.035);
}

/* ProfileNext v6.6.15 — CharacterCore Avatar Source Bridge
   ProfileNext nutzt CharacterCore als sichtbare Avatarquelle. Kein klassischer Avatar-Upload als Hauptweg. */
.profilenext-character-avatar-source{
    position:relative;
}

.profilenext-character-avatar-placeholder{
    background:
        radial-gradient(circle at 50% 20%, rgba(255,184,92,.22), transparent 56%),
        linear-gradient(135deg, rgba(41,25,12,.96), rgba(5,5,5,.98)) !important;
    color:#ffd28a;
    text-shadow:0 0 18px rgba(255,145,42,.38);
}

.profilenext-avatar-source-badge{
    position:absolute;
    left:50%;
    bottom:-10px;
    transform:translateX(-50%);
    white-space:nowrap;
    padding:4px 9px;
    border:1px solid rgba(241,181,94,.36);
    border-radius:999px;
    background:linear-gradient(180deg, rgba(42,27,14,.98), rgba(8,8,8,.98));
    color:#ffdca8;
    font-size:.68rem;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
    box-shadow:0 8px 20px rgba(0,0,0,.45);
}

.profilenext-avatar-foundation-card{
    position:relative;
    overflow:hidden;
}

.profilenext-avatar-foundation-card::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:radial-gradient(circle at 12% 10%, rgba(255,150,42,.12), transparent 36%);
    opacity:.8;
}

.profilenext-avatar-foundation-card > *{
    position:relative;
    z-index:1;
}

.profilenext-avatar-foundation-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    margin-bottom:14px;
}

.profilenext-avatar-foundation-head h3{
    margin:.15rem 0 0;
}

.profilenext-avatar-foundation-body{
    display:grid;
    grid-template-columns:96px minmax(0,1fr);
    gap:14px;
    align-items:start;
}

.profilenext-avatar-preview-mini{
    width:96px;
    height:96px;
    border-radius:22px;
    border:1px solid rgba(241,181,94,.44);
    background:
        radial-gradient(circle at 50% 20%, rgba(255,174,74,.20), transparent 56%),
        linear-gradient(135deg, rgba(33,21,11,.98), rgba(5,5,5,.98));
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    box-shadow:0 16px 34px rgba(0,0,0,.42);
}

.profilenext-avatar-preview-mini img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.profilenext-avatar-preview-mini span{
    font-size:42px;
    line-height:1;
}

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

.profilenext-avatar-traits span{
    min-width:0;
    padding:8px 10px;
    border:1px solid rgba(241,181,94,.20);
    border-radius:12px;
    background:rgba(0,0,0,.24);
    color:#e8d7bd;
    overflow-wrap:anywhere;
}

.profilenext-avatar-traits strong{
    display:block;
    margin-bottom:2px;
    color:#ffbf69;
    font-size:.72rem;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.profilenext-avatar-foundation-note{
    margin:13px 0 0;
    padding-top:10px;
    border-top:1px solid rgba(241,181,94,.16);
}

.profilenext-avatar-source-info{
    display:flex;
    flex-direction:column;
    gap:8px;
    padding:12px;
    border:1px solid rgba(241,181,94,.22);
    border-radius:14px;
    background:linear-gradient(180deg, rgba(255,145,42,.055), rgba(8,8,8,.22));
}

.profilenext-avatar-source-info strong{
    color:#ffbf69;
}

.profilenext-avatar-source-info span{
    color:#d8c3a4;
}

@media (max-width:720px){
    .profilenext-avatar-foundation-body{
        grid-template-columns:1fr;
    }
    .profilenext-avatar-preview-mini{
        width:88px;
        height:88px;
    }
    .profilenext-avatar-traits{
        grid-template-columns:1fr;
    }
    .profilenext-avatar-foundation-head{
        flex-direction:column;
    }
}
