* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'X-Heighting';
    src: url('assets/X-Heighting.otf');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'MomcakeThin';
    src: url('assets/MomcakeThin.otf');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'MomcakeBold';
    src: url('assets/MomcakeBold.otf');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html {
    min-height: 100vh;
    background: #000;
}
body {
    min-height: 100%;
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

body {
    font-family: Arial, sans-serif;
    color: white;
    padding-bottom: 70px;
    padding-top: 100px;
    position: relative;
    z-index: 0;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: rgba(3, 3, 3, 0.96);
    border-bottom: 1px solid rgba(0, 191, 255, 0.35);
    box-shadow:
        0 0 12px rgba(0, 191, 255, 0.15),
        0 0 25px rgba(0, 191, 255, 0.08);
    z-index: 1000;
}

header img {
    height: 60px;
    width: auto;
    -webkit-user-drag: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.homepage::before,
.notifications::before {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('assets/homepage.webp') center center / cover no-repeat;
}
.uploadpage::before {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('assets/upload.webp') center center / cover no-repeat;
}
.viewpage::before,
.releasenotespage::before {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('assets/viewpage.webp') center center / cover no-repeat;
}
.errorpage::before {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('assets/404.webp') center center / cover no-repeat;
}
.privacypage::before,
.termsofservicepage::before {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('assets/privacy.webp') center center / cover no-repeat;
}
.adminpage::before {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('assets/privacy.jpg') center center / cover no-repeat;
}
.imgLogo {
    height: 80px;
    width: auto;
    display: block;
}

.download-btn, button {
    background: #00bfff;
    color: white;
    padding: 12px 18px;
    border-radius: 3px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
    font-size: inherit;
    display: inline-block;
    line-height: normal;
}
.submit-btn {
    display: inline-flex;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
    justify-content: center;
    margin: 28px auto 0;
    padding: 16px 28px;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}
.discord-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #666;
    font-size: 15px;
}

.discord-divider::before,
.discord-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    background: rgba(88, 101, 242, 0.2);
    border: 2px solid rgba(88, 101, 242, 0.5);
    border-radius: 3px;
    color: white;
    text-decoration: none;
    font-family: 'MomcakeThin', sans-serif;
    font-size: 20px;
    font-weight: bold;
    box-sizing: border-box;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.discord-btn:hover {
    background: rgba(88, 101, 242, 0.35);
    border-color: rgba(88, 101, 242, 0.8);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(88, 101, 242, 0.25),
        0 0 25px rgba(88, 101, 242, 0.18),
        0 0 45px rgba(88, 101, 242, 0.12);
}

.discord-unlink-btn {
    background: rgba(88,101,242,0.2);
    border: 1px solid rgba(88,101,242,0.5);
    color: #5865F2;
    border-radius: 3px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.discord-unlink-btn:hover {
    background: rgba(88, 101, 242, 0.35);
    border-color: rgba(88, 101, 242, 0.8);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(88, 101, 242, 0.25),
        0 0 25px rgba(88, 101, 242, 0.18),
        0 0 45px rgba(88, 101, 242, 0.12);
    transform: translateY(-1px);
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 3px;
    color: white;
    text-decoration: none;
    font-family: 'MomcakeThin', sans-serif;
    font-size: 20px;
    font-weight: bold;
    box-sizing: border-box;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.google-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(255, 255, 255, 0.12),
        0 0 25px rgba(255, 255, 255, 0.08);
}

.google-unlink-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    border-radius: 3px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.google-unlink-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(255, 255, 255, 0.12),
        0 0 25px rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.mainup-btn {
    display: flex;
    font-family: 'MomcakeThin', sans-serif;
    font-size: 30px;
    justify-content: center;
    margin: 20px auto 0;
    padding: 14px 28px;
    background: rgba(0, 191, 255, 0.15);
    border: 2px solid rgba(0, 191, 255, 0.35);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.mainup-btn:hover {
    background: rgba(0, 191, 255, 0.25);
    border-color: rgba(0, 191, 255, 0.7);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(0, 191, 255, 0.25),
        0 0 25px rgba(0, 191, 255, 0.18),
        0 0 45px rgba(0, 191, 255, 0.12);
}

.remove-btn {
    background: rgba(0, 191, 255, 0.15);
    border: 2px solid rgba(0, 191, 255, 0.35);
    color: white;
    cursor: pointer;
    border-radius: 3px;
    width: 32px;
    height: 32px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.remove-btn:hover {
    background: rgba(255, 68, 68, 0.25);
    border-color: rgba(255, 68, 68, 0.7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#preview-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 8px 0 0;
}

#file-status {
    display: none;
    flex-direction: column;
    gap: 4px;
    margin: 8px 0 0;
    padding: 8px 12px;
    max-width: 100%;
    box-sizing: border-box;
    background: rgba(0, 191, 255, 0.08);
    border: 1px solid rgba(0, 191, 255, 0.25);
    border-radius: 3px;
    font-family: 'MomcakeThin', sans-serif;
    font-size: 16px;
    color: #ccc;
    overflow: hidden;
}

.pnt-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.pnt-row .checkmark {
    color: #4caf50;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.pnt-row span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.pnt-row .remove-btn {
    flex-shrink: 0;
}

.structure-heading {
    text-align: center;
    color: #fff;
    font-family: 'MomcakeThin', sans-serif;
    font-size: 26px;
    font-weight: bold;
    margin: 20px 0 12px;
}

.preview-box {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 3px;
    border: 1px solid rgba(0, 191, 255, 0.35);
}

.preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-box .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    font-size: 16px;
}

.game-select {
    display: flex;
    gap: 16px;
    margin-top: 0;
    margin-bottom: 0;
}

.game-select input[type="radio"] {
    display: none;
}

.game-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: rgba(0, 191, 255, 0.15);
    border: 2px solid rgba(0, 191, 255, 0.35);
    border-radius: 3px;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.game-card:hover {
    border-color: rgba(0, 191, 255, 0.7);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(0, 191, 255, 0.25),
        0 0 25px rgba(0, 191, 255, 0.18);
}

.game-card img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    display: block;
}

input[type="radio"]:checked + .game-card {
    background: rgba(0, 255, 100, 0.2);
    border-color: rgba(0, 255, 100, 0.7);
    box-shadow:
        0 0 12px rgba(0, 255, 100, 0.3),
        0 0 25px rgba(0, 255, 100, 0.2);
}

.structure-select {
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
}

.structure-select .custom-select-trigger {
    font-size: 16px;
    padding: 11px 16px;
}

.thumb-label {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
    margin-top: 16px !important;
    margin-bottom: 4px !important;
    margin-left: 0;
    margin-right: 0;
    background: rgba(0, 191, 255, 0.15);
    border: 2px solid rgba(0, 191, 255, 0.35);
    border-radius: 3px;
    color: white;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.thumb-label:hover {
    background: rgba(0, 191, 255, 0.25);
    border-color: rgba(0, 191, 255, 0.7);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(0, 191, 255, 0.25),
        0 0 25px rgba(0, 191, 255, 0.18);
}

.thumb-label.has-files {
    background: rgba(0, 255, 100, 0.15);
    border-color: rgba(0, 255, 100, 0.4);
}
.thumb-label.has-files:hover {
    background: rgba(0, 255, 100, 0.25);
    border-color: rgba(0, 255, 100, 0.7);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(0, 255, 100, 0.25),
        0 0 25px rgba(0, 255, 100, 0.18);
}

.structure-label {
    width: 100%;
    margin-top: 0;
    margin-bottom: 4px;
}

.structure-label select {
    width: 100%;
    padding: 10px 16px;
    border-radius: 3px;
    background: rgba(0, 191, 255, 0.15);
    border: 2px solid rgba(0, 191, 255, 0.35);
    color: white;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    outline: none;
    cursor: pointer;
    transition: 0.3s ease;
    text-align: center;
    text-align-last: center;
}

.structure-label select:hover,
.structure-label select:focus {
    border-color: rgba(0, 191, 255, 0.7);
    box-shadow:
        0 0 12px rgba(0, 191, 255, 0.25),
        0 0 25px rgba(0, 191, 255, 0.18);
}

.structure-label select option {
    background: #0a0a0a;
    color: #ccc;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
}

.category-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 10px 16px;
    background: rgba(0, 191, 255, 0.15);
    border: 2px solid rgba(0, 191, 255, 0.35);
    border-radius: 3px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: white;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    text-align: center;
}

.category-option input[type="radio"] {
    display: none;
}

.category-option:hover {
    border-color: rgba(0, 191, 255, 0.7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 12px rgba(0, 191, 255, 0.25), 0 0 25px rgba(0, 191, 255, 0.18);
}

.category-option.selected,
.category-option:has(input[type="radio"]:checked) {
    background: rgba(0, 255, 100, 0.2);
    border-color: rgba(0, 255, 100, 0.7);
    box-shadow: 0 0 12px rgba(0, 255, 100, 0.3), 0 0 25px rgba(0, 255, 100, 0.2);
}

.thumbselect, .pntselect {
    display: none;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 11px 12px;
    background: #00bfff;
    color: white;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 650;
    font-size: 14px;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}
.upload-btn:hover,
.search-form button:hover,
.submit-btn:hover,
.card-download-btn:hover,
.download-btn:hover,
.avatar-btn:hover,
.thumb-btn:hover,
.delete-account-btn:hover {
    border-color: rgba(0, 191, 255, 0.7);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(0, 191, 255, 0.25),
        0 0 25px rgba(0, 191, 255, 0.18),
        0 0 45px rgba(0, 191, 255, 0.12);
}

.report-btn:hover {
    border-color: rgba(120, 0, 0, 0.5) !important;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(120, 0, 0, 0.25),
        0 0 20px rgba(100, 0, 0, 0.15) !important;
}
#cancel-btn:hover {
    border-color: rgba(180, 180, 180, 0.4);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(180, 180, 180, 0.12),
        0 0 25px rgba(180, 180, 180, 0.08),
        0 0 45px rgba(180, 180, 180, 0.05);
}

.header-avatar {
    height: 32px;
    width: 32px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}

.avatar-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 3px;
    line-height: 0;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.avatar-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(10, 10, 10, 0.97);
    border: 1px solid rgba(0, 191, 255, 0.35);
    border-radius: 6px;
    padding: 6px 0;
    min-width: 160px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 8px 16px;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
}

.dropdown-item:hover {
    background: rgba(0, 191, 255, 0.1);
    color: #fff;
}
.dropdown-item-danger:hover {
    background: rgba(255, 82, 82, 0.15) !important;
    color: #ff5252 !important;
}
.dropdown-item-fav:hover {
    background: rgba(255, 235, 59, 0.15) !important;
    color: #ffeb3b !important;
}

.hero {
    animation: fadeInUp 0.6s ease both;
    text-align: center;
    padding: 90px 20px 50px;
}
.hero.no-animate {
    animation: none;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgb(0, 153, 255);
    font-family: 'X-Heighting', sans-serif;
    letter-spacing: 5px;
    -webkit-text-stroke: 0.01px #0093b852;
}

.hero p {
    color: #ffffff;
    font-size: 30px;
    font-family: 'MomcakeThin', sans-serif;
}

.hero-rates {
    display: inline-flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
    padding: 12px 24px;
    font-family: 'MomcakeThin', sans-serif;
    font-size: 24px;
    color: white;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 191, 255, 0.25);
    border-radius: 3px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.hero-rates.evo-active {
    border-color: rgba(0, 230, 118, 0.4);
    color: #b3ffcf;
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.12), 0 0 25px rgba(0, 230, 118, 0.06);
}
.hr-badge {
    font-size: 14px;
    font-weight: bold;
    padding: 2px 12px;
    border-radius: 999px;
    font-family: Arial, sans-serif;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.hr-badge.evo {
    background: rgba(0, 230, 118, 0.2);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.35);
    text-shadow: 0 0 8px rgba(0, 230, 118, 0.35);
    animation: evoPulse 5s ease-in-out infinite;
    transform: scale(1.0);
}
.hr-badge.normal {
    background: rgba(255, 255, 255, 0.08);
    color: #999;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
@keyframes evoPulse {
    0% { text-shadow: 0 0 4px rgba(0, 230, 118, 0.2); transform: scale(1); }
    50% { text-shadow: 0 0 10px rgba(0, 230, 118, 0.6), 0 0 20px rgba(0, 230, 118, 0.3); transform: scale(1.03); }
    100% {
        text-shadow: 0 0 4px rgba(188, 230, 0, 0.2);
        transform: scale(1);
    }
}
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hr-item {
    color: #fff;
    font-family: 'X-Heighting', sans-serif;
}
.hr-item.rate-high {
    color: #00bfff;
}
.hero-rates.evo-active .hr-item.rate-high {
    color: #00e676;
}
.hr-label {
    font-family: 'X-Heighting', sans-serif;
    color: #fff;
}
.hr-sep {
    color: #555;
}

.container {
    animation: fadeInUp 0.6s ease 0.15s both;
    width: 90%;
    max-width: 1400px;
    margin: auto;
    padding-bottom: 50px;
    font-family: 'MomcakeThin', sans-serif;
}
.container.no-animate {
    animation: none;
}

.policy-container {
    animation: fadeInUp 0.6s ease 0.15s both;
    width: 90%;
    max-width: 1400px;
    margin: auto;
    padding-bottom: 50px;
    font-family: 'MomcakeThin', sans-serif;
    font-size: 25px;
}

.policy-container h2 {
    margin-top: 40px;
}

.releasenotespage .policy-container h2 {
    font-size: 52px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgb(0, 153, 255);
    font-family: 'X-Heighting', sans-serif;
    letter-spacing: 5px;
    -webkit-text-stroke: 0.01px #0093b852;
    margin-top: 40px;
}

.policy-container ul {
    padding-left: 30px;
}

.policy-text,
.policy-text2 {
    line-height: 1.5;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    align-items: stretch;
}

.card {
    background: rgba(3, 3, 3, 0.92);
    border: 1px solid rgba(0, 191, 255, 0.35);
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: white;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
    border-color: rgba(0, 191, 255, 0.7);
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.35),
        0 0 12px rgba(0, 191, 255, 0.25),
        0 0 25px rgba(0, 191, 255, 0.18),
        0 0 45px rgba(0, 191, 255, 0.12);
}

