:root{
    --bg:#070708;
    --panel:#151518;
    --panel-2:#1d1d22;
    --line:#2b2525;
    --text:#f3f0ea;
    --muted:#aaa29a;
    --soft:#7f7770;
    --red:#d62828;
    --red-2:#ff3c3c;
    --gold:#d9a441;
    --green:#6aa36f;
    --shadow:0 22px 70px rgba(0,0,0,.45);
    --inner-glow:inset 0 1px 0 rgba(255,255,255,.05);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    min-height:100vh;
    background:
        radial-gradient(circle at 15% 0%, rgba(214,40,40,.18), transparent 28rem),
        radial-gradient(circle at 85% 16%, rgba(217,164,65,.09), transparent 24rem),
        linear-gradient(180deg, #070708, #101012 48%, #070708);
    color:var(--text);
}

body::before{
    content:"";
    position:fixed;
    inset:0;
    z-index:-1;
    pointer-events:none;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size:46px 46px;
    mask-image:linear-gradient(to bottom, rgba(0,0,0,.55), transparent 70%);
}

a{
    color:inherit;
    text-decoration:none;
}

.container{
    width:min(92%, 1240px);
    margin:auto;
}

main.container{
    padding:42px 0 86px;
}

.header{
    position:sticky;
    top:0;
    z-index:1000;
    background:rgba(12,12,14,.88);
    border-bottom:1px solid rgba(214,40,40,.28);
    backdrop-filter:blur(16px);
    box-shadow:0 16px 44px rgba(0,0,0,.32);
}

.mc-header .container{
    width:min(92%, 1300px);
}

.mc-header .navbar-brand.logo{
    font-size:30px;
}

.nav{
    min-height:72px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:14px 0;
}

.logo{
    color:var(--red);
    font-size:30px;
    line-height:1;
    font-weight:900;
    text-shadow:0 0 22px rgba(214,40,40,.35);
}

.nav-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:10px;
}

.account-header{
    background:rgba(10,10,12,.94);
}

.account-nav{
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
}

.account-nav-actions{
    width:100%;
    justify-content:flex-start;
    gap:8px;
}

.account-nav-actions .btn,
.account-nav-actions .logout-btn{
    min-height:38px;
    padding:9px 12px;
    font-size:13px;
}

