/* TraceNoMore Unified Theme System */
/* This file contains all core styling for the entire torrent site */

/* ===== CSS VARIABLES ===== */
:root {
    /* Color Palette */
    --primary-red: #e53935;
    --primary-red-dark: #b71c1c;
    --primary-red-light: #ff6b6b;
    --secondary-red: #8b0000;
    --accent-red: #ff8e8e;
    
    /* Background Gradients */
    --bg-primary: radial-gradient(circle at 10% 40%, #e53935 0%, #b71c1c 40%, #1a0000 80%, #000 100%);
    --bg-secondary: rgba(0, 0, 0, 0.6);
    --bg-tertiary: rgba(255, 255, 255, 0.05);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-accent: #ffb3b3;
    
    /* Border Colors */
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-secondary: rgba(255, 255, 255, 0.2);
    --border-accent: #e53935;
    
    /* Shadow Colors */
    --shadow-primary: rgba(0, 0, 0, 0.4);
    --shadow-accent: rgba(229, 57, 53, 0.3);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-modal: 1001;
    --z-notification: 1002;
    --z-header: 1000;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #f1f5f9;
    background: var(--bg-primary);
    min-height: 100vh;
    margin: 0;
}

/* Login page specific body styles */
body.login-page {
    background: radial-gradient(circle at 0% 50%, #e53935 0%, #8b0000 50%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-normal);
}

/* ===== LAYOUT COMPONENTS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.section {
    padding: var(--spacing-2xl) 0;
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== HEADER & NAVIGATION ===== */
.unified-header {
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-primary);
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    box-shadow: 0 2px 12px var(--shadow-primary);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}



.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
    animation: logoIconFloat 3s ease-in-out infinite;
}

/* Clean Professional Padlock Icon */
.logo-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: logoIconPulse 2s ease-in-out infinite;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: logoShimmer 2s ease-in-out infinite;
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    border-radius: 10px;
    z-index: 1;
}

.logo-icon span {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    background: linear-gradient(135deg, #e53935 0%, #c62828 50%, #e53935 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.5px;
    animation: logoTextGradient 3s ease-in-out infinite, logoTextGlow 2s ease-in-out infinite;
    position: relative;
}

.logo-text::before {
    content: 'TraceNoMore';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #ff6b6b 0%, #e53935 50%, #ff6b6b 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: logoTextShadow 2s ease-in-out infinite;
}

/* Enhanced Logo Animations */
@keyframes logoIconFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-3px) rotate(2deg);
    }
}

@keyframes logoShimmer {
    0%, 100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes logoTextPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

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

@keyframes logoTextGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(229, 57, 53, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(229, 57, 53, 0.6), 0 0 30px rgba(229, 57, 53, 0.4);
    }
}

@keyframes logoTextShadow {
    0%, 100% {
        opacity: 0;
        transform: translateX(0px);
    }
    50% {
        opacity: 0.3;
        transform: translateX(2px);
    }
}



/* Logo loading animation */
.logo.loading .logo-icon {
    animation: logoLoading 1.5s ease-in-out infinite;
}

.logo.loading .logo-text {
    animation: logoTextLoading 1.5s ease-in-out infinite;
}

@keyframes logoLoading {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: scale(1.1) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(0.9) rotate(180deg);
        opacity: 1;
    }
    75% {
        transform: scale(1.1) rotate(270deg);
        opacity: 0.8;
    }
}

@keyframes logoTextLoading {
    0%, 100% {
        opacity: 1;
        transform: translateX(0px);
    }
    25% {
        opacity: 0.5;
        transform: translateX(-5px);
    }
    50% {
        opacity: 1;
        transform: translateX(0px);
    }
    75% {
        opacity: 0.5;
        transform: translateX(5px);
    }
}





/* Logo responsive design */
@media (max-width: 768px) {
    .logo {
        font-size: 1.2rem;
        gap: 0.5rem;
    }
    
    .logo-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1rem;
        gap: 0.4rem;
    }
    
    .logo-icon {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.9rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
}

/* Logo performance optimizations */
@media (prefers-reduced-motion: reduce) {
    .logo-icon,
    .logo-text,
    .logo-icon::before,
    .logo-text::before {
        animation: none;
    }
}

/* Navigation */
.main-nav {
    display: flex;
    gap: var(--spacing-xl);
}

.nav-link {
    text-decoration: none;
    color: var(--text-accent);
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-red);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-red);
    border-radius: 1px;
}

/* User Menu */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    background: none;
    color: var(--text-primary);
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.user-info:hover {
    background-color: rgba(229, 57, 53, 0.1);
}

.user-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-red);
}

.username {
    font-weight: 500;
    color: var(--text-accent);
    transition: var(--transition-normal);
    position: relative;
}

.username:hover {
    color: var(--primary-red);
    text-shadow: 0 0 8px rgba(229, 57, 53, 0.4);
}

