*{margin:0;padding:0;box-sizing:border-box}
body{overflow-x:hidden;color:white;font-family:'Segoe UI',sans-serif}
canvas{position:fixed;top:0;left:0;z-index:-1}
section{min-height:100vh;display:flex;align-items:center;justify-content:center;text-align:center;padding:40px}
h1{font-size:4rem}
h2{font-size:2.2rem;margin-bottom:15px}
p{opacity:0.85;line-height:1.6}

html,body{
    background:#000;
}

#loader{
    position:fixed;
    inset:0;
    z-index:999999999;
    isolation:isolate;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#000;
    overflow:hidden;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .7s ease,visibility .7s ease;
}

#loader.loader-visible{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}

.loader-bg{
    position:absolute;
    inset:0;
    background:radial-gradient(circle at center,rgba(255,79,216,.08),transparent 60%);
    filter:blur(40px);
    animation:loaderPulse 4s ease-in-out infinite;
}

.loader-content{
    position:relative;
    z-index:2;
    width:min(85vw,420px);
    text-align:center;
}

.loader-logo{
    width:92px;
    height:92px;
    object-fit:cover;
    border-radius:24px;
    box-shadow:0 0 40px rgba(255,119,180,.25),0 0 80px rgba(122,44,255,.18);
    animation:loaderFloat 4s ease-in-out infinite;
}

.loader-title{
    margin-top:24px;
    font-size:2.4rem;
    font-weight:700;
    letter-spacing:2px;
    background:linear-gradient(90deg,#fff,#ff77b4,#b388ff);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
}

.loader-subtitle{
    margin-top:10px;
    opacity:.65;
    letter-spacing:3px;
    font-size:.8rem;
    text-transform:uppercase;
}

.loader-progress-wrapper{
    position:relative;
    margin-top:32px;
}

.loader-bar{
    width:100%;
    height:6px;
    border-radius:999px;
    overflow:hidden;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.08);
}

.loader-progress{
    width:0%;
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg,#7a2cff,#ff4fd8);
    box-shadow:0 0 20px rgba(255,79,216,.5);
}

.loader-percent{
    margin-top:14px;
    font-size:.95rem;
    opacity:.85;
}

@keyframes loaderFloat{
    0%,100%{transform:translateY(0px) scale(1)}
    50%{transform:translateY(-10px) scale(1.03)}
}

@keyframes loaderPulse{
    0%,100%{opacity:.5;transform:scale(1)}
    50%{opacity:1;transform:scale(1.08)}
}

#app{
    opacity:0;
    visibility:hidden;
    transition:opacity 1s ease,visibility 1s ease;
    will-change:opacity;
}

#app.loaded{
    opacity:1;
    visibility:visible;
}

.install-btn{
    position:fixed;
    bottom:80px;
    right:20px;
    text-align:center;
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:1;
    padding:10px 15px;
    border-radius:20px;
    border:1px solid rgba(255,255,255,0.2);
    background-color:rgba(0,0,0,0.6);
    color:white;
    backdrop-filter:blur(10px);
    cursor:pointer;
    z-index:100000;
    transition:opacity 0.4s ease,transform 0.3s ease,background-color 0.3s ease;
}

.install-btn img{
    z-index:100001;
}

.install-btn:hover{
    transform:translateY(-2px);
    background-color:rgba(255,255,255,0.08);
}

.install-btn.hidden{
    opacity:0;
    pointer-events:none;
}

.install-btn.holding{
    transform:scale(0.92);
    filter:brightness(1.35) drop-shadow(0 0 12px rgba(255,255,255,0.4)) drop-shadow(0 0 30px rgba(255,119,180,0.5));
    background-color:rgba(255,255,255,0.12);
}

.card{
    background:transparent;
    padding:40px;
    border-radius:25px;
    max-width:650px;
    transform:scale(0.85);
    opacity:0;
}

