:root {
    --bg-dark: #181A20;
    --bg-card: #22242B;
    --accent-blue: #3391ff;
    --button-blue: #3391ff;
    --button-hover: #4ba0ff;
    --text-primary: #ffffff;
    --text-secondary: #b1b8c9;
    --border-color: #2D3139;
}

/* Reset and base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.top-nav {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 0 20px;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(24,26,32,0.08);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    gap: 20px;
}

.nav-left a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: color 0.2s, background 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 7px;
}

.nav-left a i {
    font-size: 16px;
    margin-bottom: 1px;
}

.nav-left a.active {
    color: var(--accent-blue);
    background: rgba(51, 145, 255, 0.08);
}

.nav-left a:hover:not(.active) {
    color: var(--accent-blue);
    background: rgba(51, 145, 255, 0.13);
}

.balance {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 18px;
    background: rgba(51, 145, 255, 0.08);
    border-radius: 6px;
    transition: background 0.2s;
}

.balance i {
    color: var(--accent-blue);
    font-size: 17px;
}

.balance:hover {
    background: rgba(51, 145, 255, 0.17);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 26px;
    padding: 10px 0;
}

.case-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(24,26,32,0.13);
    transition: box-shadow 0.25s, transform 0.2s;
    position: relative;
}

.case-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg,rgba(51,145,255,0.06) 0%,rgba(255,255,255,0.03) 100%);
    opacity: 0;
    transition: opacity 0.35s;
}

.case-card:hover {
    transform: translateY(-4px) scale(1.016);
    box-shadow: 0 7px 28px rgba(51,145,255,0.11), 0 1.5px 7px rgba(24,26,32,0.12);
}

.case-card:hover::after {
    opacity: 1;
}

.case-image {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(170deg, #23263c 40%, #1a1d2c 100%);
    box-shadow: 0 2px 12px 0 rgba(51,145,255,0.08);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.case-image img {
    width: 83%;
    height: 83%;
    object-fit: contain;
    margin-bottom: 12px;
    margin-top: 10px;
    transition: transform 0.33s cubic-bezier(.43,.08,.35,1.47);
}

.case-card:hover .case-image img {
    transform: scale(1.07) rotate(-2deg);
}

.case-info {
    padding: 18px 18px 18px 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.case-name {
    font-size: 15.5px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #e5eaff;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

.case-card:hover .case-name {
    color: var(--accent-blue);
}

.case-price {
    font-size: 17px;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 14px;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 0.5px #1a1d2c;
}

.case-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.open-case-btn, .view-contents-btn {
    width: 100%;
    padding: 10px 0;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 
        background 0.22s cubic-bezier(.43,.08,.35,1.47), 
        box-shadow 0.27s cubic-bezier(.43,.08,.35,1.47), 
        color 0.17s cubic-bezier(.43,.08,.35,1.47),
        transform 0.14s cubic-bezier(.43,.08,.35,1.47);
    position: relative;
    border: none;
    outline: none;
    overflow: hidden;
}

.open-case-btn {
    background: linear-gradient(98deg, var(--button-blue) 45%, #4ba0ff 100%);
    color: white;
    box-shadow: 0 1px 8px 0 rgba(51,145,255,0.18);
}

.open-case-btn:hover, .open-case-btn:focus {
    background: linear-gradient(110deg, #4ba0ff 0%, #3391ff 100%);
    box-shadow: 0 0 0 2.5px #78c6ff55, 0 4px 15px rgba(51,145,255,0.13);
    transform: scale(1.037) translateY(-1.5px);
}

.open-case-btn:active {
    background: #2470c8;
    color: #e8f0fe;
    box-shadow: 0 2px 12px 0 rgba(51,145,255,0.12);
}

.open-case-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 100%; height: 100%;
    background: linear-gradient(110deg,transparent,rgba(255,255,255,0.18),transparent);
    transition: left 0.37s cubic-bezier(.43,.08,.35,1.47);
    z-index: 2;
}

.open-case-btn:hover::before {
    left: 120%;
}

@keyframes btnPulse {
    0% { box-shadow: 0 0 0 0 rgba(51,145,255,0.23);}
    70% { box-shadow: 0 0 0 10px rgba(51,145,255,0);}
    100% { box-shadow: 0 0 0 0 rgba(51,145,255,0);}
}

.open-case-btn:hover {
    animation: btnPulse 1.5s infinite;
}

.view-contents-btn {
    background: rgba(51,145,255, 0.08);
    color: var(--accent-blue);
    border: 1.5px solid rgba(51,145,255, 0.15);
    font-weight: 500;
}

.view-contents-btn:hover, .view-contents-btn:focus {
    background: rgba(51,145,255, 0.19);
    color: #fff;
    border: 1.5px solid var(--accent-blue);
    transform: scale(1.025) translateY(-1.5px);
}

.view-contents-btn:active {
    background: var(--accent-blue);
    color: #fff;
    border: 1.5px solid var(--accent-blue);
}

.view-contents-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 100%; height: 100%;
    background: linear-gradient(110deg,transparent,rgba(255,255,255,0.11),transparent);
    transition: left 0.37s cubic-bezier(.43,.08,.35,1.47);
    z-index: 2;
}

.view-contents-btn:hover::before {
    left: 120%;
}

.open-case-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(98deg, #666 45%, #777 100%);
}

/* Modal animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Case opening modal styles */
.case-opening-modal, 
.winning-item-modal,
.view-contents-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.case-opening-modal.active,
.winning-item-modal.active,
.view-contents-modal.active {
    display: flex;
}