/* Basic user animation for regular users */
.username-user {
    background: linear-gradient(45deg, #6c757d, #495057, #6c757d, #868e96);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: userShimmer 4s ease-in-out infinite;
    text-shadow: 
        0 0 10px rgba(108, 117, 125, 0.6),
        0 0 20px rgba(108, 117, 125, 0.4);
    position: relative;
    font-weight: 600;
}

/* Animated Username Styling */
.username-admin {
    background: linear-gradient(45deg, #ff6b6b, #ffd93d, #ff6b6b, #ff8e8e);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: adminShimmer 3s ease-in-out infinite, adminAura 2s ease-in-out infinite alternate;
    text-shadow: 
        0 0 10px rgba(255, 107, 107, 0.8),
        0 0 20px rgba(255, 107, 107, 0.6),
        0 0 30px rgba(255, 107, 107, 0.4);
    position: relative;
    font-weight: 700;
}

.username-moderator {
    background: linear-gradient(45deg, #ff8c42, #ff6b35, #ff8c42, #ffa726);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: modShimmer 3s ease-in-out infinite, modAura 2s ease-in-out infinite alternate;
    text-shadow: 
        0 0 10px rgba(255, 140, 66, 0.8),
        0 0 20px rgba(255, 140, 66, 0.6),
        0 0 30px rgba(255, 140, 66, 0.4);
    position: relative;
    font-weight: 700;
}

.username-vip {
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700, #fff200);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: vipShimmer 3s ease-in-out infinite, vipAura 2s ease-in-out infinite alternate;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.4);
    position: relative;
    font-weight: 700;
}

.username-uploader {
    background: linear-gradient(45deg, #4caf50, #8bc34a, #4caf50, #66bb6a);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: uploaderShimmer 3s ease-in-out infinite, uploaderAura 2s ease-in-out infinite alternate;
    text-shadow: 
        0 0 10px rgba(76, 175, 80, 0.8),
        0 0 20px rgba(76, 175, 80, 0.6),
        0 0 30px rgba(76, 175, 80, 0.4);
    position: relative;
    font-weight: 700;
}

.username-godlike {
    background: linear-gradient(45deg, #9c27b0, #e91e63, #9c27b0, #673ab7);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: godlikeShimmer 3s ease-in-out infinite, godlikeAura 2s ease-in-out infinite alternate;
    text-shadow: 
        0 0 10px rgba(156, 39, 176, 0.8),
        0 0 20px rgba(156, 39, 176, 0.6),
        0 0 30px rgba(156, 39, 176, 0.4);
    position: relative;
    font-weight: 700;
}

.username-nova {
    background: linear-gradient(45deg, #00bcd4, #26c6da, #00bcd4, #4dd0e1);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: novaShimmer 3s ease-in-out infinite, novaAura 2s ease-in-out infinite alternate;
    text-shadow: 
        0 0 10px rgba(0, 188, 212, 0.8),
        0 0 20px rgba(0, 188, 212, 0.6),
        0 0 30px rgba(0, 188, 212, 0.4);
    position: relative;
    font-weight: 700;
}

.username-owner {
    background: linear-gradient(45deg, #ff5722, #ff7043, #ff5722, #ff8a65);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: ownerShimmer 3s ease-in-out infinite, ownerAura 2s ease-in-out infinite alternate;
    text-shadow: 
        0 0 10px rgba(255, 87, 34, 0.8),
        0 0 20px rgba(255, 87, 34, 0.6),
        0 0 30px rgba(255, 87, 34, 0.4);
    position: relative;
    font-weight: 700;
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    min-width: 200px;
    display: none;
    z-index: var(--z-dropdown);
}

.user-menu:hover .user-dropdown {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.dropdown-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-primary);
    margin: var(--spacing-sm) 0;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: var(--spacing-md);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
}

/* Search Box */
.search-box {
    margin-bottom: var(--spacing-2xl);
}

.search-input-wrapper {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.search-icon {
    padding: var(--spacing-md);
    color: var(--text-muted);
    background: none;
    border: none;
    font-size: var(--font-size-lg);
}

.search-input {
    flex: 1;
    padding: var(--spacing-md);
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: var(--font-size-base);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--text-primary);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-accent);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* ===== CATEGORIES SECTION ===== */
.categories {
    padding: var(--spacing-2xl) 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.category-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: var(--transition-normal);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px var(--shadow-primary);
    border-color: var(--primary-red);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    font-size: var(--font-size-2xl);
    color: var(--text-primary);
}

.category-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.category-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.category-count {
    color: var(--primary-red);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

/* ===== TORRENTS SECTION ===== */
.popular-torrents {
    padding: var(--spacing-2xl) 0;
}

.torrents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.torrent-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.torrent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px var(--shadow-primary);
    border-color: var(--primary-red);
}

.torrent-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    line-height: 1.4;
}

.torrent-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.torrent-stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.torrent-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.btn-sm {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
}

/* ===== REQUESTS SECTION ===== */
.requests {
    padding: var(--spacing-2xl) 0;
}

.requests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.request-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.request-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.request-category {
    display: inline-block;
    background: var(--primary-red);
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.request-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

/* ===== CHAT SECTION ===== */
.chat-section {
    padding: var(--spacing-2xl) 0;
}

#chat-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid var(--border-primary);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section ul li a {
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.footer-section ul li a:hover {
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    color: var(--text-secondary);
    font-size: var(--font-size-xl);
    transition: var(--transition-normal);
}

.social-links a:hover {
    color: var(--primary-red);
}

/* Online Users Section */
.online-users-section {
    border-top: 1px solid var(--border-primary);
    padding-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.online-users-section h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.online-count {
    color: var(--text-secondary);
    font-size: 0.9em;
    font-weight: normal;
}

.online-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
    max-height: 300px;
    overflow-y: auto;
}

.online-user-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    text-decoration: none;
    color: var(--text-primary);
}

.online-user-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

.online-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border-primary);
}

.online-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.online-user-info {
    flex: 1;
    min-width: 0;
}

.online-user-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.online-user-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.online-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
    animation: pulse 2s infinite;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.loading-online-users {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    color: var(--text-secondary);
    padding: var(--spacing-xl);
    grid-column: 1 / -1;
}

.loading-online-users i {
    font-size: 1.2rem;
}

.no-online-users {
    text-align: center;
    color: var(--text-secondary);
    padding: var(--spacing-xl);
    grid-column: 1 / -1;
}

.no-online-users i {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    opacity: 0.5;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-primary);
    color: var(--text-muted);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    font-size: var(--font-size-base);
    font-family: var(--font-family);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--text-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-accent);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-secondary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-sm {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--font-size-lg);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    transition: var(--transition-normal);
    font-family: var(--font-family);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
    background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px var(--shadow-primary);
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 80px var(--shadow-primary);
}

.card-header {
    margin-bottom: var(--spacing-lg);
}

.card-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.card-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    z-index: var(--z-modal);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

/* ===== NOTIFICATIONS ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px var(--shadow-primary);
    z-index: var(--z-notification);
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.notification.success {
    background: rgba(76, 175, 80, 0.9);
    color: var(--text-primary);
}

.notification.error {
    background: rgba(229, 57, 53, 0.9);
    color: var(--text-primary);
}

.notification.info {
    background: rgba(33, 150, 243, 0.9);
    color: var(--text-primary);
}

/* ===== LOADING STATES ===== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Username Animation Keyframes */
@keyframes adminShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

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

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

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

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

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

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

@keyframes adminAura {
    0% { text-shadow: 0 0 10px rgba(255, 107, 107, 0.8), 0 0 20px rgba(255, 107, 107, 0.6), 0 0 30px rgba(255, 107, 107, 0.4); }
    100% { text-shadow: 0 0 15px rgba(255, 107, 107, 0.9), 0 0 25px rgba(255, 107, 107, 0.7), 0 0 35px rgba(255, 107, 107, 0.5); }
}

@keyframes modAura {
    0% { text-shadow: 0 0 10px rgba(255, 140, 66, 0.8), 0 0 20px rgba(255, 140, 66, 0.6), 0 0 30px rgba(255, 140, 66, 0.4); }
    100% { text-shadow: 0 0 15px rgba(255, 140, 66, 0.9), 0 0 25px rgba(255, 140, 66, 0.7), 0 0 35px rgba(255, 140, 66, 0.5); }
}

@keyframes vipAura {
    0% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.4); }
    100% { text-shadow: 0 0 15px rgba(255, 215, 0, 0.9), 0 0 25px rgba(255, 215, 0, 0.7), 0 0 35px rgba(255, 215, 0, 0.5); }
}