.card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-user-drag: none;
}

.card-rating {
    position: absolute;
    left: 3px;
    top: 3px;
    background: rgba(0, 0, 0, 0.6);
    color: #fbff00;
    border-radius: 3px;
    padding: 4px 8px;
    font-size: 13px;
    backdrop-filter: blur(8px);
}

.thumb-up-indicator { color: #4caf50; }
.thumb-down-indicator { color: #f44336; }

.card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.card-content h2 {
    margin-bottom: 10px;
}
.card-download-btn {
    padding: 8px 12px;
    background: #00bfff;
    color: white;
    border-radius: 3px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.card-download-btn:hover {
    background: #33ccff;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(0, 191, 255, 0.18),
        0 0 24px rgba(0, 191, 255, 0.12);
}
.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
}
.downloads {
    font-size: 18px;
    font-variant-emoji: text;
}

.no-downloads {
    color: #777;
}

.has-downloads {
    color: #00e676;
    font-weight: bold;

    animation: downloadPulse 3s ease-in-out infinite;
}
@keyframes downloadPulse {
    0% {
        text-shadow: 0 0 4px rgba(0, 230, 118, 0.2);
        transform: scale(1);
    }
    50% {
        text-shadow:
            0 0 10px rgba(0, 230, 118, 0.6),
            0 0 20px rgba(0, 230, 118, 0.3);
        transform: scale(1.05);
    }
    100% {
        text-shadow: 0 0 4px rgba(0, 230, 118, 0.2);
        transform: scale(1);
    }
}

.author {
    color: #00bfff;
    margin-bottom: 12px;
    font-family: 'MomcakeThin', sans-serif;
    font-size: 25px;
}

.uploader-avatar {
    height: 1.2em;
    width: auto;
    vertical-align: middle;
    border-radius: 3px;
    margin-right: 4px;
}

.description {
    color: #ccc;
    line-height: 1.5;
    padding-bottom: 50px;
    margin-top: 10px;
    font-size: 18px;
    font-family: 'MomcakeThin', sans-serif;
}
.gameVersion {
    color: #d9ff00;
    font-size: 24px;
    margin-top: -5px;
}

.form-alert {
    background: rgba(255, 0, 0, 0.12);
    border: 1px solid rgba(255, 0, 0, 0.35);
    color: #ffb3b3;
    padding: 14px;
    border-radius: 3px;
    margin-bottom: 18px;
}

.form-alert ul {
    margin: 0;
    padding-left: 18px;
}

.form-container {
    display: flex;
    justify-content: center;
    padding: 28px 36px;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    background: rgba(3, 3, 3, 0.96);
    border: 1px solid rgba(0, 191, 255, 0.35);
    border-radius: 6px;
    margin-top: 40px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.form-container form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.upload-layout {
    display: flex;
    justify-content: center;
    padding: 36px 44px;
    width: 100%;
    max-width: 820px;
    margin: 30px auto;
    background: rgba(3, 3, 3, 0.96);
    border: 1px solid rgba(0, 191, 255, 0.35);
    border-radius: 8px;
    box-sizing: border-box;
    box-shadow: 0 0 12px rgba(0, 191, 255, 0.15), 0 0 25px rgba(0, 191, 255, 0.08);
}

.upload-layout form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.upload-section {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 191, 255, 0.12);
    border-radius: 6px;
    padding: 20px 24px 24px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.upload-section:hover {
    border-color: rgba(0, 191, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.06);
}

.upload-section-title {
    font-family: 'X-Heighting', sans-serif;
    font-size: 20px;
    color: #fff;
    letter-spacing: 3px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 191, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 14px;
}
.upload-section-title .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 3px;
    border: 2px solid rgba(0, 191, 255, 0.35);
    background: rgba(0, 191, 255, 0.15);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    flex-shrink: 0;
    box-sizing: border-box;
}
.upload-section-sub {
    color: #777;
    font-size: 13px;
    margin-bottom: 6px;
    margin-top: 0;
    padding-left: 42px;
}
.required-star {
    color: #ff5252;
    margin-left: 2px;
}
.upload-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}
.upload-form-grid .grid-full {
    grid-column: 1 / -1;
}
.file-btn-wrap {
    position: relative;
    margin-bottom: 8px;
}
.file-btn-wrap .file-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #00bfff;
    color: #111;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 1px;
    min-width: 18px;
    text-align: center;
    z-index: 2;
    pointer-events: none;
}

.desc-wrap {
    position: relative;
}

.desc-wrap .char-counter {
    position: absolute;
    bottom: 20px;
    right: 12px;
    color: #888;
    font-size: 13px;
    pointer-events: none;
}

