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

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --accent-light: #f472b6;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --border-color: #334155;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.4);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 50%, var(--bg-darker) 100%);
    overflow: hidden;
}

.background-animation::before,
.background-animation::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.15;
    animation: float 25s ease-in-out infinite;
    filter: blur(40px);
}

.background-animation::before {
    top: -300px;
    left: -300px;
    animation-delay: 0s;
}

.background-animation::after {
    bottom: -300px;
    right: -300px;
    animation-delay: 12.5s;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.15;
    }
    33% {
        transform: translate(50px, 50px) scale(1.1);
        opacity: 0.2;
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
        opacity: 0.1;
    }
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particles::before,
.particles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: particle-float 15s linear infinite;
    box-shadow: 
        200px 300px var(--primary-color),
        400px 150px var(--accent-color),
        600px 450px var(--secondary-color),
        800px 200px var(--primary-color),
        1000px 350px var(--accent-color),
        1200px 100px var(--secondary-color),
        1400px 400px var(--primary-color);
}

.particles::after {
    animation-delay: 7.5s;
    animation-duration: 20s;
    box-shadow: 
        150px 250px var(--accent-color),
        350px 500px var(--primary-color),
        550px 300px var(--secondary-color),
        750px 150px var(--accent-color),
        950px 450px var(--primary-color),
        1150px 200px var(--secondary-color),
        1350px 350px var(--accent-color);
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* Navbar */
.navbar {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    padding: 1.25rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.navbar:hover {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: var(--border-color);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
    animation: logo-pulse 3s ease-in-out infinite;
    transition: filter 0.3s ease;
}

.logo:hover .logo-icon {
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.8));
}

@keyframes logo-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.8));
    }
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    filter: blur(20px);
    opacity: 0.3;
    z-index: -1;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

.nav-link:hover::after {
    width: calc(100% - 2rem);
}

.nav-link-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-link:hover .nav-link-icon {
    transform: scale(1.2) rotate(5deg);
}

.nav-link.admin-link {
    color: var(--accent-color);
}

.nav-link.admin-link:hover {
    color: var(--accent-light);
    background: rgba(236, 72, 153, 0.1);
}

.nav-link.admin-link::after {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    margin-top: 4rem;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-light);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-shadow {
    color: var(--secondary-color);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.footer-divider {
    color: var(--text-muted);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 180px);
    padding: 2rem;
    position: relative;
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 180px);
    padding: 2rem;
}

