:root {
    --bg-main: #0D0D0D;
    --bg-secondary: #1A1A1A;
    --border-accent: #8C1C13;
    --primary-accent: #D94F04;
    --hover-state: #FF7A00;
    --glow-text: #FFD166;
    --body-text: #FFFFFF;
    --grad-primary: linear-gradient(135deg, #D94F04 0%, #FF7A00 100%);
    --grad-dark: linear-gradient(145deg, #1A1A1A 0%, #0D0D0D 100%);
    --grad-glow: linear-gradient(90deg, #FFD166 0%, #FF7A00 100%);
    --cyan: #08D9FF;
    --green: #00E676;
    --purple: #7C4DFF;
    --danger: #FF3B4F;
    --muted: #9DA5B4;
    --line: rgba(255, 255, 255, 0.11);
    --panel: rgba(18, 18, 18, 0.88);
    --panel-soft: rgba(31, 31, 31, 0.78);
    --sidebar-width: 320px;
    --topbar-height: 84px;
    --radius: 8px;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--body-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 70% 0%, rgba(217, 79, 4, 0.18), transparent 26rem),
        linear-gradient(180deg, #120805 0%, var(--bg-main) 38%, #090909 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 82%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.icon-chevron {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: var(--topbar-height);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 24px;
    border-bottom: 1px solid rgba(255, 122, 0, 0.2);
    background:
        linear-gradient(90deg, rgba(13, 13, 13, 0.98), rgba(38, 15, 8, 0.95) 45%, rgba(9, 9, 9, 0.98)),
        linear-gradient(180deg, rgba(255, 122, 0, 0.1), transparent),
        var(--bg-main);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(16px);
}

.brand {
    min-width: 186px;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 122, 0, 0.22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 1px solid rgba(255, 209, 102, 0.24);
    box-shadow: 0 0 24px rgba(255, 122, 0, 0.26);
}

.brand-text {
    display: grid;
    gap: 1px;
    line-height: 1;
}

.brand-text strong,
.brand-text small {
    font-weight: 900;
}

.brand-text strong {
    color: var(--glow-text);
    font-size: 16px;
}

.brand-text small {
    color: #fff;
    font-size: 14px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.22);
}

.nav-link {
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.73);
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
    white-space: nowrap;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
    color: #fff;
    border-color: rgba(255, 122, 0, 0.34);
    background: linear-gradient(180deg, rgba(255, 122, 0, 0.16), rgba(255, 122, 0, 0.05));
}

.nav-link.is-active {
    box-shadow: inset 0 -2px 0 var(--hover-state);
}

.nav-button {
    border: 0;
    cursor: pointer;
    background: transparent;
}

.nav-menu,
.profile-menu,
.language-menu {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    width: 242px;
    padding: 10px;
    border: 1px solid rgba(255, 122, 0, 0.24);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(30, 30, 30, 0.97), rgba(12, 12, 12, 0.98)),
        var(--bg-secondary);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.nav-dropdown {
    left: 0;
    right: auto;
}

.nav-menu:hover .dropdown-panel,
.nav-menu:focus-within .dropdown-panel,
.nav-menu.is-open .dropdown-panel,
.profile-menu:hover .dropdown-panel,
.profile-menu:focus-within .dropdown-panel,
.profile-menu.is-open .dropdown-panel,
.language-menu:hover .dropdown-panel,
.language-menu:focus-within .dropdown-panel,
.language-menu.is-open .dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-item {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 800;
}

.dropdown-item:hover,
.dropdown-item:focus-visible,
.dropdown-item.is-selected {
    color: #fff;
    background: rgba(255, 122, 0, 0.12);
}

.dropdown-label {
    margin: 10px 8px 6px;
    color: var(--glow-text);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.dropdown-separator {
    height: 1px;
    margin: 8px;
    background: var(--line);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 58px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.22);
}

.currency-pill {
    width: 126px;
    height: 46px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px 7px 7px;
    border: 1px solid rgba(255, 122, 0, 0.42);
    border-radius: 999px;
    background: rgba(8, 8, 8, 0.7);
    box-shadow: inset 0 -2px 0 rgba(255, 122, 0, 0.55);
}

.currency-rex {
    border-color: rgba(8, 217, 255, 0.48);
    box-shadow: inset 0 -2px 0 rgba(8, 217, 255, 0.8);
}

.currency-pill img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.currency-pill span {
    display: grid;
    line-height: 1.05;
    font-weight: 950;
}

.currency-pill small {
    color: var(--glow-text);
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.currency-rex small {
    color: var(--cyan);
}

.top-divider {
    width: 1px;
    height: 34px;
    margin: 0 4px;
    background: rgba(255, 255, 255, 0.14);
}

.icon-button,
.steam-login {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.82);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.icon-button {
    position: relative;
    width: 42px;
    padding: 0;
}

.icon-button:hover,
.icon-button:focus-visible,
.steam-login:hover,
.steam-login:focus-visible {
    color: #fff;
    border-color: rgba(255, 122, 0, 0.48);
    background: rgba(255, 122, 0, 0.12);
}

.language-button {
    font-size: 13px;
    font-weight: 950;
}

.language-dropdown {
    width: 190px;
}

.notification-dot {
    position: absolute;
    top: -6px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    border: 2px solid #1a0b08;
    border-radius: 999px;
    background: var(--grad-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 950;
}

.discord-button {
    color: #7f8cff;
    border-color: rgba(124, 77, 255, 0.34);
}

.profile-button {
    height: 46px;
    min-width: 174px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 7px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.profile-avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.profile-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
    text-align: left;
    line-height: 1;
}

.profile-copy strong {
    max-width: 94px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

.profile-copy small {
    width: max-content;
    padding: 4px 7px;
    border-radius: 5px;
    background: rgba(8, 217, 255, 0.16);
    color: var(--cyan);
    font-size: 9px;
    font-weight: 950;
    text-transform: uppercase;
}

.profile-dropdown {
    width: 250px;
}

.steam-login {
    padding: 0 14px;
    font-weight: 900;
    background: rgba(23, 26, 33, 0.86);
}

.site-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    align-items: start;
}

.live-feed {
    position: sticky;
    top: var(--topbar-height);
    height: calc(100vh - var(--topbar-height));
    overflow: hidden auto;
    padding: 26px 18px;
    border-right: 1px solid rgba(255, 122, 0, 0.16);
    background:
        linear-gradient(180deg, rgba(14, 14, 14, 0.97), rgba(12, 12, 12, 0.9)),
        var(--bg-main);
}

.live-feed::-webkit-scrollbar {
    width: 8px;
}

.live-feed::-webkit-scrollbar-thumb {
    background: rgba(255, 122, 0, 0.45);
    border-radius: 999px;
}

.live-feed-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--glow-text);
    font-size: 18px;
    font-weight: 950;
    text-transform: uppercase;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 18px rgba(0, 230, 118, 0.9);
}

.feed-meta {
    margin: 20px 0 12px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.feed-list {
    display: grid;
    gap: 6px;
}

.feed-item {
    min-height: 70px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
}

.feed-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    object-fit: cover;
    background: #111;
}

.feed-copy strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 950;
}