form h1 {
    margin-bottom: 28px;
    font-size: 36px;
    align-items: center;
    text-shadow: 0 0 10px rgb(0, 153, 255);
    font-family: 'X-Heighting', sans-serif;
    letter-spacing: 5px;
    -webkit-text-stroke: 0.01px #0093b852;
    text-align: center;
}

label {
    display: block;
    margin: 18px 0 8px;
    color: #a5d9ff;
    font-size: 14px;
    font-weight: 600;
}

input,
textarea {
    width: 100%;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 3px;
    border: none;
    background: #1f1f1f;
    color: white;
    font-family: inherit;
    font-size: 16px;
    box-sizing: border-box;
}

textarea {
    min-height: 140px;
    resize: none;
    font-family: inherit;
    font-size: 18px;
}

textarea {
    font-family: inherit;
    font-size: 18px;
}

.viewer {
    width: 90%;
    min-width: 100px;
    font-size: 20px;
    font-family: 'MomcakeThin', sans-serif;
    max-width: 2000px;
    margin: 50px auto;
    display: flex;
    flex-flow: row wrap;
    gap: 32px;
    align-items: flex-start;
    justify-content: center;
    background: rgba(3, 3, 3, 0.92);
    border: 1px solid rgba(0, 191, 255, 0.35);
    border-radius: 8px;
    padding: 18px;
    box-shadow:
        0 0 12px rgba(0, 191, 255, 0.15),
        0 0 25px rgba(0, 191, 255, 0.08);
    position: relative;
}

.viewer-image {
    width: 100%;
    max-width: 800px;
    height: 600px;
    object-fit: cover;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35) inset, 0 0 0 1px rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.85);
    -webkit-user-drag: none;
}

.viewer-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    align-self: center;
    max-width: 100%;
}

.slider-controls {
    display: flex;
    gap: 12px;
}

.slider-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 3px;
    border: 2px solid rgb(255, 255, 255);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.slider-btn:hover {
    background: rgba(0, 191, 255, 0.18);
    border-color: rgba(0, 191, 255, 0.55);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}


.viewer-content {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.empty {
    text-align: center;
    padding: 120px;
    color: #aaa;
}

.comments-section .empty {
    padding: 16px;
    text-align: center;
    color: #666;
    font-size: 15px;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0 20px;
    flex-wrap: wrap;
}
.page-btn {
    padding: 10px 16px;
    border-radius: 3px;
    background: rgba(0, 191, 255, 0.15);
    border: 2px solid rgba(0, 191, 255, 0.35);
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: 0.25s ease;
    cursor: pointer;
}
.page-btn:hover {
    border-color: rgba(0, 191, 255, 0.7);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(0, 191, 255, 0.25);
}
.page-btn.active {
    background: #00bfff;
    border-color: #00bfff;
    cursor: default;
}
.download-btn {
    display: inline-block;
    margin-top: auto;
    padding: 14px 22px;
    background: #00bfff;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
    width: fit-content;
    white-space: nowrap;
    border-radius: 3px;
}

.action-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.action-buttons form {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
}

.bookmark-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-block;
    padding: 14px 24px;
    background: #ffc107;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 17px;
    border-radius: 0 8px 0 3px;
    z-index: 10;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
    line-height: 1;
}

.bookmark-ribbon:hover {
    background: #ffca28;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(255, 193, 7, 0.25),
        0 0 25px rgba(255, 193, 7, 0.18),
        0 0 45px rgba(255, 193, 7, 0.12);
}

.bookmark-ribbon.bookmarked {
    background: #ffb300;
}

.delete-btn {
    background: #cc3333 !important;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
}

.delete-btn:hover {
    box-shadow:
        0 0 12px rgba(204, 51, 51, 0.25),
        0 0 25px rgba(204, 51, 51, 0.18),
        0 0 45px rgba(204, 51, 51, 0.12);
}

.search-form {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.search-form input,
.search-form button {
    height: 38px;
    margin: 0;
    padding: 0 12px;
    border-radius: 3px;
    border: 2px solid rgba(0, 191, 255, 0.35);
    box-sizing: border-box;
    font-size: 16px;
    display: block;
}
.search-form input {
    background: rgba(0, 0, 0, 0.4);
    color: white;
    outline: none;
    font-weight: 500;
    font-family: inherit;
}
.search-form button {
    background: rgba(0, 191, 255, 0.15);
    color: white;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 9999;
    overflow: hidden;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 66vw;
    max-height: 66vh;
    object-fit: contain;
    border-radius: 3px;
    border: 4px solid rgba(255, 255, 255, 0.9);
    transform: scale(1);
    transition: transform 0.25s ease;
    -webkit-user-drag: none;
    cursor: zoom-in;
}

.lightbox.active img {
    transform: scale(1.5);
    cursor: zoom-out;
}

/* Lightbox inner container to stop propagation and position controls */
.lightbox-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
    margin: auto;
    box-sizing: border-box;
}

/* Controls below the image, centered */
.lightbox-controls {
    position: fixed;
    transform: none;
    display: flex;
    gap: 12px;
    margin-top: 12px;
    z-index: 10000;
    bottom: 15px;
}

/* Slightly larger circular controls for lightbox */
.lightbox .slider-btn {
    width: 56px;
    height: 56px;
    font-size: 28px;
    border-radius: 3px;
    border: 2px solid rgb(255, 255, 255);
    background: rgba(0, 0, 0, 0.6);
    color: white;
}