.account-nav-actions .active{
    background:linear-gradient(180deg, var(--red-2), #a91e1e);
    border-color:rgba(255,130,130,.44);
    color:#fff;
}

.mc-header{
    position:sticky;
    top:0;
    z-index:1000;
    background:rgba(7,7,9,.88);
    border-bottom:1px solid rgba(225,49,49,.34);
    backdrop-filter:blur(16px);
    box-shadow:0 18px 60px rgba(0,0,0,.42);
}

.mc-nav-container{
    width:min(94%, 1320px);
    min-height:70px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding-block:10px;
}

.mc-site-logo{
    flex:0 0 auto;
}

.mc-desktop-nav{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:7px;
}

.mc-nav-link,
.mc-nav-dropdown > summary{
    min-height:38px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 12px;
    border:1px solid rgba(255,255,255,.075);
    border-radius:8px;
    background:rgba(255,255,255,.025);
    color:#d9d1c7;
    font-size:13px;
    font-weight:850;
    line-height:1;
    cursor:pointer;
    transition:background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.mc-nav-link:hover,
.mc-nav-dropdown > summary:hover{
    color:#fff;
    background:rgba(225,49,49,.16);
    border-color:rgba(225,49,49,.48);
    transform:translateY(-1px);
}

.mc-nav-link.active,
.mc-nav-dropdown.active > summary,
.mc-nav-cta{
    color:#fff;
    background:linear-gradient(180deg, #f24a4a, #9e1d1d);
    border-color:rgba(255,146,146,.45);
}

.mc-nav-dropdown{
    position:relative;
}

.mc-nav-dropdown > summary{
    list-style:none;
}

.mc-nav-dropdown > summary::-webkit-details-marker{
    display:none;
}

.mc-nav-dropdown > summary::after{
    content:"";
    width:7px;
    height:7px;
    margin-left:8px;
    border-right:2px solid currentColor;
    border-bottom:2px solid currentColor;
    transform:rotate(45deg) translateY(-2px);
    opacity:.75;
}

.mc-nav-dropdown-panel{
    position:absolute;
    top:calc(100% + 8px);
    right:0;
    min-width:190px;
    display:grid;
    gap:4px;
    padding:8px;
    border:1px solid rgba(225,49,49,.32);
    border-radius:8px;
    background:#111114;
    box-shadow:0 18px 46px rgba(0,0,0,.42);
    z-index:20;
}

.mc-nav-dropdown-panel a{
    display:flex;
    align-items:center;
    min-height:36px;
    padding:8px 10px;
    border-radius:6px;
    color:#ded8d0;
    font-size:13px;
    font-weight:800;
}

.mc-nav-dropdown-panel a:hover{
    color:#fff;
    background:rgba(225,49,49,.18);
}

.mc-mobile-nav{
    display:none;
    position:relative;
}

.mc-mobile-nav > summary{
    min-height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:8px 13px;
    border:1px solid rgba(225,49,49,.42);
    border-radius:8px;
    background:rgba(255,255,255,.035);
    color:#fff;
    font-weight:900;
    list-style:none;
    cursor:pointer;
}

.mc-mobile-nav > summary::-webkit-details-marker{
    display:none;
}

.mc-mobile-nav-panel{
    position:absolute;
    top:calc(100% + 10px);
    right:0;
    width:min(88vw, 360px);
    max-height:min(68vh, 560px);
    overflow:auto;
    display:grid;
    gap:8px;
    padding:12px;
    border:1px solid rgba(225,49,49,.34);
    border-radius:8px;
    background:rgba(12,12,15,.98);
    box-shadow:0 24px 70px rgba(0,0,0,.55);
}

.mc-mobile-nav-panel .mc-nav-link,
.mc-mobile-nav-panel .mc-nav-dropdown > summary{
    width:100%;
    justify-content:space-between;
}

.mc-mobile-nav-panel .mc-nav-dropdown-panel{
    position:static;
    min-width:0;
    margin-top:6px;
    box-shadow:none;
}

@media(max-width:992px){
    .mc-desktop-nav{
        display:none;
    }

    .mc-mobile-nav{
        display:block;
    }
}

@media(min-width:980px){
    .account-nav{
        flex-direction:row;
        align-items:center;
    }

    .account-nav-actions{
        width:auto;
        justify-content:flex-end;
    }
}

.btn,
.logout-btn,
.back,
.select-btn,
.menu{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:12px 18px;
    border:1px solid rgba(255,255,255,.09);
    border-radius:8px;
    background:linear-gradient(180deg, var(--red-2), #a91e1e);
    color:#fff;
    font-weight:900;
    font-size:15px;
    transition:transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.btn:hover,
.logout-btn:hover,
.back:hover,
.select-btn:hover,
.menu:hover{
    transform:translateY(-2px);
    background:linear-gradient(180deg, #ff5555, #bd2424);
    border-color:rgba(255,130,130,.42);
    box-shadow:0 18px 44px rgba(214,40,40,.22);
}

.btn-muted{
    background:rgba(22,22,26,.9);
    border-color:rgba(214,40,40,.35);
}

.btn-muted:hover{
    background:rgba(214,40,40,.88);
}

.hero{
    position:relative;
    margin:28px 0 24px;
    padding:34px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.08);
    border-radius:10px;
    background:
        linear-gradient(135deg, rgba(214,40,40,.14), transparent 34%),
        linear-gradient(225deg, rgba(217,164,65,.12), transparent 32%),
        repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 64px),
        linear-gradient(180deg, rgba(18,18,22,.98), rgba(8,8,10,.98));
    box-shadow:var(--shadow);
}

.hero::after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:
        radial-gradient(circle at 80% 15%, rgba(214,40,40,.24), transparent 24rem),
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size:auto, 28px 28px, 28px 28px;
    opacity:.85;
}

.hero::before{
    content:"";
    position:absolute;
    inset:auto 0 0;
    height:42%;
    pointer-events:none;
    background:linear-gradient(to top, rgba(7,7,8,.92), transparent);
}

.hero-inner{
    position:relative;
    z-index:1;
    display:grid;
    grid-template-columns:auto 1fr;
    align-items:center;
    gap:24px;
}

.class-portrait{
    width:132px;
    height:132px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(214,40,40,.34);
    border-radius:10px;
    background:rgba(0,0,0,.38);
}

.class-portrait img{
    width:108px;
    height:108px;
    object-fit:contain;
}

h1{
    color:var(--red);
    font-size:60px;
    line-height:1.02;
    margin-bottom:8px;
    font-weight:900;
    text-shadow:0 0 30px rgba(214,40,40,.32);
}

.eyebrow{
    display:inline-flex;
    margin-bottom:10px;
    padding:7px 10px;
    border:1px solid rgba(214,40,40,.34);
    border-radius:999px;
    background:rgba(214,40,40,.09);
    color:#f0d7a0;
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:0;
}

.stats{
    color:var(--muted);
    font-size:15px;
    margin-top:8px;
}

.hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:20px;
}

.stat-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(170px, 1fr));
    gap:14px;
    margin:18px 0 24px;
}

.stat-tile{
    position:relative;
    overflow:hidden;
    padding:18px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:8px;
    background:
        radial-gradient(circle at 88% 18%, rgba(217,164,65,.12), transparent 5rem),
        linear-gradient(180deg, rgba(29,29,34,.96), rgba(14,14,17,.96));
    box-shadow:0 16px 48px rgba(0,0,0,.28), var(--inner-glow);
}

.stat-tile::before{
    content:"";
    position:absolute;
    inset:0 0 auto;
    height:2px;
    background:linear-gradient(90deg, rgba(214,40,40,.82), rgba(217,164,65,.55), transparent);
}