.btn{
    margin-top:20px;
    padding:12px 25px;
    border:none;
    border-radius:25px;
    background:rgba(255,255,255,0.2);
    color:white;
    cursor:pointer;
    transition:0.3s;
}

.btn:hover{
    background:rgba(255,255,255,0.4);
}

.cursor-glow{
    position:fixed;
    width:220px;
    height:220px;
    background:radial-gradient(circle, rgba(255,119,180,0.25), transparent);
    border-radius:50%;
    pointer-events:none;
    transform:translate(-50%,-50%);
    z-index:999;
    overflow:hidden;
}

.cursor-glow::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:50%;
    background:conic-gradient(from 0deg,transparent,rgba(255,119,180,0.3),transparent 30%);
    filter:blur(8px);
    opacity:0.8;
    animation: rotateGlow 4s linear infinite;
}

@keyframes rotateGlow{
    from{transform:rotate(0deg)}
    to{transform:rotate(360deg)}
}

.cursor-glow::after{
    content:"";
    position:absolute;
    inset:0;
    border-radius:50%;
    background:conic-gradient(from 180deg,transparent,rgba(255, 149, 180, 0.25),transparent 40%);
    filter:blur(12px);
    animation:rotateGlowReverse 8s linear infinite;
}

@keyframes rotateGlowReverse{
    from{transform:rotate(360deg)}
    to{transform:rotate(0deg)}
}

.music-btn{
    position:fixed;
    bottom:20px;
    right:20px;
    background-color:rgba(50, 50, 60, 0.75);
    padding:10px 15px;
    border-radius:20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor:pointer;
    z-index:100000;
    transition:transform 0.3s ease,background-color 0.3s ease;
}

.music-btn:hover{
    transform:translateY(-2px);
    background-color:rgba(75, 75, 75, 0.9);
}

.music-btn img{
    z-index:100001;
}

.gallery{
    display:flex;
    gap:30px;
    flex-wrap:wrap;
    justify-content:center;
    margin-top:20px;
}

.gallery img{
  width:200px;
  border-radius:15px;
  transition:0.4s;
}

.gallery img:hover{
    transform:scale(1.1);
}

.hidden{
    margin-top:20px;
    display:none;
}

.menu-toggle{
    position:fixed;
    top:20px;
    right:20px;
    width:45px;
    height:45px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    color:white;
    background:rgba(255,255,255,0.08);
    backdrop-filter:blur(15px);
    border-radius:12px;
    border:1px solid rgba(255,255,255,0.1);
    cursor:pointer;
    z-index:100001;
    transition:0.3s ease;
}

.menu-toggle:hover{
    background:rgba(255,255,255,0.15);
    transform:scale(1.05);
}

.top-nav.hidden{
    opacity:0;
    transform:translateY(-20px);
    pointer-events:none;
}

.top-nav{
    position:fixed;
    top:20px;
    left:50%;
    transform:translateX(-50%);
    width:90%;
    max-width:900px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    padding:14px 22px;
    border-radius:20px;
    background:rgba(255,255,255,0.06);
    backdrop-filter:blur(20px);
    border:1px solid rgba(255,255,255,0.08);
    z-index:100000;
    overflow:hidden;
}

.top-nav{
    transition:opacity 0.4s ease,transform 0.4s ease;
}