.case-opening-content,
.winning-item-content,
.view-contents-content {
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    background: linear-gradient(180deg, var(--bg-card) 0%, #1c1e24 100%);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    border: 1px solid rgba(51, 145, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform-origin: center;
    animation: modalFadeIn 0.3s ease;
}

.spinner-container {
    position: relative;
    width: 100%;
    height: 220px; /* Slightly larger than spinner-item height */
    overflow: hidden; /* Hide items that go outside */
    background: var(--bg-dark);
}

.spinner {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(0);
}

.spinner-item {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    padding: 10px;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-right: 15px;
    position: relative;
    overflow: hidden;
}

.spinner-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px; /* Increased from 15px to 40px for more visible gradient */
    background: linear-gradient(to top, var(--rarity-color) 0%, transparent 100%);
    opacity: 0.3; /* Slightly increased from 0.2 to 0.3 for better visibility */
}

.spinner-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--rarity-color);
}

.item-name {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
    color: white;
}

.spinner-item img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.spinner-highlight {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--accent-blue);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 2; /* Ensure it's above the items */
    box-shadow: 0 0 10px rgba(51, 145, 255, 0.5);
}

.winning-item-header,
.view-contents-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.view-contents-header h2 {
    font-size: 22px;
    color: #fff;
    font-weight: 600;
}

.close-modal-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.winning-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 2px solid;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.winning-item img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.winning-item-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.wear-info {
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.contents-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 12px;
}

.contents-grid::-webkit-scrollbar {
    width: 8px;
}

