:root {
    --primary: #6366f1;
    --accent: #a855f7;
    --text: #ffffff;
    --bg-overlay: rgba(5, 5, 12, 0.5);
    --glass: rgba(18, 14, 11, 0.65);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

h1, h2, h3, h4, h5, h6, .glow-text, .nav-link, .btn, .lib-tag, .rank-number, .stat-value {
    font-family: 'Space Grotesk', sans-serif;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background-color: #05050c;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 90px; /* Space for the floating premium nav bar */
    overflow-x: hidden;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.bg-slide.active {
    opacity: 1;
}


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), var(--bg-overlay));
    z-index: -1;
}

.container {
    width: 90%;
    max-width: 800px;
    text-align: center;
    padding: 2rem;
    z-index: 1;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom right, #fff, #a5b4fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.5));
}

.subtitle {
    font-size: 1.25rem;
    opacity: 0.8;
    max-width: 500px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-card.full-width {
    grid-column: span 3;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
    font-weight: 600;
}

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

#latest-activity {
    font-size: 1.5rem;
    color: #a5b4fc;
}

.stat-subtitle {
    font-size: 0.9rem;
    opacity: 0.6;
    color: #fff;
    font-style: italic;
}

.viral-card {
    text-align: left;
    gap: 1rem !important;
}

.viral-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.viral-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.viral-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
}

.viral-author {
    font-weight: 600;
    color: #fff;
    font-size: 1.1rem;
}

.viral-text {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 12px;
    border-left: 3px solid var(--primary);
}

.viral-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.viral-count {
    font-weight: 700;
    color: #fbbf24;
}

.viral-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

.viral-link:hover {
    opacity: 0.8;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
    background: #6366f1;
    color: #fff;
}

.lb-level {
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-block;
    min-width: 35px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lvl-50 {
    background: rgba(138, 43, 226, 0.2);
    color: #a78bfa;
    border: 1px solid rgba(138, 43, 226, 0.6);
    text-shadow: 0 0 12px #a78bfa, 0 0 20px rgba(138, 43, 226, 0.5);
    font-weight: 900;
}

.lvl-40 {
    background: rgba(255, 0, 255, 0.15);
    color: #ff00ff;
    border: 1px solid rgba(255, 0, 255, 0.5);
    text-shadow: 0 0 12px #ff00ff, 0 0 20px rgba(255, 0, 255, 0.5);
    font-weight: 800;
}

.lvl-30 {
    background: rgba(218, 165, 32, 0.2);
    color: #facc15;
    border: 1px solid rgba(218, 165, 32, 0.6);
    text-shadow: 0 0 12px #facc15, 0 0 20px rgba(218, 165, 32, 0.5);
    font-weight: 800;
}

.lvl-27 {
    background: rgba(244, 164, 96, 0.2);
    color: #f4a460;
    border: 1px solid rgba(244, 164, 96, 0.6);
    text-shadow: 0 0 12px #f4a460, 0 0 20px rgba(244, 164, 96, 0.5);
    font-weight: 800;
}

.lvl-22 {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 12px rgba(255, 255, 255, 1), 0 0 20px rgba(255, 255, 255, 0.4);
    font-weight: 800;
}

.lvl-17 {
    background: rgba(255, 255, 224, 0.15);
    color: #ffffe0;
    border: 1px solid rgba(255, 255, 224, 0.3);
}

.lvl-12 {
    background: rgba(173, 216, 230, 0.2);
    color: #add8e6;
    border: 1px solid rgba(173, 216, 230, 0.4);
}

.lvl-8 {
    background: rgba(119, 136, 153, 0.2);
    color: #b0c4de;
    border: 1px solid rgba(119, 136, 153, 0.4);
}

.lvl-5 {
    background: rgba(34, 139, 34, 0.2);
    color: #32cd32;
    border: 1px solid rgba(34, 139, 34, 0.4);
}

.lvl-3 {
    background: rgba(85, 107, 47, 0.2);
    color: #9acd32;
    border: 1px solid rgba(85, 107, 47, 0.4);
}

.lvl-1 {
    background: rgba(0, 255, 0, 0.15);
    color: #00ff00;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.lvl-default {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card.full-width {
        grid-column: auto;
    }
}