.stat-tile span{
    display:block;
    color:var(--soft);
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:0;
}

.stat-tile strong{
    display:block;
    margin-top:6px;
    color:#fff;
    font-size:28px;
    line-height:1;
}

.dashboard-layout{
    display:grid;
    grid-template-columns:minmax(0, 1.6fr) minmax(280px, .8fr);
    gap:22px;
    align-items:start;
}

.card,
.slot,
.hub-panel{
    background:linear-gradient(180deg, rgba(28,28,32,.96), rgba(13,13,16,.98));
    border:1px solid rgba(255,255,255,.08);
    border-radius:8px;
    box-shadow:var(--shadow);
}

.card,
.hub-panel{
    padding:24px;
    margin-top:24px;
}

.card h2,
.hub-panel h2{
    color:var(--red);
    margin-bottom:16px;
    font-size:22px;
    font-weight:900;
}

.hub-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(190px, 1fr));
    gap:14px;
}

.hub-card{
    position:relative;
    overflow:hidden;
    min-height:132px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    padding:18px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:8px;
    background:
        linear-gradient(135deg, rgba(214,40,40,.12), transparent 42%),
        linear-gradient(180deg, rgba(30,30,35,.96), rgba(15,15,18,.98));
    box-shadow:var(--inner-glow);
    transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.hub-card:hover{
    transform:translateY(-4px);
    border-color:rgba(214,40,40,.55);
    box-shadow:0 18px 46px rgba(214,40,40,.16), var(--inner-glow);
}

.hub-card strong{
    color:#fff;
    font-size:20px;
    line-height:1.15;
}

.hub-card span{
    color:var(--muted);
    margin-top:8px;
    font-size:14px;
}

.system-list{
    display:grid;
    gap:12px;
}

.system-list-wide{
    grid-template-columns:repeat(auto-fit, minmax(230px, 1fr));
}

.system-item{
    padding:16px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:8px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.035), transparent 42%),
        rgba(9,9,11,.45);
}

.system-item strong{
    display:block;
    color:#fff;
    margin-bottom:4px;
}

.system-item span{
    color:var(--muted);
    font-size:14px;
}

.quest-summary{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
    margin-bottom:14px;
}

.quest-summary div{
    padding:14px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:8px;
    background:rgba(9,9,11,.45);
}

.quest-summary span,
.quest-type{
    display:block;
    color:var(--soft);
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:0;
}

.quest-summary strong{
    display:block;
    margin-top:6px;
    color:#fff;
    font-size:24px;
    line-height:1;
}

.quest-summary em{
    display:block;
    margin-top:6px;
    color:var(--muted);
    font-size:12px;
    font-style:normal;
    line-height:1.25;
}

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

.quest-item{
    padding:14px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:8px;
    background:linear-gradient(180deg, rgba(30,30,35,.88), rgba(12,12,14,.94));
}

.quest-complete{
    border-color:rgba(106,163,111,.32);
}

.quest-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
}

.quest-top strong{
    color:#fff;
    font-size:15px;
    line-height:1.25;
}

.quest-top span{
    flex:0 0 auto;
    color:#f0d7a0;
    font-size:12px;
    font-weight:900;
}

.quest-type{
    margin-top:6px;
}

.quest-bar{
    height:8px;
    margin-top:10px;
    overflow:hidden;
    border-radius:999px;
    background:rgba(255,255,255,.08);
}

.quest-bar span{
    display:block;
    height:100%;
    min-width:4px;
    border-radius:inherit;
    background:linear-gradient(90deg, var(--red), var(--gold));
}

.notice{
    margin:18px 0 0;
    padding:14px 16px;
    border:1px solid rgba(217,164,65,.35);
    border-radius:8px;
    background:rgba(217,164,65,.1);
    color:#f0d7a0;
    font-weight:900;
}

.panel-copy{
    color:var(--muted);
    line-height:1.6;
}

.stats-dashboard{
    display:grid;
    gap:22px;
}

.skill-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap:14px;
}

.skill-card{
    padding:16px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:8px;
    background:rgba(9,9,11,.45);
}

.skill-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
}

.skill-top strong{
    color:#fff;
    line-height:1.25;
}

.skill-top span{
    flex:0 0 auto;
    color:#f0d7a0;
    font-size:12px;
    font-weight:900;
}

.skill-meta{
    display:flex;
    justify-content:space-between;
    gap:12px;
    margin-top:8px;
    color:var(--muted);
    font-size:12px;
}

.social-layout{
    display:grid;
    grid-template-columns:minmax(300px, .78fr) minmax(0, 1.22fr);
    gap:22px;
    align-items:start;
}

.friend-search{
    position:relative;
}

.friend-search-results{
    position:absolute;
    top:calc(100% + 8px);
    left:0;
    right:0;
    z-index:30;
    max-height:340px;
    overflow:auto;
    padding:8px;
    border:1px solid rgba(214,40,40,.32);
    border-radius:8px;
    background:rgba(12,12,15,.98);
    box-shadow:0 24px 60px rgba(0,0,0,.48);
}

