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

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 6px 20px rgba(0, 210, 255, 0.6); }
}

@keyframes adminPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3); }
    50% { box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6); }
}

@keyframes adminMessageSlide {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000;
    color: white;
}

.warning-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.5);
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.warning-content {
    max-width: 900px;
    margin: 0 auto;
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.warning-icon {
    font-size: 1.8rem;
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.warning-title {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
}

.warning-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.warning-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.warning-message {
    font-size: 1.1rem;
    line-height: 1.5;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ban-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    animation: banFadeIn 0.3s ease;
}

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

.ban-modal-content {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.95), rgba(153, 27, 27, 0.95));
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(220, 38, 38, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from { 
        transform: scale(0.7);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

.ban-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: shake 0.6s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px) rotate(-5deg); }
    75% { transform: translateX(10px) rotate(5deg); }
}

.ban-title {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.ban-reason {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    line-height: 1.6;
}

.ban-footer {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.feed-container {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.feed-container::-webkit-scrollbar {
    display: none;
}

.feed-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.video-card {
    position: relative;
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #000;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

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

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover video {
    transform: scale(1.02);
}

.fixed-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.fixed-overlay > * {
    pointer-events: auto;
}

.overlay-top {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
    padding-bottom: 40px;
}

.logo-mini {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.profile-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.1));
    border: 2.5px solid rgba(255,255,255,0.8);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.profile-icon:hover {
    transform: scale(1.1);
    border-color: white;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.logout-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,87,87,0.25), rgba(255,87,87,0.1));
    border: 2.5px solid rgba(255,87,87,0.8);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.logout-btn:hover {
    transform: scale(1.1);
    border-color: rgba(255,87,87,1);
    box-shadow: 0 6px 16px rgba(255,87,87,0.4);
}

.record-btn-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, 
        rgba(255, 0, 100, 0.9),
        rgba(255, 100, 200, 0.9),
        rgba(255, 150, 100, 0.9),
        rgba(255, 200, 50, 0.9)
    );
    border: 2.5px solid rgba(255,255,255,0.9);
    border-radius: 25px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(255, 0, 100, 0.5);
    transition: all 0.3s ease;
    animation: recordPulse 2s infinite;
    color: white;
    font-weight: 700;
}

.record-btn-top:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(255, 0, 100, 0.7);
}

@keyframes recordPulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(255, 0, 100, 0.5);
    }
    50% {
        box-shadow: 0 6px 30px rgba(255, 0, 100, 0.8);
    }
}

.top-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.top-action-btn:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.2);
}

.overlay-bottom {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.video-info {
    flex: 1;
    margin-right: 20px;
}

.creator {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
    letter-spacing: 0.5px;
}

.challenge-banner {
    margin-top: 15px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 14px 18px;
    border-radius: 16px;
    border: 1.5px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.challenge-banner:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.1));
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.4);
}

.challenge-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffd700;
    margin-bottom: 6px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.challenge-text {
    font-size: 0.95rem;
    line-height: 1.4;
    opacity: 1;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1.5px solid rgba(255,255,255,0.25);
    color: white;
    cursor: pointer;
    padding: 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
}

.action-btn:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}

.action-btn:active {
    transform: translateY(0) scale(0.95);
}

.action-btn .icon {
    font-size: 2rem;
    margin-bottom: 5px;
    filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.8));
}

.action-btn .count,
.action-btn .label {
    font-size: 0.85rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.record-action {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.1));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(255,255,255,0.4);
    padding: 12px;
}

.record-action:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.15));
    box-shadow: 0 8px 30px rgba(0,0,0,0.4), inset 0 2px 0 rgba(255,255,255,0.4);
}

.record-action .icon {
    font-size: 2.2rem;
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.95) 0%, rgba(255, 102, 51, 0.95) 33%, rgba(255, 204, 0, 0.95) 66%, rgba(255, 51, 255, 0.95) 100%);
    background-size: 200% 200%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    box-shadow: 0 0 30px rgba(255, 51, 102, 0.8), 0 0 60px rgba(255, 102, 51, 0.6), 0 0 90px rgba(255, 204, 0, 0.4), inset 0 2px 15px rgba(255,255,255,0.4);
    animation: recordGlow 2.5s ease-in-out infinite, gradientShift 4s linear infinite;
    position: relative;
}