@keyframes uploaderAura {
    0% { text-shadow: 0 0 10px rgba(76, 175, 80, 0.8), 0 0 20px rgba(76, 175, 80, 0.6), 0 0 30px rgba(76, 175, 80, 0.4); }
    100% { text-shadow: 0 0 15px rgba(76, 175, 80, 0.9), 0 0 25px rgba(76, 175, 80, 0.7), 0 0 35px rgba(76, 175, 80, 0.5); }
}

@keyframes godlikeAura {
    0% { text-shadow: 0 0 10px rgba(156, 39, 176, 0.8), 0 0 20px rgba(156, 39, 176, 0.6), 0 0 30px rgba(156, 39, 176, 0.4); }
    100% { text-shadow: 0 0 15px rgba(156, 39, 176, 0.9), 0 0 25px rgba(156, 39, 176, 0.7), 0 0 35px rgba(156, 39, 176, 0.5); }
}

@keyframes novaAura {
    0% { text-shadow: 0 0 10px rgba(0, 188, 212, 0.8), 0 0 20px rgba(0, 188, 212, 0.6), 0 0 30px rgba(0, 188, 212, 0.4); }
    100% { text-shadow: 0 0 15px rgba(0, 188, 212, 0.9), 0 0 25px rgba(0, 188, 212, 0.7), 0 0 35px rgba(0, 188, 212, 0.5); }
}

@keyframes ownerAura {
    0% { text-shadow: 0 0 10px rgba(255, 87, 34, 0.8), 0 0 20px rgba(255, 87, 34, 0.6), 0 0 30px rgba(255, 87, 34, 0.4); }
    100% { text-shadow: 0 0 15px rgba(255, 87, 34, 0.9), 0 0 25px rgba(255, 87, 34, 0.7), 0 0 35px rgba(255, 87, 34, 0.5); }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-sm); }