.auth-box {
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3.5rem;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.auth-box:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.auth-title {
    font-size: 2.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

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

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    position: relative;
    z-index: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.form-input {
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-color);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.15rem;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.auth-footer {
    margin-top: 2.5rem;
    text-align: center;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.auth-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.auth-link:hover {
    color: var(--primary-light);
}

.auth-link:hover::after {
    width: 100%;
}

.error-message {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid var(--error-color);
    border-radius: 12px;
    padding: 1.25rem;
    color: var(--error-color);
    margin-bottom: 1.75rem;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: shake 0.5s ease-in-out;
}

/* Library Page */
.library-container {
    max-width: 1400px;
    margin: 0 auto;
}

.library-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.user-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 220px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Upgrade Banner */
.upgrade-banner {
    margin-bottom: 3rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-color), var(--accent-color)) 1;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.upgrade-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    z-index: -1;
}

.upgrade-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.upgrade-icon {
    color: var(--primary-color);
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

.upgrade-text {
    flex: 1;
}

.upgrade-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.upgrade-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.upgrade-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

.upgrade-price {
    text-align: center;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
}

.price-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.btn-upgrade {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-upgrade::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-upgrade:hover::before {
    width: 400px;
    height: 400px;
}

.btn-upgrade:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-upgrade:active {
    transform: translateY(-1px);
}

/* Upload Section */
.upload-section {
    margin-bottom: 4rem;
}

.upload-box {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border: 3px dashed var(--border-color);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-box:hover::before {
    opacity: 1;
}

.upload-box:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.upload-box.dragover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.15);
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.upload-area {
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.upload-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.upload-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
    animation: upload-bounce 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.upload-box:hover .upload-icon {
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.8));
    transform: scale(1.1);
}

@keyframes upload-bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

.upload-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow-expand 3s ease-in-out infinite;
}

@keyframes glow-expand {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

.upload-text {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.upload-hint {
    color: var(--text-secondary);
    font-size: 1rem;
}

.upload-progress {
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.progress-bar {
    background: var(--bg-dark);
    border-radius: 12px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.progress-text {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* Images Grid */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.image-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.image-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.image-card:hover::before {
    opacity: 1;
}

.image-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.image-wrapper {
    position: relative;
    width: 100%;
    min-height: 200px;
    max-height: 400px;
    overflow: hidden;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-card:hover .card-image {
    transform: scale(1.15);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.image-card:hover .image-overlay {
    opacity: 1;
}

.btn-copy,
.btn-delete {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    color: white;
}

.btn-copy:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

.btn-delete:hover {
    background: var(--error-color);
    border-color: var(--error-color);
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

.btn-copy svg,
.btn-delete svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

.image-info {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.image-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.image-date {
    color: var(--text-secondary);
}

.image-uploader {
    color: var(--primary-color);
    font-weight: 500;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 6rem 2rem;
}

.empty-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.empty-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    opacity: 0.4;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.3));
    animation: empty-pulse 3s ease-in-out infinite;
}

@keyframes empty-pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.empty-text {
    font-size: 1.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.empty-hint {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Admin Page */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    margin-bottom: 3rem;
}

.admin-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-top: 0.75rem;
}

.users-table-container {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table thead {
    background: rgba(15, 23, 42, 0.8);
}

.users-table th {
    padding: 1.5rem;
    text-align: left;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.users-table td {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
}

.user-row {
    transition: all 0.3s ease;
}

.user-row:hover {
    background: rgba(99, 102, 241, 0.1);
}

.admin-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.upload-input {
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.625rem;
    color: var(--text-primary);
    width: 100px;
    transition: all 0.3s ease;
}

.upload-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-add-uploads {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 10px;
    padding: 0.625rem 1.25rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}

.btn-add-uploads:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-add-uploads:active {
    transform: translateY(0);
}

.btn-delete-user-images,
.btn-delete-user {
    background: linear-gradient(135deg, var(--error-color), #dc2626);
    border: none;
    border-radius: 10px;
    padding: 0.625rem 1.25rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    margin-left: 0.5rem;
}

.btn-delete-user-images:hover {
    background: linear-gradient(135deg, #dc2626, var(--error-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-delete-user:hover {
    background: linear-gradient(135deg, #dc2626, var(--error-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-delete-user-images:active,
.btn-delete-user:active {
    transform: translateY(0);
}

/* Notification */
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 320px;
    max-width: 400px;
}

.notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.notification.success {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.15);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
}

.notification.error {
    border-color: var(--error-color);
    background: rgba(239, 68, 68, 0.15);
    box-shadow: 0 10px 40px rgba(239, 68, 68, 0.3);
}

.notification-message {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
}

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

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

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.7s ease-out;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .library-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-title {
        font-size: 2rem;
    }

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

    .auth-box {
        padding: 2.5rem;
    }

    .upload-box {
        padding: 2.5rem;
    }

    .users-table {
        font-size: 0.85rem;
    }

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

    .admin-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .upload-input {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-divider {
        display: none;
    }

    .notification {
        right: 1rem;
        left: 1rem;
        min-width: auto;
        max-width: none;
    }

    .upgrade-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .upgrade-action {
        min-width: auto;
        width: 100%;
    }

    .upgrade-title {
        font-size: 1.25rem;
    }

    .price-amount {
        font-size: 1.75rem;
    }

    .upgrade-banner {
        padding: 1.5rem;
    }
}

/* Upgrade Notification */
.upgrade-notification {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.notification-actions {
    margin-top: 1rem;
    text-align: center;
}

.btn-upgrade-small {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-upgrade-small:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
