:root {
    --bg-start: #2b0f4f;
    --bg-end: #140b33;
    --accent-color: #4dd0e1;
    --inventory-toolbar-bg: rgba(0, 0, 0, 0.35);
    --inventory-button-bg: rgba(255, 255, 255, 0.08);
    --inventory-button-hover-bg: rgba(255, 255, 255, 0.2);
    --inventory-toggle-bg: rgba(255, 193, 7, 0.18);
    --inventory-toggle-color: #ffdd70;
    --inventory-toggle-active-bg: #ffdd70;
    --inventory-toggle-active-color: #1b1e23;
    --inventory-toggle-active-shadow: 0 12px 22px rgba(255, 221, 112, 0.35);
    --floating-discord-size: 60px;
    --floating-discord-gap: 20px;
    --background: rgb(0 0 0 / 20%);
    --background-filter: blur(20px) saturate(130%);
    --radius: 0px;
    --site-gap: 20px;
    --bottom-gap: 40px;   
    --header-h: 54px;     
}


body {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    max-height: 100dvh;
    overflow: hidden;
}

.content-menu, .content-aside {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    height: calc(100dvh - (var(--header-h) + var(--bottom-gap) + var(--bottom-gap)));
}

.content-aside, .content-menu {
    display: flex;
    flex-direction: column;
    gap: var(--site-gap);
}

/* containers */
.container {
    max-width: 1200px;
    display: flex;
    flex-direction: row;
    margin: 94px auto;
    padding: 0 2rem;
}

.friends-container {
    height: 100%;
}

.topbar .container {
    width: 100%;
    justify-content: center;
    align-items: center;
    z-index: 3;
    gap: var(--site-gap);
}
.glass-background {
    overflow: hidden;
    position: relative;
    min-height: 154px;
    padding: 15px;
}

.content-container {
    padding-right: 0;
    padding-bottom: 0;
}

.glass-background::after {
    content: ' ';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    background: var(--background);
    backdrop-filter: var(--background-filter);
}
.content-content, .aside-content {
    z-index: 2;
    position: relative;

}

.content-content {
    overflow: auto;
    height: 100%;
    scrollbar-width: thin;
    scrollbar-color: #3b4a52 #0d151b;
}

.no-margin {
    margin: 0px;
}

/* background */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* grid */
.section-grid {
    display: grid;
    gap: var(--site-gap);
    align-items: start;
    grid-template-rows: max-content max-content !important;
}

.section-grid.column-1 {
    grid-template-columns: 1fr;
}

.section-grid.column-2 {
    grid-template-columns: repeat(2, 1fr);
}

.section-grid.column-3 {
    grid-template-columns: repeat(3, 1fr);
}

.section-grid.column-2.ratio-30-70 {
  grid-template-columns: 30% calc(70% - 20px);
}

/* Topbar */
.topbar {
    width: 100%;
    position: fixed;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--site-gap);
    height: var(--header-h);
    justify-content: center;
    z-index: 2;
}

.topbar::before {
    content: ' ';
    width: 100vw;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    background: var(--background);
    backdrop-filter: var(--background-filter);
}


.topbar .logo {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.05em;
    transition: transform .2s ease, box-shadow .2s ease;
    z-index: 3;
}

.topbar .logo span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.topbar .logo img {
    object-fit: contain;
}


.topbar nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    z-index: 3;
    height: var(--header-h);
}

.topbar nav a:first-child {
    border-left: 2px solid #ffffff66;
}

.topbar nav a {
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border: 0;
    min-width: 180px;
    width: 100%;
    border-right: 2px solid #ffffff66;
    justify-content: center;
    transition: all .5s;
}

.topbar nav a span {
    font-size: 12px;
}

