:root {
    --bg-color: #0c0c0c;
    --card-bg: #1a1a1a;
    --text-color: #e0e0e0;
    --secondary-text: #a0a0a0;
    --header-bg: #161616;
    --border-color: #2a2a2a;
    --accent-color: #4a90e2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #050505;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* ===== Discord Button - Top Left ===== */
.discord-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.3);
    transition: all 0.2s ease;
    text-decoration: none;
}

.discord-btn:hover {
    background: rgba(88, 101, 242, 0.3);
    border-color: #5865F2;
    transform: scale(1.1);
}

.discord-btn img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* ===== Midnight Sky Background ===== */
.uiverse-midnight-sky {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #050505;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.uiverse-midnight-sky .sky-canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    background: #050505;
}

.uiverse-midnight-sky .stars {
    position: absolute;
    inset: 0;
    background-repeat: repeat;
    pointer-events: none;
}

.uiverse-midnight-sky .stars-1 {
    background-image:
        radial-gradient(1px 1px at 10% 10%, #fff, transparent),
        radial-gradient(1px 1px at 30% 20%, #fff, transparent),
        radial-gradient(1px 1px at 50% 50%, #fff, transparent),
        radial-gradient(1px 1px at 70% 30%, #fff, transparent),
        radial-gradient(1px 1px at 90% 10%, #fff, transparent);
    background-size: 200px 200px;
    animation: skyTwinkle 3s ease-in-out infinite;
}

.uiverse-midnight-sky .stars-2 {
    background-image:
        radial-gradient(1.5px 1.5px at 20% 40%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 60% 85%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 85% 65%, #fff, transparent);
    background-size: 300px 300px;
    animation: skyTwinkle 5s ease-in-out infinite 1s;
}

.uiverse-midnight-sky .stars-3 {
    background-image:
        radial-gradient(2px 2px at 40% 70%, #fff, transparent),
        radial-gradient(2px 2px at 10% 80%, #fff, transparent),
        radial-gradient(2px 2px at 80% 40%, #fff, transparent);
    background-size: 400px 400px;
    animation: skyTwinkle 7s ease-in-out infinite 2s;
}

.uiverse-midnight-sky .meteor {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.5);
    opacity: 0;
    pointer-events: none;
}

.uiverse-midnight-sky .meteor::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, #fff, transparent);
}

.uiverse-midnight-sky .m1 {
    top: 10%;
    left: 110%;
    animation: shoot 8s linear infinite;
}

.uiverse-midnight-sky .m2 {
    top: 30%;
    left: 110%;
    animation: shoot 12s linear infinite 4s;
}

.uiverse-midnight-sky .m3 {
    top: 50%;
    left: 110%;
    animation: shoot 10s linear infinite 2s;
}

.uiverse-midnight-sky .moon {
    position: absolute;
    top: 15%;
    right: 15%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: transparent;
    box-shadow: 15px 15px 0 0 #fdfbd3;
    filter: drop-shadow(0 0 15px rgba(253, 251, 211, 0.4));
    z-index: 10;
}

@keyframes skyTwinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

@keyframes shoot {
    0% {
        transform: translateX(0) translateY(0) rotate(-35deg);
        opacity: 0;
    }
    5% { opacity: 1; }
    15% {
        transform: translateX(-1500px) translateY(1000px) rotate(-35deg);
        opacity: 0;
    }
    100% {
        transform: translateX(-1500px) translateY(1000px) rotate(-35deg);
        opacity: 0;
    }
}


/* Ensure content sits above background */
.top-search-bar,
#main-content,
.popup-overlay,
.site-footer {
    position: relative;
    z-index: 1;
}

/* ===== Top Search Bar ===== */
.top-search-bar {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.top-search-bar .group {
    display: flex;
    line-height: 28px;
    align-items: center;
    position: relative;
    max-width: 220px;
}

.top-search-bar .input {
    font-family: "Montserrat", sans-serif;
    width: 100%;
    height: 45px;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    box-shadow: 0 0 0 1.5px #2b2c37, 0 0 25px -17px #000;
    border: 0;
    border-radius: 12px;
    background-color: #16171d;
    outline: none;
    color: #bdbecb;
    transition: all 0.25s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: text;
    z-index: 0;
    font-size: 14px;
}

.top-search-bar .input::placeholder {
    color: #bdbecb;
}

.top-search-bar .input:hover {
    box-shadow: 0 0 0 2.5px #2f303d, 0px 0px 25px -15px #000;
}

.top-search-bar .input:active {
    transform: scale(0.95);
}

.top-search-bar .input:focus {
    box-shadow: 0 0 0 2.5px #2f303d;
}

.top-search-bar .search-icon {
    position: absolute;
    left: 1rem;
    fill: #bdbecb;
    width: 1rem;
    height: 1rem;
    pointer-events: none;
    z-index: 1;
}

/* Filter icon */
.top-search-bar #filter-icon {
    position: absolute;
    top: 50%;
    right: 0.6rem;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.top-search-bar #filter-icon:hover {
    opacity: 1;
}

.top-search-bar #filter-icon.filter-active {
    opacity: 1;
}

.top-search-bar #filter-icon.filter-active svg path {
    stroke: #cf30aa;
}

/* Platform filter dropdown */
.platform-filter-dropdown {
    display: none;
    position: absolute;
    top: 52px;
    right: 0;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    z-index: 201;
    min-width: 130px;
}

.platform-filter-dropdown.active {
    display: block;
}

.platform-option {
    padding: 9px 14px;
    font-size: 0.82rem;
    color: #a0a0a0;
    cursor: pointer;
    transition: background 0.15s;
    font-family: 'Montserrat', sans-serif;
}

.platform-option:hover {
    background: #1a1a1a;
    color: #e0e0e0;
}

.platform-option.active {
    color: #cf30aa;
    font-weight: 500;
}

/* Search dropdown results */
.top-search-dropdown {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 200;
}

.top-search-dropdown.active {
    display: block;
}

.top-search-dropdown .search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #1a1a1a;
    transition: background 0.15s;
}

.top-search-dropdown .search-result-item:hover {
    background: #1a1a1a;
}

.top-search-dropdown .search-result-item:last-child {
    border-bottom: none;
}

.top-search-dropdown .search-result-name {
    font-size: 0.85rem;
    color: #e0e0e0;
    font-weight: 500;
}

.top-search-dropdown .search-result-level {
    font-size: 0.75rem;
    color: #a0a0a0;
    margin-left: auto;
}

.top-search-dropdown .search-no-results {
    padding: 14px;
    text-align: center;
    color: #a0a0a0;
    font-size: 0.85rem;
}

.top-search-dropdown .search-loading {
    padding: 14px;
    text-align: center;
    color: #a0a0a0;
    font-size: 0.85rem;
}

.top-search-dropdown::-webkit-scrollbar {
    width: 6px;
}

.top-search-dropdown::-webkit-scrollbar-track {
    background: #111;
}

.top-search-dropdown::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.changelog-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    transition: none;
    z-index: 100;
}

.changelog-button:hover {
    background: none;
    color: var(--text-color);
}

.homepage-container {
    max-width: 1000px;
    width: 90%;
    text-align: center;
    padding: 20px 0 40px;
}

.logo-container {
    margin-bottom: 40px;
}

.main-logo {
    width: 140px;
    height: 140px;
    margin: 0 auto 10px;
    display: block;
    object-fit: contain;
}

.site-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-color);
}

.site-tagline {
    font-size: 1rem;
    color: var(--secondary-text);
    margin-bottom: 20px;
}

.stats-display {
    margin: 20px auto 30px;
    text-align: center;
}

.stats-label {
    font-size: 0.85rem;
    color: var(--secondary-text);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stats-value {
    font-size: 1.4rem;
    font-weight: normal;
    color: var(--text-color);
    font-family: 'Montserrat', monospace;
    display: inline-block;
}

.stats-value.typing::after {
    content: '|';
    animation: cursorBlink 0.7s step-end infinite;
    color: var(--text-color);
    margin-left: 2px;
}

.stats-value.typed::after {
    content: '|';
    animation: cursorBlink 0.7s step-end infinite;
    color: var(--text-color);
    margin-left: 2px;
}

@keyframes cursorBlink {
    50% { opacity: 0; }
}

.action-container {
    margin-top: 30px;
    margin-bottom: 20px;
}

.action-buttons {
    display: inline-flex;
    gap: 30px;
    overflow: visible;
    border: none;
    border-radius: 0;
}

.action-btn {
    padding: 12px 48px;
    color: #fff;
    background: linear-gradient(to right, #9f9f9f 0, #fff 10%, #868686 20%);
    background-position: 0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: btnTextShine 3s infinite linear;
    animation-fill-mode: forwards;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap;
    font-family: "Montserrat", sans-serif;
    border: none;
    background-color: transparent;
    cursor: pointer;
    letter-spacing: 1px;
}

@keyframes btnTextShine {
    0% { background-position: 0; }
    60% { background-position: 180px; }
    100% { background-position: 180px; }
}

.action-btn:hover {
    opacity: 0.8;
}

.left-btn {}
.right-btn {}


/* ===== Popup Overlay ===== */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.popup-overlay.active {
    display: flex;
}

/* ===== Card Style ===== */
.popup-card.card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 400px;
    max-width: 95vw;
    padding: 2px;
    border-radius: 24px;
    overflow: hidden;
    line-height: 1.6;
    transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.popup-card.card::before {
    content: "";
    position: absolute;
    height: 160%;
    width: 160%;
    border-radius: inherit;
    background: #402fb5;
    background: linear-gradient(to right, #402fb5, #cf30aa);
    transform-origin: center;
    animation: cardMoving 4.8s linear infinite;
    transition: all 0.88s cubic-bezier(0.23, 1, 0.32, 1);
}

.popup-card.card:hover::before {
    width: 20%;
}

.popup-card.card:hover {
    box-shadow:
        0 6px 13px rgba(64, 47, 181, 0.1),
        0 24px 24px rgba(64, 47, 181, 0.09),
        0 55px 33px rgba(64, 47, 181, 0.05),
        0 97px 39px rgba(64, 47, 181, 0.01),
        0 152px 43px rgba(64, 47, 181, 0);
}

.popup-card .content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 30px;
    border-radius: 22px;
    color: #ffffff;
    overflow: hidden;
    background: #111;
    width: 100%;
    position: relative;
    transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.popup-card .content .heading {
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3;
    z-index: 1;
    color: #fff;
    transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.popup-close:hover {
    color: #fff;
}

.changelog-card.card {
    width: 600px;
}

@keyframes cardMoving {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

.single-account-modal {
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    width: 95%;
}

.changelog-content {
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 10px;
    width: 100%;
}

.changelog-content::-webkit-scrollbar {
    width: 8px;
}

.changelog-content::-webkit-scrollbar-track {
    background: var(--card-bg);
}

.changelog-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.changelog-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-text);
}

.changelog-entry {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.changelog-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.changelog-date {
    font-size: 0.85rem;
    color: var(--secondary-text);
    margin-bottom: 8px;
}

.changelog-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
}

.changelog-description {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.5;
    white-space: pre-wrap;
}

.changelog-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--secondary-text);
}

.changelog-error {
    text-align: center;
    padding: 40px 20px;
    color: #ff6b6b;
}

.popup-card .heading {
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-align: left;
    font-weight: 700;
}

.auth-method-container {
    margin-bottom: 20px;
}

.auth-method-slider {
    display: flex;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.auth-method-btn {
    flex: 1;
    background: transparent;
    color: var(--secondary-text);
    border: none;
    padding: 12px 15px;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.auth-method-btn.active {
    color: var(--text-color);
    font-weight: 500;
}

.auth-method-btn:not(.active):hover {
    color: var(--text-color);
}

.auth-method-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: var(--header-bg);
    border: 1px solid var(--border-color);
    border-radius: 0;
    transition: transform 0.3s ease;
    z-index: 1;
}

.auth-method-slider.ticket-active::before {
    transform: translateX(100%);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.85rem;
    margin-bottom: 5px;
    display: block;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    background: var(--header-bg);
    color: var(--text-color);
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
    resize: vertical;
}

.form-group textarea {
    min-height: 80px;
}

.form-help {
    display: block;
    font-size: 0.75rem;
    color: var(--secondary-text);
    margin-top: 5px;
    line-height: 1.4;
}

.submit-btn {
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: 1px solid rgba(64, 47, 181, 0.5);
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 12px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background: rgba(64, 47, 181, 0.2);
    border-color: #402fb5;
    color: #fff;
}

.form-disclaimer {
    font-size: 0.75rem;
    color: var(--secondary-text);
    text-align: center;
    margin-top: 12px;
}

.error-message {
    background-color: #212121;
    color: #ff6b6b;
    border: 1px solid #424242;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0 15px 0;
    text-align: center;
    font-weight: bold;
    display: none;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

.search-modal {
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.search-modal select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    background: var(--header-bg);
    color: var(--text-color);
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
}

.search-modal select option {
    background: var(--header-bg);
    color: var(--text-color);
}

#search-results-container {
    max-height: 60vh;
    overflow-y: auto;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background-color: var(--header-bg);
    border: 1px solid var(--border-color);
}

#results-container {
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 5px;
}

#results-container::-webkit-scrollbar {
    width: 8px;
}

#results-container::-webkit-scrollbar-track {
    background: var(--card-bg);
}

