@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ----- CSS Reset & Base ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background: #000;
}

/* ----- Video Background System ----- */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

.video-background video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35) contrast(1.1) saturate(1.05);
    opacity: 0;
    transition: opacity 2s ease;
}

.video-background.loaded video {
    opacity: 1;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -9;
    background: 
        radial-gradient(circle at 25% 25%, rgba(0, 0, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 0, 0, 0.4) 0%, transparent 50%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
}

.video-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    z-index: 1;
    opacity: 1;
    transition: opacity 2s ease;
}

.video-background.loaded::before {
    opacity: 0;
}

/* ----- Particles ----- */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -8;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat 12s linear infinite;
}

.particle:nth-child(1) { width: 2px; height: 2px; left: 15%; top: 85%; animation-delay: 0s; }
.particle:nth-child(2) { width: 3px; height: 3px; left: 25%; top: 75%; animation-delay: 2s; }
.particle:nth-child(3) { width: 2px; height: 2px; left: 35%; top: 90%; animation-delay: 4s; }
.particle:nth-child(4) { width: 3px; height: 3px; left: 45%; top: 80%; animation-delay: 6s; }
.particle:nth-child(5) { width: 2px; height: 2px; left: 55%; top: 85%; animation-delay: 8s; }
.particle:nth-child(6) { width: 3px; height: 3px; left: 65%; top: 75%; animation-delay: 10s; }
.particle:nth-child(7) { width: 2px; height: 2px; left: 75%; top: 95%; animation-delay: 1s; }
.particle:nth-child(8) { width: 3px; height: 3px; left: 85%; top: 70%; animation-delay: 3s; }

@keyframes particleFloat {
    0% { 
        transform: translateY(0px) translateX(0px) rotate(0deg); 
        opacity: 0; 
    }
    5% { 
        opacity: 0.8; 
    }
    95% { 
        opacity: 0.8; 
    }
    100% { 
        transform: translateY(-100vh) translateX(15px) rotate(180deg); 
        opacity: 0; 
    }
}

/* ----- Back Button ----- */
.back-button {
    position: fixed;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.back-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.back-button:hover .back-icon {
    transform: translateX(-3px);
}

/* ----- Main Layout ----- */
.main-wrapper {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 1;
}

.bot-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* ----- Bot Profile Card ----- */
.bot-profile-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 3rem;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: slideInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bot-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ----- Bot Image ----- */
.bot-image-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.bot-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 0 0 6px rgba(255, 255, 255, 0.06),
        0 15px 35px rgba(0, 0, 0, 0.4);
    transition: all 0.5s ease;
}

.bot-image-container::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(88, 101, 242, 0.5),
        rgba(114, 137, 218, 0.5),
        rgba(88, 101, 242, 0.5)
    );
    z-index: -1;
    animation: rotateGlow 6s linear infinite;
    opacity: 0.8;
}

.bot-profile-card:hover .bot-image {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 0 0 8px rgba(255, 255, 255, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.5);
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.status-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: #43b581;
    border-radius: 50%;
    border: 4px solid rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 20px rgba(67, 181, 129, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 20px rgba(67, 181, 129, 0.6);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(67, 181, 129, 0.8);
    }
}

/* ----- Bot Info ----- */
.bot-name {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f4 50%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

.bot-description {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ----- Bot Stats ----- */
.bot-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(88, 101, 242, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5865f2;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
}

.stat-info {
    flex: 1;
    text-align: left;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* ----- Invite Button ----- */
.invite-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    margin-right: 0.5rem;
}
.invite-button1 {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.invite-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.invite-button:hover::before {
    left: 100%;
}

.invite-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 45px rgba(88, 101, 242, 0.6);
}

.invite-button:active {
    transform: translateY(-2px) scale(0.99);
}

.invite-button1::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.invite-button1:hover::before {
    left: 100%;
}

.invite-button1:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 45px rgba(88, 101, 242, 0.6);
}

.invite-button1:active {
    transform: translateY(-2px) scale(0.99);
}

.invite-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.invite-button:hover .invite-icon {
    transform: scale(1.1) rotate(90deg);
}
.invite-button1:hover .invite-icon {
    transform: scale(1.1) rotate(90deg);
}

/* ----- Leaderboards Section ----- */
.leaderboards-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeIn 1s ease 0.3s both;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.title-icon {
    width: 36px;
    height: 36px;
    color: #ffd700;
}

/* ----- Leaderboard Cards ----- */
.leaderboard-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.leaderboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.leaderboard-title h3 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    font-weight: 600;
    color: #ffffff;
}

.leaderboard-icon {
    width: 28px;
    height: 28px;
    color: #ffd700;
}

.refresh-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: rotate(180deg);
}

.refresh-btn svg {
    width: 20px;
    height: 20px;
}

/* ----- Leaderboard Content ----- */
.leaderboard-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.5s ease forwards;
}

.leaderboard-item:nth-child(1) { animation-delay: 0.1s; }
.leaderboard-item:nth-child(2) { animation-delay: 0.15s; }
.leaderboard-item:nth-child(3) { animation-delay: 0.2s; }
.leaderboard-item:nth-child(4) { animation-delay: 0.25s; }
.leaderboard-item:nth-child(5) { animation-delay: 0.3s; }
.leaderboard-item:nth-child(6) { animation-delay: 0.35s; }
.leaderboard-item:nth-child(7) { animation-delay: 0.4s; }
.leaderboard-item:nth-child(8) { animation-delay: 0.45s; }
.leaderboard-item:nth-child(9) { animation-delay: 0.5s; }
.leaderboard-item:nth-child(10) { animation-delay: 0.55s; }

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Rank Badges */
.rank-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    flex-shrink: 0;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.rank-badge.silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #000;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.5);
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    color: #000;
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.5);
}