.top-nav nav a{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

.vine-layer{
    position:absolute;
    inset:-30px;
    background-image:url("../img/vines.png");
    background-size:cover;
    background-repeat:no-repeat;
    background-position:center;
    opacity:0.15;
    filter: blur(0.5px) brightness(1.1);
    z-index:-1;
    pointer-events:none;
    animation:vineFloat 10s ease-in-out infinite;
}

@keyframes vineFloat{
    0%,100%{transform:translateY(0px) scale(1)}
    50%{transform:translateY(-8px) scale(1.02)}
}

.logo{
    font-size:14px;
    letter-spacing:2px;
    text-transform:uppercase;
    opacity:0.9;
}

.nav-links{
    display:flex;
    gap:20px;
}

.nav-links a{
    color:white;
    text-decoration:none;
    font-size:13px;
    opacity:0.7;
    transition:0.3s;
}

.nav-links a:hover{
    opacity:1;
    transform:translateY(-2px);
}

.nav-links a.active{
    opacity:1;
    color:#ff77b4;
    transform:translateY(-2px);
    position:relative;
}

.nav-links a.active::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:100%;
    height:2px;
    background:linear-gradient(90deg,#ff77b4,#7a5cff);
    border-radius:2px;
    box-shadow:0 0 10px rgba(255,119,180,0.6);
}

.hint{
    font-size:11px;
    opacity:0.4;
}

@media (max-width: 768px){
    .top-nav{
        flex-direction:column;
        align-items:center;
        text-align:center;
        gap:10px;
    }
    .nav-links{
        flex-wrap:wrap;
        justify-content:center;
        gap:12px;
    }
    .logo{
        order:1;
    }
    .nav-links{
        order:2;
    }
    .hint{
        order:3;
        font-size:10px;
        opacity:0.4;
    }
}

.hero-img{
    height:200px;
    width:auto;
    border-radius:20px;
    margin-bottom:20px;
    box-shadow:0 20px 60px rgba(255,119,180,0.25);
    opacity: 1;
    transform:translateY(0) scale(1);
    animation:imgEnter 1.5s ease,glowPulse 4s 1.5s ease-in-out infinite;
    border:1px solid rgba(255,255,255,0.1);
    transition:transform 0.4s ease,filter 0.4s ease,box-shadow 0.4s ease;
    transform-origin:center;
    cursor:pointer;
}

@keyframes imgEnter{
    from{opacity:0;transform:translateY(20px) scale(0.95)}
    to{opacity:1;transform:translateY(0) scale(1)}
}

@keyframes glowPulse {
    0%,100%{box-shadow:0 20px 60px rgba(255,119,180,0.2)}
    50% {box-shadow:0 25px 90px rgba(255,119,180,0.4)}
}

.hero-img:hover{
    transform:translateY(0) scale(1.15);
    filter:brightness(1.08);
}

#entryFlash{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:black;
    z-index:999999;
    pointer-events:none;
    opacity:0;
}

#hero{
    position:relative;
    overflow:hidden;
}

.hero-content{
    text-align:center;
    transition:all 1.2s ease;
}

.galaxy-section{
    position:relative;
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    overflow:hidden;
}

.galaxy-glow{
    position:absolute;
    width:600px;
    height:600px;
    background:radial-gradient(circle,rgba(122,44,255,0.35),rgba(255,79,216,0.18),transparent 70%);
    filter:blur(40px);
    opacity:0.8;
    animation:pulseGlow 6s ease-in-out infinite;
}

@keyframes pulseGlow{
    0%,100%{transform:scale(1);opacity:0.6}
    50%{transform: scale(1.15);opacity:0.9}
}

.galaxy-section h2{
    position:relative;
    z-index:2;
}

.update-box{
    width:min(92vw,440px);
    padding:36px;
    border-radius:26px;
    display:flex;
    flex-direction:column;
    gap:10px;
    background:linear-gradient(145deg,rgba(25,15,50,.98),rgba(9,5,20,.98));
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 25px 60px rgba(0,0,0,.45),0 0 45px rgba(122,44,255,.25);
    text-align:center;
}

.update-actions{
    margin-top:28px;
    display:flex;
    gap:14px;
}

.update-actions button{
    flex:1;
    height:48px;
    font-size:.96rem;
    font-weight:600;
}

.update-actions button,.check-update-btn{
    padding:12px 18px;
    border:none;
    border-radius:14px;
    cursor:pointer;
    background:#7a2cff;
    color:white;
    transition:0.3s;
}

