:root{
    --accent:#ff7b00;
    --accent-2:#ff9a1f;
    --accent-3:#ffbd59;

    --bg-1:#050301;
    --bg-2:#0b0603;
    --bg-3:#140a04;

    --card:rgba(29,18,10,.94);
    --card-2:rgba(18,10,5,.96);
    --card-3:rgba(35,20,8,.95);

    --border:rgba(255,123,0,.18);
    --border-strong:rgba(255,123,0,.30);

    --text:#fff8ef;
    --text-soft:#f7dfc3;
    --text-muted:#cfaa80;
    --text-dim:#8c6c49;

    --green:#37d67a;
    --blue:#86a7ff;
    --danger:#ff9961;

    --shadow-lg:0 24px 50px rgba(0,0,0,.30);
    --shadow-md:0 18px 34px rgba(0,0,0,.22);

    --font-display:'Exo 2', sans-serif;
    --font-body:'Rajdhani', sans-serif;

    --header-height:84px;
}

*{
    box-sizing:border-box;
}

html,body{
    margin:0;
    padding:0;
    min-height:100%;
    max-width:100%;
    overflow-x:hidden;
}

body{
    min-height:100vh;
    display:flex;
    flex-direction:column;
    font-family:var(--font-body);
    background:
        radial-gradient(circle at top left, rgba(255,123,0,.16), transparent 24%),
        radial-gradient(circle at top right, rgba(255,123,0,.10), transparent 20%),
        radial-gradient(circle at center top, rgba(255,123,0,.06), transparent 35%),
        linear-gradient(180deg, #050301 0%, #0b0603 36%, #080402 100%);
    color:var(--text);
}

button,
input,
select,
textarea{
    font:inherit;
}

.page-wrap{
    flex:1 0 auto;
    min-height:calc(100vh - var(--header-height));
    display:flex;
    flex-direction:column;
}

/* HEADER */
.topbar{
    position:sticky;
    top:0;
    z-index:9999;
    width:100%;
    backdrop-filter:blur(14px);
    background:linear-gradient(180deg, rgba(20,12,6,.94), rgba(10,6,3,.97));
    border-bottom:1px solid rgba(255,123,0,.22);
    box-shadow:0 12px 30px rgba(0,0,0,.18);
}

.topbar::before{
    content:'';
    position:absolute;
    inset:0;
    pointer-events:none;
    background:
        radial-gradient(circle at top center, rgba(255,123,0,.22), transparent 35%),
        linear-gradient(90deg, transparent, rgba(255,255,255,.02), transparent);
}

.topbar-inner{
    position:relative;
    z-index:2;
    height:var(--header-height);
    width:min(1600px, calc(100% - 20px));
    margin:0 auto;
    display:flex;
    align-items:center;
    gap:18px;
}

.logo{
    width:58px;
    height:58px;
    border:none;
    background:transparent;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    padding:0;
    flex-shrink:0;
}

.logo img{
    width:58px;
    height:58px;
    object-fit:contain;
    border-radius:16px;
    box-shadow:0 10px 24px rgba(255,123,0,.24);
    transition:transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.logo:hover img{
    transform:translateY(-2px) scale(1.02);
    filter:brightness(1.05);
    box-shadow:0 12px 28px rgba(255,123,0,.34);
}

.nav-links{
    display:flex;
    align-items:center;
    gap:8px;
    flex:1;
    min-width:0;
    overflow-x:auto;
    scrollbar-width:none;
}

.nav-links::-webkit-scrollbar{
    display:none;
}

.menu-item{
    flex:0 0 auto;
}

.nav-link{
    height:46px;
    padding:0 14px;
    border:none;
    border-radius:14px;
    background:transparent;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    color:rgba(255,255,255,.74);
    cursor:pointer;
    font-size:14px;
    font-weight:800;
    letter-spacing:.2px;
    transition:all .18s ease;
    white-space:nowrap;
}

.nav-link:hover{
    color:#fff;
    background:rgba(255,123,0,.08);
    transform:translateY(-1px);
}

.nav-link.active{
    color:#fff;
    background:linear-gradient(135deg, rgba(255,123,0,.30), rgba(255,123,0,.10));
    border:1px solid rgba(255,123,0,.35);
    box-shadow:
        0 0 18px rgba(255,123,0,.20),
        0 10px 22px rgba(255,123,0,.12);
}

.nav-link i{
    font-size:14px;
    flex-shrink:0;
}

.nav-right{
    display:flex;
    align-items:center;
    gap:12px;
    flex-shrink:0;
}

.btn-login{
    height:46px;
    padding:0 18px;
    border:none;
    border-radius:14px;
    background:linear-gradient(135deg, #ff7b00, #ff9a1f);
    color:#fff;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    font-size:14px;
    font-weight:900;
    cursor:pointer;
    box-shadow:
        0 0 18px rgba(255,123,0,.16),
        0 14px 28px rgba(255,123,0,.24);
    transition:all .18s ease;
    white-space:nowrap;
}

.btn-login:hover{
    transform:translateY(-2px);
    filter:brightness(1.04);
    box-shadow:
        0 0 22px rgba(255,123,0,.22),
        0 16px 32px rgba(255,123,0,.30);
}

.user-widget{
    position:relative;
}

.user-btn{
    height:50px;
    padding:0 14px 0 10px;
    border:none;
    border-radius:16px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.06);
    display:flex;
    align-items:center;
    gap:10px;
    color:#fff;
    cursor:pointer;
    transition:all .18s ease;
}

.user-btn:hover{
    background:rgba(255,255,255,.06);
    border-color:rgba(255,123,0,.22);
    box-shadow:0 0 16px rgba(255,123,0,.08);
}

.user-avatar,
.user-avatar-placeholder{
    width:34px;
    height:34px;
    border-radius:12px;
    flex-shrink:0;
}

.user-avatar{
    object-fit:cover;
    border:1px solid rgba(255,255,255,.08);
}

.user-avatar-placeholder{
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg, rgba(255,123,0,.18), rgba(255,123,0,.06));
    color:#ffe0bb;
    border:1px solid rgba(255,123,0,.18);
}

.user-name{
    max-width:140px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:14px;
    font-weight:800;
}

.user-chevron{
    font-size:12px;
    color:rgba(255,255,255,.55);
    transition:transform .18s ease;
}

.user-widget.open .user-chevron{
    transform:rotate(180deg);
}

.user-dropdown{
    position:absolute;
    top:calc(100% + 10px);
    right:0;
    width:260px;
    border-radius:18px;
    overflow:hidden;
    background:linear-gradient(180deg, rgba(30,18,9,.98), rgba(14,9,4,.98));
    border:1px solid rgba(255,123,0,.24);
    box-shadow:
        0 24px 50px rgba(0,0,0,.30),
        0 0 18px rgba(255,123,0,.08);
    opacity:0;
    visibility:hidden;
    transform:translateY(8px);
    transition:all .18s ease;
    pointer-events:none;
}

.user-widget.open .user-dropdown{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
    pointer-events:auto;
}

.dd-head{
    padding:16px 16px 12px;
    border-bottom:1px solid rgba(255,255,255,.05);
    background:linear-gradient(180deg, rgba(255,123,0,.12), transparent);
}

.dd-name{
    color:#fff;
    font-size:15px;
    font-weight:900;
    line-height:1.35;
    word-break:break-word;
}

.dd-item{
    width:100%;
    min-height:46px;
    border:none;
    background:transparent;
    display:flex;
    align-items:center;
    gap:10px;
    padding:0 16px;
    color:var(--text-muted);
    cursor:pointer;
    font-size:14px;
    font-weight:700;
    transition:all .16s ease;
    text-align:left;
}

.dd-item:hover{
    background:rgba(255,123,0,.10);
    color:#fff;
}

.dd-item i{
    width:18px;
    text-align:center;
    flex-shrink:0;
}

.dd-divider{
    height:1px;
    margin:6px 14px;
    background:rgba(255,255,255,.06);
}

.dd-logout{
    color:#ffd7c2;
}

.dd-logout:hover{
    background:rgba(255,123,0,.12);
    color:#fff;
}

/* FOOTER */
.site-footer{
    position:relative;
    margin-top:auto;
    width:100%;
    padding:34px 20px 28px;
    background:linear-gradient(180deg, rgba(20,12,6,.96), rgba(10,6,3,.98));
    border-top:1px solid rgba(255,123,0,.22);
    overflow:hidden;
}

.site-footer-glow{
    position:absolute;
    inset:0;
    pointer-events:none;
    background:
        radial-gradient(circle at top center, rgba(255,123,0,.22), transparent 40%),
        linear-gradient(90deg, transparent, rgba(255,255,255,.02), transparent);
}

.site-footer-inner{
    position:relative;
    z-index:2;
    max-width:1200px;
    margin:0 auto;
}

.site-footer-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    flex-wrap:wrap;
}