.record-action .icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.5), transparent 50%, rgba(255,255,255,0.3));
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    opacity: 0.7;
    animation: shimmer 2s linear infinite;
}

@keyframes recordGlow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 51, 102, 0.8), 0 0 60px rgba(255, 102, 51, 0.6), 0 0 90px rgba(255, 204, 0, 0.4), inset 0 2px 15px rgba(255,255,255,0.4);
        transform: scale(1) rotate(0deg);
    }
    50% {
        box-shadow: 0 0 45px rgba(255, 51, 102, 1), 0 0 90px rgba(255, 102, 51, 0.8), 0 0 120px rgba(255, 204, 0, 0.6), inset 0 2px 20px rgba(255,255,255,0.5);
        transform: scale(1.08) rotate(2deg);
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(-45deg); opacity: 0; }
    50% { opacity: 0.7; }
    100% { transform: translateX(100%) rotate(-45deg); opacity: 0; }
}

.record-action:active .icon {
    animation: recordPress 0.3s ease-in-out;
}

@keyframes recordPress {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(0.85) rotate(-5deg); }
}

.action-btn.active .icon {
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.swipe-hint {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 35px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.35);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 2px 0 rgba(255,255,255,0.3);
    animation: fadeOut 3s ease-in-out forwards, floatHint 3s ease-in-out infinite;
}

@keyframes floatHint {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

.hint-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes fadeOut {
    0%, 70% { opacity: 1; }
    100% { opacity: 0; }
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.loading-spinner.active {
    display: block;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    margin: 30px auto;
    padding: 35px;
    border-radius: 25px;
    max-width: 500px;
    position: relative;
    color: #333;
    border: 2px solid rgba(255,255,255,0.5);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 2px 0 rgba(255,255,255,0.8);
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.auth-form {
    margin-top: 20px;
}

.auth-form h2 {
    margin-bottom: 20px;
    color: #667eea;
}

.auth-form input {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    background: linear-gradient(135deg, rgba(255,255,255,1), rgba(255,255,255,0.8));
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2), inset 0 1px 0 rgba(255,255,255,1);
    transform: translateY(-2px);
}

.auth-form button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4), inset 0 2px 0 rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.auth-form button:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 1) 0%, rgba(118, 75, 162, 1) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(102, 126, 234, 0.5), inset 0 2px 0 rgba(255,255,255,0.4);
}

.auth-form button:active {
    transform: translateY(-1px);
}

.switch-auth {
    margin-top: 15px;
    text-align: center;
    color: #666;
}

.switch-auth a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.error-message {
    color: #ff4444;
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

#camera-container {
    position: relative;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

#preview-video,
#playback-video {
    width: 100%;
    display: block;
    border-radius: 10px;
}

#countdown-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    color: white;
    font-weight: 900;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    display: none;
}

#recording-controls,
.playback-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

#recording-controls button,
.playback-actions button {
    padding: 14px 35px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2), inset 0 2px 0 rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

#recording-controls button:hover,
.playback-actions button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.3), inset 0 2px 0 rgba(255,255,255,0.4);
}

#start-recording-btn,
.primary-btn {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    color: white;
}

#stop-recording-btn {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.95), rgba(220, 38, 38, 0.95));
    color: white;
}

.playback-actions button:not(.primary-btn) {
    background: linear-gradient(135deg, rgba(224, 224, 224, 0.95), rgba(180, 180, 180, 0.95));
    color: #333;
}

#challenge-reminder {
    background: linear-gradient(135deg, rgba(240, 244, 255, 0.95), rgba(230, 235, 255, 0.9));
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    padding: 16px;
    border-radius: 15px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15), inset 0 1px 0 rgba(255,255,255,0.8);
}

#camera-selection {
    display: flex;
    align-items: center;
    gap: 10px;
}

#camera-select {
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.3);
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

#camera-select:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2), inset 0 1px 0 rgba(255,255,255,1);
}

#upload-progress {
    text-align: center;
    padding: 20px;
    font-size: 1.2rem;
    color: #667eea;
}

.profile-header {
    text-align: center;
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.profile-username {
    font-size: 2rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 10px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.profile-submissions {
    display: grid;
    gap: 15px;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.profile-submission {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
}

.profile-submission video {
    width: 100%;
    display: block;
}

.profile-submission-info {
    padding: 10px;
}

.comments-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70vh;
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.1));
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-top: 2px solid rgba(255,255,255,0.3);
    border-radius: 30px 30px 0 0;
    transform: translateY(100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 50px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}

.comments-panel.active {
    transform: translateY(0);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.comments-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.close-comments {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.close-comments:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.15));
    transform: rotate(90deg);
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px;
}