.update-actions button:hover,.check-update-btn:hover, .enter-world-btn:hover{
    transform:translateY(-2px);
}

#pwa-btn-update{
    background:linear-gradient(135deg,#7a2cff,#9b5cff);
}

#pwa-btn-later{
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
    color:rgba(255,255,255,.9);
}

.update-spinner{
    width:54px;
    height:54px;
    margin:0 auto 20px;
    border-radius:50%;
    border:3px solid rgba(255,255,255,.12);
    border-top-color:#8c46ff;
    animation:spin 1s linear infinite;
}
@keyframes spin{
    to{transform:rotate(360deg)}
}

.update-version{
    margin-top:20px;
    color:rgba(255,255,255,.45);
    font-size:.8rem;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.update-title{
    margin:0 0 14px;
    font-size:1.65rem;
    font-weight:700;
    color:#fff;
    letter-spacing:-0.03em;
    line-height:1.2;
}

.update-description{
    margin:0;
    color:rgba(255,255,255,.82);
    font-size:1rem;
    line-height:1.7;
}

.update-note{
    margin-top:18px;
    color:rgba(255,255,255,.6);
    font-size:.92rem;
    line-height:1.6;
}

#pwa-countdown{
    color:#9b5cff;
    font-weight:700;
    font-size:1.15rem;
    margin:0 10px;
}

.update-logo{
    width:82px;
    height:82px;
    margin:0 auto 20px;
    display:block;
    object-fit:contain;
    user-select:none;
    pointer-events:none;
    filter:drop-shadow(0 0 18px rgba(122,44,255,.45));
}

.latest-version-toast{
    position:fixed;
    bottom:20px;
    left:50%;
    transform:translateX(-50%) translateY(20px);
    opacity:0;
    padding:14px 18px;
    border-radius:16px;
    background:rgba(15,15,30,0.95);
    color:white;
    z-index:99999999;
    transition:0.4s ease;
}

.latest-version-toast.show{
    opacity:1;
    transform:translateX(-50%) translateY(0px);
}

.hero-inbox-row{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:20px;
    margin-top:20px;
}

.dragon-inbox-btn{
    position:relative;
    width:70px;
    height:70px;
    border:none;
    border-radius:999px;
    background:rgba(0,0,0,.55);
    backdrop-filter:blur(12px);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    z-index:20;
    transition:transform .3s ease,box-shadow .3s ease;
}

.dragon-inbox-btn:hover{
    transform:scale(1.08);
    box-shadow:0 0 25px rgba(0,255,255,.4);
}

.dragon-inbox-btn img{
    width:56px;
    height:56px;
    object-fit:contain;
    filter:drop-shadow(0 0 12px rgba(255,255,255,.35));
}

.dragon-greeting-bubble{
    position:absolute;
    right:-70px;
    top:-4px;
    min-width:75px;
    padding:8px 10px;
    border-radius:14px;
    background:rgba(0,0,0,.78);
    border:1px solid rgba(255,255,255,.12);
    backdrop-filter:blur(12px);
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:1px;
    z-index:5;
    pointer-events:none;
    box-shadow:0 0 20px rgba(0,255,255,.12);
}

.dragon-greeting-bubble::before{
    content:"";
    position:absolute;
    left:-3px;
    top:22px;
    width:12px;
    height:12px;
    background:rgba(0,0,0,.78);
    transform:rotate(45deg);
}

.dragon-greeting-bubble span{
    font-size:10px;
    line-height:1.05;
    letter-spacing:.5px;
    color:white;
    white-space:nowrap;
}

@media (max-width: 768px){
    .dragon-inbox-btn{
        width:58px;
        height:58px;
    }
    .dragon-inbox-btn img{
        width:48px;
        height:48px;
    }
    .dragon-greeting-bubble{
        right:-80px;
        top: -10px;
        min-width:80px;
        padding:6px 8px;
    }
    .dragon-greeting-bubble span{
        font-size:9px;
    }
}