.friend-search-result{
    width:100%;
    display:grid;
    grid-template-columns:42px minmax(0, 1fr) auto;
    align-items:center;
    gap:10px;
    padding:10px;
    border:1px solid transparent;
    border-radius:8px;
    background:transparent;
    color:var(--text);
    text-align:left;
    cursor:pointer;
}

.friend-search-result:hover{
    border-color:rgba(214,40,40,.42);
    background:rgba(214,40,40,.12);
}

.friend-search-result:disabled{
    cursor:not-allowed;
    opacity:.68;
}

.friend-avatar{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(217,164,65,.32);
    border-radius:8px;
    background:rgba(217,164,65,.1);
    color:#f0d7a0;
    font-weight:900;
}

.friend-result-main{
    min-width:0;
}

.friend-result-main strong,
.friend-result-main span{
    display:block;
}

.friend-result-main strong{
    overflow:hidden;
    color:#fff;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.friend-result-main span,
.friend-search-empty{
    color:var(--muted);
    font-size:12px;
}

.friend-result-status{
    padding:5px 8px;
    border:1px solid rgba(255,255,255,.1);
    border-radius:999px;
    color:#f0d7a0;
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
}

.friend-result-status.accepted{
    color:#9bd79f;
    border-color:rgba(106,163,111,.34);
}

.friend-result-status.pending{
    color:#f0d7a0;
    border-color:rgba(217,164,65,.34);
}

.friend-result-status.available{
    color:#fff;
    border-color:rgba(214,40,40,.38);
    background:rgba(214,40,40,.14);
}

.friend-search-empty{
    padding:12px;
    text-align:center;
}

.stack-form{
    display:grid;
    gap:10px;
}

.stack-form + h2{
    margin-top:28px;
}

.stack-form label{
    color:var(--soft);
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:0;
}

.stack-form input,
.stack-form select,
.stack-form textarea,
.trade-row input,
.trade-row select{
    width:100%;
    min-height:44px;
    padding:11px 12px;
    border:1px solid rgba(255,255,255,.1);
    border-radius:8px;
    background:rgba(7,7,8,.72);
    color:var(--text);
    font-size:15px;
}

.stack-form textarea{
    resize:vertical;
    line-height:1.45;
}

.inline-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:12px;
}

.inline-actions .btn{
    min-height:38px;
    padding:9px 12px;
    font-size:13px;
}

.friend-tabs{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:12px;
}

.friend-tabs a,
.friend-tabs span{
    display:inline-flex;
    min-height:36px;
    align-items:center;
    padding:8px 11px;
    border:1px solid rgba(255,255,255,.09);
    border-radius:999px;
    background:rgba(9,9,11,.45);
    color:var(--muted);
    font-size:13px;
    font-weight:900;
}

.friend-tabs .active-friend{
    color:#fff;
    border-color:rgba(214,40,40,.48);
    background:rgba(214,40,40,.2);
}

.chat-box{
    min-height:300px;
    max-height:430px;
    overflow:auto;
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-bottom:12px;
    padding:14px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.025), transparent),
        rgba(7,7,8,.45);
}

.chat-empty{
    margin:auto;
    color:var(--muted);
    text-align:center;
}

.chat-line{
    max-width:82%;
    align-self:flex-start;
    padding:10px 12px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:8px;
    background:rgba(29,29,34,.88);
}

.chat-line.mine{
    align-self:flex-end;
    border-color:rgba(214,40,40,.28);
    background:rgba(214,40,40,.14);
}

.chat-line strong,
.chat-line span{
    display:block;
}

.chat-line strong{
    margin-bottom:4px;
    color:#f0d7a0;
    font-size:12px;
}

.chat-line span{
    color:#fff;
    line-height:1.45;
}

.trade-row{
    display:grid;
    grid-template-columns:minmax(0, 1fr) 90px;
    gap:8px;
}

.trade-card span{
    display:block;
    margin-top:5px;
}

.trade-item-picker{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(210px, 1fr));
    gap:10px;
}

.trade-pick-card{
    position:relative;
    display:grid;
    grid-template-columns:52px minmax(0, 1fr) 74px;
    align-items:center;
    gap:10px;
    min-height:78px;
    padding:12px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:8px;
    background:linear-gradient(180deg, rgba(30,30,35,.88), rgba(12,12,14,.94));
    cursor:pointer;
    transition:border-color .2s ease, transform .2s ease, background .2s ease;
}

.trade-pick-card:hover,
.trade-pick-card.selected{
    transform:translateY(-2px);
    border-color:rgba(214,40,40,.55);
    background:linear-gradient(180deg, rgba(45,30,32,.9), rgba(15,13,14,.96));
}