.comments-empty {
    text-align: center;
    color: rgba(255,255,255,0.6);
    padding: 40px 20px;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.comment-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 18px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
    animation: slideInComment 0.2s ease;
}

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

.comment-item.posting {
    opacity: 0.6;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.8; }
}

.comment-username {
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.comment-text {
    color: rgba(255,255,255,0.95);
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.comment-time {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.comment-input-container {
    padding: 20px 25px;
    border-top: 1px solid rgba(255,255,255,0.2);
    display: flex;
    gap: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#comment-input {
    flex: 1;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    padding: 12px 20px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.2);
}

#comment-input::placeholder {
    color: rgba(255,255,255,0.5);
}

#comment-input:focus {
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 20px rgba(255,255,255,0.2), inset 0 2px 8px rgba(0,0,0,0.2);
}

#post-comment-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(139, 92, 246, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}

#post-comment-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 1), rgba(139, 92, 246, 1));
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.6), inset 0 1px 0 rgba(255,255,255,0.4);
}

#post-comment-btn:active {
    transform: translateY(0);
}

.profile-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.profile-tab {
    background: linear-gradient(135deg, rgba(240, 244, 255, 0.9), rgba(230, 235, 255, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.3);
    color: #667eea;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.5);
}

.profile-tab:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2), inset 0 1px 0 rgba(255,255,255,0.6);
}

.profile-tab.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    color: #fff;
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}

.friends-search {
    padding: 20px 0;
}

#user-search {
    width: 100%;
    padding: 14px 18px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.3);
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

#user-search:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2), inset 0 1px 0 rgba(255,255,255,1);
}

#search-results {
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.user-search-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, rgba(248, 250, 255, 0.9), rgba(240, 244, 255, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.6);
}

.add-friend-btn {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.add-friend-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 1), rgba(118, 75, 162, 1));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}

.friend-status {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
}

.friends-list {
    max-height: 400px;
    overflow-y: auto;
}

.friend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, rgba(248, 250, 255, 0.9), rgba(240, 244, 255, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.6);
}

.friend-request-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, rgba(255, 248, 240, 0.9), rgba(255, 245, 235, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(251, 146, 60, 0.2);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.6);
}

.friend-request-actions {
    display: flex;
    gap: 8px;
}

.accept-btn {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(22, 163, 74, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.accept-btn:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 1), rgba(22, 163, 74, 1));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}

.reject-btn {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.reject-btn:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 1), rgba(220, 38, 38, 1));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}

.delete-video-btn {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.8), rgba(220, 38, 38, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 6px 16px;
    border-radius: 18px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(239, 68, 68, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    margin-left: auto;
}

.delete-video-btn:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 1), rgba(220, 38, 38, 1));
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(239, 68, 68, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}

.nav-buttons {
    position: fixed;
    left: 20px;
    top: 180px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.4), inset 0 1px 0 rgba(255,255,255,0.5);
    border-color: rgba(102, 126, 234, 0.5);
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: scale(1);
}

.nav-btn:disabled:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .overlay-top {
        padding: 12px;
        padding-bottom: 30px;
    }
    
    .logo-mini {
        font-size: 1.1rem;
    }
    
    .profile-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    
    .record-btn-top {
        padding: 8px 14px;
        font-size: 0.85rem;
        gap: 6px;
    }
    
    .top-action-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        gap: 4px;
    }
    
    .action-btn .icon {
        font-size: 1.8rem;
    }
    
    .record-action .icon {
        width: 55px;
        height: 55px;
        font-size: 2.5rem;
    }
    
    .modal-content {
        margin: 15px;
        padding: 18px;
        max-height: 85vh;
        max-width: 95vw;
    }
    
    .challenge-banner {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .video-username {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .overlay-top {
        padding: 10px;
        padding-bottom: 25px;
    }
    
    .logo-mini {
        font-size: 1rem;
    }
    
    .profile-icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
    
    .record-btn-top {
        padding: 7px 12px;
        font-size: 0.8rem;
        gap: 5px;
    }
    
    .top-action-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
        gap: 3px;
    }
    
    .modal-content {
        margin: 10px;
        padding: 15px;
        max-height: 90vh;
        max-width: 98vw;
    }
    
    .modal h2 {
        font-size: 1.3rem;
    }
    
    .challenge-banner {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    input, textarea {
        font-size: 14px;
    }
}

.messages-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.messages-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.create-group-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.create-group-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 1), rgba(118, 75, 162, 1));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.conversation-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conversation-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.conversation-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.conversation-time {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.unread-badge {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.chat-view {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
}

.back-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.back-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.15));
    transform: translateX(-2px);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px;
    max-width: 75%;
    align-self: flex-start;
}