.topbar nav a:hover,
.topbar nav a.active {
    color: var(--accent-color);
    background: #00000036;

}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-btn {
    background: var(--accent-color);
    color: #000;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    z-index: 3;
    height: max-content;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.user-menu .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.user-menu .username {
    color: #fff;
}

.coins-badge {
    background: #2d3136;
    color: #ffd700;
    border: 1px solid #444;
    padding: 4px 10px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

.coins-badge:hover {
    background: #353a40;
}

/* Main content offset by sidebar/topbar */
.main-content {
    flex: 1;
    box-sizing: border-box;
}

.main-content h1 {
    font-size: 2.4rem;
    margin: 0;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.main-content h1+p {
    margin-top: 8px;
}

.main-content p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 16px;
}

/* Home hero */
.home-hero {
    position: relative;
    margin-bottom: 48px;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 34px 65px rgba(5, 9, 18, 0.45);
    background: linear-gradient(135deg, rgba(10, 16, 26, 0.92), rgba(10, 16, 26, 0.6));
    --hero-bg: none;
    --hero-overlay: rgba(9, 14, 24, 0.78);
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    transform: scale(1.08);
    filter: saturate(1.05);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.hero-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.75);
}

.hero-bullets i {
    color: var(--accent-color);
    font-size: 1.05rem;
    filter: drop-shadow(0 6px 12px rgba(77, 208, 225, 0.4));
}

.hero-actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-actions .btn i {
    margin-right: 10px;
}

.hero-tiles {
    flex: 1 1 320px;
    display: grid;
    gap: 18px;
    align-content: start;
}

.hero-tile {
    display: flex;
    gap: 16px;
    backdrop-filter: blur(8px);
    transition: transform .2s ease, box-shadow .2s ease;
    background: linear-gradient(165deg, rgba(12, 18, 32, 0.95), rgba(12, 18, 32, 0.6));
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: 0 28px 48px rgba(5, 9, 18, 0.5);
}

.hero-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 26px 48px rgba(5, 9, 18, 0.55);
}