.site-footer-brand{
    display:flex;
    align-items:center;
    gap:14px;
    min-width:0;
}

.site-footer-logo{
    width:52px;
    height:52px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg, #ff7b00, #ff9a1f);
    color:#fff;
    font-size:20px;
    box-shadow:
        0 0 18px rgba(255,123,0,.16),
        0 14px 28px rgba(255,123,0,.24);
    flex-shrink:0;
}

.site-footer-brand-text h3{
    margin:0 0 4px;
    font-family:var(--font-display);
    font-size:24px;
    font-weight:900;
    letter-spacing:-.4px;
    color:#fff;
    line-height:1;
    text-transform:uppercase;
}

.site-footer-brand-text h3 span{
    color:#ff7b00;
}

.site-footer-brand-text p{
    margin:0;
    font-size:13px;
    color:rgba(255,255,255,0.58);
    line-height:1.7;
    max-width:520px;
}

.site-footer-links{
    display:flex;
    justify-content:center;
    gap:12px;
    flex-wrap:wrap;
}

.footer-link-btn{
    background:rgba(255,255,255,0.03);
    border:1px solid rgba(255,255,255,0.08);
    padding:10px 16px;
    border-radius:12px;
    font-size:12px;
    font-weight:700;
    color:rgba(255,255,255,0.72);
    cursor:pointer;
    transition:all 0.18s ease;
}

