/* hello skid ;) */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}


.glass-panel {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}


.scanline {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(255, 255, 255, 0.012) 51%,
        transparent 52%
    );
    background-size: 100% 4px;
    position: absolute;
    z-index: 10;
    top: 0;
    pointer-events: none;
}

.scanner-bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.35);
    position: absolute;
    z-index: 11;
    top: 0;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.25),
                0 0 60px rgba(255, 255, 255, 0.1);
    animation: scan 4s ease-in-out infinite;
}


body {
    letter-spacing: -0.015em;
}
h1, h2, h3, h4 {
    letter-spacing: -0.03em;
}


.bg-grid {
    background-size: 60px 60px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}


.marquee-mask {
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}


.model-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 15;
    gap: 12px;
    transition: opacity 0.8s ease;
}
.model-loader.loaded {
    opacity: 0;
    pointer-events: none;
}
.loader-ring {
    width: 36px;
    height: 36px;
    border: 2.5px solid rgba(255, 255, 255, 0.06);
    border-top-color: rgba(255, 255, 255, 0.7);
    border-right-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.loader-ring-sm {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-top-color: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Page loading screen — appears instantly, hides smoothly */
#page-loading {
    opacity: 1;
    transition: opacity 0.25s ease;
}

#page-loading.hiding {
    opacity: 0;
    pointer-events: none;
}

#page-loading .loader-ring {
    animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

#nav-transition-overlay {
    transition: opacity 0.2s ease;
}




#nav-user-dropdown .glass-panel {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}


#nav-logout-btn .loader-ring-sm {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(248, 113, 113, 0.2);
    border-top-color: rgb(248, 113, 113);
}


#nav-auth-container {
    transition: all 0.3s ease;
}


#nav-user-btn img,
#nav-user-btn > div:first-child {
    transition: all 0.2s ease;
}
#nav-user-btn:hover img {
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}


#nav-user-dropdown a:active,
#nav-user-dropdown button:active {
    transform: scale(0.98);
}


#hero-primary-btn.dashboard-btn {
    background: linear-gradient(135deg, #fff 0%, #e5e5e5 100%);
}


#auth-overlay.closing #auth-backdrop {
    animation: modalBgOut 0.2s ease-in forwards;
}
#auth-overlay.closing #auth-modal {
    animation: modalOut 0.2s ease-in forwards;
}

@keyframes modalBgOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}
@keyframes modalOut {
    0% { opacity: 1; transform: scale(1) translateY(0); }
    100% { opacity: 0; transform: scale(0.95) translateY(10px); }
}


#auth-overlay input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}


#auth-overlay input[type="checkbox"]:checked + div {
    background: white;
    border-color: white;
}
#auth-overlay input[type="checkbox"]:checked + div iconify-icon {
    opacity: 1;
}


@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}
.shake {
    animation: shake 0.5s ease-in-out;
}

/* ── Toast Notifications ── */
.toast {
    position: relative;
    padding: 0.875rem 1rem;
    border-radius: 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 290px;
    max-width: 360px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 4px 20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06);
    animation: toastIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(22, 22, 24, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    cursor: default;
}
.toast-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.toast-body { flex: 1; min-width: 0; }
.toast-title {
    font-size: 0.6875rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.toast-message {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.45;
    color: rgba(255,255,255,0.65);
}
.toast-close {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.15s;
    margin-top: 1px;
}
.toast-close:hover { background: rgba(255,255,255,0.14); color: white; }
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    animation: toastProgress linear forwards;
}
.toast.success { border-left: 3px solid #10b981; }
.toast.success .toast-icon { background: rgba(16,185,129,0.15); color: #10b981; }
.toast.success .toast-title { color: #6ee7b7; }
.toast.success .toast-progress { background: #10b981; }
.toast.error { border-left: 3px solid #ef4444; }
.toast.error .toast-icon { background: rgba(239,68,68,0.15); color: #ef4444; }
.toast.error .toast-title { color: #fca5a5; }
.toast.error .toast-progress { background: #ef4444; }
.toast.info { border-left: 3px solid #3b82f6; }
.toast.info .toast-icon { background: rgba(59,130,246,0.15); color: #3b82f6; }
.toast.info .toast-title { color: #93c5fd; }
.toast.info .toast-progress { background: #3b82f6; }
.toast.warning { border-left: 3px solid #f59e0b; }
.toast.warning .toast-icon { background: rgba(245,158,11,0.15); color: #f59e0b; }
.toast.warning .toast-title { color: #fcd34d; }
.toast.warning .toast-progress { background: #f59e0b; }
.toast.removing { animation: toastOut 0.3s ease-in forwards; }
@keyframes toastIn {
    0%   { opacity: 0; transform: translateX(110%) scale(0.92); }
    100% { opacity: 1; transform: translateX(0)   scale(1); }
}
@keyframes toastOut {
    0%   { opacity: 1; transform: translateX(0)   scale(1); }
    100% { opacity: 0; transform: translateX(110%) scale(0.92); }
}
@keyframes toastProgress {
    0%   { width: 100%; }
    100% { width: 0%; }
}
@media (max-width: 768px) {
    .toast { min-width: 0; width: calc(100vw - 2rem); max-width: 100%; }
}
/* ── Forum Badge Pill ──────────────────────────── */
.forum-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid;
    background: rgba(0,0,0,0.3);
    flex-shrink: 0;
    line-height: 1;
    vertical-align: middle;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* ── Profile Hover Card ───────────────────────────── */
.phc {
    position: fixed;
    z-index: 9999;
    width: 240px;
    background: #111114;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.875rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    opacity: 0;
    transform: translateY(6px) scale(0.97);
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
    font-family: 'Manrope', sans-serif;
}
.phc--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.phc-banner {
    width: 100%;
    height: 70px;
    background: linear-gradient(135deg,#0f0f1a,#1a1a2e);
    flex-shrink: 0;
}
.phc-body {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
}
.phc-avatar {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    border: 2px solid #0a0a0a;
    background: #1a1a1a;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -24px;
}
.phc-info { flex: 1; min-width: 0; }
.phc-name { font-size: 0.875rem; font-weight: 800; color: #fff; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phc-level { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.125rem; }
.phc-equipped { display: flex; align-items: center; gap: 0.375rem; margin-top: 0.375rem; }
.phc-badge-icon { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.phc-streak { font-size: 0.625rem; color: #555; margin-top: 0.25rem; display: flex; align-items: center; gap: 0.25rem; }
.phc-streak span { color: #666; }