.lightbox .slider-btn:hover {
    background: rgba(0, 191, 255, 0.18);
    border-color: rgba(0, 191, 255, 0.55);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Close button inside the lightbox */

.meta {
    margin-top: 10px;
    color: #fff;
    font-size: 24px;
    line-height: 1.1;
}
.meta-label {
    color: #00bfff;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #121212;
}

::-webkit-scrollbar-thumb {
    background: #00bfff;
    border-radius: 10px;
    border: 2px solid #121212;
}

::-webkit-scrollbar-thumb:hover {
    background: #33ccff;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #00bfff #121212;
}

.filter-heading {
    text-align: center;
    font-size: 28px;
    margin-bottom: 0;
    color: #ffffff;
    font-family: 'X-Heighting', sans-serif;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgb(0, 153, 255);
    font-weight: normal;
}

.sort-form {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px auto 30px;
    max-width: 900px;
    background: rgba(0, 0, 0, 0);
    padding: 8px 12px;
    gap: 10px;
    flex-wrap: wrap;
}

.sort-select-wrap {
    flex: 1 1 160px;
    min-width: 0;
    position: relative;
}

.sort-form select {
    width: 100%;
    padding: 10px 16px;
    border-radius: 3px;
    background: rgba(0, 191, 255, 0.15);
    border: 2px solid rgba(0, 191, 255, 0.35);
    color: white;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    outline: none;
    cursor: pointer;
    transition: 0.3s ease;
    text-align: center;
    text-align-last: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.sort-form select:hover,
.sort-form select:focus {
    border-color: rgba(0, 191, 255, 0.7);
    box-shadow:
        0 0 12px rgba(0, 191, 255, 0.25),
        0 0 25px rgba(0, 191, 255, 0.18);
}

.sort-form select option {
    background: #0a0a0a;
    color: #ccc;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 0;
    text-align: center;
}

.tag-edit-select {
    width: 100%;
    padding: 10px 16px;
    margin-bottom: 6px;
    border-radius: 3px;
    background: rgba(0, 191, 255, 0.15);
    border: 2px solid rgba(0, 191, 255, 0.35);
    color: white;
    font-family: 'MomcakeThin', sans-serif;
    font-size: 20px;
    font-weight: bold;
    outline: none;
    cursor: pointer;
    transition: 0.3s ease;
    text-align: center;
    text-align-last: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.tag-edit-select:hover,
.tag-edit-select:focus {
    border-color: rgba(0, 191, 255, 0.7);
    box-shadow: 0 0 12px rgba(0, 191, 255, 0.25), 0 0 25px rgba(0, 191, 255, 0.18);
}

.tag-edit-select option {
    background: #0a0a0a;
    color: #ccc;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
}

/* Custom dropdown */
.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    width: 100%;
    padding: 10px 16px;
    border-radius: 3px;
    background: rgba(0, 191, 255, 0.15);
    border: 2px solid rgba(0, 191, 255, 0.35);
    color: white;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    position: relative;
}

.custom-select-trigger::after {
    content: '▾';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
}

.custom-select-trigger:hover,
.custom-select-trigger:focus {
    border-color: rgba(0, 191, 255, 0.7);
    box-shadow:
        0 0 12px rgba(0, 191, 255, 0.25),
        0 0 25px rgba(0, 191, 255, 0.18);
}

.custom-select-trigger.selected {
    background: rgba(0, 255, 100, 0.15);
    border-color: rgba(0, 255, 100, 0.4);
}
.custom-select-trigger.selected:hover {
    background: rgba(0, 255, 100, 0.25);
    border-color: rgba(0, 255, 100, 0.7);
    box-shadow:
        0 0 12px rgba(0, 255, 100, 0.25),
        0 0 25px rgba(0, 255, 100, 0.18);
}

.custom-select-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: #0a0a0a;
    border: 2px solid rgba(0, 191, 255, 0.35);
    border-top: none;
    border-radius: 0 0 3px 3px;
    max-height: 260px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-select-options.open {
    display: block;
}

.custom-select-options.open-up {
    top: auto;
    bottom: 100%;
    border-top: 2px solid rgba(0, 191, 255, 0.35);
    border-bottom: none;
    border-radius: 3px 3px 0 0;
}

.custom-option {
    padding: 10px 16px;
    color: #ccc;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}

.custom-option:hover {
    background: rgba(0, 191, 255, 0.15);
    color: white;
}

.custom-option.selected {
    color: white;
    background: rgba(0, 191, 255, 0.25);
}

.custom-option-group-header {
    padding: 6px 16px;
    color: rgba(0, 191, 255, 0.8);
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(0, 191, 255, 0.2);
    pointer-events: none;
    text-align: center;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(3, 3, 3, 0.96);
    border-top: 1px solid rgba(0, 191, 255, 0.35);
    box-shadow:
        0 0 12px rgba(0, 191, 255, 0.15),
        0 0 25px rgba(0, 191, 255, 0.08);
    z-index: 1000;
}
.footer-left {
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-sep {
    color: #555;
}
.footer-status {
    font-size: 13px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
}

/* ONLINE */
.footer-status.online {
    color: #00e676;
    border-color: rgba(0, 230, 118, 0.35);
    text-shadow:
        0 0 8px rgba(0, 230, 118, 0.35);
        animation: onlinePulse 5s ease-in-out infinite;
}
@keyframes onlinePulse {
    0% {
        text-shadow: 0 0 4px rgba(0, 230, 118, 0.2);
        transform: scale(1);
    }
    50% {
        text-shadow:
            0 0 10px rgba(0, 230, 118, 0.6),
            0 0 20px rgba(0, 230, 118, 0.3);
        transform: scale(1.03);
    }
    100% {
        text-shadow: 0 0 4px rgba(0, 230, 118, 0.2);
        transform: scale(1);
    }
}

/* MAINTENANCE */
.footer-status.maintenance {
    color: #ffcc00;
    border-color: rgba(255, 204, 0, 0.35);
    text-shadow:
        0 0 8px rgba(255, 204, 0, 0.35);
        animation: maintenancePulse 5s ease-in-out infinite;
}
@keyframes maintenancePulse {
    0% {
        text-shadow: 0 0 4px rgba(188, 230, 0, 0.2);
        transform: scale(1);
    }
    50% {
        text-shadow:
            0 0 10px rgba(255, 204, 0, 0.6),
            0 0 20px rgba(255, 204, 0, 0.3);
        transform: scale(1.03);
    }
    100% {
        text-shadow: 0 0 4px rgba(0, 230, 118, 0.2);
        transform: scale(1);
    }
}


/* OFFLINE */
.footer-status.offline {
    color: #ff5252;
    border-color: rgba(255, 82, 82, 0.35);
    text-shadow:
        0 0 8px rgba(255, 82, 82, 0.35);
        animation: offlinePulse 5s ease-in-out infinite;
}
@keyframes offlinePulse {
    0% {
        text-shadow: 0 0 4px rgba(255, 82, 82, 0.2);
        transform: scale(1);
    }
    50% {
        text-shadow:
            0 0 10px rgba(255, 82, 82, 0.6),
            0 0 20px rgba(255, 82, 82, 0.3);
        transform: scale(1.03);
    }
    100% {
        text-shadow: 0 0 4px rgba(255, 82, 82, 0.2);
        transform: scale(1);
    }
}

.footer-info {
    color: #ccc;
    font-size: 13px;
}
.social-icon {
    width: 11px !important;
    height: 11px !important;
    align-items: center;
}

footer a {
    color: #00bfff;
    text-decoration: none;
    font-size: 13px;
}

/* Account/Profile page layout */
.account-layout {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px 80px;
    align-items: flex-start;
}

.account-content {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 1000px;
    font-family: 'MomcakeThin', sans-serif;
    background: rgba(3, 3, 3, 0.92);
    border: 1px solid rgba(0, 191, 255, 0.35);
    border-radius: 8px;
    padding: 24px;
    box-shadow:
        0 0 12px rgba(0, 191, 255, 0.15),
        0 0 25px rgba(0, 191, 255, 0.08);
}

.account-content .grid {
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.account-content .grid .card-content {
    padding: 10px 12px;
}
.account-content .grid .card-content h2 {
    font-size: 18px;
    margin-bottom: 6px;
}
.account-content .grid .card-footer {
    padding-top: 6px;
    flex-wrap: wrap;
    gap: 6px;
}
.account-content .grid .card-rating {
    font-size: 13px;
    padding: 2px 6px;
}
.account-content .grid .card .description {
    font-size: 14px;
    margin: 2px 0;
}

.structure-group {
    margin-bottom: 32px;
}
.structure-group-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 191, 255, 0.25);
}
.structure-group-title {
    font-family: 'MomcakeThin', sans-serif;
    font-size: 24px;
    font-weight: normal;
    color: #ffffff;
    margin: 0;
}
.structure-count {
    font-family: 'MomcakeThin', sans-serif;
    font-size: 20px;
    color: rgba(255,255,255,0.5);
}
.view-all-btn {
    margin-left: auto;
    font-family: 'MomcakeThin', sans-serif;
    font-size: 17px;
    color: #00bfff;
    text-decoration: none;
    transition: color 0.2s;
}
.view-all-btn:hover {
    color: #33ccff;
}

.scroll-wrapper {
    position: relative;
    padding: 0 44px;
}
.scroll-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scroll-container .card {
    flex: 0 0 auto;
    width: 220px;
    scroll-snap-align: start;
}
.scroll-container .card .card-image {
    aspect-ratio: 5 / 3;
}
.scroll-container .card .card-content {
    padding: 8px 10px;
}
.scroll-container .card .card-footer {
    padding-top: 4px;
}
.scroll-container .card .downloads {
    font-size: 15px;
}
.scroll-container.mask-both {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 24px, black calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 24px, black calc(100% - 24px), transparent 100%);
}
.scroll-container.mask-left {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 24px, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 24px, black 100%);
}
.scroll-container.mask-right {
    -webkit-mask-image: linear-gradient(to right, black 0%, black calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, black 0%, black calc(100% - 24px), transparent 100%);
}
.scroll-container::-webkit-scrollbar {
    display: none;
}
.scroll-container .card {
    flex: 0 0 auto;
    width: 220px;
}
.scroll-container .card .card-image {
    aspect-ratio: 5 / 3;
}
.scroll-container .card .card-content {
    padding: 8px 10px;
}
.scroll-container .card .card-content h2 {
    font-size: 17px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.scroll-container .card .description {
    display: none;
}
.scroll-container .card .card-footer {
    padding-top: 4px;
}
.scroll-container .card .downloads {
    font-size: 15px;
}
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(0, 191, 255, 0.35);
    border-radius: 3px;
    background: rgba(0, 191, 255, 0.15);
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.scroll-arrow:hover {
    background: rgba(0, 191, 255, 0.25);
    border-color: rgba(0, 191, 255, 0.7);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(0, 191, 255, 0.18),
        0 0 24px rgba(0, 191, 255, 0.12);
}
.scroll-left {
    left: 4px;
}
.scroll-right {
    right: 4px;
}
    display: flex;
    gap: 6px;
    margin-left: auto;
}
.card-action-btn {
    padding: 3px 8px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: bold;
    font-size: 11px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-block;
    font-family: inherit;
}
.card-action-btn.edit-btn {
    background: #00bfff;
    color: white;
}
.card-action-btn.edit-btn:hover {
    background: #33ccff;
}
.card-action-btn.delete-btn {
    background: #c62828;
    color: white;
    transition: background 0.2s, box-shadow 0.2s;
}
.card-action-btn.delete-btn:hover {
    background: #e53935;
    box-shadow: 0 0 8px rgba(198, 40, 40, 0.6);
}

.account-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: rgba(3, 3, 3, 0.92);
    border: 1px solid rgba(0, 191, 255, 0.35);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow:
        0 0 12px rgba(0, 191, 255, 0.15),
        0 0 25px rgba(0, 191, 255, 0.08);
}

.account-sidebar h1 {
    color: #fff;
    font-family: 'MomcakeThin', sans-serif;
    font-size: 24px;
    margin: 12px 0 16px;
}

.profile-avatar-border {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border: 3px solid rgba(0, 191, 255, 0.5);
    overflow: hidden;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-click-label {
    position: relative;
    display: block;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border: 3px solid rgba(0, 191, 255, 0.5);
    overflow: hidden;
    cursor: pointer;
}

.avatar-click-label .profile-avatar {
    border: none;
    border-radius: 0;
}

.avatar-hover-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 14px;
    font-family: 'MomcakeThin', sans-serif;
    opacity: 0;
    transition: opacity 0.2s;
}

.avatar-click-label:hover .avatar-hover-text {
    opacity: 1;
}

.account-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.stat-label {
    color: #888;
    font-size: 15px;
}

.stat-value {
    color: #00bfff;
    font-size: 14px;
    font-weight: bold;
}

.edit-username-link {
    background: none;
    border: none;
    color: #00bfff;
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-decoration: none;
}

.edit-username-link:hover {
    text-decoration: none;
}

.account-email {
    color: #888;
    font-size: 13px;
    margin-bottom: 16px;
}

.bookmarks-sidebar-btn {
    display: block;
    text-align: center;
    margin-top: 16px;
    padding: 10px;
    background: #ffeb3b;
    color: #000;
    border: none;
    border-radius: 3px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.2s, transform 0.25s ease, box-shadow 0.25s ease;
}