.trade-pick-check{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.trade-pick-art{
    width:52px;
    height:52px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(255,255,255,.08);
    border-radius:8px;
    background:rgba(0,0,0,.28);
}

.trade-pick-art img{
    width:40px;
    height:40px;
    object-fit:contain;
}

.trade-pick-info{
    min-width:0;
}

.trade-pick-info strong,
.trade-pick-info span{
    display:block;
}

.trade-pick-info strong{
    overflow:hidden;
    color:#fff;
    line-height:1.2;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.trade-pick-info span{
    margin-top:4px;
    color:var(--muted);
    font-size:12px;
}

.trade-qty-input:disabled{
    opacity:.4;
    cursor:not-allowed;
}

.money-field{
    display:grid;
    grid-template-columns:46px minmax(0, 1fr);
    align-items:center;
}

.money-field input{
    border-top-left-radius:0;
    border-bottom-left-radius:0;
}

.money-symbol{
    min-height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(217,164,65,.28);
    border-radius:8px 0 0 8px;
    background:radial-gradient(circle at 40% 30%, rgba(255,226,132,.34), rgba(217,164,65,.14));
    color:#f0d7a0;
    font-weight:900;
}

.money-symbol.mini{
    min-width:24px;
    min-height:24px;
    margin-right:6px;
    border-radius:999px;
    font-size:12px;
}

.trade-money{
    display:flex !important;
    align-items:center;
    color:#f0d7a0;
    font-weight:900;
}

.trade-item-strip{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:10px;
}

.trade-item-chip{
    display:inline-grid;
    grid-template-columns:28px minmax(0, 1fr) auto;
    align-items:center;
    gap:7px;
    max-width:100%;
    padding:6px 8px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:999px;
    background:rgba(0,0,0,.24);
}

.trade-item-chip img{
    width:24px;
    height:24px;
    object-fit:contain;
}

.trade-item-chip span{
    overflow:hidden;
    color:#fff;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.trade-item-chip strong{
    color:#f0d7a0;
    font-size:12px;
}

.trade-item-empty{
    display:inline-flex;
    color:var(--muted);
}

.bank-shell{
    display:grid;
    grid-template-columns:280px minmax(0, 1fr);
    gap:22px;
    align-items:start;
}

.bank-sidebar{
    position:sticky;
    top:96px;
}

.bank-tabs{
    display:grid;
    gap:10px;
}

.bank-tab{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    min-height:58px;
    padding:13px 14px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:8px;
    background:linear-gradient(180deg, rgba(30,30,35,.85), rgba(12,12,14,.94));
    color:var(--text);
    text-align:left;
    cursor:pointer;
    transition:transform .2s ease, border-color .2s ease, background .2s ease;
}

.bank-tab:hover,
.active-bank-tab{
    transform:translateY(-2px);
    border-color:rgba(214,40,40,.5);
    background:linear-gradient(180deg, rgba(54,31,34,.9), rgba(16,13,14,.96));
}

.bank-tab strong,
.bank-tab span{
    display:block;
}

.bank-tab span{
    color:var(--muted);
    font-size:12px;
    font-weight:900;
}

.bank-toolbar{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-bottom:16px;
}

.bank-toolbar h2{
    margin-bottom:4px;
}

.bank-status{
    flex:0 0 auto;
    padding:8px 10px;
    border:1px solid rgba(106,163,111,.32);
    border-radius:999px;
    background:rgba(106,163,111,.1);
    color:#9bd79f;
    font-size:12px;
    font-weight:900;
}

.bank-status.bad{
    border-color:rgba(214,40,40,.45);
    background:rgba(214,40,40,.12);
    color:#ffb2b2;
}

.bank-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
    gap:14px;
}

.bank-item-card{
    display:grid;
    grid-template-columns:64px minmax(0, 1fr);
    gap:14px;
    padding:15px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:8px;
    background:
        radial-gradient(circle at 18% 18%, rgba(214,40,40,.14), transparent 7rem),
        linear-gradient(180deg, rgba(30,30,35,.9), rgba(12,12,14,.96));
    box-shadow:var(--inner-glow);
}

.bank-item-art{
    width:64px;
    height:64px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(255,255,255,.08);
    border-radius:8px;
    background:rgba(0,0,0,.3);
}

.bank-item-art img{
    width:48px;
    height:48px;
    object-fit:contain;
}

.bank-item-body{
    min-width:0;
}

.bank-item-body strong,
.bank-item-body span{
    display:block;
}

.bank-item-body strong{
    overflow:hidden;
    color:#fff;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.bank-item-body span{
    display:-webkit-box;
    min-height:34px;
    margin-top:5px;
    overflow:hidden;
    color:var(--muted);
    font-size:13px;
    line-height:1.35;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}

.bank-item-meta{
    margin-top:8px;
    color:#f0d7a0;
    font-size:12px;
    font-weight:900;
}

.bank-withdraw-form,
.bank-deposit-form{
    grid-column:1 / -1;
    display:grid;
    grid-template-columns:90px minmax(0, 1fr);
    gap:8px;
}

.bank-withdraw-form input,
.bank-deposit-form input{
    width:100%;
    min-height:42px;
    padding:10px 12px;
    border:1px solid rgba(255,255,255,.1);
    border-radius:8px;
    background:rgba(7,7,8,.72);
    color:var(--text);
}

.bank-empty{
    grid-column:1 / -1;
    display:flex;
    min-height:220px;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    border:1px dashed rgba(255,255,255,.14);
    border-radius:8px;
    background:rgba(7,7,8,.32);
    text-align:center;
}

.bank-empty strong{
    color:#fff;
    font-size:20px;
}

.bank-empty span{
    color:var(--muted);
}

.bank-deposit-panel{
    margin-top:22px;
}

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

.deposit-item-card{
    border-color:rgba(224,174,78,.16);
}

.inventory-slot-card{
    justify-content:flex-start;
    min-height:230px;
}

.inventory-delete-form{
    width:100%;
    margin-top:auto;
}

.btn-danger-soft{
    width:100%;
    min-height:38px;
    padding:9px 12px;
    background:rgba(214,40,40,.14);
    border-color:rgba(214,40,40,.36);
    color:#ffd5d5;
    font-size:13px;
}

.btn-danger-soft:hover{
    background:rgba(214,40,40,.72);
}

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
    gap:18px;
    margin-top:30px;
}