.feed-copy p {
    margin: 2px 0 5px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    line-height: 1.35;
}

.feed-copy span {
    color: var(--glow-text);
    font-size: 11px;
    font-weight: 850;
}

.page-main {
    min-width: 0;
    min-height: calc(100vh - var(--topbar-height));
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-left: var(--sidebar-width);
    padding: 18px 34px;
    border-top: 1px solid rgba(255, 122, 0, 0.2);
    background:
        linear-gradient(90deg, rgba(13, 13, 13, 0.98), rgba(38, 15, 8, 0.94), rgba(13, 13, 13, 0.98)),
        var(--bg-main);
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

.footer-mark {
    font-weight: 900;
    text-transform: uppercase;
}

.footer-credit {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid rgba(255, 122, 0, 0.26);
    border-radius: var(--radius);
    background: rgba(255, 122, 0, 0.08);
    color: var(--glow-text);
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: inset 0 -2px 0 rgba(255, 122, 0, 0.35);
}

.footer-credit span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
}

.footer-credit strong {
    color: #fff;
    font-size: 13px;
}

@media (max-width: 1540px) {
    .topbar {
        padding-inline: 18px;
        gap: 12px;
    }

    .brand {
        min-width: 150px;
    }

    .nav-link {
        padding-inline: 9px;
        font-size: 12px;
    }

    .currency-pill {
        width: 118px;
    }
}

@media (max-width: 1460px) {
    :root {
        --topbar-height: 137px;
    }

    .topbar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .main-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .top-actions {
        margin-left: auto;
    }
}

@media (max-width: 980px) {
    :root {
        --sidebar-width: 0px;
    }

    .site-layout {
        display: block;
    }

    .live-feed {
        position: relative;
        top: auto;
        height: auto;
        max-height: 430px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 122, 0, 0.22);
    }

    .site-footer {
        margin-left: 0;
    }
}

@media (max-width: 760px) {
    .topbar {
        padding: 10px;
    }

    .brand {
        min-width: 128px;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
    }

    .brand-text strong {
        font-size: 14px;
    }

    .brand-text small {
        font-size: 12px;
    }

    .top-actions {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 2px;
    }

    .profile-button {
        min-width: 154px;
    }

    .currency-pill {
        min-width: 118px;
    }

    .live-feed {
        padding: 22px 14px;
    }

    .site-footer {
        display: grid;
        padding: 20px 16px;
    }
}