.bookmarks-sidebar-btn:hover {
    background: #ffca28;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(255, 193, 7, 0.25),
        0 0 25px rgba(255, 193, 7, 0.18),
        0 0 45px rgba(255, 193, 7, 0.12);
}

.delete-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 82, 82, 0.3);
}

.delete-section-title {
    color: #ff5252;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.delete-password-input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 3px;
    border: 1px solid rgba(255, 82, 82, 0.3);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 13px;
    box-sizing: border-box;
    margin-bottom: 8px;
}

.delete-password-input:focus {
    outline: none;
    border-color: #ff5252;
}

.delete-account-btn {
    width: 100%;
    padding: 10px;
    background: #c62828;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.2s, transform 0.25s ease, box-shadow 0.25s ease;
}

.delete-account-btn:hover {
    background: #e53935;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(198, 40, 40, 0.5);
}

.creator-badge {
    color: #ff5252;
    font-weight: bold;
}

.uploader-badge {
    color: #ffeb3b;
    font-size: 12px;
    font-weight: normal;
}

/* ── Profile ── */
.profile-filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    line-height: 1;
}
.profile-search-wrap {
    position: relative;
    width: 280px;
    max-width: 100%;
    height: 34px;
}
.profile-search-wrap input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 34px;
    padding: 0 12px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(0,191,255,0.25);
    border-radius: 3px;
    color: #fff;
    font-size: 13px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.profile-search-wrap input:focus {
    outline: none;
    border-color: rgba(0,191,255,0.6);
}
.profile-filter-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.profile-filter-tabs .filter-label {
    font-size: 12px;
    color: #666;
    margin-right: 2px;
}
.profile-filter-btn {
    height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(0,191,255,0.2);
    border-radius: 3px;
    background: transparent;
    color: #888;
    font-size: 13px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    transition: 0.2s;
    line-height: 1;
    box-sizing: border-box;
}
.profile-filter-btn:hover {
    border-color: rgba(0,191,255,0.5);
    color: #ccc;
}
.profile-filter-btn.active {
    background: rgba(0,191,255,0.15);
    border-color: rgba(0,191,255,0.5);
    color: #00bfff;
}
.profile-sort-wrap select {
    height: 34px;
    padding: 0 10px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(0,191,255,0.25);
    border-radius: 3px;
    color: #ccc;
    font-size: 13px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    box-sizing: border-box;
    text-align: center;
    text-align-last: center;
}
.profile-sort-wrap select:focus {
    outline: none;
    border-color: rgba(0,191,255,0.6);
}
.profile-sort-wrap {
    position: relative;
    min-width: 160px;
}
.profile-custom-select {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    height: 34px;
    padding: 0 10px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(0,191,255,0.25);
    border-radius: 3px;
    color: #ccc;
    font-size: 13px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    box-sizing: border-box;
    user-select: none;
    white-space: nowrap;
}
.profile-custom-select:hover {
    border-color: rgba(0,191,255,0.6);
}
.profile-custom-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: #0a0a0a;
    border: 1px solid rgba(0,191,255,0.35);
    border-radius: 3px;
    margin-top: 2px;
    overflow: hidden;
}
.profile-custom-options.open {
    display: block;
}
.profile-custom-option {
    padding: 8px 10px;
    color: #ccc;
    font-size: 13px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s;
}
.profile-custom-option:hover {
    background: rgba(0,191,255,0.15);
    color: #fff;
}
.profile-custom-option.active {
    color: #00bfff;
    font-weight: bold;
}
.profile-sort-wrap select option {
}


.profile-avatar-wrap {
    width: 140px;
    height: 140px;
    margin: 0 auto 16px;
    border: 3px solid rgba(0, 191, 255, 0.5);
    overflow: hidden;
}
.profile-avatar-wrap {
    position: relative;
    border-radius: 3px;
}
.profile-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.profile-avatar-wrap:hover span {
    opacity: 1 !important;
}
.profile-info-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}
.profile-info-card .stat-item {
    background: transparent;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.profile-info-card .stat-item:last-child {
    border-bottom: none;
}
.profile-name {
    font-family: 'MomcakeThin', sans-serif;
    font-size: 32px;
    color: #fff;
    margin: 0 0 4px;
    word-break: break-word;
}
.profile-name .creator-badge {
    font-size: 18px;
}
.profile-stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 16px;
}
.profile-stat-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 191, 255, 0.15);
    border-radius: 6px;
    padding: 14px 12px;
    text-align: center;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.profile-stat-card:hover {
    border-color: rgba(0, 191, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.08);
}
.profile-stat-card .stat-number {
    display: block;
    font-family: 'MomcakeThin', sans-serif;
    font-size: 26px;
    color: #00bfff;
    line-height: 1.2;
}
.profile-stat-card .stat-label {
    display: block;
    font-size: 14px;
    color: #888;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.profile-joined {
    color: #666;
    font-size: 17px;
    margin: 6px 0 0;
}
.profile-joined span {
    color: #00bfff;
}

/* ── Account Page ── */
.account-sidebar-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.account-sidebar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.account-section-title {
    font-family: 'MomcakeThin', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #555;
    margin-bottom: 12px;
    text-align: left;
}
.account-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 4px;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}
.account-sidebar-link:hover {
    background: rgba(0, 191, 255, 0.08);
    color: #fff;
}
.account-sidebar-link.fav-link:hover {
    background: rgba(255, 235, 59, 0.15);
    color: #ffeb3b;
}
.account-sidebar-link.logout-link {
    color: #888;
}
.account-sidebar-link.logout-link:hover {
    background: rgba(255,255,255,0.04);
    color: #ff6b6b;
}
.account-sidebar-link.discord-link {
    background: rgba(88, 101, 242, 0.12);
    border: 1px solid rgba(88, 101, 242, 0.3);
    color: #8ea1e1;
}
.account-sidebar-link.discord-link:hover {
    background: rgba(88, 101, 242, 0.2);
    border-color: rgba(88, 101, 242, 0.5);
}
.account-sidebar-link.discord-linked {
    background: rgba(88, 101, 242, 0.08);
    border: 1px solid rgba(88, 101, 242, 0.2);
    padding: 10px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #8ea1e1;
    font-size: 15px;
}
.account-sidebar-link.discord-linked .discord-unlink-btn {
    background: rgba(255, 82, 82, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 82, 82, 0.25);
    border-radius: 3px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}
.account-sidebar-link.discord-linked .discord-unlink-btn:hover {
    background: rgba(255, 82, 82, 0.25);
}
.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 12px 0;
}
.account-msg {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    text-align: left;
}
.account-msg.success {
    background: rgba(76, 175, 80, 0.12);
    color: #66bb6a;
    border: 1px solid rgba(76, 175, 80, 0.2);
}
.account-msg.error {
    background: rgba(255, 82, 82, 0.12);
    color: #ff6b6b;
    border: 1px solid rgba(255, 82, 82, 0.2);
}
.account-msg.info {
    background: rgba(0, 191, 255, 0.1);
    color: #4fc3f7;
    border: 1px solid rgba(0, 191, 255, 0.15);
}
.username-display-row {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 4px;
}
.username-display-row h1 {
    margin: 0;
}
.edit-username-icon {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    padding: 2px;
    font-size: 14px;
    transition: color 0.2s;
    line-height: 1;
}
.edit-username-icon:hover {
    color: #00bfff;
}
.username-form-inline {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
}
.username-input {
    padding: 6px 10px;
    border-radius: 3px;
    border: 1px solid rgba(0, 191, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 14px;
    width: 160px;
    font-family: inherit;
}
.username-input:focus {
    outline: none;
    border-color: #00bfff;
}
.save-username-btn {
    padding: 6px 14px;
    background: rgba(0, 191, 255, 0.2);
    color: #00bfff;
    border: 1px solid rgba(0, 191, 255, 0.35);
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: background 0.2s;
}
.save-username-btn:hover {
    background: rgba(0, 191, 255, 0.3);
}
.cancel-username-btn {
    padding: 6px 10px;
    background: transparent;
    color: #666;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    transition: color 0.2s, border-color 0.2s;
}
.cancel-username-btn:hover {
    color: #999;
    border-color: rgba(255,255,255,0.2);
}
.delete-section {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* ── Section Tabs ── */
.profile-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 0;
}
.profile-tab {
    padding: 10px 20px;
    font-family: 'MomcakeThin', sans-serif;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    margin-bottom: -1px;
}
.profile-tab:hover {
    color: #aaa;
}
.profile-tab.active {
    color: #00bfff;
    border-bottom-color: #00bfff;
}

.thumbs-rating {
    display: flex;
    gap: 12px;
    margin: 12px 0 8px;
    align-items: center;
}

.thumbs-form {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    display: inline;
}

.thumb-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #aaa;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        color 0.15s;
}

.notif-bell {
    color: #00bfff;
    display: inline-block;
    position: relative;
    transition:
        transform 0.25s ease,
        color 0.15s;
}