.chat-message.own-message {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(102, 126, 234, 0.4);
    border-left: 3px solid #667eea;
    align-self: flex-end;
}

.message-sender {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: #1a1a1a;
}

.message-text {
    margin-bottom: 5px;
    word-wrap: break-word;
    color: #1a1a1a;
}

.message-time {
    font-size: 0.75rem;
    color: #1a1a1a;
    margin-top: 5px;
}

.chat-input-container {
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input-container input {
    flex: 1;
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 10px 15px;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.chat-input-container input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.chat-input-container button {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.chat-input-container button:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 1), rgba(118, 75, 162, 1));
    transform: scale(1.05);
}

.message-friend-btn {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 16px;
    border-radius: 18px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.message-friend-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 1), rgba(118, 75, 162, 1));
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(102, 126, 234, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nominate-action {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(245, 158, 11, 0.3));
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 2px solid rgba(251, 191, 36, 0.5);
}

.nominate-action:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.5), rgba(245, 158, 11, 0.5));
    border-color: rgba(251, 191, 36, 0.8);
    box-shadow: 0 6px 30px rgba(251, 191, 36, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.friends-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4), rgba(118, 75, 162, 0.4));
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 3px solid rgba(102, 126, 234, 0.7);
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.friends-icon:hover {
    transform: scale(1.15);
    border-color: rgba(102, 126, 234, 1);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.5));
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.6);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.leaderboard-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.4), rgba(245, 158, 11, 0.4));
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 3px solid rgba(251, 191, 36, 0.7);
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(251, 191, 36, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.leaderboard-icon:hover {
    transform: scale(1.15);
    border-color: rgba(251, 191, 36, 1);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.5), rgba(245, 158, 11, 0.5));
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.chat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(5, 150, 105, 0.4));
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 3px solid rgba(16, 185, 129, 0.7);
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.chat-icon:hover {
    transform: scale(1.15);
    border-color: rgba(16, 185, 129, 1);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(5, 150, 105, 0.5));
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.mute-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(109, 40, 217, 0.4));
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 3px solid rgba(139, 92, 246, 0.7);
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.mute-icon:hover {
    transform: scale(1.15);
    border-color: rgba(139, 92, 246, 1);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(109, 40, 217, 0.5));
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.leaderboard-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 2px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.leaderboard-row:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15));
    border-color: rgba(255,255,255,0.4);
    transform: translateX(5px);
}

.leaderboard-rank {
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 60px;
    color: #1a1a1a;
}

.leaderboard-username {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.leaderboard-stats {
    display: flex;
    gap: 15px;
    font-size: 0.95rem;
    color: #2a2a2a;
}

.leaderboard-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

#onboarding-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    overflow-y: auto;
}

.onboarding-content {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.onboarding-slide {
    display: none;
    text-align: center;
}

.onboarding-slide.active {
    display: block;
}

.onboarding-slide h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.onboarding-slide p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.onboarding-icon {
    font-size: 5rem;
    margin: 20px 0;
}

.onboarding-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.onboarding-controls button {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.onboarding-controls button:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 1), rgba(118, 75, 162, 1));
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#onboarding-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.onboarding-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.onboarding-dot.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: scale(1.3);
}

#friends-modal .modal-content {
    max-width: 500px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(31, 41, 55, 0.98));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

#friends-modal h2 {
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#friends-modal p {
    color: rgba(255, 255, 255, 0.9) !important;
}

#friends-modal strong {
    color: #fff !important;
}

#friends-modal span {
    color: rgba(255, 255, 255, 0.8) !important;
}

#friends-modal input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.friends-search {
    position: relative;
    margin-bottom: 20px;
}

.friends-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 1rem;
    outline: none;
}

.friends-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#friends-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(31, 41, 55, 0.98));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    margin-top: 8px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.friends-tab-btn {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.friends-tab-btn.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.friends-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.friend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