.side-inbox-pager{
    position:fixed;
    left:20px;
    bottom:18px;
    width:72px;
    height:142px;
    z-index:100000;
}

.side-inbox-page{
    position:absolute;
    inset:0;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateX(35px);
    transition:transform .32s cubic-bezier(.22,.61,.36,1),opacity .25s ease,visibility .32s ease;
    will-change:transform,opacity;
}

.side-inbox-page.active{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateX(0);
}

.side-inbox-page.slide-left{
    opacity:0;
    visibility:visible;
    transform:translateX(-35px);
}

.side-inbox-page.slide-right{
    opacity:0;
    visibility:visible;
    transform:translateX(35px);
}

@media (max-width:768px){
    .side-inbox-pager{
        touch-action:pan-y;
        user-select:none;
        -webkit-user-select:none;
    }
}

.aurora-inbox-btn,.dream-inbox-btn,.gallery-inbox-btn,.garden-inbox-btn,.map-inbox-btn,.candle-inbox-btn{
    position:absolute;
    left:7px;
    width:58px;
    height:46px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:10px 15px;
    background-color:rgba(50,50,60,.75);
    border:1px solid rgba(255,255,255,.12);
    border-radius:20px;
    cursor:pointer;
    transition:transform .3s ease,background-color .3s ease,box-shadow .3s ease;
}

.dream-inbox-btn,.gallery-inbox-btn,.map-inbox-btn{
    top:0;
}

.aurora-inbox-btn,.garden-inbox-btn,.candle-inbox-btn{
    top:60px;
}

.aurora-inbox-btn:hover,.dream-inbox-btn:hover,.gallery-inbox-btn:hover,.garden-inbox-btn:hover,.map-inbox-btn:hover,.candle-inbox-btn:hover{
    transform:translateY(-2px);
    background-color:rgba(35,35,35,.9);
    box-shadow:0 0 25px rgba(0,255,255,.4);
}

.aurora-inbox-btn img,.dream-inbox-btn img,.gallery-inbox-btn img,.garden-inbox-btn img,.map-inbox-btn img,.candle-inbox-btn img{
    height:25px;
    width:auto;
    transform:scale(1.6);
    z-index:1;
}

.side-inbox-pagination{
    position:absolute;
    top:112px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    padding:3px 5px;
    border:1px solid rgba(255,255,255,.1);
    border-radius:999px;
    background:rgba(20,20,25,.72);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    white-space:nowrap;
}

.side-inbox-pagination button{
    width:18px;
    height:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    border:0;
    border-radius:50%;
    background:transparent;
    cursor:pointer;
    transition:background .2s ease,transform .2s ease;
}

.side-inbox-pagination button:hover{
    background:rgba(255,255,255,.12);
    transform:scale(1.08);
}

.side-inbox-pagination button img{
    width:auto;
    height:7px;
    opacity:.8;
    pointer-events:none;
}

#sideInboxPageIndicator{
    min-width:25px;
    text-align:center;
    font-size:8px;
    line-height:1;
    color:rgba(255,255,255,.65);
    user-select:none;
}

.comet-inbox-btn{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0;
    width:70px;
    height:70px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(12px);
    transition:.3s;
}

.comet-inbox-btn:hover{
    transform:scale(1.08);
    box-shadow:0 0 25px rgba(0,255,255,.4);
}

.comet-inbox-btn img{
    width:42px;
    height:42px;
    object-fit:contain;
}

.comet-inbox-count{
    position:absolute;
    top:-6px;
    right:-6px;
    min-width:22px;
    height:22px;
    padding:0 6px;
    display:none;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    background:#ff77b4;
    color:#fff;
    font-size:12px;
    font-weight:700;
    box-shadow:0 0 15px rgba(255,119,180,.7);
}