.thumb-up.active {
    color: #4caf50;
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.thumb-down.active {
    color: #f44336;
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: #ff5252;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    padding: 0 4px;
}

.notif-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

.notif-row {
    display: flex;
    align-items: stretch;
    border-radius: 3px;
    transition: background 0.15s;
}

.notif-row.unread {
    background: rgba(0, 191, 255, 0.04);
}

.notif-row-content {
    display: flex;
    flex: 1;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
}

.notif-row-link {
    text-decoration: none;
}

.notif-row-actions {
    margin-left: auto;
    display: flex;
    align-items: stretch;
}

.notif-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.notif-body {
    flex: 1;
    min-width: 0;
}

.notif-text {
    color: #ccc;
    font-size: 19px;
    line-height: 1.5;
    display: block;
    text-align: left;
}

.notif-text strong {
    color: #fff;
}

.notif-date {
    color: #666;
    font-size: 13px;
    display: block;
    margin-top: 3px;
}

.notif-mark-form,
.notif-delete-form {
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.notif-mark-btn {
    background: rgba(0, 0, 0, 0.15);
    border: none;
    color: #555;
    cursor: pointer;
    padding: 0 14px;
    font-size: 18px;
    border-radius: 0;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    font-family: inherit;
}

.notif-mark-btn:hover {
    background: rgba(0, 191, 255, 0.15);
    color: #00bfff;
}

.notif-delete-btn {
    background: rgba(0, 0, 0, 0.15);
    border: none;
    color: #555;
    cursor: pointer;
    padding: 0 14px;
    font-size: 24px;
    border-radius: 0 3px 3px 0;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    font-family: inherit;
}

.notif-delete-btn:hover {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    display: flex;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: rgba(3, 3, 3, 0.92);
    border: 1px solid rgba(0, 191, 255, 0.35);
    border-radius: 4px;
    padding: 28px 32px 20px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.15);
}
.modal-box.modal-danger {
    border-color: #ff5252;
    box-shadow: 0 0 30px rgba(255, 82, 82, 0.2);
}

.modal-message {
    color: #ddd;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    padding: 10px 28px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.15s;
}

.modal-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-cancel:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.modal-confirm {
    background: #ff5252;
    color: #fff;
    border: 1px solid #ff5252;
}

.modal-confirm:hover {
    background: #ff1744;
    border-color: #ff1744;
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.25),
        0 0 12px rgba(255, 23, 68, 0.4);
}

.modal-box.modal-discord {
    border-color: rgba(114, 137, 218, 0.5);
    box-shadow: 0 0 30px rgba(114, 137, 218, 0.2);
}

.modal-confirm-discord {
    background: #5865f2;
    color: #fff;
    border: 1px solid #5865f2;
}

.modal-confirm-discord:hover {
    background: #7289da;
    border-color: #7289da;
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.25),
        0 0 12px rgba(114, 137, 218, 0.4);
}

.modal-box.modal-google {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.modal-confirm-google {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.modal-confirm-google:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.25),
        0 0 12px rgba(255, 255, 255, 0.15);
}

.modal-btn {
    padding: 10px 28px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.comment {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    margin-bottom: 4px;
}



.comment-replies {
    margin-left: 46px;
    padding-left: 16px;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
}

.comment-avatar-wrap {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

.comment-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.comment-author {
    color: #00bfff;
    font-weight: 600;
    font-size: 13px;
}

.comment-date {
    color: #666;
    font-size: 12px;
}

.comment-body {
    color: #ddd;
    font-size: 14px;
    line-height: 1.5;
    margin: 2px 0 6px;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.vote-group {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.vote-btn {
    text-decoration: none;
    font-size: 18px;
    color: #666;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 2px;
    transition: color 0.15s;
}

.vote-btn:hover {
    color: #00bfff;
}

.vote-btn.like.voted {
    color: #4caf50;
}

.vote-btn.dislike.voted {
    color: #ff5252;
}

.vote-count {
    color: #888;
    font-size: 13px;
    min-width: 24px;
    text-align: center;
}

.vote-count.positive {
    color: #4caf50;
}

.vote-count.negative {
    color: #ff5252;
}

.reply-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 2px;
    transition: color 0.15s;
}

.reply-btn:hover {
    color: #00bfff;
}

.comment-delete-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 2px;
    transition: color 0.15s;
}

.comment-delete-btn:hover {
    color: #ff2222;
}

.reply-form textarea {
    width: 100%;
    padding: 8px;
    font-size: 13px;
    color: #ccc;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 3px;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 0;
}

.dye-comments-row {
    display: flex;
    gap: 20px;
    align-items: stretch;
    width: 90%;
    max-width: 2000px;
    margin: 30px auto;
}

.dye-comments-col {
    flex: 1;
    min-width: 0;
}

.dye-comments-col .dye-grid-wrapper,
.dye-comments-col .comments-wrapper {
    width: 100%;
    margin: 0;
}

.dye-grid-wrapper,
.comments-wrapper {
    width: 90%;
    max-width: 2000px;
    margin: 30px auto;
    background: rgba(3, 3, 3, 0.92);
    border: 1px solid rgba(0, 191, 255, 0.35);
    border-radius: 8px;
    padding: 18px;
    box-shadow:
        0 0 12px rgba(0, 191, 255, 0.15),
        0 0 25px rgba(0, 191, 255, 0.08);
}

.dye-grid-wrapper h3,
.comments-section h2 {
    color: #fff;
    font-family: 'MomcakeThin', sans-serif;
    font-size: 24px;
    margin-bottom: 16px;
}

.char-counter {
    position: absolute;
    bottom: 24px;
    right: 10px;
    font-size: 12px;
    color: #888;
    pointer-events: none;
    z-index: 1;
}

.dye-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
}

.dye-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 4px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: #ccc;
    cursor: default;
    transition: border-color 0.15s, background 0.15s;
    text-align: center;
}

.dye-item:hover {
    border-color: rgba(0, 191, 255, 0.4);
    background: rgba(0, 191, 255, 0.06);
}

.dye-swatch {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.dye-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    pointer-events: none;
}



.dye-name {
    font-size: 15px;
    color: #fff;
    line-height: 1.15;
    word-break: break-word;
}

/* ── Converter page ── */

.convert-container {
    width: 92%;
    max-width: 1200px;
    margin: 40px auto;
    background: rgba(3, 3, 3, 0.92);
    border: 1px solid rgba(0, 191, 255, 0.35);
    border-radius: 8px;
    padding: 28px 36px;
    box-sizing: border-box;
    font-family: 'MomcakeThin', sans-serif;
}

.convert-container form {
    width: 100%;
    box-sizing: border-box;
}

.convert-subtitle {
    color: #888;
    font-size: 22px;
    text-align: center;
    margin-bottom: 28px;
}

.convert-drop-zone {
    display: block;
    border: 2px dashed rgba(0, 191, 255, 0.35);
    border-radius: 8px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s;
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.convert-drop-zone:hover,
.convert-drop-zone.dragover {
    border-color: rgba(0, 191, 255, 0.7);
    background: rgba(0, 191, 255, 0.05);
}

.convert-drop-zone input[type="file"] {
    display: none;
}

.convert-drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.convert-drop-icon {
    color: rgba(0, 191, 255, 0.5);
    margin-bottom: 4px;
}

.convert-drop-text {
    color: #ccc;
    font-size: 18px;
}

.convert-drop-or {
    color: #666;
    font-size: 13px;
}

.convert-drop-btn {
    display: inline-block;
    padding: 8px 24px;
    background: #00bfff;
    color: white;
    border-radius: 3px;
    font-weight: bold;
    font-size: 14px;
    margin-top: 4px;
}

.convert-file-selected {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    color: #4caf50;
}

.convert-reselect-btn {
    background: rgba(0, 191, 255, 0.15);
    border: 1px solid rgba(0, 191, 255, 0.35);
    color: #00bfff;
    padding: 4px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
}

.convert-reselect-btn:hover {
    background: rgba(0, 191, 255, 0.25);
}

.convert-preview-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    justify-content: center;
    align-items: flex-start;
}

.convert-preview-box {
    flex: 1;
    max-width: 500px;
    min-width: 0;
}

.convert-preview-label {
    text-align: center;
    color: #aaa;
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.convert-preview-frame {
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    overflow: hidden;
    max-height: 500px;
    background: #d4d4d4;
}

.convert-preview-frame.ingame {
    max-height: 500px;
}

.convert-preview-frame canvas {
    display: block;
}
#ingame-preview-frame canvas {
    width: 100% !important;
    height: 100% !important;
}

.crop-container {
    position: relative;
    display: inline-block;
    width: 100%;
    line-height: 0;
    max-height: 496px;
    overflow: hidden;
}

.crop-rect {
    position: absolute;
    z-index: 2;
    border: 2px solid #fff;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
    cursor: move;
    touch-action: none;
    box-sizing: border-box;
    pointer-events: auto;
}

.crop-rect.dragging {
    border-color: #00bfff;
}

.crop-guide-h,
.crop-guide-v {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    display: none;
}
.crop-guide-h {
    left: 0;
    right: 0;
    height: 0;
    border-top: 1px dashed #9b59b6;
}
.crop-guide-v {
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 1px dashed #9b59b6;
}

.crop-handle {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 2px solid #00bfff;
    border-radius: 3px;
    z-index: 3;
    box-sizing: border-box;
}
.crop-handle-br {
    right: -7px;
    bottom: -7px;
    cursor: nwse-resize;
}
.crop-handle-tl {
    left: -7px;
    top: -7px;
    cursor: nwse-resize;
}

.convert-controls {
    margin-top: 8px;
}

.convert-controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.convert-control-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.convert-control-item .structure-select {
    min-width: 320px;
}


.convert-control-item .custom-select-trigger {
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    line-height: 34px;
    display: flex;
    align-items: center;
}

.convert-ctrl-label {
    display: inline-block;
    height: 36px;
    line-height: 36px;
    color: #888;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.convert-game-btns {
    display: inline-flex;
    gap: 0;
    height: 36px;
    align-items: center;
}