/* Leaderboard Spreadsheet Styles */
.leaderboard-section {
    margin-top: 5rem;
    margin-bottom: 5rem;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    display: inline-block;
    background: linear-gradient(to right, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 2px;
}

.leaderboard-wrapper {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.leaderboard-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 600px;
}

.leaderboard-table th {
    padding: 1.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    border-bottom: 2px solid var(--glass-border);
    font-weight: 800;
}

.lb-table-row {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeInRow 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInRow {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lb-table-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.lb-table-row.lb-banned {
    background: rgba(255, 0, 0, 0.1);
}

.lb-table-row.lb-banned .lb-name {
    color: #ff4d4d;
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.3);
}

.lb-table-row.lb-banned .rank-number {
    color: #ff4d4d;
}

.leaderboard-table td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
}

.lb-rank-cell {
    width: 80px;
    text-align: center;
}

.rank-number {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Space Grotesk', sans-serif;
    color: rgba(255, 255, 255, 0.2);
}

.lb-table-row:nth-child(1) .rank-number {
    color: #fbbf24;
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}
.lb-table-row:nth-child(2) .rank-number {
    color: #9ca3af;
    text-shadow: 0 0 15px rgba(156, 163, 175, 0.3);
}

.lb-table-row:nth-child(3) .rank-number {
    color: #b45309;
    text-shadow: 0 0 15px rgba(180, 83, 9, 0.3);
}

.user-container {
    display: flex;
    align-items: center;
    gap: 1.50rem;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.status-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border: 3px solid #0b0b14;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
    z-index: 2;
}

.lb-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    /* Slightly squared for spreadsheet look */
    border: 1px solid var(--glass-border);
}

.lb-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.lb-messages {
    font-size: 1.2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #a5b4fc;
}



.lb-loading {
    padding: 5rem !important;
    text-align: center;
    opacity: 0.5;
    font-size: 1.2rem;
}

@media (max-width: 600px) {
    .leaderboard-wrapper {
        padding: 0.5rem;
        border-radius: 20px;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 1rem 0.75rem;
    }
}

/* Premium Highlight for Top Daily User */
.top-daily-row {
    background: rgba(251, 191, 36, 0.08) !important;
    border-left: 5px solid #fbbf24;
}

.top-daily-row .lb-name {
    font-size: 1.4rem;
    color: #fbbf24;
    font-weight: 800;
}

.top-daily-row .lb-avatar {
    width: 58px;
    height: 58px;
    border: 2px solid #fbbf24;
}

.top-daily-row .lb-messages {
    font-size: 1.6rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.top-daily-row .rank-number {
    color: #fbbf24;
    font-size: 2rem;
}

/* Navigation Menu */
.top-nav {
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.4); /* Darker inactive text */
    text-decoration: none;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.45); /* Darker inactive button background */
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}


/* Library Search Bar */
.library-search {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 30px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    transition: all 0.3s ease;
    display: block;
}

.library-search::placeholder {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 700;
}

.library-search:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(255, 43, 133, 0.2);
}

/* Library Grid & Cards */
.library-page-container {
    max-width: 1750px !important;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
    padding-bottom: 50px;
    justify-content: center;
}

@media (max-width: 1600px) {
    .library-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1400px) {
    .library-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .library-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .library-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .library-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .library-grid {
        grid-template-columns: 1fr;
    }
}

.library-card {
    background: rgba(0, 0, 0, 0.55); /* Darker premium card background */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 24px 18px; /* Optimized padding to make boxes physically balanced */
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column; /* Stacked layout for perfect symmetry */
    align-items: center; /* Horizontally centered */
    text-align: center; /* Center the text */
    gap: 15px;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.library-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lib-icon {
    font-size: 2.8rem; /* Slightly larger category icons */
    line-height: 1;
    opacity: 0.8;
}

.lib-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centered content alignment */
    gap: 10px;
    width: 100%;
}

.lib-title {
    font-size: 1.25rem; /* Balanced and highly readable text */
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}

.lib-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center tags */
    gap: 8px;
}

