@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=Cinzel:wght@600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #07080a;
    --bg-secondary: #0d0f12;
    --bg-panel: #111318;
    --bg-panel-warm: #17120e;
    --body-text: #f0ede7;
    --text-main: #f0ede7;
    --text-muted: #969ba3;
    --text-soft: #666b73;
    --primary-accent: #ee8422;
    --hover-state: #ff9d39;
    --glow-text: #f4a14a;
    --token-accent: #b8bec8;
    --border-accent: rgba(240, 141, 45, 0.24);
    --grad-primary: linear-gradient(135deg, #ff9d39 0%, #d75e14 100%);
    --grad-dark: linear-gradient(145deg, rgba(23, 25, 30, 0.98), rgba(8, 9, 11, 0.98));
    --grad-glow: linear-gradient(90deg, #f7f1e7 0%, #f08a24 52%, #7d838d 100%);
    --panel-border: rgba(255, 255, 255, 0.09);
    --panel-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
    --nav-height: 88px;
    --rail-width: 300px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg-main);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--body-text);
    background:
        radial-gradient(circle at 78% -10%, rgba(238, 132, 34, 0.13), transparent 32rem),
        linear-gradient(180deg, #090a0d 0%, #050608 100%);
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

.eclipse-atmosphere {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.85;
    background:
        linear-gradient(115deg, transparent 0 48%, rgba(255,255,255,0.018) 48% 48.15%, transparent 48.15%),
        radial-gradient(circle at 22% 20%, rgba(255,255,255,0.035) 0 1px, transparent 1.5px) 0 0 / 72px 72px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.top-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--nav-height);
    padding: 0 24px 0 18px;
    display: flex;
    align-items: center;
    gap: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(7, 8, 10, 0.88);
    box-shadow: 0 18px 50px rgba(0,0,0,0.34);
    backdrop-filter: blur(20px);
}

.top-navbar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(238,132,34,0.48), rgba(255,255,255,0.18), transparent);
}

.nav-brand {
    width: calc(var(--rail-width) - 18px);
    flex: 0 0 calc(var(--rail-width) - 18px);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f2eee8;
    text-decoration: none;
}

.brand-logo-frame {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    background: #020304;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.025), 0 0 24px rgba(238,132,34,0.14);
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
}

.brand-wordmark {
    display: grid;
    line-height: 0.84;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.19em;
}

.brand-wordmark strong {
    font-size: 22px;
    font-weight: 800;
}

.brand-wordmark b {
    margin-top: 8px;
    color: var(--primary-accent);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.38em;
}

.nav-menu {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #9da1a8;
    text-decoration: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: 180ms ease;
}

.nav-link:hover,
.nav-link.active {
    border-color: rgba(238,132,34,0.24);
    color: #fff;
    background: rgba(238,132,34,0.08);
    box-shadow: inset 0 0 18px rgba(238,132,34,0.05);
}

.nav-link.active::before {
    content: '';
    width: 6px;
    height: 6px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--primary-accent);
    box-shadow: 0 0 12px var(--primary-accent);
}