.p-2 { padding: var(--spacing-md); }
.p-3 { padding: var(--spacing-lg); }
.p-4 { padding: var(--spacing-xl); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

/* ===== ACCESSIBILITY ===== */
/* Focus indicators for keyboard navigation */
.keyboard-navigation *:focus {
    outline: 2px solid #e53935 !important;
    outline-offset: 2px !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .nav-link {
        border: 1px solid transparent;
    }
    
    .nav-link:hover,
    .nav-link.active {
        border-color: #e53935;
    }
}

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

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link styles */
.skip-link:focus {
    top: 6px !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .main-nav {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: var(--spacing-lg);
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .torrents-grid,
    .requests-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }
    
    .modal-content {
        padding: var(--spacing-lg);
    }
} 

/* ===== CHAT STYLES ===== */
/* Modern Encrypted Chat Styles */
.modern-chat-container {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    margin: 2rem 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.chat-header {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(20, 20, 20, 0.9) 100%);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-header h2 {
    color: #fff;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.encryption-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #00ff88;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
}

.encryption-status.connected {
    color: #00ff88;
}

.encryption-status:not(.connected) {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
}

.header-right {
    display: flex;
    gap: 0.5rem;
}

.minimize-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.minimize-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.chat-body {
    display: flex;
    height: 600px;
    background: rgba(0, 0, 0, 0.4);
}

.chat-sidebar {
    width: 280px;
    background: rgba(0, 0, 0, 0.6);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

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

.sidebar-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.chat-rooms {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.chat-room-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.chat-room-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.chat-room-item.active {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
}

.chat-room-item h4 {
    color: #fff;
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.chat-room-item p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 0.5rem 0;
    font-size: 0.8rem;
    line-height: 1.4;
}

.message-count {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 500;
}

.online-users {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.online-users h4 {
    color: #fff;
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.no-users {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-align: center;
    padding: 1rem;
}

.online-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.online-user:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
}

.status-dot.online {
    background: #00ff88;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 136, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.room-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.room-info h3 {
    color: #fff;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.room-participants {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.messages-container {
    flex: 1;
    padding: 1rem 2rem;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1rem;
}

.message {
    display: flex;
    gap: 1rem;
    animation: messageSlideIn 0.3s ease-out;
}

.message.own-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

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

.message-content {
    flex: 1;
    max-width: 70%;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.username {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.username-owner {
    background: linear-gradient(45deg, #ff0000, #8b0000, #000000, #ff0000, #8b0000);
    background-size: 500% 500%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: ownerShimmer 3s ease-in-out infinite;
    text-shadow: 
        0 0 8px rgba(255, 0, 0, 0.6),
        0 0 12px rgba(255, 0, 0, 0.4);
    position: relative;
    font-weight: 900;
    letter-spacing: 1px;
}

.username-admin {
    background: linear-gradient(45deg, #ff6b6b, #ffd93d, #ff6b6b, #ff8e8e);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: adminShimmer 3s ease-in-out infinite;
    text-shadow: 
        0 0 10px rgba(255, 107, 107, 0.8),
        0 0 20px rgba(255, 107, 107, 0.6);
    position: relative;
    font-weight: 700;
}

.username-moderator {
    background: linear-gradient(45deg, #ff8c42, #ff6b35, #ff8c42, #ffa726);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: modShimmer 3s ease-in-out infinite;
    text-shadow: 
        0 0 10px rgba(255, 140, 66, 0.8),
        0 0 20px rgba(255, 140, 66, 0.6);
    position: relative;
    font-weight: 700;
}

.username-vip {
    background: linear-gradient(45deg, #4ecdc4, #44a08d, #4ecdc4, #56cfe1);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: vipShimmer 3s ease-in-out infinite;
    text-shadow: 
        0 0 10px rgba(78, 205, 196, 0.8),
        0 0 20px rgba(78, 205, 196, 0.6);
    position: relative;
    font-weight: 700;
}

.username-uploader {
    background: linear-gradient(45deg, #a8e6cf, #88d8c0, #a8e6cf, #b8e6cf);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: uploaderShimmer 3s ease-in-out infinite;
    text-shadow: 
        0 0 10px rgba(168, 230, 207, 0.8),
        0 0 20px rgba(168, 230, 207, 0.6);
    position: relative;
    font-weight: 700;
}

.username-godlike {
    background: linear-gradient(45deg, #00d4ff, #0099cc, #00d4ff, #66e6ff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: godlikeShimmer 4s ease-in-out infinite;
    text-shadow: 
        0 0 15px rgba(0, 212, 255, 0.9),
        0 0 25px rgba(0, 212, 255, 0.7);
    position: relative;
    font-weight: 800;
    letter-spacing: 1px;
}

.username-nova {
    background: linear-gradient(45deg, #667eea, #764ba2, #667eea, #8b5cf6);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: novaShimmer 4s ease-in-out infinite;
    text-shadow: 
        0 0 15px rgba(102, 126, 234, 0.9),
        0 0 25px rgba(102, 126, 234, 0.7);
    position: relative;
    font-weight: 800;
    letter-spacing: 1px;
}

.admin-badge, .mod-badge, .vip-badge, .uploader-badge, .godlike-badge, .nova-badge, .owner-badge {
    margin-right: 8px;
    animation: badgeFloat 2s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 0 5px currentColor);
}

.username-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.username-link:hover {
    color: #e53935;
}

.rank {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 500;
}

.timestamp {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.message-body {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.own-message .message-body {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
}

.message-text {
    color: #fff;
    line-height: 1.5;
    margin: 0;
    word-wrap: break-word;
}

.own-message .message-text {
    color: #fff;
}

.message-image {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.message-image:hover {
    transform: scale(1.02);
}

.emoji-picker {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(20px);
}

.emoji-picker-content {
    max-height: 200px;
    overflow-y: auto;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.emoji-grid .emoji-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-grid .emoji-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

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

.emoji-grid::-webkit-scrollbar {
    width: 6px;
}

.emoji-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.emoji-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.emoji-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.typing-indicators {
    padding: 0.5rem 2rem;
    background: rgba(0, 0, 0, 0.4);
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.typing-dots {
    display: flex;
    gap: 0.25rem;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: typingDot 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

.message-input-area {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.input-container {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.message-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    resize: none;
    min-height: 50px;
    max-height: 120px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.message-input:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

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

.input-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.emoji-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.emoji-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.send-btn {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
    justify-content: center;
}

.send-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.chat-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    animation: notificationSlideIn 0.3s ease;
    backdrop-filter: blur(20px);
}

.chat-notification.error {
    border-left: 4px solid #ff6b6b;
}

.chat-notification.success {
    border-left: 4px solid #00ff88;
}

.chat-login-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    margin: 2rem 0;
}

.login-content {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.login-content i {
    font-size: 3rem;
    color: #e53935;
    margin-bottom: 1rem;
}

.login-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.login-content p {
    margin-bottom: 2rem;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 57, 53, 0.3);
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typingPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes typingDot {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes notificationSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.messages-list::-webkit-scrollbar,
.chat-rooms::-webkit-scrollbar {
    width: 8px;
}

.messages-list::-webkit-scrollbar-track,
.chat-rooms::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.messages-list::-webkit-scrollbar-thumb,
.chat-rooms::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.messages-list::-webkit-scrollbar-thumb:hover,
.chat-rooms::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.chat-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: rgba(255, 255, 255, 0.7);
}

.chat-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #e53935;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 1rem;
}

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

/* ===== RESPONSIVE CHAT DESIGN ===== */
@media (max-width: 768px) {
    .modern-chat-container {
        margin: 1rem 0;
        border-radius: 12px;
    }
    
    .chat-body {
        height: 500px;
        flex-direction: column;
    }
    
    .chat-sidebar {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .message {
        gap: 0.5rem;
    }
    
    .input-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .send-btn {
        width: 100%;
    }
    
    .chat-header {
        padding: 1rem;
    }
    
    .chat-header h2 {
        font-size: 1rem;
    }
    
    .encryption-status {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}

/* ===== BROWSE PAGE STYLES ===== */
.browse-header {
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.browse-filters {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    backdrop-filter: blur(20px);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.filter-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
}

.filter-group select,
.filter-group input {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--border-accent);
    outline: none;
}

.browse-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.torrent-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.torrent-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px var(--shadow-primary);
    border-color: var(--primary-red);
}

.torrent-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.torrent-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
}

.torrent-category {
    display: inline-block;
    background: var(--primary-red);
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.torrent-stats {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.torrent-stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.torrent-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* ===== PROFILE PAGE STYLES ===== */
.profile-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--spacing-2xl) 0;
}

.profile-header {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-red);
    flex-shrink: 0;
}

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

.profile-info {
    flex: 1;
}

.profile-username {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.profile-rank {
    display: inline-block;
    background: var(--primary-red);
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.profile-join-date {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--shadow-primary);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: var(--font-size-xl);
    color: var(--text-primary);
}

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

.stat-value {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* ===== DASHBOARD STYLES ===== */
.dashboard-header {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    backdrop-filter: blur(20px);
}

.dashboard-nav {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.dashboard-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.stats-overview {
    margin-bottom: var(--spacing-2xl);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.achievements-section {
    margin-bottom: var(--spacing-2xl);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.achievement-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.achievement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--shadow-primary);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: var(--font-size-2xl);
    color: #000;
}

.achievement-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.achievement-description {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

.activity-section {
    margin-bottom: var(--spacing-2xl);
}

.activity-list {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    backdrop-filter: blur(10px);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-primary);
}

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

.activity-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.activity-time {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.leaderboards-section {
    margin-bottom: var(--spacing-2xl);
}

.leaderboards-tabs {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.tab-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    color: var(--text-secondary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-red);
    color: var(--text-primary);
    border-color: var(--primary-red);
}

.leaderboard-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    backdrop-filter: blur(10px);
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-primary);
}

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

.leaderboard-rank {
    width: 30px;
    height: 30px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-weight: 600;
    flex-shrink: 0;
}

.leaderboard-user {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.leaderboard-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

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

.leaderboard-username {
    font-weight: 600;
    color: var(--text-primary);
}

.leaderboard-value {
    color: var(--primary-red);
    font-weight: 600;
}

/* ===== UPLOAD PAGE STYLES ===== */
.upload-main {
    padding: var(--spacing-2xl) 0;
}

.upload-form {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px var(--shadow-primary);
}

.form-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.form-header h1 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-header p {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
}

.form-section {
    margin-bottom: var(--spacing-2xl);
}

.form-section h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.file-upload-area {
    border: 2px dashed var(--border-secondary);
    border-radius: var(--radius-md);
    padding: var(--spacing-2xl);
    text-align: center;
    transition: var(--transition-normal);
    background: var(--bg-tertiary);
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--primary-red);
    background: rgba(229, 57, 53, 0.05);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: var(--spacing-lg);
}

.file-upload-area p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-accent);
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-md);
}

.file-details {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-primary);
}

.file-details i {
    color: var(--primary-red);
    font-size: var(--font-size-lg);
}

.remove-btn {
    background: rgba(229, 57, 53, 0.2);
    color: var(--primary-red);
    border: none;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
}

.remove-btn:hover {
    background: rgba(229, 57, 53, 0.3);
}

.form-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-primary);
}

.permission-denied {
    text-align: center;
    padding: var(--spacing-2xl);
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-primary);
}

.denied-content i {
    font-size: 4rem;
    color: var(--primary-red);
    margin-bottom: var(--spacing-lg);
}

.denied-content h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.denied-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.denied-content ul {
    text-align: left;
    max-width: 400px;
    margin: 0 auto var(--spacing-xl);
    color: var(--text-secondary);
}

.current-stats {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
}

.current-stats h3 {
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-xs);
}

.stat-value {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--primary-red);
}

.action-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-xl);
}

/* ===== LOGIN PAGE STYLES ===== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
}

.auth-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px var(--shadow-primary);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.auth-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    font-size: var(--font-size-3xl);
    font-weight: bold;
    color: var(--text-primary);
}

.auth-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.auth-form .form-group {
    margin-bottom: 0;
}

.auth-form .btn {
    width: 100%;
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.auth-footer {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-primary);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.auth-footer a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ===== SUBSCRIPTION PAGE STYLES ===== */
.subscription-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-2xl) 0;
}

.subscription-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.subscription-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subscription-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin: 0 auto;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.plan-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px var(--shadow-primary);
    border-color: var(--primary-red);
}

.plan-card.featured {
    border-color: var(--primary-red);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(229, 57, 53, 0.1) 100%);
}

.plan-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary-red);
    color: var(--text-primary);
    padding: var(--spacing-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.plan-name {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.plan-price {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: var(--spacing-sm);
}

.plan-price .period {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    margin: var(--spacing-lg) 0;
    text-align: left;
}

.plan-features li {
    padding: var(--spacing-sm) 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.plan-features li::before {
    content: '✓';
    color: var(--primary-red);
    font-weight: bold;
}

.plan-btn {
    width: 100%;
    margin-top: var(--spacing-lg);
}

/* ===== SECURITY PAGE STYLES ===== */
.security-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-2xl) 0;
}

.security-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.security-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.security-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
}

.security-tips {
    display: grid;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.security-tip {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.security-tip:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--shadow-primary);
    border-color: var(--primary-red);
}

.tip-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.tip-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: var(--font-size-xl);
}

.tip-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.tip-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.tip-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* ===== TORRENT DETAIL PAGE STYLES ===== */
.torrent-main {
    padding: var(--spacing-2xl) 0;
}

.torrent-details {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px var(--shadow-primary);
}

.torrent-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-xl);
    gap: var(--spacing-xl);
}

.torrent-title-section {
    flex: 1;
}

.torrent-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.torrent-meta {
    display: flex;
    gap: var(--spacing-lg);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.torrent-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

.torrent-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.torrent-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-2xl);
}