.rank-crown,
.rank-medal {
    font-size: 18px;
    animation: bounce 2s ease-in-out infinite;
}

.member-info {
    flex: 1;
}

.member-name {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.member-score {
    font-size: 0.85rem;
    color: #00ff88;
    font-weight: 500;
}

/* Special styling for top 3 */
.leaderboard-item.rank-1 {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.2);
}

.leaderboard-item.rank-2 {
    background: rgba(192, 192, 192, 0.05);
    border-color: rgba(192, 192, 192, 0.2);
}

.leaderboard-item.rank-3 {
    background: rgba(205, 127, 50, 0.05);
    border-color: rgba(205, 127, 50, 0.2);
}

/* ----- Loading Spinner ----- */
.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 3rem auto;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #5865f2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ----- Error State ----- */
.error-message {
    text-align: center;
    padding: 3rem 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.error-message svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    color: #ff6b6b;
}

.error-message p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.retry-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.retry-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ----- Empty State ----- */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.3);
}

.empty-state p {
    font-size: 1rem;
}

/* ----- Footer ----- */
.bot-footer {
    text-align: center;
    padding: 2rem 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 300;
}

/* ----- Animations ----- */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* ----- Responsive Design ----- */
@media (max-width: 1024px) {
    .leaderboards-section {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .back-button {
        top: 1rem;
        left: 1rem;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .back-icon {
        width: 18px;
        height: 18px;
    }

    .main-wrapper {
        padding: 6rem 1rem 3rem;
    }

    .bot-profile-card {
        padding: 2rem 1.5rem;
    }

    .bot-image {
        width: 140px;
        height: 140px;
    }

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

    .stat-item {
        padding: 1.2rem;
    }

    .invite-button {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
        margin-bottom: 0.4rem;
    }
    .invite-button1 {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .title-icon {
        width: 28px;
        height: 28px;
    }

    .leaderboard-card {
        padding: 1.5rem;
    }

    .leaderboard-title h3 {
        font-size: 1.2rem;
    }

    .leaderboard-icon {
        width: 24px;
        height: 24px;
    }

    .leaderboard-item {
        padding: 0.9rem 1rem;
    }

    .rank-badge {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }

    .member-name {
        font-size: 0.95rem;
    }

    .member-score {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .back-button span {
        display: none;
    }

    .back-button {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
    }

    .bot-profile-card {
        padding: 2rem 1rem;
    }

    .bot-image {
        width: 120px;
        height: 120px;
    }

    .status-indicator {
        width: 24px;
        height: 24px;
        border-width: 3px;
    }

    .bot-name {
        font-size: 1.8rem;
    }

    .bot-description {
        font-size: 0.9rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
    }

    .stat-icon svg {
        width: 24px;
        height: 24px;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .invite-button {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    .invite-button1 {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }

    .invite-icon {
        width: 20px;
        height: 20px;
    }

    .section-title {
        font-size: 1.3rem;
        gap: 0.6rem;
    }

    .leaderboard-card {
        padding: 1.2rem;
    }

    .leaderboard-header {
        margin-bottom: 1rem;
    }

    .leaderboard-item {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .rank-badge {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .rank-crown,
    .rank-medal {
        font-size: 16px;
    }
}

/* ----- Performance Optimizations ----- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .video-background video {
        animation: none;
    }

    .particles {
        display: none;
    }
}

/* ----- High Contrast Mode ----- */
@media (prefers-contrast: high) {
    .bot-profile-card,
    .leaderboard-card {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.3);
    }

    .stat-item,
    .leaderboard-item {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
    }
}

/* ----- Hardware Acceleration ----- */
.video-background,
.video-background video,
.bot-profile-card,
.leaderboard-card,
.invite-button,
.invite-button1,
.back-button {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}
/* Base: allow sliding when needed */
/* Base glass bottom bar */
.glass-bottombar {
  width: fit-content;
  max-width: 90vw;          /* IMPORTANT: prevents going out of screen */
  margin: 40px auto 20px;

  display: flex;
  gap: 20px;

  padding: 10px 25px;
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);

  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);

  overflow-x: auto;         /* 🔥 SLIDING ENABLED */
  white-space: nowrap;      /* prevents wrapping */
  scrollbar-width: none;    /* hides scrollbar (Firefox) */
}

.glass-bottombar::-webkit-scrollbar {
  display: none;            /* hides scrollbar (Chrome) */
}

/* Links */
.glass-bottombar a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  transition: 0.2s ease;
  white-space: nowrap;      /* do NOT break text */
}

.glass-bottombar a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* -------------------------------
   RESPONSIVE: shrink padding + gap
-------------------------------- */

/* Tablets */
@media (max-width: 900px) {
  .glass-bottombar {
    gap: 14px;
    padding: 8px 20px;
  }
  .glass-bottombar a {
    font-size: 0.9rem;
  }
}

/* Large phones */
@media (max-width: 600px) {
  .glass-bottombar {
    gap: 12px;
    padding: 8px 16px;
  }
  .glass-bottombar a {
    font-size: 0.85rem;
    padding: 6px 8px;
  }
}

/* Small phones */
@media (max-width: 430px) {
  .glass-bottombar {
    gap: 10px;
    padding: 6px 14px;
  }
  .glass-bottombar a {
    font-size: 0.8rem;
  }
}

/* Ultra small */
@media (max-width: 350px) {
  .glass-bottombar {
    gap: 8px;
    padding: 5px 12px;
  }
  .glass-bottombar a {
    font-size: 0.75rem;
  }
}