.nav-right {
    min-width: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-wallet {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-coin {
    min-width: 104px;
    height: 44px;
    padding: 0 13px 0 7px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 999px;
    color: #eeeae3;
    background: linear-gradient(145deg, rgba(255,255,255,0.065), rgba(255,255,255,0.025));
    box-shadow: inset 0 1px rgba(255,255,255,0.04), 0 7px 18px rgba(0,0,0,0.22);
    font-size: 11px;
    font-weight: 900;
}

.header-coin img {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    object-fit: contain;
    transform: scale(1.08);
    filter: drop-shadow(0 3px 7px rgba(0,0,0,0.72));
}

.header-coin.apex-coin { border-color: rgba(58,121,185,0.22); }
.header-coin.amber-coin { border-color: rgba(238,132,34,0.22); }

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8d929a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.system-status span,
.rail-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e88b31;
    box-shadow: 0 0 12px rgba(238,132,34,0.8);
    animation: hollow-pulse 2.2s infinite;
}

@keyframes hollow-pulse {
    50% { opacity: 0.45; transform: scale(0.82); }
}

.user-dropdown-wrapper {
    position: relative;
}

.user-profile-btn {
    min-width: 185px;
    padding: 6px 10px 6px 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: rgba(255,255,255,0.035);
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    object-fit: cover;
    border: 1px solid rgba(238,132,34,0.55);
}

.user-info {
    min-width: 0;
    display: grid;
    text-align: left;
}

.user-info strong {
    max-width: 132px;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-info small {
    margin-top: 3px;
    color: var(--primary-accent);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 210px;
    padding: 8px;
    display: grid;
    gap: 3px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    background: rgba(11,12,15,0.98);
    box-shadow: var(--panel-shadow);
    transition: 160ms ease;
}

.user-dropdown-wrapper:hover .user-dropdown-menu,
.user-dropdown-wrapper:focus-within .user-dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.user-dropdown-menu a {
    padding: 11px 12px;
    border-radius: 8px;
    color: #c8c9cc;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.user-dropdown-menu a:hover {
    color: #fff;
    background: rgba(238,132,34,0.1);
}

.user-role-list {
    padding: 8px 8px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.user-role-list span {
    padding: 4px 7px;
    border: 1px solid rgba(238,132,34,0.22);
    border-radius: 999px;
    color: var(--primary-accent);
    background: rgba(238,132,34,0.07);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.user-dropdown-menu .logout-link {
    margin-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-radius: 0 0 8px 8px;
    color: #d59772;
}

.guest-steam-btn {
    margin-left: auto;
    padding: 12px 18px;
    border: 1px solid rgba(238,132,34,0.38);
    border-radius: 999px;
    color: #fff;
    background: rgba(238,132,34,0.1);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.layout-wrapper {
    min-height: calc(100vh - var(--nav-height));
    margin-left: var(--rail-width);
}

.layout-wrapper.guest-layout {
    margin-left: 0;
}

.storage-rail {
    position: fixed;
    top: var(--nav-height);
    bottom: 0;
    left: 0;
    z-index: 80;
    width: var(--rail-width);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-right: 1px solid rgba(255,255,255,0.08);
    background:
        linear-gradient(180deg, rgba(8,9,11,0.1), rgba(8,9,11,0.9)),
        #090a0c;
}

.storage-rail::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.rail-brand-art {
    height: 156px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: radial-gradient(circle at 50% 35%, rgba(255,255,255,0.08), transparent 56%);
}

.rail-brand-art img {
    width: 190px;
    height: 190px;
    object-fit: contain;
    filter: drop-shadow(0 12px 28px rgba(0,0,0,0.75));
    transform: translateY(13px);
}

.rail-capacity,
.rail-feed {
    padding: 20px;
}

.rail-capacity {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.rail-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #8e9299;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.rail-section-heading b {
    color: var(--primary-accent);
    font-size: 13px;
}

.rail-capacity-track {
    height: 6px;
    margin-top: 13px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,0.075);
}

.rail-capacity-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7d828a, #f08a24);
    box-shadow: 0 0 15px rgba(238,132,34,0.45);
}

.rail-capacity p {
    margin: 10px 0 0;
    color: #6f747c;
    font-size: 11px;
}

.rail-feed-list {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.rail-feed-card {
    min-width: 0;
    padding: 9px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    background: rgba(255,255,255,0.025);
}

.rail-feed-card img {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    object-fit: contain;
    background: radial-gradient(circle, rgba(238,132,34,0.12), transparent 70%);
}

.rail-feed-card div {
    min-width: 0;
    display: grid;
}

.rail-feed-card strong {
    overflow: hidden;
    color: #e8e5df;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rail-feed-card span,
.rail-feed-card time {
    color: #6e737b;
    font-size: 8px;
    font-style: normal;
}

.rail-feed-card span {
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rail-empty {
    margin-top: 12px;
    padding: 16px;
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #71757d;
    font-size: 11px;
    line-height: 1.55;
}

.main-content {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    padding: clamp(24px, 3vw, 42px);
}

#content-preloader {
    position: fixed;
    inset: var(--nav-height) 0 0 var(--rail-width);
    z-index: 900;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 15px;
    color: #9a9da3;
    background: rgba(7,8,10,0.94);
    backdrop-filter: blur(16px);
    transition: opacity 350ms ease, visibility 350ms ease;
}

#content-preloader span {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.eclipse-loader {
    width: 54px;
    height: 54px;
    border: 2px solid rgba(255,255,255,0.12);
    border-right-color: var(--primary-accent);
    border-radius: 50%;
    box-shadow: inset 0 0 18px rgba(238,132,34,0.08), 0 0 24px rgba(238,132,34,0.08);
    animation: eclipse-spin 0.8s linear infinite;
}

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

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-footer {
    position: relative;
    z-index: 90;
    min-height: 46px;
    margin-left: var(--rail-width);
    padding: 0 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: #5f636a;
    background: #07080a;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.guest-layout + .site-footer {
    margin-left: 0;
}

.redeem-launch-btn {
    height: 44px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(238,132,34,0.28);
    border-radius: 999px;
    color: #eeeae3;
    background: rgba(238,132,34,0.09);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: 160ms ease;
}

.redeem-launch-btn:hover {
    color: #08090b;
    background: var(--primary-accent);
    box-shadow: 0 8px 20px rgba(238,132,34,0.3);
}

.redeem-launch-btn i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-accent);
    box-shadow: 0 0 10px rgba(238,132,34,0.8);
}

.redeem-launch-btn:hover i {
    background: #08090b;
    box-shadow: none;
}

.redeem-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3500;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
}

.redeem-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 3600;
    width: min(420px, calc(100vw - 32px));
    visibility: hidden;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.96);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    background: linear-gradient(155deg, rgba(16,17,20,0.99), rgba(6,7,9,0.99));
    box-shadow: 0 30px 90px rgba(0,0,0,0.72), inset 0 1px rgba(255,255,255,0.05);
    transition: 180ms ease;
}

