@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Rajdhani:wght@500;600;700&display=swap');

:root {
    --bg-base: #09090b;
    --bg-panel: #18181b;
    --bg-hover: #27272a;
    --border-color: #27272a;
    --primary: #f97316;
    --secondary: #eab308;
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

h1, h2, h3, .logo, .sidebar-logo {
    font-family: 'Rajdhani', sans-serif;
}

::-webkit-scrollbar { 
    width: 6px; 
}

::-webkit-scrollbar-track { 
    background: transparent; 
}

::-webkit-scrollbar-thumb { 
    background: var(--border-color); 
    border-radius: 10px; 
}

::-webkit-scrollbar-thumb:hover { 
    background: var(--text-muted); 
}

.sidebar {
    width: 280px;
    background-color: var(--bg-panel);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-logo {
    padding: 30px 20px;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo span {
    color: var(--primary);
}

.live-feed-header {
    padding: 25px 20px 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-indicator {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
}

.latest-activity {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-card {
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary);
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    transition: var(--transition);
}

.activity-card:hover {
    border-color: var(--bg-hover);
    transform: translateX(4px);
}

.activity-card.yellow-border {
    border-left-color: var(--secondary);
}

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: var(--bg-base);
}

.topbar {
    height: 85px;
    background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #ea580c 100%);
    border-bottom: 2px solid #9a3412;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 10;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.topbar .nav-item {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 30px;
}

.topbar .nav-item:hover, .topbar .nav-item.active {
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    background-color: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 180px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 50;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    padding: 10px 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-menu a:hover {
    background-color: var(--bg-hover);
    color: var(--text-main);
    padding-left: 20px;
}

.dropdown-menu a.is-accent {
    color: #fdba74;
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.14);
}

.dropdown-menu a.is-accent:hover {
    color: #fff7ed;
    background: rgba(249, 115, 22, 0.18);
}

.dropdown-divider {
    height: 1px;
    margin: 4px 6px;
    background: rgba(255, 255, 255, 0.08);
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar .currency-box {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.topbar .currency-box.is-live-update,
.skins-shop-wallet.is-live-update {
    animation: walletLivePulse 0.95s cubic-bezier(0.2, 0.88, 0.24, 1);
}

.topbar .c-fossil { color: #ffffff; }
.topbar .c-amber { color: var(--secondary); }

.topbar .profile-area {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 6px 16px 6px 6px;
    border-radius: 40px;
    transition: var(--transition);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.topbar .profile-area:hover {
    background-color: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary);
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.topbar .profile-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
}

.topbar .profile-role {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.topbar .profile-role.is-staff {
    color: #fde68a;
}

.topbar-alerts {
    position: relative;
}

.topbar-alert-button {
    position: relative;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.32);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
}

.topbar-alert-button:hover,
.topbar-alerts.is-open .topbar-alert-button {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.topbar-alert-button.has-unread {
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(250, 204, 21, 0.24);
}

.topbar-alert-button.is-muted {
    color: rgba(255, 255, 255, 0.64);
}

.topbar-alert-button.is-muted::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    transform: rotate(-45deg);
}

.topbar-alert-button i {
    font-size: 1rem;
}

.topbar-alert-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #facc15;
    color: #18181b;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ea580c;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
}

.topbar-alert-panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(380px, calc(100vw - 36px));
    display: grid;
    gap: 14px;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 12, 14, 0.96);
    backdrop-filter: blur(20px);
    box-shadow: 0 26px 44px rgba(0, 0, 0, 0.42);
    z-index: 80;
    animation: topbarAlertPanelIn 0.24s cubic-bezier(0.2, 0.88, 0.24, 1) both;
}

.topbar-alert-panel[hidden] {
    display: none !important;
}

.topbar-alert-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.topbar-alert-panel-copy {
    display: grid;
    gap: 5px;
}

.topbar-alert-panel-copy span {
    color: #fdba74;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.topbar-alert-panel-copy h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.45rem;
    line-height: 0.92;
    text-transform: uppercase;
}

.topbar-alert-mute {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #f4f4f5;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 700;
    transition: var(--transition);
}

.topbar-alert-mute:hover {
    background: rgba(255, 255, 255, 0.08);
}

.topbar-alert-mute.is-muted {
    color: #fde68a;
    background: rgba(250, 204, 21, 0.12);
    border-color: rgba(250, 204, 21, 0.2);
}

.topbar-alert-list {
    display: grid;
    gap: 10px;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 2px;
}

.topbar-alert-empty,
.topbar-alert-entry {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.topbar-alert-empty {
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-muted);
}

.topbar-alert-empty i {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(249, 115, 22, 0.1);
    color: #fdba74;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
}

.topbar-alert-empty strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 4px;
}

.topbar-alert-entry {
    padding: 14px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
}

.topbar-alert-entry.is-unread {
    border-color: rgba(250, 204, 21, 0.18);
    background: rgba(250, 204, 21, 0.08);
}

.topbar-alert-entry-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(249, 115, 22, 0.1);
    color: #fdba74;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
}

.topbar-alert-entry-body {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.topbar-alert-entry-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.topbar-alert-entry-top strong {
    color: var(--text-main);
    font-size: 0.9rem;
}

.topbar-alert-entry-top span {
    color: var(--text-muted);
    font-size: 0.74rem;
    white-space: nowrap;
}

.topbar-alert-entry-body p {
    color: rgba(244, 244, 245, 0.76);
    line-height: 1.55;
    font-size: 0.84rem;
}

.topbar-alert-entry-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.content-area {
    flex: 1;
    padding: 50px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
}

.page-title h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
}

.page-title p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.status-bar {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
}

.main-panel {
    width: 100%;
    max-width: 900px;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
}

.main-panel h3 {
    color: var(--text-main);
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.site-footer {
    position: absolute;
    bottom: 20px;
    right: 40px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.site-footer span {
    color: var(--primary);
    font-weight: 600;
}

.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.auth-box {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    animation: authPop 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes authPop {
    0% { opacity: 0; transform: scale(0.95) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-icon {
    font-size: 38px;
    color: var(--primary);
    margin-bottom: 20px;
    background: rgba(249, 115, 22, 0.1);
    padding: 18px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
}

.auth-box h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

.auth-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

.btn-steam {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(90deg, #171a21 0%, #1b2838 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid #2a475e;
    transition: var(--transition);
    width: 100%;
}

.btn-steam i {
    font-size: 24px;
}

.btn-steam:hover {
    background: linear-gradient(90deg, #1b2838 0%, #2a475e 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    color: #ffffff;
}

@keyframes topbarAlertPanelIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes walletLivePulse {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    35% {
        transform: translateY(-2px) scale(1.03);
        box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(250, 204, 21, 0.22), 0 12px 26px rgba(250, 204, 21, 0.2);
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 960px) {
    .topbar {
        height: auto;
        padding: 18px 22px;
        gap: 16px;
        align-items: center;
        flex-wrap: wrap;
    }

    .nav-links,
    .user-controls {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

}