.content-left {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.content-right {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.info-section,
.description-section,
.tags-section,
.nfo-section {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.info-section h3,
.description-section h3,
.tags-section h3,
.nfo-section h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-primary);
}

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

.info-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
}

.description-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.tag {
    background: var(--primary-red);
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.nfo-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    padding: var(--spacing-lg);
    overflow-x: auto;
}

.nfo-content pre {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: var(--font-size-sm);
    line-height: 1.4;
    margin: 0;
    white-space: pre-wrap;
}

/* ===== VIEW PROFILE PAGE STYLES ===== */
.profile-view-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--spacing-2xl) 0;
}

.back-button {
    margin-bottom: var(--spacing-xl);
}

.profile-view-header {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.profile-view-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-red);
    flex-shrink: 0;
}

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

.profile-view-info {
    flex: 1;
}

.profile-view-username {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.profile-view-rank {
    display: inline-block;
    background: var(--primary-red);
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.profile-view-join-date {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.profile-view-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--text-primary);
}

.action-btn.secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-secondary);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-primary);
}

.profile-view-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.recent-activity {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    backdrop-filter: blur(10px);
}

.recent-activity h2 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.activity-time {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* ===== LOADING STATES ===== */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.loading-spinner {
    text-align: center;
}

.loading-spinner .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-lg);
}

.loading-spinner p {
    color: var(--text-secondary);
}