.convert-game-btns input[type="radio"] {
    display: none;
}

.convert-game-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    height: 36px;
    background: rgba(0, 191, 255, 0.12);
    border: 1px solid rgba(0, 191, 255, 0.3);
    color: #aaa;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    line-height: 1;
    margin-top: 8px;
    box-sizing: border-box;
}

.convert-game-btn + .convert-game-btn {
    margin-left: -1px;
}

.convert-game-btn:first-of-type {
    border-radius: 4px 0 0 4px;
}

.convert-game-btn:last-of-type {
    border-radius: 0 4px 4px 0;
}

.convert-game-btn:hover {
    background: rgba(0, 191, 255, 0.2);
    color: #fff;
}

.convert-game-btn.active,
.convert-game-btns input[type="radio"]:checked + .convert-game-btn {
    background: rgba(0, 191, 255, 0.3);
    border-color: #00bfff;
    color: #fff;
}

.game-version-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    padding: 0 4px;
    height: 28px;
    background: rgba(0, 191, 255, 0.3);
    border: 1px solid #00bfff;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    border-radius: 4px;
    line-height: 1;
    box-sizing: border-box;
}

.structure-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    height: 28px;
    background: rgba(0, 191, 255, 0.3);
    border: 1px solid #00bfff;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    border-radius: 4px;
    line-height: 1;
    box-sizing: border-box;
    text-transform: capitalize;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    height: 28px;
    font-size: 13px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    border-radius: 4px;
    line-height: 1;
    box-sizing: border-box;
    text-transform: capitalize;
    background: rgba(76, 175, 80, 0.3);
    border: 1px solid #4caf50;
    color: #fff;
}

.convert-select {
    padding: 0 12px;
    height: 36px;
    line-height: 34px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 191, 255, 0.3);
    color: #ccc;
    font-size: 14px;
    font-family: Arial, sans-serif;
    outline: none;
    cursor: pointer;
    margin: 0;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
}

.convert-select:hover,
.convert-select:focus {
    border-color: rgba(0, 191, 255, 0.7);
}

.convert-select option {
    background: #1a1a1a;
    color: #ccc;
}

.convert-dither-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    height: 36px;
    color: #aaa;
    font-size: 14px;
    cursor: pointer;
    margin: 0 !important;
    padding: 0;
}

.convert-dither-label input[type="checkbox"] {
    display: none;
}

.convert-dither-box {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 191, 255, 0.35);
    border-radius: 3px;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
}

.convert-dither-label input:checked + .convert-dither-box {
    background: rgba(0, 191, 255, 0.3);
    border-color: #00bfff;
}

.convert-dither-label input:checked + .convert-dither-box::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00bfff;
    font-size: 12px;
    font-weight: bold;
}

.convert-submit-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    background: #00bfff;
    color: white;
    border: none;
    border-radius: 4px;
    font-family: 'MomcakeThin', sans-serif;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.convert-submit-btn:hover {
    background: #33ccff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.convert-download-info {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 191, 255, 0.2);
    text-align: center;
}

.convert-download-info p {
    color: #ddd;
    font-size: 24px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.convert-folder-path {
    font-size: 18px !important;
    margin-top: 24px;
}

.convert-folder-path .path-text {
    color: #aaa;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 16px;
    font-family: Arial, sans-serif;
}

.convert-filename {
    color: #fff !important;
    font-size: 18px !important;
    word-break: break-all;
    margin: 12px 0 !important;
    font-family: Arial, sans-serif;
}

.convert-dl-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 48px;
    background: #00bfff;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    font-family: 'MomcakeThin', sans-serif;
    font-size: 20px;
    transition: background 0.2s, transform 0.2s;
}