.slot{
    position:relative;
    min-height:170px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:20px;
    text-align:center;
    transition:transform .2s ease, border-color .2s ease;
}

.slot::before{
    content:"";
    position:absolute;
    inset:0 0 auto;
    height:3px;
    background:linear-gradient(90deg, transparent, rgba(214,40,40,.9), rgba(217,164,65,.8), transparent);
    opacity:.55;
}

.slot:hover{
    transform:translateY(-4px);
    border-color:rgba(214,40,40,.55);
}

.slot img{
    width:70px;
    height:70px;
    object-fit:contain;
    margin-bottom:10px;
}

.name{
    color:#fff;
    font-weight:900;
    margin-top:8px;
}

.slotname,
.label{
    color:var(--soft);
    font-size:12px;
}

.slot .quality{
    margin-top:8px;
    padding:3px 8px;
    border:1px solid currentColor;
    border-radius:999px;
    background:rgba(255,255,255,.04);
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
}

.durability{
    width:100%;
    max-width:170px;
    margin-top:12px;
}

.durability div{
    display:flex;
    justify-content:space-between;
    gap:10px;
    color:var(--soft);
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
}

.durability strong{
    color:#fff;
}

.durability i{
    display:block;
    height:8px;
    margin-top:6px;
    border-radius:999px;
    background:#35b96f;
    box-shadow:0 0 14px rgba(53,185,111,.35);
}

.durability.worn i{
    background:#d9a441;
    box-shadow:0 0 14px rgba(217,164,65,.32);
}

.durability.low i,
.durability.critical i{
    background:#d62828;
    box-shadow:0 0 14px rgba(214,40,40,.36);
}

.empty{
    opacity:.65;
    border-style:dashed;
}

.qty{
    color:var(--red);
    font-size:12px;
    margin-top:4px;
}

.page-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin:28px 0 18px;
}

.page-title h1{
    margin:0;
}

.page-title .stats{
    margin-top:8px;
}

.select-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
    gap:18px;
    margin-top:24px;
}

.character-card{
    min-height:330px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:space-between;
    padding:24px;
    text-align:center;
    background:linear-gradient(180deg, rgba(28,28,32,.96), rgba(13,13,16,.98));
    border:1px solid rgba(255,255,255,.08);
    border-radius:8px;
    box-shadow:var(--shadow);
    transition:transform .2s ease, border-color .2s ease;
}

.character-card:hover{
    transform:translateY(-5px);
    border-color:rgba(214,40,40,.55);
}

.character-card .class-portrait{
    width:128px;
    height:128px;
}

.character-card h3{
    color:#fff;
    font-size:26px;
    font-weight:900;
    margin-top:16px;
}

.character-card .class{
    color:var(--muted);
    margin-top:4px;
}

.level-pill{
    display:inline-flex;
    margin-top:12px;
    padding:7px 11px;
    border:1px solid rgba(217,164,65,.35);
    border-radius:999px;
    color:#f0d7a0;
    background:rgba(217,164,65,.08);
    font-weight:900;
}

.inventory-summary{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
    gap:14px;
    margin:18px 0 24px;
}

.slot.filled{
    border-color:rgba(214,40,40,.24);
    background:
        radial-gradient(circle at 50% 16%, rgba(214,40,40,.22), transparent 5rem),
        linear-gradient(180deg, rgba(32,28,30,.98), rgba(14,14,17,.98));
}

.equipment-grid{
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
}

.inventory-grid{
    grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
}

.slot-badge{
    position:absolute;
    top:10px;
    left:10px;
    padding:4px 7px;
    border:1px solid rgba(255,255,255,.1);
    border-radius:999px;
    background:rgba(0,0,0,.36);
    color:#f0d7a0;
    font-size:11px;
    font-weight:900;
    letter-spacing:0;
}