/* ===== RESPONSIVE DESIGN UPDATES ===== */
@media (max-width: 768px) {
    .torrent-header-section {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .torrent-actions {
        width: 100%;
        justify-content: center;
    }
    
    .torrent-content {
        grid-template-columns: 1fr;
    }
    
    .profile-header,
    .profile-view-header {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
    }
    
    .profile-avatar,
    .profile-view-avatar {
        width: 100px;
        height: 100px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .security-tips {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .auth-card {
        margin: var(--spacing-lg);
    }
} 

/* ===== FONT AWESOME ICON STYLES ===== */
.fas, .fa, .far, .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands";
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fas {
    font-weight: 900;
}

.far {
    font-weight: 400;
}

.fab {
    font-weight: 400;
}

/* Ensure icons inherit color properly */
i.fas, i.far, i.fab {
    color: inherit;
    font-size: inherit;
}

/* ===== ENHANCED USERNAME ROLE STYLES ===== */
/* Owner Effect - Ultimate Tier with Red/Black Gradient */
.username-owner {
    background: linear-gradient(45deg, #ff0000, #8b0000, #000000, #ff0000, #8b0000);
    background-size: 500% 500%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: ownerShimmer 3s ease-in-out infinite;
    text-shadow: 
        0 0 8px rgba(255, 0, 0, 0.6),
        0 0 12px rgba(255, 0, 0, 0.4);
    position: relative;
    font-weight: 900;
    letter-spacing: 1px;
}

/* Admin Effect */
.username-admin {
    background: linear-gradient(45deg, #ff6b6b, #ffd93d, #ff6b6b, #ff8e8e);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: adminShimmer 3s ease-in-out infinite;
    text-shadow: 
        0 0 10px rgba(255, 107, 107, 0.8),
        0 0 20px rgba(255, 107, 107, 0.6);
    position: relative;
    font-weight: 700;
}

/* Moderator Effect */
.username-moderator {
    background: linear-gradient(45deg, #ff8c42, #ff6b35, #ff8c42, #ffa726);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: modShimmer 3s ease-in-out infinite;
    text-shadow: 
        0 0 10px rgba(255, 140, 66, 0.8),
        0 0 20px rgba(255, 140, 66, 0.6);
    position: relative;
    font-weight: 700;
}

/* VIP Effect */
.username-vip {
    background: linear-gradient(45deg, #4ecdc4, #44a08d, #4ecdc4, #56cfe1);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: vipShimmer 3s ease-in-out infinite;
    text-shadow: 
        0 0 10px rgba(78, 205, 196, 0.8),
        0 0 20px rgba(78, 205, 196, 0.6);
    position: relative;
    font-weight: 700;
}

/* Uploader Effect */
.username-uploader {
    background: linear-gradient(45deg, #a8e6cf, #88d8c0, #a8e6cf, #b8e6cf);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: uploaderShimmer 3s ease-in-out infinite;
    text-shadow: 
        0 0 10px rgba(168, 230, 207, 0.8),
        0 0 20px rgba(168, 230, 207, 0.6);
    position: relative;
    font-weight: 700;
}

/* Godlike Effect - Highest Tier */
.username-godlike {
    background: linear-gradient(45deg, #00d4ff, #0099cc, #00d4ff, #66e6ff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: godlikeShimmer 4s ease-in-out infinite;
    text-shadow: 
        0 0 15px rgba(0, 212, 255, 0.9),
        0 0 25px rgba(0, 212, 255, 0.7);
    position: relative;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Nova Effect - Special Tier */
.username-nova {
    background: linear-gradient(45deg, #667eea, #764ba2, #667eea, #8b5cf6);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: novaShimmer 4s ease-in-out infinite;
    text-shadow: 
        0 0 15px rgba(102, 126, 234, 0.9),
        0 0 25px rgba(102, 126, 234, 0.7);
    position: relative;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Badge Animations with Enhanced Effects */
.admin-badge, .mod-badge, .vip-badge, .uploader-badge, .godlike-badge, .nova-badge, .owner-badge {
    margin-right: 8px;
    animation: badgeFloat 2s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 0 5px currentColor);
}

/* Enhanced Badge Animation */
@keyframes badgeFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1) rotate(0deg); 
        filter: brightness(1) drop-shadow(0 0 5px currentColor);
    }
    25% { 
        transform: translateY(-2px) scale(1.1) rotate(2deg); 
        filter: brightness(1.2) drop-shadow(0 0 8px currentColor);
    }
    50% { 
        transform: translateY(-4px) scale(1.2) rotate(0deg); 
        filter: brightness(1.4) drop-shadow(0 0 12px currentColor);
    }
    75% { 
        transform: translateY(-2px) scale(1.1) rotate(-2deg); 
        filter: brightness(1.2) drop-shadow(0 0 8px currentColor);
    }
}

/* ===== BROWSE PAGE ENHANCED STYLES ===== */
.browse-main {
    padding: 2rem 0;
}

.search-filter-section {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
}

.search-container {
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.search-icon {
    padding: 1rem;
    color: rgba(255, 255, 255, 0.5);
    background: none;
    border: none;
    font-size: 1.2rem;
}

.search-input {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

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

.search-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 57, 53, 0.3);
}

.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.filter-select:focus {
    border-color: #e53935;
    background: rgba(255, 255, 255, 0.1);
}

.filter-select option {
    background: #1a1a1a;
    color: #fff;
}

.clear-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(229, 57, 53, 0.2);
    color: #e53935;
    border: 1px solid rgba(229, 57, 53, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.clear-filters-btn:hover {
    background: rgba(229, 57, 53, 0.3);
    border-color: rgba(229, 57, 53, 0.5);
}

.results-section {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(20px);
}

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

.results-info h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.results-info span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    background: #e53935;
    color: #fff;
    border-color: #e53935;
}

.torrents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.torrent-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.torrent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-color: #e53935;
}

.torrent-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.4;
    /* Text truncation for 2 lines */
    max-height: 2.8em; /* 2 lines * 1.4 line-height */
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.torrent-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.torrent-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.torrent-actions {
    display: flex;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 57, 53, 0.3);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.loading-spinner {
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #e53935;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.no-results {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.6);
}

.no-results i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.no-results h3 {
    margin-bottom: 0.5rem;
    color: #fff;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-btn {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
}

.page-number {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.page-number.active,
.page-number:hover {
    background: #e53935;
    border-color: #e53935;
}

/* ===== PROFILE PAGE ENHANCED STYLES ===== */
.profile-main {
    padding: 2rem 0;
}

.profile-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #e53935;
    flex-shrink: 0;
}

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

.profile-username {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.profile-class {
    display: inline-block;
    background: #e53935;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-stats-section {
    margin-bottom: 2rem;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.profile-stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.profile-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: #e53935;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.stat-value.ratio {
    color: #4caf50;
}

.stat-value.expired {
    color: #f44336;
}

.stat-value.active {
    color: #2196f3;
}

.stat-value.good {
    color: #4caf50;
}

.stat-value.bad {
    color: #f44336;
}

.edit-profile-btn, .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.edit-profile-btn:hover, .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 57, 53, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ===== VIEW PROFILE ENHANCED STYLES ===== */
.profile-view-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px);
}

.back-button {
    margin-bottom: 2rem;
}

.back-button .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-button .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.profile-header {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.profile-avatar {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #e53935;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(229, 57, 53, 0.2);
    background: #222;
    display: block;
    margin: 0 auto;
}

.profile-info {
    text-align: center;
    width: 100%;
}

.profile-username {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.5px;
}

.profile-rank {
    display: inline-block;
    background: #e53935;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-join-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn.primary {
    background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%);
    color: #fff;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 57, 53, 0.3);
}

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

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: #e53935;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: #fff;
}

.stat-icon i {
    color: inherit;
}

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

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e53935;
}

.stat-value.positive {
    color: #4caf50;
}

.stat-value.negative {
    color: #f44336;
}

.recent-activity {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    width: 100%;
    backdrop-filter: blur(10px);
}

.recent-activity h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.recent-activity h2::before {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #e53935;
    border-radius: 1px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: #e53935;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.activity-icon i {
    color: inherit;
}

.activity-content {
    flex: 1;
}

.activity-text {
    color: #fff;
    font-weight: 500;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

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

.no-activity {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 2rem;
}

.no-activity i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.loading-spinner i {
    font-size: 2rem;
    color: #e53935;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.error-message i {
    font-size: 2rem;
    color: #f44336;
    margin-bottom: 1rem;
}

.error-message h1 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.error-message p {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== SUBSCRIPTION PAGE ENHANCED STYLES ===== */
.subscription-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.subscription-header {
    text-align: center;
    margin-bottom: 3rem;
}

.subscription-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subscription-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.current-subscription {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(20px);
    text-align: center;
}

.current-subscription h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
}

.current-subscription .subscription-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.current-subscription .subscription-details i {
    color: #4caf50;
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.current-subscription .subscription-details p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
}

.usage-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
}

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

.usage-stat .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #e53935;
    display: block;
}

.usage-stat .stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upgrade-section {
    text-align: center;
    margin: 2rem 0;
}

.upgrade-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.payment-history {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
}

.payment-history h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.payment-history p {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

/* ===== RESPONSIVE DESIGN UPDATES ===== */
@media (max-width: 768px) {
    .filters-container {
        grid-template-columns: 1fr;
    }
    
    .torrents-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .torrent-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .torrent-actions {
        flex-direction: column;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .profile-avatar-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-username {
        font-size: 2rem;
    }
    
    .profile-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-view-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .profile-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .profile-username {
        font-size: 1.5rem;
    }
    
    .profile-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .usage-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .search-box {
        flex-direction: column;
    }
    
    .search-input {
        border-radius: 0;
    }
    
    .search-btn {
        border-radius: 0;
    }
    
    .profile-card {
        padding: 1.5rem;
    }
    
    .profile-view-container {
        padding: 1rem;
    }
    
    .subscription-container {
        padding: 1rem;
    }
    
    .subscription-title {
        font-size: 2rem;
    }
}

/* ===== LOGIN/AUTH PAGE ENHANCED STYLES ===== */
/* Auth Container */
.auth-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    z-index: 10;
}

.auth-card {
    background: rgba(51, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(229, 57, 53, 0.2);
    border: 1px solid rgba(229, 57, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e53935, #8b0000);
}

/* Logo */
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    background: rgba(229, 57, 53, 0.1);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(229, 57, 53, 0.2);
    backdrop-filter: blur(10px);
}

.logo-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #e53935, #8b0000);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(229, 57, 53, 0.3);
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #e53935, #8b0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Auth Title */
.auth-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #fff;
}

.auth-subtitle {
    text-align: center;
    color: #ffb3b3;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Form Styles */
.auth-form {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #ffb3b3;
    font-size: 0.875rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: #9ca3af;
    z-index: 1;
    transition: color 0.2s ease;
    font-size: 1rem;
}

.input-icon.fas {
    color: #9ca3af;
}

.form-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e53935;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
}

.form-group input::placeholder {
    color: #ffb3b3;
    opacity: 0.7;
}

.form-group input:focus {
    outline: none;
    border-color: #ff1744;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.2);
}

.form-group input:focus + .input-icon {
    color: #ff1744;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #ff1744;
}

.password-toggle i {
    font-size: 1rem;
    color: inherit;
}

.password-toggle i.fa-eye,
.password-toggle i.fa-eye-slash {
    color: inherit;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #ffb3b3;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #5a67d8;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    width: 100%;
}

.btn i {
    font-size: 1rem;
}

.btn i.fas {
    color: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #e53935, #8b0000);
    color: white;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 57, 53, 0.4);
}

.btn-full {
    width: 100%;
    margin-bottom: 1.5rem;
}

.btn-social {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    margin-bottom: 0.75rem;
    width: 100%;
}

.btn-social:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.btn-google:hover {
    border-color: #ea4335;
    color: #ea4335;
}

.btn-github:hover {
    border-color: #333;
    color: #333;
}

/* Auth Divider */
.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    background: rgba(51, 0, 0, 0.95);
    padding: 0 1rem;
    color: #ffb3b3;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

/* Social Login */
.social-login {
    margin-bottom: 1.5rem;
}

/* Auth Switch */
.auth-switch {
    text-align: center;
    color: #ffb3b3;
    font-size: 0.875rem;
}

.auth-switch a {
    color: #e53935;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-switch a:hover {
    color: #ff1744;
}

.link {
    color: #e53935;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.link:hover {
    color: #ff1744;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.form-group.error input {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-group.success input {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.password-strength-container {
    margin-top: 0.5rem;
}

.password-strength-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-fill.weak {
    background: linear-gradient(90deg, #ff1744, #d32f2f);
    width: 25%;
}

.password-strength-fill.fair {
    background: linear-gradient(90deg, #ff9800, #f57c00);
    width: 50%;
}

.password-strength-fill.good {
    background: linear-gradient(90deg, #ffc107, #ff8f00);
    width: 75%;
}

.password-strength-fill.strong {
    background: linear-gradient(90deg, #4caf50, #2e7d32);
    width: 100%;
}

.password-strength-text {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.password-strength-text.weak {
    color: #ff1744;
}

.password-strength-text.fair {
    color: #ff9800;
}

.password-strength-text.good {
    color: #ffc107;
}

.password-strength-text.strong {
    color: #4caf50;
}

.form-help {
    font-size: 0.75rem;
    color: #ffb3b3;
    margin-top: 0.25rem;
    opacity: 0.8;
}

/* ===== LOGIN BACKGROUND ENHANCED STYLES ===== */
.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(229, 57, 53, 0.2);
    border: 2px solid rgba(229, 57, 53, 0.3);
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(229, 57, 53, 0.3);
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 15%;
    animation-delay: 0s;
}

.shape-2 {
    width: 180px;
    height: 180px;
    top: 65%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 25%;
    left: 25%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    33% {
        transform: translateY(-30px) rotate(120deg) scale(1.1);
        opacity: 0.8;
    }
    66% {
        transform: translateY(15px) rotate(240deg) scale(0.9);
        opacity: 0.4;
    }
}

/* ===== LOGIN FORM ENHANCED STYLES ===== */
.auth-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    z-index: 10;
}

.auth-card {
    background: rgba(51, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(229, 57, 53, 0.2);
    border: 1px solid rgba(229, 57, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e53935, #8b0000);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.logo-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #e53935, #8b0000);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(229, 57, 53, 0.3);
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #e53935, #8b0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #fff;
}

.auth-subtitle {
    text-align: center;
    color: #ffb3b3;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.auth-form {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

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

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: #9ca3af;
    z-index: 1;
    transition: color 0.2s ease;
    font-size: 1rem;
}

.input-icon.fas {
    color: #9ca3af;
}

.form-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e53935;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
}

.form-group input::placeholder {
    color: #ffb3b3;
    opacity: 0.7;
}

.form-group input:focus {
    outline: none;
    border-color: #ff1744;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.2);
}

.form-group input:focus + .input-icon {
    color: #ff1744;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #ff1744;
}

.password-toggle i {
    font-size: 1rem;
    color: inherit;
}

.password-toggle i.fa-eye,
.password-toggle i.fa-eye-slash {
    color: inherit;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #ffb3b3;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #5a67d8;
}

.btn-primary {
    background: linear-gradient(135deg, #e53935, #8b0000);
    color: white;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 57, 53, 0.4);
}

.btn-full {
    width: 100%;
    margin-bottom: 1.5rem;
}

.btn-social {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    margin-bottom: 0.75rem;
    width: 100%;
}

.btn-social:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.btn-google:hover {
    border-color: #ea4335;
    color: #ea4335;
}

.btn-github:hover {
    border-color: #333;
    color: #333;
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    background: rgba(51, 0, 0, 0.95);
    padding: 0 1rem;
    color: #ffb3b3;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

.social-login {
    margin-bottom: 1.5rem;
}

.auth-switch {
    text-align: center;
    color: #ffb3b3;
    font-size: 0.875rem;
}

.auth-switch a {
    color: #e53935;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-switch a:hover {
    color: #ff1744;
}

.link {
    color: #e53935;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.link:hover {
    color: #ff1744;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.form-group.error input {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-group.success input {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.password-strength-container {
    margin-top: 0.5rem;
}

.password-strength-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-fill.weak {
    background: linear-gradient(90deg, #ff1744, #d32f2f);
    width: 25%;
}

.password-strength-fill.fair {
    background: linear-gradient(90deg, #ff9800, #f57c00);
    width: 50%;
}

.password-strength-fill.good {
    background: linear-gradient(90deg, #ffc107, #ff8f00);
    width: 75%;
}

.password-strength-fill.strong {
    background: linear-gradient(90deg, #4caf50, #2e7d32);
    width: 100%;
}

.password-strength-text {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.password-strength-text.weak {
    color: #ff1744;
}

.password-strength-text.fair {
    color: #ff9800;
}

.password-strength-text.good {
    color: #ffc107;
}

.password-strength-text.strong {
    color: #4caf50;
}

.form-help {
    font-size: 0.75rem;
    color: #ffb3b3;
    margin-top: 0.25rem;
    opacity: 0.8;
}

/* Toast notification system */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #333;
    border-left: 4px solid #e74c3c;
    border-radius: 8px;
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    opacity: 0;
    animation: toastSlideIn 0.3s ease-out forwards;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast.success {
    border-left-color: #27ae60;
}

.toast.error {
    border-left-color: #e74c3c;
}

.toast.warning {
    border-left-color: #f39c12;
}

.toast.info {
    border-left-color: #3498db;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #27ae60;
}

.toast.error .toast-icon {
    color: #e74c3c;
}

.toast.warning .toast-icon {
    color: #f39c12;
}

.toast.info .toast-icon {
    color: #3498db;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 13px;
    color: #ccc;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

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

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.removing {
    animation: toastSlideOut 0.3s ease-in forwards;
}

/* Images Upload Section */
.images-upload-area {
    border: 2px dashed var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.images-upload-area:hover {
    border-color: var(--primary-red);
    background: rgba(229, 57, 53, 0.05);
}

.images-upload-area.dragover {
    border-color: var(--primary-red);
    background: rgba(229, 57, 53, 0.1);
    transform: scale(1.02);
}

.images-upload-area .upload-icon {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.images-upload-area p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.images-preview {
    margin-top: 1.5rem;
}

.images-preview h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-preview-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    transition: transform 0.3s ease;
}

.image-preview-item:hover {
    transform: translateY(-2px);
}

.image-preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.image-preview-item .image-caption {
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-primary);
    font-size: 0.8rem;
    text-align: center;
}

.image-preview-item .remove-image {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.image-preview-item .remove-image:hover {
    background: var(--primary-red-dark);
}

.image-preview-item .image-inputs {
    padding: 0.5rem;
    background: var(--bg-primary);
}

.image-preview-item input,
.image-preview-item select {
    width: 100%;
    padding: 0.25rem;
    margin-bottom: 0.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.8rem;
}

.image-preview-item input:focus,
.image-preview-item select:focus {
    outline: none;
    border-color: var(--primary-red);
}

/* Responsive Design */
@media (max-width: 768px) {
    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .image-preview-item img {
        height: 100px;
    }
    
    .images-upload-area {
        padding: 1.5rem;
    }
    
    .images-upload-area .upload-icon {
        font-size: 2.5rem;
    }
}

@keyframes logoIconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* ===== ADMIN PANEL STYLES ===== */
.admin-main {
    padding: var(--spacing-xl) 0;
    min-height: 100vh;
}

.admin-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.admin-header h1 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.admin-header p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
}

.admin-nav {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
}

.admin-tab {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 500;
}

.admin-tab:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-accent);
    color: var(--text-primary);
}

.admin-tab.active {
    background: var(--border-accent);
    border-color: var(--border-accent);
    color: var(--text-primary);
}

.admin-tab i {
    font-size: var(--font-size-lg);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* Dashboard Styles */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.admin-stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    transition: all var(--transition-normal);
}

.admin-stat-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.admin-stat-card .stat-icon {
    width: 60px;
    height: 60px;
    background: var(--border-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    color: var(--text-primary);
}

.admin-stat-card .stat-content {
    flex: 1;
}

.admin-stat-card .stat-value {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.admin-stat-card .stat-label {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.admin-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.chart-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.chart-card h3 {
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    font-size: var(--font-size-lg);
}

.recent-activity-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.recent-activity-section h3 {
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

/* Tab Content Styles */
.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.tab-header h2 {
    color: var(--text-primary);
    font-size: var(--font-size-2xl);
}

.tab-actions {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.admin-table {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

.admin-table th {
    background: var(--bg-tertiary);
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-primary);
}

.admin-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-secondary);
}

.admin-table tr:hover {
    background: var(--bg-tertiary);
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.status-badge {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.active {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.status-badge.banned {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.status-badge.pending {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.status-badge.rejected {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.action-buttons {
    display: flex;
    gap: var(--spacing-xs);
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-xs);
    min-width: auto;
}

/* Moderation Styles */
.moderation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.moderation-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.moderation-section h3 {
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.approval-item, .report-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    background: var(--bg-tertiary);
}

.approval-info, .report-info {
    flex: 1;
}

.approval-info h4, .report-info h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-base);
}

.approval-info p, .report-info p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.approval-actions, .report-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.bulk-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Analytics Styles */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-lg);
}

.analytics-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.analytics-card h3 {
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.health-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.health-metric {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.metric-label {
    display: block;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-xs);
}

.metric-value {
    display: block;
    color: var(--text-primary);
    font-size: var(--font-size-lg);
    font-weight: 600;
}

/* System Styles */
.system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.system-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.system-section h3 {
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.cache-controls, .db-controls, .log-controls {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.cache-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.cache-stat {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.log-viewer {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.no-data {
    text-align: center;
    color: var(--text-secondary);
    padding: var(--spacing-xl);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .admin-tab {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-charts-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .system-grid {
        grid-template-columns: 1fr;
    }
    
    .moderation-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tab-actions {
        flex-direction: column;
    }
    
    .admin-table {
        font-size: var(--font-size-sm);
    }
    
    .admin-table th,
    .admin-table td {
        padding: var(--spacing-sm);
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .approval-item,
    .report-item {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-md);
    }
    
    .approval-actions,
    .report-actions {
        justify-content: center;
    }
    
    .bulk-actions {
        flex-direction: column;
    }
    
    .cache-controls,
    .db-controls,
    .log-controls {
        flex-direction: column;
    }
}