#results-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

#results-container::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-text);
}

.search-modal::-webkit-scrollbar {
    width: 8px;
}

.search-modal::-webkit-scrollbar-track {
    background: var(--card-bg);
}

.search-modal::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.search-modal::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-text);
}

.result-avatar {
    margin-right: 12px;
}

.result-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.result-info {
    flex: 1;
}

.result-username {
    display: flex;
    align-items: center;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.username-platform-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.result-platforms {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.platform-item {
    display: flex;
    align-items: center;
}

.platform-icon {
    width: 14px;
    height: 14px;
    margin-right: 4px;
}

.platform-name {
    font-size: 0.75rem;
    color: var(--secondary-text);
}

.view-profile-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 16px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: none;
}

.view-profile-btn:hover {
    background: none;
    color: var(--text-color);
}

/* Single Account View Styles */
#account-display-section {
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.account-profile-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 0;
}

.account-profile-header {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    position: relative;
}

.account-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

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

.account-profile-info {
    flex-grow: 1;
    min-width: 200px;
}

.account-profile-username {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 5px;
    word-break: break-word;
}

.account-profile-level {
    display: inline-block;
    padding: 0;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: none;
}

.account-social-platforms {
    display: flex;
    align-items: center;
    margin: 8px 0;
}

.account-social-platforms .platform-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    transition: none;
    background-color: transparent;
    padding: 3px;
    filter: brightness(0) invert(1);
}