.hero-tile-icon {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.3rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hero-tile-body h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.hero-tile-body p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.hero-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.hero-stat {
    flex-direction: column;
    display: flex;
    gap: 16px;
    backdrop-filter: blur(8px);
    transition: transform .2s ease, box-shadow .2s ease;
    background: linear-gradient(165deg, rgba(12, 18, 32, 0.95), rgba(12, 18, 32, 0.6));
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: 0 28px 48px rgba(5, 9, 18, 0.5);
}

.hero-stat .stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

.hero-stat .stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.home-section {
    margin-bottom: 48px;
}

.home-section:last-of-type {
    margin-bottom: 0;
}



.content-section:last-child .section-content {
    margin-bottom: 0px;
}


.section-content>*:first-child {
    margin-bottom: 20px;
}

.section-content>*:only-child {
    margin-bottom: 0px;
}

.home-section h2 {
    font-size: 2rem;
    margin: 0 0 14px;
}

.section-description {
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 32px;
    max-width: 720px;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.highlight-card {
    background: linear-gradient(150deg, rgba(12, 18, 32, 0.92), rgba(12, 18, 32, 0.65));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.highlight-icon {
    width: var(--header-h);
    height: var(--header-h);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.highlight-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.highlight-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.owner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.card {
    position: relative;
    background: linear-gradient(165deg, rgba(12, 18, 32, 0.95), rgba(12, 18, 32, 0.6));
    border-radius: var(--radius);
    padding: 10px;
    overflow: hidden;
    height: 100%;
}


.owner-header {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.owner-avatar {
    width: 70px;
    height: 70px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    flex: 0 0 auto;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(140deg, var(--owner-accent), rgba(255, 255, 255, 0.08));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    color: #10131a;
}

.owner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.owner-role {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.owner-card h3 {
    margin: 4px 0 0;
    font-size: 1.35rem;
}

.owner-level {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.owner-level strong {
    color: #fff;
    font-size: 1.05rem;
}

.owner-level i {
    color: var(--owner-accent);
}

.owner-tagline {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}

.owner-badges {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.owner-badges li {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.owner-profile {
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.owner-profile:hover i {
    transform: translateX(3px);
}

.owner-profile i {
    transition: transform .2s ease;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.news-card {
    background: linear-gradient(160deg, rgba(12, 18, 32, 0.92), rgba(12, 18, 32, 0.62));
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 28px 50px rgba(5, 9, 18, 0.5);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.news-image {
    position: relative;
    padding-top: 55%;
    overflow: hidden;
}

.news-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px 24px 28px;
    flex: 1;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
}

.news-tag {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.news-body h3 {
    margin: 0;
    font-size: 1.28rem;
}

.news-body p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.news-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 600;
}

.news-link i {
    transition: transform .2s ease;
}

.news-link:hover i {
    transform: translateX(4px);
}

@media (max-width: 1100px) {
    .home-hero .hero-inner {
        padding: 56px 0 44px;
    }

    .hero-tiles {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 900px) {
    .home-hero .hero-inner {
        flex-direction: column;
    }

    .hero-tiles {
        width: 100%;
    }

}

@media (max-width: 600px) {
    .home-hero {
        border-radius: 24px;
    }

    .home-hero .hero-inner {
        padding: 48px 0 32px;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn,
    .hero-actions .btn.subtle {
        flex: 1 1 auto;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .highlight-grid,
    .owner-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    padding: 40px;
    color: #fff;
    box-sizing: border-box;
}

/* --- Brand-wide button overrides (no glow, golden brand) --- */
button,
.btn,
input[type="submit"],
input[type="button"] {
    background: linear-gradient(135deg, #f6d33c, #d6a42f);
    color: #1b1e23;
    border: 1px solid #d6a42f;
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: var(--cursor-pointer, pointer);
    transition: transform .15s ease, filter .15s ease, opacity .2s;
    box-shadow: none;
    /* remove glow */
}

button:hover,
.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

button:active,
.btn:active,
input[type="submit"]:active,
input[type="button"]:active {
    transform: translateY(0);
    filter: brightness(.98);
}

.site-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.site-footer h4 {
    margin-bottom: 10px;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th,
table td {
    border: 1px solid #444;
    padding: 8px;
    text-align: left;
}

button,
.btn,
input[type="submit"],
input[type="button"] {
    background: linear-gradient(135deg, #f6d33c, #d6a42f);
    color: #1b1e23;
    border: 1px solid #d6a42f;
    padding: 10px 20px;
    border-radius: 999px;
    cursor: var(--cursor-pointer, pointer);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform .15s ease, filter .15s ease, opacity .2s;
    box-shadow: none;
}

button:hover,
.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

button:disabled,
.btn:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.page-toolbar {
    /*padding: 18px 20px;*/
    /*background: var(--inventory-toolbar-bg);*/
    border-radius: 18px;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-toolbar:first-child {
    margin-top: 0;
}

.inventory-toolbar {
    margin-top: 20px;
}

.page-toolbar .toolbar-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.page-toolbar .toolbar-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
}

.mode-button,
.filter-pill {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 999px;
    background: var(--inventory-button-bg);
    color: #fff;
    font-weight: 600;
    transition: background-color .2s ease, transform .2s ease, filter .2s ease;
    box-shadow: none;
    /* remove glow */
}

.mode-button:hover,
.filter-pill:hover {
    background: var(--inventory-button-hover-bg);
    transform: translateY(-1px);
}

.mode-button.active,
.filter-pill.active {
    background: var(--accent-color);
    color: #0c1018;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
    /* remove glow */
}

.mode-button.toggle {
    background: var(--inventory-toggle-bg);
    color: var(--inventory-toggle-color);
}

.mode-button.toggle.active {
    background: var(--inventory-toggle-active-bg);
    color: var(--inventory-toggle-active-color);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.page-toolbar .filters-row {
    width: 100%;
    gap: 18px;
}

.page-toolbar .filters-row>* {
    flex: 0 0 auto;
}

.page-toolbar .search-field {
    flex: 1 1 320px;
    min-width: 260px;
}

.page-toolbar .search-field input {
    width: 100%;
}

.page-toolbar select,
.page-toolbar input[type="text"],
.page-toolbar input[type="search"] {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 9px 7px;
    border-radius: 12px;
    min-height: 19px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.page-toolbar select {
    min-width: 190px;
}

.page-toolbar select:focus,
.page-toolbar input[type="text"]:focus,
.page-toolbar input[type="search"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(77, 208, 225, 0.3);
}

.page-toolbar .filters-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.page-toolbar .filters-actions>* {
    flex: 0 0 auto;
}

.btn.subtle {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

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

@media (max-width: 1100px) {
    .page-toolbar .search-field {
        flex-basis: 100%;
    }
}

@media (max-width: 900px) {
    .page-toolbar .filters-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .page-toolbar {
        padding: 16px;
        gap: 14px;
    }

    .mode-button,
    .filter-pill {
        padding: 6px 16px;
        font-size: 0.9rem;
    }

    .page-toolbar .filters-row {
        gap: 14px;
    }
}

@media (max-width: 520px) {
    .page-toolbar .filters-actions {
        gap: 10px;
    }

    .page-toolbar .filters-actions button,
    .page-toolbar .filters-actions .btn {
        flex: 1 1 auto;
    }
}

.store-tabs {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--inventory-toolbar-bg);
    backdrop-filter: blur(6px);
    overflow-x: auto;
    padding-bottom: 10px;
}

.store-tabs::-webkit-scrollbar {
    height: 6px;
}

.store-tabs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.store-tabs a {
    flex: 0 0 auto;
    text-decoration: none;
    color: #fff;
    padding: 7px 18px;
    border-radius: 999px;
    background: var(--inventory-button-bg);
    white-space: nowrap;
    font-weight: 600;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.store-tabs a:hover {
    background: var(--inventory-button-hover-bg);
    transform: translateY(-1px);
}

.store-tabs a.active {
    background: var(--accent-color);
    color: #0c1018;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2), 0 12px 24px rgba(77, 208, 225, 0.45);
}

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

.skin-item {
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    transition: transform .2s;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Mantém altura uniforme entre os cards */
    height: 320px;
    width: 320px;
}

.favorite-toggle {
    position: absolute;
    top: 7px;
    right: 281px;
    border: none;
    padding: 4px;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: var(--cursor-pointer, pointer);
    transition: color .2s ease, transform .2s ease;
    z-index: 2;
}

.favorite-toggle:hover {
    color: #ffe08a;
    transform: translateY(-1px);
}

.favorite-toggle.is-favorite {
    color: #ffd166;
}

.favorite-toggle.is-favorite:hover {
    color: #ffec99;
}

.favorite-toggle:disabled {
    opacity: 0.6;
    cursor: var(--cursor-default, default);
}

.favorite-toggle span {
    font-size: 22px;
    line-height: 1;
    pointer-events: none;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

/* Coins store tiles */
.coins-pack .coins-amount {
    font-size: 1.4em;
    color: #ffd700;
    margin: 8px 0 4px;
}

.coins-pack .coins-desc {
    color: #cfcfcf;
    margin-bottom: 10px;
}

.skin-item:hover {
    transform: translateY(-2px);
}

.skin-item img,
.skin-item video {
    width: 100%;
    height: 150px;
    object-fit: contain;
    display: block;
}

.media-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.media-wrapper {
    position: relative;
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    display: none;
}

.skin-name {
    margin-top: 0px;
    line-height: 1.3;
    /* Trunca nomes longos para manter proporção dos cards */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-top: 26px;
    font-size: 14px;
}

.skin-rarity {
    font-size: 0.9em;
    margin-top: 4px;
    min-height: 1.2em;
}

.skin-name.stattrack {
    color: #ff6a00;
}

.skin-extra {
    font-size: 0.8em;
    margin-top: 4px;
    min-height: 1.2em;
}

/* Empurra as ações para a base do card para layout consistente */
.skin-item form {
    margin-top: auto;
}

/* Informação de item já possuído (quando existir) */
.owned-info {
    color: #cfcfcf;
    font-size: 0.9em;
    min-height: 1.2em;
}

/* Responsivo: quebra para 2 colunas em telas menores */
@media (max-width: 520px) {
    .skin-item {
        height: auto;
        width: 100%;
    }
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a,
.pagination span {
    color: #e9e9e9;
    margin: 0 5px;
    text-decoration: none;
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid #444;
    border-radius: 4px;
}

.pagination span.ellipsis {
    border: none;
}

.case-container {
    position: relative;
    overflow: hidden;
    width: 600px;
    margin: 40px auto;
    border: 2px solid #444;
    border-radius: 8px;
    background-color: #000;
}

.case-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #ffc107;
    transform: translateX(-50%);
    z-index: 10;
}

.case-strip {
    display: flex;
}

.case-item-box {
    position: relative;
    width: 100px;
    height: 80px;
    border-right: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 100px;
}

.case-item {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.float-label {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7em;
    color: #fff;
}

.case-result {
    text-align: center;
    margin-top: 20px;
}

/* fixed-size container for result images */
.result-img {
    width: 300px;
    height: 300px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.pagination a.active {
    font-weight: bold;
    background-color: #ffc107;
    color: #1b1e23;
}

.pagination a.prev,
.pagination a.next {
    font-weight: bold;
}

.case-actions {
    text-align: center;
    margin-top: 10px;
}

.case-actions button {
    margin: 0 10px;
}

/* Rarity colors */
.rarity-consumer {
    background-color: rgba(176, 195, 217, 0.1);
    border-left: 4px solid #b0c3d9;
    color: #b0c3d9;
}

.rarity-industrial {
    background-color: rgba(94, 152, 217, 0.1);
    border-left: 4px solid #5e98d9;
    color: #5e98d9;
}

.rarity-milspec {
    background-color: rgba(75, 105, 255, 0.1);
    border-left: 4px solid #4b69ff;
    color: #4b69ff;
}

.rarity-restricted {
    background-color: rgba(136, 71, 255, 0.1);
    border-left: 4px solid #8847ff;
    color: #8847ff;
}

.rarity-classified {
    background-color: rgba(211, 44, 230, 0.1);
    border-left: 4px solid #d32ce6;
    color: #d32ce6;
}

.rarity-covert {
    background-color: rgba(235, 75, 75, 0.1);
    border-left: 4px solid #eb4b4b;
    color: #eb4b4b;
}

.rarity-contraband {
    background-color: rgba(255, 215, 0, 0.1);
    border-left: 4px solid #ffd700;
    color: #ffd700;
}

.rarity-distinguished {
    background-color: rgba(75, 105, 255, 0.1);
    border-left: 4px solid #4b69ff;
    color: #4b69ff;
}

.rarity-exceptional {
    background-color: rgba(136, 71, 255, 0.1);
    border-left: 4px solid #8847ff;
    color: #8847ff;
}

.rarity-superior {
    background-color: rgba(211, 44, 230, 0.1);
    border-left: 4px solid #d32ce6;
    color: #d32ce6;
}

.rarity-master {
    background-color: rgba(235, 75, 75, 0.1);
    border-left: 4px solid #eb4b4b;
    color: #eb4b4b;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #1b1e23;
    border: 1px solid #444;
    padding: 20px;
    text-align: center;
}

#stSelectModal .modal-content {
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
}

#stSelectModal .skin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

#stSelectModal .skin-item {
    width: auto;
}

/* Name Tag selection modal layout: fixed 3-column grid */
#ntSelectModal .modal-content {
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
}

#ntSelectModal .skin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-height: 60vh;
    overflow-y: auto;
    align-items: start;
}

#ntSelectModal .skin-item {
    width: auto;
}

#ntSelectModal .filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#stSelectModal .filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-buttons button {
    margin: 0 10px;
}

#stModal .stattrak-modal {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

#stModal .stattrak-modal form {
    margin-top: 10px;
}

#stModal .stattrak-modal #stSelected {
    margin-top: 10px;
}

/* Equipped badge */
.equipped-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: bold;
    background-color: #ffc107;
    color: #1b1e23;
}

.equipped-badge.ct {
    background-color: #007bff;
    color: #fff;
}

.equipped-badge.tr {
    background-color: #d9534f;
    color: #fff;
}

.stattrack-badge {
    display: inline-block;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: bold;
    color: #ff6a00;
    position: relative;
    bottom: 131px;
    right: -81px;
    text-shadow: 0px 1px 0 black,
        2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slot-row {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    justify-content: center;
}

.apply-sticker-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.skin-preview img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.form-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.sticker-slot {
    width: 64px;
    height: 64px;
    border: 2px dashed #444;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticker-slot img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sticker-slot button.add {
    width: 100%;
    height: 100%;
    font-size: 32px;
    background: none;
    color: #ffc107;
}

.sticker-slot .remove {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #d9534f;
    color: #fff;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: var(--cursor-pointer, pointer);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 14px;
    line-height: 1;
}

#stickerModal .modal-content.sticker-select {
    width: 60%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

#stickerModal .sticker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 60vh;
    overflow-y: auto;
}

#stickerModal .no-stickers {
    padding: 20px;
    text-align: center;
}

#stickerModal .sticker-option {
    border: 1px solid #444;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.02);
    cursor: var(--cursor-pointer, pointer);
}

#stickerModal .sticker-option img {
    width: 100%;
    height: 80px;
    object-fit: contain;
}

.skin-item .applied-stickers {
    position: absolute;
    top: 51%;
    left: 18%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 10px 8px;
    border-radius: 12px;
    z-index: 1;
    justify-content: center;
    width: max-content;
}

.skin-item .applied-stickers .sticker-chip {
    width: 42px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.skin-item .applied-stickers .sticker-chip img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.55));
    transition: transform .2s ease;
}

.skin-item .applied-stickers .sticker-chip:hover img {
    transform: scale(2.0) rotate(7deg);
}

[data-name] {
    position: relative;
}

[data-name]::after {
    content: attr(data-name);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    z-index: 10;
}

[data-name]:hover::after {
    opacity: 1;
}

.equipped-tags {
    display: flex;
    gap: 4px;
    position: absolute;
    top: 6px;
    right: 6px;
    margin: 0;
}

.item-actions {
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 8px;
}

/* Name Tag line: match .skin-extra */
.nametag-line {
    margin-top: 4px;
    font-size: 0.8em;
    line-height: 1.4;
}

.item-actions form {
    margin: 0;
}

.skin-item .equip-form {
    margin-top: auto;
}

.skin-item.selectable {
    cursor: var(--cursor-pointer, pointer);
    position: relative;
    /* anchor radio in top-right of the card */
}

.skin-item.selectable input[type="radio"] {
    position: absolute;
    top: 8px;
    right: 8px;
}

.skin-item.selectable.selected {
    border-color: #fff;
}

/* Admin panel navigation */
.admin-nav {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-nav a {
    background-color: #2d3136;
    color: #e9e9e9;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color .2s, transform .1s;
}

.admin-nav a:hover {
    background-color: #ffc107;
    color: #1b1e23;
    transform: translateY(-2px);
}

/* Admin sections */
.admin-card {
    background: #2d3136;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 12px 0;
}

.admin-card h3 {
    margin: 0 0 8px 0;
}

.admin-user-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-user-summary-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user-summary-info img,
.admin-user-avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.admin-user-avatar-placeholder {
    background: #3a3f45;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}

.admin-user-steamid {
    font-size: 0.85em;
    color: rgba(233, 233, 233, 0.7);
    margin-top: 2px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

input[type="text"],
input[type="number"],
select {
    padding: 6px;
    border: 1px solid #444;
    background-color: #2d3136;
    color: #e9e9e9;
    border-radius: 4px;
}

.floating-discord {
    position: fixed;
    bottom: var(--floating-discord-gap);
    right: var(--floating-discord-gap);
    width: var(--floating-discord-size);
    height: var(--floating-discord-size);
    border-radius: 999px;
    background: #5865f2;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 16px 36px rgba(88, 101, 242, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 950;
}

.floating-discord:hover,
.floating-discord:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(88, 101, 242, 0.55);
}

.floating-discord:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.85);
    outline-offset: 4px;
}

.floating-discord i {
    font-size: 26px;
}

#toast-container {
    position: fixed;
    bottom: var(--floating-discord-gap);
    right: var(--floating-discord-gap);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.floating-discord~#toast-container {
    bottom: calc(var(--floating-discord-gap) + var(--floating-discord-size) + 16px);
}

@media (max-width: 600px) {
    :root {
        --floating-discord-size: 52px;
        --floating-discord-gap: 16px;
    }

    .floating-discord i {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-discord {
        transition: none;
    }
}

.toast {
    background: #2d3136;
    color: #e9e9e9;
    padding: 10px 16px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.toast.success {
    background: #28a745;
}

.toast.error {
    background: #dc3545;
}

.user-menu {
    display: flex;
    align-items: center;
    position: relative;
}

.user-menu .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 10px;
}

/* Avatar upload clickable area */
.avatar-upload {
    position: relative;
    display: inline-block;
    cursor: var(--cursor-pointer, pointer);
}

.avatar-upload input[type="file"] {
    display: none;
}

.avatar-upload .avatar-preview {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid #444;
}

.avatar-upload .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.0);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.95em;
    font-weight: 600;
    letter-spacing: .3px;
    opacity: 0;
    transition: opacity .2s, background .2s;
    pointer-events: none;
}

.avatar-upload:hover .overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.35);
}

/* Profile form layout */
.form-card {
    background: #2d3136;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 16px 18px;
    max-width: 560px;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.form-row label {
    width: 100px;
    color: #cfcfcf;
}

.form-row .field {
    flex: 1;
}

.form-actions {
    margin-top: 12px;
}

/* Preferences grid */
.prefs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin: 14px 0 20px;
}

.prefs-tile {
    display: block;
    background: #2d3136;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 14px;
    color: #e9e9e9;
    text-decoration: none;
    transition: background .2s, transform .1s, border-color .2s;
}

.prefs-tile:hover {
    background: #353a40;
    transform: translateY(-1px);
    border-color: #555;
}

.prefs-tile .title {
    font-weight: 600;
    margin-bottom: 4px;
}

.prefs-tile .desc {
    opacity: .8;
    font-size: .9em;
}

.prefs-tile.active {
    border-color: #ffc107;
    box-shadow: 0 0 0 1px #ffc107 inset;
}

.user-menu .username {
    margin-left: 8px;
    cursor: var(--cursor-pointer, pointer);
}

.user-info .dropdown {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% + 8px);
    background: #2d3136;
    border: 1px solid #444;
    border-radius: 4px;
    min-width: 140px;
    z-index: 100;
}

.user-info:hover .dropdown,
.user-info.open .dropdown {
    display: block;
}

.user-info .dropdown a {
    display: block;
    padding: 8px 12px;
    color: #e9e9e9;
    text-decoration: none;
}

.user-info .dropdown a:hover {
    background: #ffc107;
    color: #1b1e23;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.server-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #2d3136;
    color: #e9e9e9;
}

.server-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.server-card .info {
    padding: 10px;
}

.server-card .copy-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #ffc107;
    color: #1b1e23;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: var(--cursor-pointer, pointer);
}

.mvp-select-form select {
    padding: 4px;
    background: #2d3136;
    border: 1px solid #444;
    color: #e9e9e9;
}