.lib-tag {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Discord CTA Join Button */
.nav-link.nav-join-btn {
    background: #5865f2; /* Discord Blurple */
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.nav-link.nav-join-btn:hover {
    background: #4752c4;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.5);
    color: #fff;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    /* Top Floating Premium Nav Bar */
    .top-nav {
        padding: 5px 0;
    }
    .nav-container {
        padding: 5px 10px;
        gap: 6px;
    }
    .nav-link {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    /* Hero header */
    .hero {
        margin-bottom: 2rem;
    }
    .hero h1 {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }
    .subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .stat-card {
        padding: 1.25rem;
        border-radius: 16px;
    }
    .stat-value {
        font-size: 2rem;
    }

    /* Leaderboards (Fit for phones) */
    .leaderboard-section {
        margin-top: 3rem;
        margin-bottom: 3rem;
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    .leaderboard-wrapper {
        padding: 0.5rem;
        border-radius: 20px;
    }
    .leaderboard-table {
        min-width: unset;
        width: 100%;
    }
    .leaderboard-table th {
        padding: 0.75rem 0.4rem;
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }
    .leaderboard-table td {
        padding: 0.75rem 0.4rem;
    }
    .lb-rank-cell {
        width: 35px;
        text-align: center;
    }
    .rank-number {
        font-size: 1rem;
    }
    .user-container {
        gap: 0.5rem;
    }
    .lb-avatar {
        width: 28px;
        height: 28px;
        border-radius: 6px;
    }
    .status-indicator {
        width: 10px;
        height: 10px;
        border-width: 2px;
    }
    .lb-name {
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100px;
    }
    .lb-messages {
        font-size: 0.9rem;
    }
    .lb-level {
        padding: 2px 6px;
        font-size: 0.7rem;
        min-width: 24px;
        border-radius: 4px;
    }

    /* Premium Highlight for Top Daily User on Mobile */
    .top-daily-row {
        border-left-width: 3px;
    }
    .top-daily-row .lb-avatar {
        width: 36px;
        height: 36px;
    }
    .top-daily-row .lb-name {
        font-size: 1rem;
        max-width: 110px;
    }
    .top-daily-row .lb-messages {
        font-size: 1.1rem;
    }
    .top-daily-row .rank-number {
        font-size: 1.3rem;
    }

    /* Library Search & Grid */
    .library-search {
        padding: 10px 18px;
        font-size: 0.95rem;
        border-radius: 20px;
    }
    .library-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .library-card {
        padding: 16px 14px;
        border-radius: 14px;
        gap: 10px;
    }
    .lib-icon {
        font-size: 1.8rem;
    }
    .lib-title {
        font-size: 1rem;
    }
    .lib-tag {
        padding: 2px 6px;
        font-size: 0.65rem;
    }
}

/* ========================================== */
/*             VOTE PAGE STYLING              */
/* ========================================== */
.vote-page-container {
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
    padding-bottom: 50px;
}

.vote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.vote-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Accent top-glow */
.vote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color, var(--primary));
    opacity: 0.8;
    transition: height 0.3s ease;
}

.vote-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color, var(--accent));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.05);
}

.vote-card:hover::before {
    height: 6px;
}

.vote-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.3s ease;
}

.vote-card:hover .vote-badge {
    background: var(--accent-color, var(--accent));
    color: #000;
    border-color: transparent;
}

.vote-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.vote-card:hover .vote-icon {
    transform: scale(1.1) rotate(5deg);
}

.vote-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.vote-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin-bottom: 24px;
}

.vote-btn {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.3s ease;
}

.vote-card:hover .vote-btn {
    background: var(--accent-color, var(--primary));
    color: #fff;
    border-color: transparent;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ========================================== */
/*             LIBRARY TAG MENU               */
/* ========================================== */
.tag-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.tag-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-2px);
}

.tag-btn.active {
    background: var(--accent);
    border-color: transparent;
    color: #000;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

/* ========================================== */
/*             LIBRARY FILTER DUAL            */
/* ========================================== */
.filter-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 35px;
    padding: 10px 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-separator {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.filter-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    min-width: 60px;
    text-align: right;
}

@media (max-width: 1100px) {
    .filter-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        border-radius: 20px;
        padding: 16px;
        max-width: 600px;
    }
    
    .filter-separator {
        display: none;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .filter-label {
        text-align: left;
        min-width: unset;
    }
}