.account-profile-stats {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
}

.stat-item {
    margin-right: 0;
    margin-bottom: 10px;
    text-align: right;
}

.stat-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-right: 5px;
}

.stat-badge {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-left: 5px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.renown-badge {
    background-image: url('/icons/renown.png');
}

.credits-badge {
    background-image: url('/icons/credits.png');
}

.account-profile-creation {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 0.7rem;
    color: var(--secondary-text);
    text-align: right;
}

.account-profile-navbar {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-top: none;
    margin: 0;
    margin-bottom: 0;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    top: -10px;
}

.account-profile-navbar-items {
    padding: 8px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    align-content: flex-start;
    margin: 0;
}

.account-nav-item {
    background: none !important;
    color: var(--text-color) !important;
    border: none !important;
    font-size: 0.75rem !important;
    cursor: pointer !important;
    transition: none !important;
    font-family: 'Montserrat', sans-serif !important;
    padding: 4px 8px !important;
    height: 24px !important;
    min-width: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    width: auto !important;
    text-decoration: none !important;
    margin: 0 !important;
}

.account-nav-item:hover {
    background: none !important;
    color: var(--text-color) !important;
    text-decoration: none !important;
}

.account-nav-item.active {
    background: var(--header-bg) !important;
    color: var(--text-color) !important;
}

.account-main-content {
    width: 100%;
    margin-top: 20px;
}

.account-section {
    display: none;
}

.account-section.active {
    display: block;
}

.collection-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 20px;
    width: 100%;
}