.contents-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.contents-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.rarity-group {
    animation: fadeInUp 0.5s ease;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rarity-group:nth-child(1) { animation-delay: 0.1s; }
.rarity-group:nth-child(2) { animation-delay: 0.2s; }
.rarity-group:nth-child(3) { animation-delay: 0.3s; }
.rarity-group:nth-child(4) { animation-delay: 0.4s; }
.rarity-group:nth-child(5) { animation-delay: 0.5s; }

.rarity-group h3 {
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.02em;
}

.rarity-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.content-item {
    padding: 10px;
    border: 2px solid;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    transition: all 0.3s ease;
}

.content-item:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.content-item img {
    width: 125px;
    height: 125px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.content-item:hover img {
    transform: scale(1.25);
}

.content-item p {
    text-align: center;
    font-size: 14px;
    color: var(--text-primary);
    margin: 0;
}

/* Responsive tweaks */
@media (max-width: 900px) {
    .cases-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }
    .container {
        padding: 20px 5px;
    }
    .case-info {
        padding: 12px;
    }
    .top-nav {
        padding: 0 7px;
    }
    .case-opening-content,
    .winning-item-content,
    .view-contents-content {
        padding: 10px;
        min-width: unset;
    }
}

@media (max-width: 600px) {
    .winning-item {
        flex-direction: column;
        text-align: center;
    }
    
    .winning-item img {
        width: 150px;
        height: 150px;
    }
    
    .rarity-items {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    .view-contents-content {
        padding: 4px;
    }
}

.winning-item-buttons {
    display: flex;
    gap: 12px;
    padding: 15px 0 5px 0;
}

.modal-btn {
    flex: 1;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.modal-btn:hover {
    background: rgba(51, 145, 255, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.modal-btn i {
    font-size: 15px;
}

#spinner {
    display: flex;
    position: relative;
    transition: transform 3s cubic-bezier(0.12, 0.39, 0.01, 1);
    padding: 10px 0;
    height: 100%;
}

.page-container {
    display: none;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-container.active {
    display: block;
}

.nav-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1rem;
    padding: 10px 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-btn.active {
    color: white;
}

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

.inventory-item {
    background: var(--bg-card);
    border: 2px solid;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.stats-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.stats-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 20px;
}

.controls-container {
    padding: 24px 40px;
    margin: 0 auto 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center; /* Center the controls */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
    max-width: 1400px; /* Match your content width */
}

    .search-input {
    padding: 12px 16px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-family: 'Inter', sans-serif;
    min-width: 250px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.search-input:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

    .search-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.search-input:focus::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

    .sort-select {
    padding: 12px 36px 12px 16px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.sort-select:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

    .sort-select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

    .sort-select option {
    background: #1a1a1a;
    color: white;
    padding: 12px;
}

.inventory-stats {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin: 15px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.total-row {
    padding: 12px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    margin-bottom: 10px;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: transform 0.2s;
}

.stat-label {
    font-size: 0.9em;
    color: #aaa;
    font-weight: 500;
}

.stat-value {
    font-size: 0.95em;
    font-weight: 600;
    margin-left: 8px;
}

.bulk-sell {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8em;
    min-width: 60px;
}

.bulk-sell:hover {
    background: rgba(76, 175, 80, 0.3);
}

.bulk-sell:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.stat-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stats-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.total-items {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 25px;
    border-radius: 8px;
    text-align: center;
}

.total-items .count {
    font-size: 2em;
    font-weight: 700;
    color: #4CAF50;
    display: block;
}

.rarity-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.rarity-count {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 15px;
    border-radius: 6px;
    border-left: 3px solid var(--rarity-color);
}

.rarity-count .count {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--rarity-color);
    margin-right: 5px;
}

.bulk-sell-controls {
    padding: 0 20px;
    margin-bottom: 20px;
}

.bulk-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bulk-sell-btn {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.bulk-sell-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: rgba(76, 175, 80, 0.1);
    color: rgba(76, 175, 80, 0.5);
}

.bulk-sell-btn:not(:disabled):hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.4);
}

.bulk-sell-btn:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.4);
}

.bulk-sell-btn .value {
    color: #4CAF50;
    margin-left: 10px;
}

.bulk-sell-btn i {
    font-size: 0.9em;
}

/* Rarity colors */
.milspec .stat-value { color: #4b69cd; }
.restricted .stat-value { color: #8847ff; }
.classified .stat-value { color: #d32ee6; }
.covert .stat-value { color: #eb4b4b; }
.special .stat-value { color: #ffd700; }

.total-row .stat-value {
    color: #4CAF50;
    font-size: 1.1em;
}

.bulk-sell-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.bulk-sell-content {
    background: var(--bg-card, #1a1a1a);
    padding: 25px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.items-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.bulk-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bulk-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.bulk-item .price {
    margin-left: auto;
    color: #4CAF50;
}

.bulk-sell-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.bulk-sell-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

.bulk-sell-buttons .confirm {
    background: #4CAF50;
    color: white;
}

.bulk-sell-buttons .cancel {
    background: #f44336;
    color: white;
}

.discord-button {
    position: fixed;
    top: 8px;
    right: 20px;
    z-index: 9999; /* this is the important part */
    background-color: #5865F2;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 0 10px rgba(88, 101, 242, 0.4);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.discord-button:hover {
  background-color: #4752c4;
  transform: translateY(-1px);
}

.discord-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1); /* Makes the icon white */
}