.slot.empty .slot-badge{
    color:#777;
}

.slot.empty{
    background:
        linear-gradient(135deg, rgba(255,255,255,.035) 25%, transparent 25%) 0 0/18px 18px,
        linear-gradient(180deg, rgba(18,18,21,.8), rgba(10,10,12,.9));
}

.row{
    display:flex;
    justify-content:space-between;
    gap:14px;
    padding:11px 0;
    border-bottom:1px solid rgba(255,255,255,.07);
}

.value{
    color:#fff;
    font-weight:900;
}

.back{
    margin:20px 0;
}

@media(max-width:1024px){
    .dashboard-layout,
    .social-layout,
    .bank-shell{
        grid-template-columns:1fr;
    }

    .bank-sidebar{
        position:static;
    }
}

@media(max-width:768px){
    main.container{
        padding-top:24px;
    }

    .nav{
        flex-direction:column;
        text-align:center;
    }

    .nav-actions,
    .hero-actions{
        width:100%;
    }

    .btn,
    .logout-btn,
    .back,
    .select-btn,
    .menu{
        width:100%;
    }

    .hero{
        padding:24px;
    }

    .hero-inner{
        grid-template-columns:1fr;
        text-align:center;
    }

    .class-portrait{
        margin:auto;
    }

    .stat-grid{
        grid-template-columns:1fr;
    }

    .page-head{
        flex-direction:column;
        align-items:stretch;
        text-align:center;
    }

    .row{
        flex-direction:column;
        gap:4px;
    }

    .grid{
        grid-template-columns:1fr !important;
    }

    .quest-summary,
    .trade-row,
    .trade-pick-card,
    .bank-item-card,
    .bank-withdraw-form,
    .bank-deposit-form,
    .skill-grid{
        grid-template-columns:1fr;
    }

    .trade-pick-art,
    .bank-item-art{
        margin:auto;
    }

    .bank-toolbar{
        flex-direction:column;
    }

    .skill-top,
    .skill-meta,
    .quest-top{
        flex-direction:column;
        gap:6px;
    }

    .chat-line{
        max-width:100%;
    }
}

/* Premium dashboard UI pass */

*{
    letter-spacing:0 !important;
}

:root{
    --bg:#060607;
    --panel:#18181d;
    --panel-2:#23232a;
    --line:#3a3038;
    --text:#f7f3ec;
    --muted:#c5bcb1;
    --soft:#948b80;
    --red:#e13131;
    --red-2:#ff4a4a;
    --gold:#e0ae4e;
    --green:#72b878;
    --shadow:0 24px 80px rgba(0,0,0,.52);
}