.collection-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.collection-title {
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.collection-title span {
    display: inline-block;
}

.collection-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    margin-left: 10px;
    min-width: 22px;
    height: 22px;
}

.collection-items {
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    align-content: flex-start;
}

.item-button {
    background: none;
    color: var(--text-color);
    font-size: 0.75rem;
    cursor: pointer;
    transition: none;
    font-family: 'Montserrat', sans-serif;
    padding: 6px 12px;
    height: 30px;
    min-width: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    width: auto;
    border-width: 2px;
    border-color: white;
    border-radius: 5px;
}

.item-button:hover {
    background: none;
    color: var(--text-color);
}

.friends-list-container,
.cases-list-container,
.games-list-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 20px;
}

.friends-list-container h3,
.cases-list-container h3,
.games-list-container h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.friend-item,
.case-item,
.game-item {
    background-color: var(--header-bg);
    border: 1px solid var(--border-color);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.friend-item:last-child,
.case-item:last-child,
.game-item:last-child {
    margin-bottom: 0;
}

.friend-username {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.friend-date {
    font-size: 0.8rem;
    color: var(--secondary-text);
}

.case-number {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.case-subject {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.case-status {
    font-size: 0.8rem;
    color: var(--secondary-text);
}

.case-status.closed {
    color: #ff6b6b;
}

.case-status.updated {
    color: #4CAF50;
}

.game-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.game-sessions {
    font-size: 0.8rem;
    color: var(--secondary-text);
    margin-bottom: 5px;
}

.game-dates {
    font-size: 0.8rem;
    color: var(--secondary-text);
}

.no-items {
    padding: 20px;
    text-align: center;
    color: var(--secondary-text);
    font-size: 0.9rem;
    width: 100%;
}

.ban-notification {
    background-color: rgba(220, 53, 69, 0.6);
    color: white;
    padding: 8px 20px;
    margin: 15px 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.5s ease-in-out;
    border-radius: 4px;
}

.ban-text {
    font-size: 14px;
    letter-spacing: 0.5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Footer ===== */
.site-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 80px 20px 40px;
    margin-top: auto;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #999;
}

.footer-sep {
    color: #444;
    font-size: 0.8rem;
}

.footer-warning {
    color: #555;
    font-size: 0.7rem;
    margin-bottom: 6px;
}

.footer-disclaimer {
    color: #444;
    font-size: 0.65rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .single-account-modal {
        width: 98%;
        max-height: 95vh;
        padding: 10px;
    }
    
    .account-profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .account-profile-avatar {
        margin: 0 auto 15px auto;
    }
    
    .account-profile-stats {
        position: static;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        margin-top: 15px;
    }
    
    .account-profile-creation {
        position: static;
        text-align: center;
        margin-top: 10px;
    }
    
    .account-profile-navbar-items {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .top-search-bar {
        position: relative;
        top: 0;
        right: 0;
        display: flex;
        justify-content: center;
        margin: 15px auto 0;
    }

    .top-search-bar .input {
        width: 220px;
        height: 40px;
        font-size: 13px;
    }

    .changelog-button {
        top: 10px;
        right: 10px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .main-logo {
        width: 120px;
        height: 120px;
    }

    .site-title {
        font-size: 1.6rem;
    }

    .action-btn {
        font-size: 14px;
        padding: 10px 30px;
    }

    .stats-value {
        font-size: 1.2rem;
    }

    .modal-content {
        padding: 20px;
        max-width: 360px;
    }

    .changelog-modal .modal-content {
        max-width: 95%;
        margin: 0 10px;
    }

    .logo-container {
        margin-bottom: 30px;
    }

    .stats-display {
        margin-bottom: 20px;
    }

    .action-container {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .auth-method-btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .result-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .result-avatar {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .result-platforms {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .view-profile-btn {
        width: 100%;
        text-align: center;
    }
}