.redeem-modal.show {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.redeem-modal-head {
    min-height: 68px;
    padding: 14px 16px 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: radial-gradient(circle at 0 0, rgba(238,132,34,0.13), transparent 55%);
}

.redeem-modal-head div { display: grid; gap: 3px; }
.redeem-modal-head small { color: var(--primary-accent); font-size: 8px; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; }
.redeem-modal-head strong { color: #fff; font-family: 'Barlow Condensed', sans-serif; font-size: 22px; letter-spacing: 0.08em; text-transform: uppercase; }
.redeem-modal-head button { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.09); border-radius: 10px; color: #9da1a8; background: rgba(255,255,255,0.03); cursor: pointer; font-size: 22px; }

.redeem-modal-body { padding: 18px; }
.redeem-modal-body p { margin: 0 0 16px; color: #a5a9b0; font-size: 12px; line-height: 1.65; }
.redeem-modal-body form { display: flex; flex-direction: column; gap: 10px; }

.redeem-modal-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    outline: 0;
    color: #eeeae3;
    background: rgba(255,255,255,0.035);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-sizing: border-box;
}

.redeem-modal-input::placeholder { text-transform: none; letter-spacing: normal; color: #6b6f77; }
.redeem-modal-input:focus { border-color: rgba(238,132,34,0.5); box-shadow: 0 0 0 3px rgba(238,132,34,0.08); }

.redeem-modal-submit {
    height: 46px;
    border: none;
    border-radius: 10px;
    color: #170900;
    background: linear-gradient(135deg, #F08A24, #D46316);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: 160ms ease;
}

.redeem-modal-submit:hover:not(:disabled) { box-shadow: 0 12px 26px rgba(238,132,34,0.3); }
.redeem-modal-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.redeem-modal-result {
    display: none;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.55;
}

.redeem-modal-result.show { display: block; }
.redeem-modal-result.success { border: 1px solid rgba(238,132,34,0.42); color: #eeeae3; background: rgba(238,132,34,0.08); }
.redeem-modal-result.error { border: 1px solid rgba(184,190,200,0.32); color: #d59772; background: rgba(255,255,255,0.03); }

.friends-launch {
    height: 30px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(238,132,34,0.24);
    border-radius: 999px;
    color: #eeeae3;
    background: rgba(238,132,34,0.08);
    cursor: pointer;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.friends-launch i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-accent);
    box-shadow: 0 0 10px rgba(238,132,34,0.8);
}

.friends-launch b {
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #08090b;
    background: var(--primary-accent);
    font-size: 8px;
}

.friends-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3500;
    background: rgba(0,0,0,0.44);
    backdrop-filter: blur(2px);
}

.friends-panel {
    position: fixed;
    right: 22px;
    bottom: 64px;
    z-index: 3600;
    width: min(410px, calc(100vw - 28px));
    max-height: min(720px, calc(100vh - 100px));
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    background: linear-gradient(155deg, rgba(16,17,20,0.99), rgba(6,7,9,0.99));
    box-shadow: 0 30px 90px rgba(0,0,0,0.72), inset 0 1px rgba(255,255,255,0.05);
    transition: 180ms ease;
}

.friends-panel.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.friends-panel-head {
    min-height: 68px;
    padding: 14px 16px 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: radial-gradient(circle at 0 0, rgba(238,132,34,0.13), transparent 55%);
}

.friends-panel-head div { display: grid; gap: 3px; }
.friends-panel-head small { color: var(--primary-accent); font-size: 8px; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; }
.friends-panel-head strong { color: #fff; font-family: 'Barlow Condensed', sans-serif; font-size: 22px; letter-spacing: 0.08em; text-transform: uppercase; }
.friends-panel-head button { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.09); border-radius: 10px; color: #9da1a8; background: rgba(255,255,255,0.03); cursor: pointer; font-size: 22px; }

.friends-search { position: relative; padding: 15px 16px 12px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.friends-search label { display: block; margin-bottom: 7px; color: #777c84; font-size: 8px; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; }
.friends-search input { width: 100%; height: 42px; padding: 0 13px; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; outline: 0; color: #eeeae3; background: rgba(255,255,255,0.035); font: inherit; font-size: 12px; }
.friends-search input:focus { border-color: rgba(238,132,34,0.5); box-shadow: 0 0 0 3px rgba(238,132,34,0.08); }

.friend-search-results { position: absolute; top: calc(100% - 7px); right: 16px; left: 16px; z-index: 5; max-height: 230px; overflow-y: auto; border-radius: 11px; background: #0b0c0f; box-shadow: 0 18px 42px rgba(0,0,0,0.66); }
.friend-search-results:empty { display: none; }
.friend-search-results > button { width: 100%; padding: 9px 10px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid rgba(255,255,255,0.06); color: #fff; background: transparent; cursor: pointer; text-align: left; }
.friend-search-results > button:hover { background: rgba(238,132,34,0.08); }
.friend-search-results img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; }
.friend-search-results span { min-width: 0; display: grid; gap: 2px; }
.friend-search-results strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.friend-search-results small { color: #686d75; font-size: 8px; }
.friend-search-results b { color: var(--primary-accent); font-size: 9px; text-transform: uppercase; }

.friends-panel-body { min-height: 160px; padding: 14px 16px 18px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(238,132,34,0.35) transparent; }
.friend-section + .friend-section { margin-top: 18px; }
.friend-section-title { margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; color: #777c84; font-size: 8px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.friend-section-title b { color: var(--primary-accent); }
.friend-section-title button { border: 0; color: #848991; background: transparent; cursor: pointer; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.friend-list { display: grid; gap: 7px; }
.friend-card { min-width: 0; padding: 9px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; background: rgba(255,255,255,0.025); }
.friend-card > img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; border: 1px solid rgba(255,255,255,0.1); }
.friend-card > div:nth-child(2) { min-width: 0; display: grid; gap: 5px; }
.friend-card strong { overflow: hidden; color: #eeeae3; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.friend-card small { display: flex; align-items: center; gap: 5px; color: #777c84; font-size: 8px; }
.friend-card small i { width: 6px; height: 6px; border-radius: 50%; }
.friend-card-actions { display: flex; gap: 5px; }
.friend-card-actions button { padding: 6px 8px; border: 1px solid rgba(238,132,34,0.26); border-radius: 7px; color: #eeeae3; background: rgba(238,132,34,0.08); cursor: pointer; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.friend-card-actions button.danger { border-color: rgba(184,190,200,0.16); color: #a7abb1; background: rgba(255,255,255,0.025); }
.friend-card-actions button:disabled { opacity: 0.45; cursor: wait; }
.friend-empty { padding: 18px 12px; color: #696e76; font-size: 10px; line-height: 1.55; text-align: center; }
.friend-empty.error { color: #d59772; }

.site-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 5000;
    width: min(390px, calc(100vw - 32px));
    padding: 15px 17px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(14px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    color: #eeeae3;
    background: rgba(12,13,16,0.96);
    box-shadow: 0 22px 60px rgba(0,0,0,0.55);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    transition: 180ms ease;
}

.site-toast.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.site-toast.success { border-color: rgba(238,132,34,0.42); }
.site-toast.error { border-color: rgba(184,190,200,0.32); }

/* Storage interface normalization for page-level legacy styles. */
.inventory-title h1,
.dino-title h1,
.spawn-title h1,
.dashboard-kicker,
.auth-kicker {
    color: var(--glow-text) !important;
}

.inventory-storage-panel,
.dino-storage-panel,
.spawn-panel,
.inv-card,
.dino-card,
.auth-box {
    border-color: rgba(238,132,34,0.16) !important;
    background-color: rgba(12,14,17,0.9) !important;
}

.inventory-storage-fill,
.dino-storage-fill {
    background: linear-gradient(90deg, #797f88, #f08a24 64%, #d75e14) !important;
    box-shadow: 0 0 18px rgba(238,132,34,0.28) !important;
}

.btn-spawn,
.btn-primary,
.dashboard-action-btn,
.btn-steam {
    border-color: rgba(238,132,34,0.42) !important;
    color: #fff !important;
    background: linear-gradient(135deg, #e8791b, #a84112) !important;
}

.filter-btn.active,
.filter-btn:hover {
    color: var(--primary-accent) !important;
    border-color: rgba(238,132,34,0.28) !important;
}

@media (max-width: 1500px) {
    .system-status { display: none; }
    .nav-menu { gap: 2px; }
    .nav-link { padding-inline: 10px; letter-spacing: 0.07em; }
}

@media (max-width: 1120px) {
    :root { --rail-width: 258px; }
    .nav-brand { width: 240px; flex-basis: 240px; }
    .nav-link { padding-inline: 12px; }
    .nav-menu li:nth-child(1),
    .nav-menu li:nth-child(3),
    .nav-menu li:nth-child(5) { display: none; }
}

@media (max-width: 860px) {
    :root { --nav-height: 76px; }
    .top-navbar { padding: 0 14px; gap: 12px; }
    .nav-brand { width: auto; flex-basis: auto; }
    .brand-logo-frame { width: 48px; height: 48px; flex-basis: 48px; }
    .brand-wordmark { display: none; }
    .nav-menu { margin-left: 0; gap: 2px; }
    .nav-link { min-height: 38px; padding: 0 10px; font-size: 12px; letter-spacing: 0.06em; }
    .user-profile-btn { min-width: auto; }
    .user-info { display: none; }
    .storage-rail { display: none; }
    .layout-wrapper,
    .site-footer { margin-left: 0; }
    #content-preloader { left: 0; }
}

@media (max-width: 590px) {
    .top-navbar { align-items: center; }
    .nav-menu { display: none; }
    .nav-right { margin-left: 0; }
    .header-wallet { gap: 5px; }
    .header-coin { min-width: 82px; height: 40px; padding: 0 9px 0 5px; gap: 6px; font-size: 10px; }
    .header-coin img { width: 30px; height: 30px; flex-basis: 30px; }
    .user-avatar { width: 36px; height: 36px; }
    .user-profile-btn { padding: 3px; border: 0; background: transparent; }
    .site-footer { padding: 12px 16px; flex-direction: column; align-items: flex-start; }
    .friends-panel { right: 14px; bottom: 14px; max-height: calc(100vh - 28px); }
}