.login-inbox-btn {
    position:absolute;
    left:0;
    top:0;
    width:72px;
    height:106px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:10px 6px;
    background-color:rgba(30, 22, 48, 0.82);
    border:1px solid rgba(155, 92, 255, 0.18);
    border-radius:20px;
    color:rgba(255, 255, 255, 0.9);
    font-size:10px;
    cursor:pointer;
    transition:transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-inbox-btn:hover{
    transform:translateY(-3px);
    background:rgba(55, 35, 90, 0.92);
    border-color:rgba(255, 119, 180, 0.45);
    box-shadow:0 0 22px rgba(155, 92, 255, 0.35), 0 0 12px rgba(255, 119, 180, 0.15);
}

.login-inbox-btn.logged-in{
    background:rgba(40, 25, 65, 0.88);
    border-color:rgba(255, 119, 180, 0.3);
}

.login-inbox-btn.logged-in:hover{
    background:rgba(70, 40, 100, 0.95);
    border-color:rgba(255, 119, 180, 0.6);
    box-shadow:0 0 26px rgba(255, 119, 180, 0.3), 0 0 14px rgba(155, 92, 255, 0.25);
}

.login-inbox-btn img{
    width:42px;
    height:42px;
    object-fit:cover;
    border-radius:50%;
    transition:0.3s;
}

.login-inbox-btn.logged-in img{
    width:50px;
    height:50px;
    border:2px solid rgba(255, 119, 180, 0.7);
    box-shadow:0 0 12px rgba(255, 119, 180, 0.4);
}

.login-inbox-btn:hover img{
    transform:scale(1.08);
}

.login-inbox-btn #loginBtnText{
    line-height:1.1;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.login-modal{
    width:min(92vw, 400px);
    padding:40px 32px 36px;
    border-radius:28px;
    background:linear-gradient(160deg, rgba(25,15,45,0.98), rgba(8,5,18,0.98));
    backdrop-filter:blur(20px);
    border:1px solid rgba(255,255,255,0.08);
    text-align:center;
    position:relative;
    box-shadow:0 0 60px rgba(122,44,255,0.2);
}

.login-close{
    position:absolute;
    top:16px;
    right:16px;
    width:36px;
    height:36px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,0.06);
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:0.35s;
}

.login-close:hover{
    transform:rotate(90deg) scale(1.15);
}

.login-avatar-wrap{
    width:96px;
    height:96px;
    margin:0 auto 18px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    overflow:hidden;
}

.login-avatar-wrap.has-profile{
    padding:3px;
    background:linear-gradient(135deg,#7a2cff,#ff4fd8);
    box-shadow:0 0 30px rgba(155,92,255,0.35);
}

.login-avatar-wrap img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:50%;
    display:block;
}

.login-avatar-wrap:not(.has-profile){
    background:none;
    box-shadow:none;
    padding:0;
}

.login-avatar-wrap:not(.has-profile) img{
    width:72px;
    height:72px;
    object-fit:contain;
    background:transparent;
}

.login-modal h2{
    margin:0 0 6px;
    font-size:1.55rem;
    font-weight:700;
}

.login-subtitle{
    opacity:0.6;
    font-size:0.9rem;
    margin-bottom:28px;
}

.login-subtitle.hidden{
    display:none;
}

#loginEmail, #loginPassword{
    width:100%;
    padding:14px 16px;
    margin-bottom:14px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,0.1);
    background:rgba(0,0,0,0.35);
    color:white;
    font-size:15px;
    outline:none;
    transition:0.25s;
}

#loginEmail:focus, #loginPassword:focus{
    border-color:#9b5cff;
    box-shadow:0 0 0 3px rgba(155,92,255,0.2);
}

.password-wrap{
    position:relative;
    margin-bottom:14px;
}

.password-wrap #loginPassword{
    margin-bottom:0;
    padding-right:48px;
}

.password-toggle{
    position:absolute;
    right:12px;
    top:50%;
    transform:translateY(-50%);
    width:32px;
    height:32px;
    border:none;
    background:transparent;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0.6;
    transition:0.2s;
}