.convert-dl-btn:hover {
    background: #33ccff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* ── Converter Dye Grid ── */

.convert-dyes-calc {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.convert-calc-select {
    padding: 6px 10px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 191, 255, 0.25);
    color: #ccc;
    font-size: 13px;
    font-family: Arial, sans-serif;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
}

.convert-calc-select:hover,
.convert-calc-select:focus {
    border-color: rgba(0, 191, 255, 0.5);
}

.convert-calc-select option {
    background: #1a1a1a;
    color: #ccc;
}

.convert-dyes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.convert-dyes-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: nowrap;
}
.convert-dyes-section {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(0, 191, 255, 0.25);
    border-radius: 6px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.15);
}
.convert-filename-box {
    border: 1px solid rgba(0, 191, 255, 0.25);
    border-radius: 6px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.convert-filename-label {
    color: #fff;
    font-family: 'MomcakeThin', sans-serif;
    font-size: 24px;
}
.convert-filename-input {
    width: 100%;
    padding: 10px 12px;
    height: 40px;
    border-radius: 3px;
    border: 1px solid rgba(0, 191, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 14px;
    font-family: Arial, sans-serif;
    outline: none;
    box-sizing: border-box;
    margin: 0;
}
.convert-filename-input:focus {
    border-color: rgba(0, 191, 255, 0.7);
}
.convert-filename-input::placeholder {
    color: #666;
}

.convert-side-col {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.convert-grid-box {
    border: 1px solid rgba(0, 191, 255, 0.25);
    border-radius: 6px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.convert-grid-label {
    color: #fff;
    font-family: 'MomcakeThin', sans-serif;
    font-size: 24px;
}
.convert-grid-desc {
    color: #888;
    font-size: 12px;
    margin: 0;
    line-height: 1.3;
}
.convert-grid-row {
    display: flex;
    gap: 8px;
}
.convert-grid-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.convert-grid-field-label {
    color: #aaa;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.convert-num-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    height: 36px;
}
.convert-num-arrows {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 26px;
    border-left: 1px solid rgba(0, 191, 255, 0.15);
}
.convert-num-btn {
    flex: 1;
    border: none;
    background: rgba(0, 0, 0, 0.4);
    color: #888;
    font-size: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
    min-height: 0;
}
.convert-num-btn:hover {
    background: rgba(0, 191, 255, 0.15);
    color: #0bf;
}
.convert-num-btn:active {
    background: rgba(0, 191, 255, 0.25);
}
.convert-grid-num {
    width: 100%;
    height: 100%;
    padding: 8px 4px 7px 4px;
    border: none;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 14px;
    font-family: Arial, sans-serif;
    outline: none;
    box-sizing: border-box;
    text-align: center;
}
.convert-grid-num::-webkit-inner-spin-button,
.convert-grid-num::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.convert-grid-num:focus {
    border-color: rgba(0, 191, 255, 0.7);
}
.convert-grid-fit-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.convert-grid-select {
    width: 100%;
    padding: 8px 10px;
    height: 36px;
    border-radius: 3px;
    border: 1px solid rgba(0, 191, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
    color: #ccc;
    font-size: 13px;
    font-family: Arial, sans-serif;
    outline: none;
    box-sizing: border-box;
    cursor: pointer;
}
.convert-grid-select:focus {
    border-color: rgba(0, 191, 255, 0.7);
}
.convert-grid-select option {
    background: #1a1a1a;
    color: #ccc;
}

.convert-dyes-title {
    color: #fff;
    font-size: 24px;
    font-family: 'MomcakeThin', sans-serif;
    margin: 0;
}

.convert-dyes-btns {
    display: flex;
    gap: 8px;
}

.convert-dyes-action {
    padding: 6px 14px;
    background: rgba(0, 191, 255, 0.12);
    border: 1px solid rgba(0, 191, 255, 0.25);
    color: #aaa;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-family: Arial, sans-serif;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.convert-dyes-action:hover {
    background: rgba(0, 191, 255, 0.2);
    border-color: rgba(0, 191, 255, 0.5);
    color: #fff;
}

.convert-dyes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 4px;
}

.convert-dyes-grid::-webkit-scrollbar {
    width: 6px;
}

.convert-dyes-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.convert-dyes-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 191, 255, 0.3);
    border-radius: 3px;
}

.convert-dye-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 4px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, opacity 0.15s;
    user-select: none;
    text-align: center;
}

.convert-dye-item:hover {
    border-color: rgba(0, 191, 255, 0.4);
    background: rgba(0, 191, 255, 0.06);
}

.convert-dye-item.disabled {
    opacity: 0.35;
    border-color: rgba(255, 255, 255, 0.04);
}

.convert-dye-item.disabled:hover {
    opacity: 0.55;
    border-color: rgba(0, 191, 255, 0.25);
}

.convert-dye-swatch {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.convert-dye-name {
    font-size: 15px;
    color: #fff;
    line-height: 1.15;
    word-break: break-word;
}

/* ── Mobile Responsive ── */

@media (max-width: 1024px) {
    .viewer {
        flex-direction: column;
        align-items: center;
    }
    .viewer-image {
        height: 400px;
    }
    .dye-comments-row {
        flex-direction: column;
    }
    .account-layout {
        flex-direction: column;
        align-items: stretch;
    }
    .account-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    html { font-size: 15px; }

    html {
        height: 100%;
    }
    body {
        padding-top: 120px;
        padding-bottom: 60px;
        min-height: 100vh;
    }

    /* ── Header ── */
    header {
        height: auto;
        min-height: 56px;
        padding: 6px 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    header .header-logo {
        align-self: center;
    }
    header .imgLogo {
        height: 56px;
        display: block;
    }
    .header-right {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        width: 100%;
        justify-content: flex-end;
    }
    .search-form {
        flex: 1;
        order: 0;
        width: auto;
        margin-top: 0;
        min-width: 0;
    }
    .search-form input {
        flex: 1;
        min-width: 0;
        font-size: 16px;
        height: 44px;
    }
    .search-form button {
        height: 44px;
        font-size: 14px;
        padding: 0 16px;
        min-width: 44px;
    }
    .header-right > .upload-btn[href="convert.php"],
    .header-right > .upload-btn[href="upload.php"] {
        display: none;
    }
    .header-avatar {
        height: 44px;
        width: 44px;
    }
    .header-right .upload-btn[href="login.php"] {
        padding: 12px 20px;
        font-size: 16px;
        min-height: 48px;
    }
    .notif-bell {
        padding: 8px;
    }
    .notif-bell svg {
        width: 28px;
        height: 28px;
    }
    .notif-badge {
        font-size: 11px;
        min-width: 18px;
        height: 18px;
        line-height: 18px;
        top: -4px;
        right: -6px;
    }

    /* ── Footer ── */
    footer {
        padding: 8px 12px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }
    .footer-left, .footer-right {
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer-info {
        font-size: 11px;
    }
    footer a {
        font-size: 11px;
    }

    /* ── Homepage Hero ── */
    .hero {
        padding: 20px 12px 20px;
    }
    .hero h1 {
        font-size: 28px;
        letter-spacing: 2px;
    }
    .hero p {
        font-size: 18px;
    }
    .hero-rates {
        font-size: 22px;
        padding: 12px 24px;
        gap: 8px;
    }
    .hr-item {
        font-size: 18px;
    }

    /* ── Gallery Grid ── */
    .container {
        width: 96%;
    }
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* ── Sort/Filter Form ── */
    .sort-form {
        flex-direction: column;
        align-items: stretch;
    }
    .sort-select-wrap {
        flex: none;
        width: 100%;
    }
    .sort-form select {
        font-size: 24px;
    }
    .custom-select-trigger {
        font-size: 24px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 38px;
        padding: 10px 16px;
    }

    /* ── Pagination ── */
    .pagination {
        gap: 4px;
    }
    .page-btn {
        padding: 12px 16px;
        font-size: 16px;
        min-width: 44px;
        text-align: center;
    }

    /* ── Form Container ── */
    .form-container {
        padding: 16px 12px;
        max-width: 100%;
        margin-left: 8px;
        margin-right: 8px;
        width: auto;
    }
    form h1 {
        font-size: 24px;
        letter-spacing: 2px;
    }

    /* ── Upload Page ── */
    .upload-layout {
        padding: 16px 12px;
        max-width: 100%;
        margin: 16px 8px;
        width: auto;
    }
    .upload-section {
        padding: 14px 16px 16px;
        margin-bottom: 15px;
}
    .upload-form-grid {
        grid-template-columns: 1fr;
    }
    .game-select {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 0;
    }
    .structure-select {
        margin-top: 16px;
        margin-bottom: 0;
    }
    .upload-layout .submit-btn {
        font-size: 18px;
        padding: 14px 20px;
        min-height: 48px;
    }
    #preview-container {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ── Converter Page ── */
    .convert-container {
        width: 96%;
        padding: 16px 12px;
        margin: 16px auto;
    }
h2.example-resolution {
    color: #666 !important;
}
.drawing-paper-guide {
    text-align: center;
    color: #888;
    font-size: 14px;
    padding: 14px 20px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
}
.drawing-paper-guide.visible {
    opacity: 1;
    visibility: visible;
}

.convert-preview-row {
        flex-direction: column;
        gap: 16px;
    }
    .convert-preview-box {
        max-width: 100%;
    }
    .convert-preview-frame {
        max-height: none;
    }
    .convert-controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .convert-control-item {
        justify-content: center;
    }
    .convert-game-btns {
        width: 100%;
    }
    .convert-game-btn {
        flex: 1;
        padding: 0 12px;
        font-size: 13px;
    }
    .convert-select {
        width: 100%;
        font-size: 13px;
    }
    .convert-subtitle {
        font-size: 16px;
    }
    .convert-drop-zone {
        padding: 20px 12px;
    }
    .convert-download-info p {
        font-size: 18px;
    }
    .convert-dyes-row {
        flex-direction: column;
    }
    .convert-side-col {
        width: 100%;
    }
    .convert-filename-box {
        width: 100%;
    }
    .convert-grid-box {
        width: 100%;
    }
    .convert-dyes-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .releasenotespage .policy-container h2 {
        font-size: 36px;
        letter-spacing: 3px;
    }
    .releasenotespage .policy-container ul {
        padding-left: 20px;
    }

    /* ── View Page ── */
    .viewer {
        width: 96%;
        padding: 12px;
        gap: 16px;
        margin: 20px auto;
    }
    .viewer-image {
        height: 250px;
        max-width: 100%;
    }
    .viewer-content h1 {
        font-size: 22px;
    }
    .dye-grid-wrapper, .comments-wrapper {
        width: 96%;
        padding: 12px;
    }
    .dye-comments-row {
        width: 100%;
        gap: 12px;
        margin: 16px auto;
    }
    .dye-comments-col {
        width: 100%;
    }
    .dye-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }

    /* ── Account Page ── */
    .account-layout {
        padding: 0 12px 60px;
        gap: 16px;
    }
    .account-content {
        padding: 16px;
    }
    .account-sidebar {
        padding: 16px;
        order: -1;
    }
    .account-sidebar h1 {
        font-size: 20px;
    }
    .profile-avatar-border, .avatar-click-label {
        width: 80px;
        height: 80px;
    }
    .scroll-wrapper {
        padding: 0 32px;
    }
    .scroll-container .card {
        width: 170px;
    }
    .scroll-container .card .card-image {
        aspect-ratio: 4 / 3;
    }
    .scroll-container .card .card-content h2 {
        font-size: 15px;
}
    .scroll-arrow {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    .scroll-left {
        left: 2px;
    }
    .scroll-right {
        right: 2px;
    }
    .structure-group-title {
        font-size: 20px;
    }
    .view-all-btn {
        font-size: 15px;
}

    /* ── Policy Pages ── */
    .policy-container {
        width: 96%;
        font-size: 18px;
    }

    /* ── Lightbox ── */
    .lightbox .slider-btn {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 22px;
    }
    .releasenotespage .policy-container h2 {
        font-size: 22px;
        letter-spacing: 2px;
        word-break: break-word;
    }
    .releasenotespage .policy-container ul {
        padding-left: 16px;
    }
    .hero-rates {
        font-size: 13px;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    .hr-sep { display: none; }
    #preview-container {
        grid-template-columns: 1fr;
    }
    .viewer-image {
        height: 200px;
    }
    .convert-game-btn {
        font-size: 12px;
        padding: 0 8px;
    }
    .convert-dyes-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
    .dye-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
    .card-content h2 {
        font-size: 18px;
    }
    .author {
        font-size: 20px;
    }
    .description {
        font-size: 15px;
    }
    th, td {
        padding: 6px 8px;
    }
    .lightbox-controls {
        bottom: 10px;
    }
}

/* ── Mobile Download Message ── */
.mobile-dl-msg {
    display: none;
}
@media (max-width: 768px) {
    .card-download-btn,
    .download-btn,
    .convert-dl-btn {
        display: none !important;
    }
    .mobile-dl-msg {
        display: block;
        color: #ccc;
        font-size: 16px;
        text-align: center;
        padding: 10px;
        margin-top: 8px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 3px;
        width: 100%;
        box-sizing: border-box;
    }
}

/* ── Profile Page Responsive ── */
@media (max-width: 768px) {
    .profile-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .profile-search-wrap {
        width: 100%;
    }
    .profile-filter-tabs {
        justify-content: center;
    }
    .profile-sort-wrap {
        min-width: 0;
    }
    .profile-custom-select {
        width: 100%;
    }
    .profile-filter-btn {
        height: 38px;
        font-size: 14px;
    }
    .profile-info-card {
        padding: 12px;
    }
    .profile-avatar-wrap {
        width: 100px;
        height: 100px;
    }
    .profile-name {
        font-size: 26px;
    }
    .profile-stat-row {
        gap: 6px;
    }
    .profile-stat-card {
        padding: 10px 8px;
    }
    .account-content .grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }
    #profilePagination {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .profile-filter-bar {
        gap: 6px;
    }
    .profile-filter-tabs {
        gap: 3px;
    }
    .profile-filter-btn {
        height: 36px;
        padding: 0 8px;
        font-size: 12px;
    }
    .profile-filter-tabs .filter-label {
        font-size: 11px;
    }
    .profile-info-card {
        padding: 10px;
    }
    .profile-avatar-wrap {
        width: 80px;
        height: 80px;
    }
    .profile-name {
        font-size: 22px;
    }
    .profile-stat-card {
        padding: 8px 6px;
    }
    .profile-stat-card .stat-number {
        font-size: 20px;
    }
    .profile-stat-card .stat-label {
        font-size: 11px;
    }
    .account-content .grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }
    .account-content .grid .card-content {
        padding: 8px 10px;
    }
    .account-content .grid .card-content h2 {
        font-size: 15px;
    }
    .account-content .grid .card .description {
        font-size: 12px;
    }
    .account-content .grid .card-rating {
        font-size: 11px;
        padding: 1px 4px;
    }
    .profile-custom-select {
        height: 36px;
        font-size: 12px;
    }
    .profile-custom-option {
        padding: 6px 8px;
        font-size: 12px;
    }
    #profilePagination {
        flex-wrap: wrap;
        gap: 6px;
    }
}