body{
    background:
        linear-gradient(180deg, rgba(80,14,14,.18), transparent 340px),
        repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 1px, transparent 1px 18px),
        linear-gradient(180deg, #060607 0%, #101013 46%, #070708 100%);
    font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body::before{
    background:
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
    background-size:72px 72px;
    opacity:.55;
}

.container{
    width:min(94%, 1280px);
}

.header{
    background:rgba(7,7,9,.82);
    border-bottom-color:rgba(225,49,49,.34);
}

.header::after{
    content:"";
    display:block;
    height:1px;
    background:linear-gradient(90deg, transparent, rgba(224,174,78,.55), transparent);
}

.logo{
    display:inline-flex;
    align-items:center;
    gap:10px;
    color:#fff;
    text-shadow:none;
}

.logo::before{
    content:"";
    width:13px;
    height:28px;
    display:inline-block;
    border-radius:2px;
    background:linear-gradient(180deg, var(--red-2), var(--red));
    box-shadow:0 0 22px rgba(225,49,49,.45);
}

/* Unified navigation final override */
.mc-header{
    position:sticky;
    top:0;
    z-index:1000;
    background:rgba(7,7,9,.93);
    border-bottom:1px solid rgba(225,49,49,.34);
    backdrop-filter:blur(16px);
    box-shadow:0 18px 60px rgba(0,0,0,.42);
}

.mc-header .mc-nav-container{
    width:min(94%, 1320px);
    min-height:66px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin-inline:auto;
    padding:10px 0;
}

.mc-header .mc-site-logo{
    display:inline-flex;
    align-items:center;
    gap:10px;
    flex:0 0 auto;
    color:#fff !important;
    font-size:26px;
    font-weight:950;
    line-height:1;
    text-decoration:none;
    text-shadow:none;
    white-space:nowrap;
}

.mc-header .mc-site-logo::before{
    content:"";
    width:12px;
    height:27px;
    display:inline-block;
    border-radius:2px;
    background:linear-gradient(180deg, #f24a4a, #b81f1f);
    box-shadow:0 0 22px rgba(225,49,49,.42);
}

.mc-header .mc-desktop-nav{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:6px;
    flex-wrap:wrap;
}

.mc-header .mc-nav-link,
.mc-header .mc-nav-dropdown > summary{
    min-height:36px;
    padding:8px 10px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:8px;
    background:rgba(255,255,255,.03);
    color:#d9d1c7 !important;
    font-size:13px;
    font-weight:850;
    line-height:1;
    text-decoration:none;
    white-space:nowrap;
}

.mc-header .mc-nav-link.active,
.mc-header .mc-nav-dropdown.active > summary,
.mc-header .mc-nav-cta{
    color:#fff !important;
    background:linear-gradient(180deg, #f24a4a, #9e1d1d);
    border-color:rgba(255,146,146,.45);
}

.mc-header .mc-nav-dropdown{
    position:relative;
}

.mc-header .mc-nav-dropdown-panel{
    z-index:1002;
}

.mc-header .mc-mobile-nav{
    display:none;
    position:relative;
}

.mc-header .mc-mobile-nav-panel{
    z-index:1003;
}

@media(max-width:1180px){
    .mc-header .mc-desktop-nav{
        display:none !important;
    }

    .mc-header .mc-mobile-nav{
        display:block !important;
    }
}

@media(min-width:1181px){
    .mc-header .mc-desktop-nav{
        display:flex !important;
    }

    .mc-header .mc-mobile-nav{
        display:none !important;
    }
}

@media(max-width:520px){
    .mc-header .mc-nav-container{
        min-height:58px;
    }

    .mc-header .mc-site-logo{
        font-size:22px;
    }

    .mc-header .mc-mobile-nav-panel{
        right:-4px;
        width:min(92vw, 320px);
        max-height:56vh;
    }
}

.btn,
.logout-btn,
.back,
.select-btn,
.menu{
    position:relative;
    overflow:hidden;
    border-color:rgba(255,255,255,.14);
    background:linear-gradient(180deg, #f04b4b, #9d1d1d);
}

.btn-muted{
    background:linear-gradient(180deg, rgba(35,35,42,.94), rgba(15,15,18,.94));
    border-color:rgba(225,49,49,.45);
}

.hero,
.card,
.slot,
.hub-panel,
.hub-card,
.stat-tile,
.skill-card,
.system-item,
.quest-item,
.character-card,
.bank-tab,
.bank-item-card,
.trade-pick-card,
.chat-box{
    border-color:rgba(255,255,255,.095);
    box-shadow:0 20px 60px rgba(0,0,0,.44);
}

.hero{
    border-radius:8px;
    background:
        linear-gradient(90deg, rgba(8,8,10,.96), rgba(18,13,14,.82)),
        url('../images/game/character-selection.jpg');
    background-size:cover;
    background-position:center;
}

.hero::after{
    background:
        linear-gradient(90deg, rgba(225,49,49,.12), transparent 52%),
        repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 88px);
}

h1,
.card h2,
.hub-panel h2,
.page-title h1{
    color:#fff;
}

.eyebrow,
.level-pill,
.bank-status,
.friend-result-status,
.slot-badge{
    border-color:rgba(224,174,78,.3);
    background:rgba(224,174,78,.08);
    color:#f5dfae;
}

.stat-tile,
.hub-card,
.skill-card,
.system-item,
.quest-item,
.slot,
.character-card,
.bank-item-card,
.trade-pick-card{
    background:
        linear-gradient(135deg, rgba(255,255,255,.045), transparent 38%),
        linear-gradient(180deg, rgba(32,32,38,.96), rgba(12,12,15,.98));
}

.stat-tile strong,
.hub-card strong,
.skill-top strong,
.system-item strong,
.quest-top strong,
.character-card h3,
.name,
.value{
    color:#fff;
}

.stat-tile:hover,
.hub-card:hover,
.slot:hover,
.character-card:hover,
.bank-tab:hover,
.trade-pick-card:hover{
    transform:translateY(-4px);
    border-color:rgba(225,49,49,.58);
}

.class-portrait,
.bank-item-art,
.trade-pick-art{
    border-color:rgba(224,174,78,.22);
    background:
        linear-gradient(180deg, rgba(255,255,255,.035), rgba(0,0,0,.18)),
        repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 1px, transparent 1px 14px);
}

input,
select,
textarea,
.stack-form input,
.stack-form select,
.stack-form textarea,
.trade-row input,
.trade-row select,
.bank-withdraw-form input,
.bank-deposit-form input{
    border-color:rgba(255,255,255,.12) !important;
    background:#0b0b0e !important;
    color:#fff !important;
}

input:focus,
select:focus,
textarea:focus{
    outline:none !important;
    border-color:rgba(225,49,49,.74) !important;
    box-shadow:0 0 0 3px rgba(225,49,49,.16) !important;
}

.quest-bar,
.skill-card .quest-bar{
    background:rgba(255,255,255,.1);
}

.quest-bar span{
    background:linear-gradient(90deg, var(--red), var(--gold));
}

@media(max-width:768px){
    .nav-actions{
        display:grid;
        grid-template-columns:1fr;
    }

    h1{
        font-size:38px;
    }
}