.password-toggle:hover{
    opacity:1;
}

.password-toggle img{
    width:18px;
    height:18px;
    object-fit:contain;
}

.login-submit-btn{
    width:100%;
    padding:14px;
    margin-top:8px;
    border:none;
    border-radius:14px;
    background:linear-gradient(135deg,#7a2cff,#ff4fd8);
    color:white;
    font-weight:600;
    font-size:15px;
    cursor:pointer;
    transition:0.25s;
}

.login-submit-btn:hover{
    transform:translateY(-2px);
    filter:brightness(1.1);
}

.logout-btn{
    background:linear-gradient(135deg,#5a2230,#8d2d45);
    margin-top:22px;
}

.logout-btn:hover{
    background:linear-gradient(135deg,#7a2d3e,#a83a55);
    filter:brightness(1.15);
    transform:translateY(-2px);
}

.login-error{
    margin-top:14px;
    color:#ff8686;
    font-size:0.9rem;
    min-height:20px;
}

.logged-in-card{
    margin-top:8px;
    padding:22px 18px;
    border-radius:20px;
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.07);
}

.logged-in-greeting{
    font-size:0.85rem;
    opacity:0.55;
    letter-spacing:1px;
    text-transform:uppercase;
    margin-bottom:6px;
}

.logged-in-name{
    font-size:1.6rem;
    font-weight:700;
    background:linear-gradient(90deg,#fff,#ff77b4,#b388ff);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
    margin-bottom:4px;
}

.logged-in-role{
    font-size:0.9rem;
    opacity:0.65;
}

.avatar-lightbox{
    position:fixed;
    inset:0;
    z-index:10000000;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(0, 0, 0, 0.82);
    backdrop-filter:blur(10px);
    cursor:pointer;
    opacity:0;
    visibility:hidden;
    transition:opacity 0.3s ease, visibility 0.3s ease;
}

.avatar-lightbox:not(.hidden){
    opacity:1;
    visibility:visible;
}

.avatar-lightbox img{
    max-width:min(86vw, 420px);
    max-height:80vh;
    border-radius:24px;
    object-fit:cover;
    box-shadow:0 0 60px rgba(155, 92, 255, 0.35), 0 20px 50px rgba(0,0,0,0.5);
    transform:scale(0.9);
    transition:transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events:none;
}

.avatar-lightbox:not(.hidden) img{
    transform:scale(1);
}

.avatar-lightbox-close{
    position:absolute;
    top:24px;
    right:24px;
    width:44px;
    height:44px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,0.08);
    backdrop-filter:blur(8px);
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:0.25s;
    z-index:2;
}

.avatar-lightbox-close:hover{
    background:rgba(255,255,255,0.16);
    transform:rotate(90deg) scale(1.1);
}

.login-inbox-btn{
    overflow:visible;
}
.notification-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:20px;
    height:20px;
    padding:0 6px;
    border-radius:999px;
    background:linear-gradient(135deg,#ff4fd8,#7a2cff);
    color:#fff;
    font-size:10px;
    font-weight:800;
    line-height:1;
    box-shadow:0 0 14px rgba(255,79,216,.55);
    border:1px solid rgba(255,255,255,.35);
}
.notification-badge.hidden{
    display:none!important;
}
.login-notification-badge{
    position:absolute;
    top:-7px;
    right:-7px;
    z-index:5;
}
.notification-center-btn{
    width:100%;
    margin-top:18px;
    padding:13px 16px;
    border-radius:15px;
    border:1px solid rgba(255,119,180,.22);
    background:rgba(255,255,255,.055);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    font:inherit;
    font-weight:600;
    cursor:pointer;
    transition:.25s;
}
.notification-center-btn:hover{
    transform:translateY(-2px);
    background:rgba(255,119,180,.10);
    border-color:rgba(255,119,180,.45);
    box-shadow:0 0 22px rgba(122,44,255,.18);
}
.notifications-modal-box{
    position:relative;
    width:min(92vw,520px);
    max-height:min(78vh,680px);
    padding:34px 28px 28px;
    border-radius:28px;
    background:linear-gradient(160deg,rgba(25,15,45,.98),rgba(8,5,18,.98));
    border:1px solid rgba(255,255,255,.09);
    box-shadow:0 0 60px rgba(122,44,255,.22);
    overflow:hidden;
}
.notifications-heading{
    text-align:left;
    padding-right:45px;
    margin-bottom:20px;
}
.notifications-heading h2{
    margin:4px 0 5px;
}
.notifications-heading p{
    font-size:.9rem;
    opacity:.58;
}
.notifications-kicker{
    text-transform:uppercase;
    letter-spacing:2.5px;
    font-size:.67rem;
    color:#ff9adf;
}
.notification-list{
    display:flex;
    flex-direction:column;
    gap:10px;
    max-height:min(360px,48vh);
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    padding-right:5px;
    scrollbar-width:thin;
    scrollbar-color:rgba(179, 136, 255, 0.65) rgba(255, 255, 255, 0.03);
}
.notification-list::-webkit-scrollbar{
    width:5px;
}
.notification-list::-webkit-scrollbar-track{
    background:rgba(255, 255, 255, 0.03);
    border-radius:10px;
}
.notification-list::-webkit-scrollbar-thumb{
    background:linear-gradient(180deg,rgba(179, 136, 255, 0.65),rgba(255, 119, 180, 0.65));
    border-radius:10px;
}
.notification-list::-webkit-scrollbar-thumb:hover{
    background:linear-gradient(180deg,rgba(179, 136, 255, 0.9),rgba(255, 119, 180, 0.9));
}
.notification-item{
    width:100%;
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:14px;
    border:1px solid rgba(255,255,255,.07);
    border-radius:17px;
    background:rgba(255,255,255,.04);
    color:#fff;
    text-align:left;
    cursor:pointer;
    transition:.22s;
}
.notification-item:hover{
    transform:translateY(-1px);
    background:rgba(255,119,180,.08);
    border-color:rgba(255,119,180,.24);
}
.notification-item>img{
    width:38px;
    height:38px;
    border-radius:50%;
    object-fit:cover;
    border:1px solid rgba(255,119,180,.4);
}
.notification-copy{
    display:flex;
    min-width:0;
    flex:1;
    flex-direction:column;
    gap:4px;
}
.notification-copy strong{
    font-size:.9rem;
    font-weight:600;
}
.notification-copy small{
    font-size:.8rem;
    opacity:.62;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.notification-copy time{
    font-size:.68rem;
    opacity:.4;
}
.notification-empty{
    padding:34px 15px;
    text-align:center;
    opacity:.5;
    font-size:.9rem;
}
.notification-modal-heading{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:10px;
    margin-bottom:10px;
}
.notification-button-image,.notification-modal-image,.notification-system-image{
    object-fit:contain;
    filter:drop-shadow(0 0 12px rgba(203,126,255,.28));
}
.notification-button-image{
    width:24px;
    height:24px;
    flex:none;
}
.notification-modal-image{
    width:46px;
    height:46px;
    flex:none;
}
.notification-system-image{
    width:54px;
    height:54px;
    margin-bottom:10px;
    opacity:.72;
}
.notification-avatar-wrap{
    position:relative;
    width:42px;
    height:42px;
    flex:none;
}
.notification-actor-avatar{
    width:42px;
    height:42px;
    border-radius:50%;
    object-fit:cover;
}
.notification-event-mark{
    position:absolute;
    right:-5px;
    bottom:-5px;
    width:19px;
    height:19px;
    object-fit:contain;
    border-radius:50%;
    background:#11091d;
    padding:2px;
    box-shadow:0 0 10px rgba(203,126,255,.35);
}
.notification-empty{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
}