body {
    background-color: #121212;
    color: white;
    font-family: sans-serif;
    padding: 20px;
}

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

.section-card {
    background-color: #1e1e2e;
    border-radius: 8px;
    padding: 15px;
    border-bottom: 3px solid #333;
    display: flex;
    flex-direction: column;
}

.section-card-wide {
    grid-column: span 2;
}

.section-header {
    font-weight: bold;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 14px;
}

.card-body {
    display: flex;
    align-items: center;
    gap: 15px;
}

.items-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.item-sprite {
    width: 50px;
    height: 50px;
    image-rendering: pixelated;
    cursor: pointer;
    filter: grayscale(100%) brightness(30%);
    transition: 0.2s;
}

.item-sprite.obtained {
    filter: grayscale(0%) brightness(100%);
}

#progress-bar-container {
    width: 100%;
    max-width: 800px;
    margin: 10px auto;
    height: 12px;
    background-color: #2a2a2a;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #333;
}

#progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #c8a951;
    transition: width 0.4s ease;
}

#progress-label {
    text-align: center;
    font-size: 13px;
    color: #aaa;
    margin-bottom: 20px;
}

#tooltip {
    position: fixed;
    background: rgba(10, 10, 20, 0.98);
    color: white;
    padding: 12px;
    border: 1px solid #c8a951;
    border-radius: 8px;
    display: none;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    min-width: 180px;
}

.top-controls {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

#search-bar {
    padding: 8px;
    background: #1a1a2e;
    border: 1px solid #333;
    color: white;
    border-radius: 4px;
}

#reset-btn {
    background: #2a1111;
    color: #ff8888;
    border: 1px solid #442222;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
}

.page-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.nav-btn {
    text-decoration: none;
    padding: 10px 20px;
    background: #222;
    color: white;
    border-radius: 8px;
    font-weight: bold;
}

.nav-btn {
    background: #222;
    color: #888;
    border: 1px solid #444;
    padding: 8px 16px;
    cursor: pointer;
    transition: 0.3s;
}

.nav-btn.active {
    background: #fdfdfd; 
    color: #000;
    font-weight: bold;
    border: 1px solid #fff;
    box-shadow: 0 0 10px rgba(200, 169, 81, 0.5);
}

.support-container, .contact-section {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-top: 2px solid #c8a951;
}

.paypal-button {
    background-color: #ffc439;
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    display: inline-block;
}

.email-link {
    color: #00ffcc;
    text-decoration: underline;
}

#topBtn {
    display: none; 
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: #1a1a1a;
    color: #c8a951;
    border: 2px solid #c8a951;
    border-radius: 5px;
    z-index: 9999;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

#topBtn:hover {
    background-color: #c8a951;
    color: #1a1a1a;
}

.info-wrapper {
    position: relative;
    display: inline-block;
}

#info-btn {
    background: rgba(0, 0, 0, 0.5);
    color: #c8a951;
    border: 1px solid #c8a951;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

#info-btn:hover {
    background: #c8a951;
    color: #121212;
    box-shadow: 0 0 8px rgba(200, 169, 81, 0.6);
}

.info-wrapper .custom-tooltip {
    visibility: hidden;
    opacity: 0;
    width: 240px;
    background-color: #1a1a1a;
    color: #ffffff;
    text-align: left;
    border: 1px solid #c8a951;
    border-radius: 6px;
    padding: 12px;
    position: absolute;
    z-index: 999;
    top: 125%; 
    right: 0;   
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    font-size: 13px;
    line-height: 1.4;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none; 
}

.info-wrapper:hover .custom-tooltip {
    visibility: visible;
    opacity: 1;
}

/* --- BRAND NEW VISUAL FILTER STYLES --- */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: #1e1e2e;
    border: 1px solid #333;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
}

.filter-group label {
    font-size: 11px;
    font-weight: bold;
    color: #c8a951;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Custom Visual Class Box Menu Button */
.custom-select-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: #121212;
    border: 1px solid #444;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    min-width: 160px;
    height: 34px;
    box-sizing: border-box;
    user-select: none;
}

.custom-select-trigger:hover {
    border-color: #c8a951;
}

.custom-select-trigger img {
    width: 22px;
    height: 22px;
    image-rendering: pixelated;
    object-fit: contain;
}

/* Standard Dropdown fields matching the layout style */
.filter-select {
    padding: 6px 12px;
    background: #121212;
    border: 1px solid #444;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    min-width: 140px;
    height: 34px;
}

.filter-select:focus {
    border-color: #c8a951;
    outline: none;
}

/* Dropdown Menu Options Panel List */
.custom-options-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #161625;
    border: 1px solid #c8a951;
    border-radius: 6px;
    margin-top: 5px;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.7);
    width: 200px;
}

.custom-options-panel.open {
    display: block;
}

.custom-option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 13px;
}

.custom-option-item:hover {
    background: rgba(200, 169, 81, 0.15);
}

.custom-option-item img {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
    object-fit: contain;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-left: auto;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    accent-color: #c8a951;
    width: 16px;
    height: 16px;
    cursor: pointer;
}