.footer-link-btn:hover{
    color:#fff;
    border-color:rgba(255,123,0,0.30);
    background:rgba(255,123,0,0.10);
    transform:translateY(-2px);
    box-shadow:0 0 16px rgba(255,123,0,.08);
}

.site-footer-divider{
    height:1px;
    margin:22px 0 16px;
    background:linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.site-footer-bottom{
    text-align:center;
}

.site-footer-bottom p{
    margin:0;
    font-size:12px;
    color:rgba(255,255,255,0.42);
    line-height:1.7;
}

/* DISCORD */
.discord-fixed{
    position:fixed;
    right:20px;
    bottom:20px;
    width:56px;
    height:56px;
    border:none;
    border-radius:16px;
    background:linear-gradient(135deg, #ff7b00, #ff9a1f);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    box-shadow:
        0 0 20px rgba(255,123,0,.18),
        0 14px 26px rgba(0,0,0,0.36),
        0 0 0 1px rgba(255,255,255,0.04) inset;
    transition:all .2s ease;
    cursor:pointer;
    z-index:9999;
}

.discord-fixed:hover{
    transform:translateY(-3px);
    box-shadow:
        0 0 26px rgba(255,123,0,.28),
        0 18px 30px rgba(0,0,0,0.40),
        0 0 0 1px rgba(255,255,255,0.05) inset;
}

.discord-fixed:active{
    transform:scale(.96);
}

@media (max-width:1180px){
    .topbar-inner{
        width:calc(100% - 14px);
        gap:12px;
    }

    .nav-link{
        height:42px;
        padding:0 12px;
        font-size:13px;
    }

    .btn-login{
        height:44px;
        padding:0 15px;
        font-size:13px;
    }

    .user-name{
        max-width:100px;
    }
}

@media (max-width:768px){
    :root{
        --header-height:76px;
    }

    .topbar-inner{
        width:calc(100% - 10px);
        gap:10px;
    }

    .logo,
    .logo img{
        width:50px;
        height:50px;
    }

    .nav-links{
        gap:6px;
    }

    .nav-link{
        height:40px;
        padding:0 11px;
        border-radius:12px;
        font-size:12px;
    }

    .nav-link span{
        display:none;
    }

    .nav-link i{
        font-size:13px;
        margin:0;
    }

    .btn-login{
        width:46px;
        height:46px;
        padding:0;
        border-radius:14px;
    }

    .btn-login span{
        display:none;
    }

    .user-btn{
        width:46px;
        height:46px;
        padding:0;
        justify-content:center;
        border-radius:14px;
    }

    .user-name,
    .user-chevron{
        display:none;
    }

    .user-dropdown{
        width:220px;
        right:0;
    }

    .site-footer{
        padding:26px 14px 22px;
    }

    .site-footer-top{
        flex-direction:column;
        align-items:flex-start;
    }

    .site-footer-brand{
        align-items:flex-start;
    }

    .site-footer-brand-text h3{
        font-size:21px;
    }

    .site-footer-brand-text p{
        font-size:12px;
    }

    .site-footer-links{
        width:100%;
        justify-content:flex-start;
    }

    .footer-link-btn{
        font-size:11px;
        padding:9px 13px;
    }

    .site-footer-bottom p{
        font-size:11px;
        text-align:left;
    }

    .discord-fixed{
        right:14px;
        bottom:14px;
        width:48px;
        height:48px;
        font-size:20px;
        border-radius:14px;
    }
}