/* Custom CSS for Media Crack Zone - Professional Edition */

:root {
    --primary-color: #4f46e5;
    --secondary-color: #6366f1;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Typography */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Text Improvements for Better Visibility */
.text-muted {
    color: #6b7280 !important;
}

.text-light {
    color: #f8f9fa !important;
}

/* Dark backgrounds need lighter text */
.bg-dark .text-muted,
.hero-section .text-muted {
    color: #d1d5db !important;
}

/* Ensure good contrast on hero section */
.hero-section .hero-subtitle {
    color: #e5e7eb !important;
    font-weight: 400;
}

.hero-section .stat-label {
    color: #d1d5db !important;
}

/* Product card text improvements */
.product-content .text-muted {
    color: #6b7280 !important;
}

.product-card-modern .product-title a {
    color: #111827 !important;
    font-weight: 600;
}

.product-card-modern .product-title a:hover {
    color: var(--primary-color) !important;
}

/* Category section improvements */
.category-content .text-muted {
    color: #6b7280 !important;
    line-height: 1.6;
}

/* Features section on dark background */
.features-section .text-light {
    color: #f3f4f6 !important;
}

.features-section .opacity-75 {
    opacity: 0.9 !important;
}

.display-3 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.display-5 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Buttons */
.btn {
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.025em;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #3730a3 0%, #6b21a8 100%);
}

.btn-hover-lift {
    transition: all 0.3s ease;
}

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

/* Section Badges */
.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    font-size: 0.875rem;
}

.hero-badge i {
    color: #fbbf24;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 200, 255, 0.3) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

.hero-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(79, 70, 229, 0.1) 70%);
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-image-container {
    position: relative;
    z-index: 2;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.875rem;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.card-1 {
    top: 20%;
    left: -10%;
    animation-delay: 0s;
}

.card-2 {
    top: 60%;
    right: -15%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 20%;
    left: -5%;
    animation-delay: 2s;
}

.hero-main-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-2xl);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    cursor: pointer;
}

.scroll-arrow {
    animation: bounce 2s infinite;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

.stat-item h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Categories Section */
.categories-section {
    background: #ffffff;
    position: relative;
}

.category-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.category-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
}

.category-pattern {
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--primary-color) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, var(--success-color) 0%, transparent 50%);
}

.category-content {
    position: relative;
    z-index: 2;
}

.category-icon {
    margin-bottom: 1.5rem;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

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

.icon-wrapper i {
    font-size: 2rem;
    color: white;
}

.category-stats {
    background: rgba(79, 70, 229, 0.05);
    border-radius: 12px;
    padding: 1rem;
}

.stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-mini .number {
    font-size: 1.25rem;
    line-height: 1;
}

.stat-mini .label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Featured Products Section */
.featured-products {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.product-card-modern {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.product-image-container {
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    aspect-ratio: 16/10;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.product-card-modern:hover .product-image {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card-modern:hover .product-overlay {
    opacity: 1;
}

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

.overlay-content .btn {
    font-weight: 600;
    border: 2px solid transparent;
    text-shadow: none;
}

.overlay-content .btn-light {
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    border-color: rgba(255, 255, 255, 0.95);
}

.overlay-content .btn-light:hover {
    background: white;
    color: #1f2937;
    transform: translateY(-2px);
}

.overlay-content .btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.overlay-content .btn-primary:hover {
    background: #3730a3;
    border-color: #3730a3;
    transform: translateY(-2px);
}

.product-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.badge {
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-sale {
    background: var(--danger-color);
    color: white;
}

.badge-category {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
}

.product-content {
    padding: 1.5rem;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.stars {
    display: flex;
    gap: 2px;
}

.rating-text {
    font-size: 0.875rem;
}

.product-title a {
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    color: #6b7280;
}

.product-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-original {
    font-size: 1rem;
    text-decoration: line-through;
    color: #9ca3af;
}

/* Enhanced Discount Styling */
.discount-price-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.price-original {
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

.price-original::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    transform: translateY(-50%);
}

.price-current {
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(79, 70, 229, 0.1);
}

.discount-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    animation: pulseDiscount 2s infinite;
}

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

.discount-savings {
    color: #059669;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 8px;
}

/* Product Details Page Discount Styling */
.price-section .discount-badge {
    font-size: 1rem;
    padding: 8px 16px;
    margin-left: 15px;
}

.price-section .price-current {
    font-size: 2.2rem;
}

.price-section .price-original {
    font-size: 1.4rem;
}

/* Discount Info Tooltip */
.discount-info {
    position: relative;
    display: inline-block;
    cursor: help;
}

.discount-info:hover .discount-tooltip {
    opacity: 1;
    visibility: visible;
}

.discount-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.discount-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
}

/* Featured Products Discount Enhancement */
.product-card-modern .discount-price-container {
    margin-bottom: 15px;
}

.product-card-modern .price-original {
    font-size: 0.95rem;
}

.product-card-modern .price-current {
    font-size: 1.4rem;
}

.product-card-modern .discount-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
}

/* Product Grid Discount Styling */
.products-grid .discount-price-container {
    justify-content: space-between;
    align-items: flex-start;
}

.products-grid .price-original {
    font-size: 0.9rem;
}

.products-grid .price-current {
    font-size: 1.3rem;
}

/* Wishlist Discount Styling */
.wishlist-item .discount-price-container {
    align-items: flex-end;
    gap: 8px;
}

.wishlist-item .price-original {
    font-size: 0.85rem;
}

.wishlist-item .price-current {
    font-size: 1.2rem;
}

.wishlist-item .discount-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
}

/* Cart Discount Styling */
.cart-item .discount-price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cart-item .price-original {
    font-size: 0.9rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 400;
}

.cart-item .price-current {
    font-size: 1.2rem;
    color: #0d6efd;
    font-weight: 700;
}

.cart-item .discount-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 2px;
}

.cart-item .discount-savings {
    color: #059669;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Cart Summary Enhancements */
.cart-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.cart-summary .alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid #34d399;
    border-radius: 8px;
    animation: savingsHighlight 2s ease-in-out infinite alternate;
}

@keyframes savingsHighlight {
    0% { box-shadow: 0 0 5px rgba(52, 211, 153, 0.3); }
    100% { box-shadow: 0 0 15px rgba(52, 211, 153, 0.6); }
}

/* Cart Item Layout Improvements */
.cart-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.cart-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Mobile Responsiveness for Cart */
@media (max-width: 768px) {
    .cart-item .discount-price-container {
        align-items: flex-start;
    }
    
    .cart-item .price-current {
        font-size: 1rem;
    }
    
    .cart-item .price-original {
        font-size: 0.8rem;
    }
    
    .cart-item .discount-badge {
        font-size: 0.65rem;
        padding: 1px 4px;
    }
}

/* ========================================
   NEWSLETTER SECTION STYLES
======================================== */

.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.newsletter-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.newsletter-card::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: shimmer 3s infinite;
}

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

.newsletter-content {
    color: white;
}

.newsletter-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.newsletter-icon i {
    font-size: 2rem;
    color: white;
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.newsletter-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.newsletter-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.feature-item i {
    color: #10b981;
    font-size: 1.1rem;
}

.newsletter-form {
    position: relative;
}

.subscription-form {
    position: relative;
}

.input-wrapper {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 18px 20px;
    color: white;
    font-size: 1.1rem;
    border-radius: 12px;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    box-shadow: none;
}

.btn-subscribe {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    padding: 18px 30px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-subscribe.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-subscribe:hover .btn-icon {
    transform: translateX(3px);
}

.form-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.form-note i {
    color: #10b981;
}

/* ========================================
   FOOTER STYLES
======================================== */

.footer-premium {
    position: relative;
    background: #0f172a;
    color: #e2e8f0;
    overflow: hidden;
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.footer-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, #4f46e5 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, #7c3aed 0%, transparent 50%);
    background-size: 60px 60px;
    animation: float 20s ease-in-out infinite;
}

.footer-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.footer-main {
    padding: 80px 0 40px;
    position: relative;
    z-index: 2;
}

.footer-brand {
    margin-bottom: 40px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.brand-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
}

.brand-icon i {
    font-size: 1.8rem;
    color: white;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

.brand-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 30px;
    max-width: 400px;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #e2e8f0;
    transition: all 0.3s ease;
}

.trust-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.trust-item i {
    color: #10b981;
    font-size: 1rem;
}

.social-section {
    margin-top: 40px;
}

.social-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link i {
    position: relative;
    z-index: 1;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
    border-color: transparent;
}

.social-link.facebook:hover { background: #1877f2; }
.social-link.twitter:hover { background: #1da1f2; }
.social-link.instagram:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-link.youtube:hover { background: #ff0000; }
.social-link.discord:hover { background: #5865f2; }
.social-link.telegram:hover { background: #0088cc; }

.footer-section {
    margin-bottom: 40px;
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
}

.footer-links a:hover {
    color: white;
    padding-left: 15px;
    background: rgba(255, 255, 255, 0.05);
}

.footer-links a i {
    width: 18px;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.footer-links a:hover i {
    color: #4f46e5;
}

.link-count {
    margin-left: auto;
    background: rgba(79, 70, 229, 0.2);
    color: #a5b4fc;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.contact-icon i {
    color: #4f46e5;
    font-size: 1rem;
}

.contact-details {
    flex: 1;
}

.contact-label {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 2px;
}

.contact-details a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: white;
}

.contact-details span {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    position: relative;
    z-index: 2;
}

.copyright {
    color: #94a3b8;
}

.copyright p {
    margin: 0;
    font-size: 0.9rem;
}

.tagline {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 5px;
}

.footer-links-bottom {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer-links-bottom a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links-bottom a:hover {
    color: white;
}

.payment-methods {
    text-align: right;
}

.payment-label {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 10px;
}

.payment-icons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.payment-icons i {
    font-size: 1.5rem;
    color: #64748b;
    transition: all 0.3s ease;
}

.payment-icons i:hover {
    color: #4f46e5;
    transform: translateY(-2px);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.4);
}

/* ========================================
   NAVBAR STYLES
======================================== */

.navbar-premium {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    padding: 0.8rem 0;
    z-index: 1050;
}

.navbar-premium.navbar-scrolled {
    background: rgba(15, 15, 35, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
}

.navbar-premium.navbar-hidden {
    transform: translateY(-100%);
}

/* Brand Styles */
.brand-premium {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.brand-premium:hover {
    transform: scale(1.02);
}

.brand-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.brand-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.brand-premium:hover .brand-icon::before {
    animation: shine 0.6s ease-in-out;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.brand-icon i {
    font-size: 1.5rem;
    color: white;
    z-index: 1;
    position: relative;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    text-decoration: none;
}

.brand-tagline {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Custom Navbar Toggler */
.custom-toggler {
    border: none;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    width: 40px;
    height: 40px;
}

.custom-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
}

.custom-toggler:focus {
    box-shadow: none;
}

.toggler-line {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    margin: 4px auto;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.custom-toggler[aria-expanded="true"] .toggler-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.custom-toggler[aria-expanded="true"] .toggler-line:nth-child(2) {
    opacity: 0;
}

.custom-toggler[aria-expanded="true"] .toggler-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Search Bar */
.navbar-search {
    flex: 1;
    max-width: 400px;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.search-focused {
    transform: scale(1.02);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

/* Navigation Links */
.nav-link-premium {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 12px 16px !important;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.nav-link-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link-premium:hover::before,
.nav-link-premium.active::before {
    opacity: 0.1;
}

.nav-link-premium:hover,
.nav-link-premium.active {
    color: white !important;
    transform: translateY(-1px);
}

.nav-icon {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

/* Dropdown Styles */
.dropdown-premium .dropdown-menu {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    padding: 15px 0;
    margin-top: 10px;
    min-width: 280px;
}

.dropdown-menu-premium::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 30px;
    width: 12px;
    height: 12px;
    background: rgba(15, 15, 35, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
}

.dropdown-header {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 20px;
    margin-bottom: 5px;
}

.dropdown-item-premium {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    font-size: 0.95rem;
    border-radius: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.dropdown-item-premium::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown-item-premium:hover::before {
    transform: scaleY(1);
}

.dropdown-item-premium:hover {
    background: rgba(79, 70, 229, 0.1);
    color: white;
    padding-left: 25px;
}

.item-count {
    background: rgba(79, 70, 229, 0.2);
    color: #a5b4fc;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 10px 0;
}

/* Action Buttons */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-action-btn {
    position: relative;
    padding: 10px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-action-btn:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.action-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    animation: pulse 2s infinite;
}

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

.cart-bounce {
    animation: bounce 0.6s ease;
}

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

/* User Menu */
.user-dropdown .dropdown-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 8px 15px !important;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.user-dropdown .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
}

.user-avatar {
    width: 35px;
    height: 35px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    line-height: 1.2;
}

.user-role {
    font-size: 0.75rem;
    color: #94a3b8;
}

.user-menu {
    min-width: 250px;
}

.user-welcome {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: rgba(79, 70, 229, 0.1);
    margin: -15px -15px 15px -15px;
    border-radius: 16px 16px 0 0;
}

.welcome-avatar {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.welcome-text strong {
    color: white;
    font-size: 1rem;
}

.welcome-text small {
    color: #94a3b8;
    font-size: 0.8rem;
}

.notification-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    margin-left: auto;
    animation: pulse 2s infinite;
}

.admin-link {
    background: rgba(79, 70, 229, 0.1);
    border-left: 3px solid var(--primary-color);
}

.admin-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.logout-link:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #fca5a5 !important;
}

/* Login/Register Buttons */
.btn-login,
.btn-register {
    padding: 10px 20px !important;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-login {
    color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-login:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-register {
    color: white !important;
    background: var(--gradient-primary);
    border: 1px solid transparent;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

/* Mobile Search */
.mobile-search {
    background: rgba(15, 15, 35, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-search.show {
    transform: translateY(0);
}

.mobile-search .search-container {
    max-width: none;
}

/* Header Spacer */
.header-spacer {
    height: 80px;
}

/* ========================================
   PRODUCTS PAGE STYLES
======================================== */

/* Products Hero Section */
.products-hero {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
    min-height: 60vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 200, 255, 0.3) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 8s ease-in-out infinite;
}

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

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

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

.hero-content {
    position: relative;
    z-index: 2;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.fade-in-delay-3 {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.9s forwards;
}

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

/* Advanced Search Form */
.search-box-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-form {
    position: relative;
}

.search-input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 25px;
    color: white;
    font-size: 1.1rem;
    outline: none;
}

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

.btn-search {
    background: var(--gradient-primary);
    border: none;
    padding: 15px 30px;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-search:hover {
    transform: translateX(-3px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, #3730a3 0%, #6b21a8 100%);
}

/* Filter Section */
.filter-section {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

.filter-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.filter-title {
    margin: 0;
    color: var(--dark-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-title i {
    color: var(--primary-color);
}

.filter-count .badge {
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 20px;
}

.filter-content {
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.category-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 12px 24px;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.2);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 5px 20px rgba(79, 70, 229, 0.3);
}

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

.sort-options {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-label {
    color: var(--dark-color);
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.sort-options .form-select {
    min-width: 200px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sort-options .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Products Grid Header */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}

.products-count h5 {
    color: var(--dark-color);
    font-weight: 600;
}

.view-toggle {
    display: flex;
    background: #f8fafc;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    color: #64748b;
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-btn:hover {
    color: var(--primary-color);
    background: rgba(79, 70, 229, 0.1);
}

.view-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card-modern {
    display: flex;
    align-items: center;
    padding: 25px;
}

.products-grid.list-view .product-image-container {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    margin-right: 25px;
}

.products-grid.list-view .product-content {
    flex: 1;
}

.product-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.product-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Product Card */
.product-card-modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-modern:hover .product-image {
    transform: scale(1.1);
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 3;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-sale {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.badge-popular {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.badge-new {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Product Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.product-card-modern:hover .product-overlay {
    opacity: 1;
}

.overlay-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    color: var(--dark-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    transform: translateY(20px);
}

.product-card-modern:hover .action-btn {
    transform: translateY(0);
}

.action-btn:nth-child(1) { transition-delay: 0.1s; }
.action-btn:nth-child(2) { transition-delay: 0.2s; }
.action-btn:nth-child(3) { transition-delay: 0.3s; }

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.action-btn.add-to-wishlist.active {
    background: #ef4444;
    color: white;
}

/* Category Tag */
.category-tag {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 3;
}

.category-tag i {
    color: var(--primary-color);
}

/* Product Content */
.product-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-header {
    margin-bottom: 15px;
}

.product-title {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
}

.product-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--primary-color);
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #e2e8f0;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.stars i.active {
    color: #fbbf24;
}

.rating-text {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.product-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

/* Product Stats */
.product-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.stat-item i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Product Footer */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-original {
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

.price-original::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    transform: translateY(-50%);
}

.price-current {
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(79, 70, 229, 0.1);
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    border-radius: 20px;
    font-weight: 600;
    padding: 8px 16px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.product-actions .btn:hover {
    transform: translateY(-2px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state-content {
    max-width: 500px;
    margin: 0 auto;
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.empty-state-icon i {
    font-size: 3rem;
    color: #94a3b8;
}

.empty-state-title {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.empty-state-text {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 30px;
}

.empty-state-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Pagination Section */
.pagination-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 50px;
}

.pagination-info {
    text-align: center;
    margin-bottom: 25px;
}

.pagination-text {
    color: #64748b;
    font-weight: 500;
}

.pagination-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.pagination-list {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination-item {
    display: flex;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    gap: 8px;
}

.pagination-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.2);
}

.pagination-link.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 5px 20px rgba(79, 70, 229, 0.3);
}

.pagination-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    color: #94a3b8;
    font-weight: 600;
}

.page-jump {
    display: flex;
    justify-content: center;
}

.page-jump-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    padding: 15px 20px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.page-jump-form label {
    color: #64748b;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.page-jump-form .form-control {
    width: 80px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.page-jump-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Notification System */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(400px);
    transition: all 0.3s ease;
    z-index: 9999;
    border-left: 4px solid;
}

.notification.show {
    transform: translateX(0);
}

.notification.notification-success {
    border-left-color: #10b981;
    color: #065f46;
}

.notification.notification-success i {
    color: #10b981;
}

.notification.notification-error {
    border-left-color: #ef4444;
    color: #991b1b;
}

.notification.notification-error i {
    color: #ef4444;
}

/* Product Details Button Fixes */
.action-buttons .btn {
    cursor: pointer;
    user-select: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    font-size: 16px;
    line-height: 1.5;
}

.action-buttons .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.action-buttons .btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-buttons .btn:not(:disabled):active {
    transform: translateY(0);
}

/* Ensure buttons are clickable */
.action-buttons .btn,
.action-buttons .btn * {
    pointer-events: auto;
}

/* Alert styles */
.alert-fixed {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
    min-width: 300px !important;
    max-width: 400px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    border-radius: 8px !important;
}

.alert-success {
    background-color: #d4edda !important;
    border-color: #c3e6cb !important;
    color: #155724 !important;
}

.alert-danger {
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
    color: #721c24 !important;
}

.alert-info {
    background-color: #d1ecf1 !important;
    border-color: #bee5eb !important;
    color: #0c5460 !important;
}

/* ================================================
   ADMIN PANEL STYLES - PROFESSIONAL UPGRADE
   ================================================ */

/* Admin Layout & Sidebar */
.admin-sidebar {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    min-height: 100vh;
    padding: 1.5rem 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.admin-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
    pointer-events: none;
}

.admin-sidebar .navbar-brand {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.4rem;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.admin-sidebar .navbar-brand:hover {
    color: #60a5fa !important;
    transform: translateX(3px);
    transition: all 0.3s ease;
}

.admin-sidebar .navbar-brand i {
    background: linear-gradient(45deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 0.5rem;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

/* Navigation Section Labels */
.admin-sidebar .nav-section-label {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 1.5rem 0.5rem;
    margin-top: 0.5rem;
    position: relative;
    z-index: 2;
}

.admin-sidebar .nav-section-label:first-of-type {
    margin-top: 0;
}

/* Admin Navigation */
.admin-sidebar .nav-link {
    color: #cbd5e1 !important;
    padding: 0.875rem 1.5rem;
    margin: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.admin-sidebar .nav-link i {
    width: 20px;
    margin-right: 0.75rem;
    text-align: center;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover {
    color: #ffffff !important;
    background: rgba(96, 165, 250, 0.15);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.2);
}

.admin-sidebar .nav-link:hover i {
    opacity: 1;
    transform: scale(1.1);
    color: #60a5fa;
}

.admin-sidebar .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    transform: translateX(5px);
}

.admin-sidebar .nav-link.active i {
    color: #93c5fd;
    opacity: 1;
}

.admin-sidebar hr {
    border-color: rgba(255, 255, 255, 0.15);
    margin: 1rem 0.75rem;
    opacity: 0.5;
}

/* Admin Content Area */
.admin-content {
    background: #f8fafc;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
}

.admin-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(96, 165, 250, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Admin Header */
.admin-content h1 {
    color: #1e293b;
    font-weight: 700;
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-content h1 i {
    color: #3b82f6;
    font-size: 2rem;
}

/* Statistics Cards */
.stats-card {
    border: none;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-start, #3b82f6) 0%, var(--bg-end, #1d4ed8) 100%);
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transform: translate(30%, -30%);
}

.stats-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.premium-stats-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 2rem;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.premium-stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-gradient, linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%));
}

.premium-stats-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.premium-stats-card.card-users {
    --card-gradient: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.premium-stats-card.card-products {
    --card-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.premium-stats-card.card-orders {
    --card-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.premium-stats-card.card-revenue {
    --card-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-gradient);
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    animation: pulse-soft 3s ease-in-out infinite;
}

@keyframes pulse-soft {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); }
    50% { transform: scale(1.05); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); }
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.stat-change {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #047857;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Enhanced Cards */
.dashboard-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.dashboard-card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 2rem;
    position: relative;
}

.dashboard-card-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.dashboard-card-header h5 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-card-header i {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.dashboard-card-body {
    padding: 2rem;
}

/* Enhanced Tables */
.dashboard-table {
    margin: 0;
}

.dashboard-table thead th {
    background: #f8fafc;
    border: none;
    color: #374151;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.dashboard-table tbody td {
    padding: 1rem 0.75rem;
    border: none;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    color: #4b5563;
}

.dashboard-table tbody tr {
    transition: all 0.2s ease;
}

.dashboard-table tbody tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Product List Enhancement */
.product-item {
    padding: 1rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid #f3f4f6;
    margin-bottom: 1rem;
}

.product-item:hover {
    transform: translateX(8px);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-image {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid #f3f4f6;
    transition: all 0.3s ease;
}

.product-item:hover .product-image {
    transform: scale(1.1);
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Enhanced Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.quick-action-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-action-card:hover::before {
    opacity: 1;
}

.quick-action-card.action-add {
    --action-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --action-color: #10b981;
}

.quick-action-card.action-view {
    --action-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --action-color: #3b82f6;
}

.quick-action-card.action-manage {
    --action-gradient: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --action-color: #06b6d4;
}

.quick-action-card.action-downloads {
    --action-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --action-color: #f59e0b;
}

.quick-action-card.action-promotions {
    --action-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --action-color: #ef4444;
}

.quick-action-card.action-settings {
    --action-gradient: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    --action-color: #6b7280;
}

.quick-action-card.action-analytics {
    --action-gradient: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    --action-color: #8b5cf6;
}

.quick-action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--action-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.quick-action-card:hover .quick-action-icon {
    transform: scale(1.2) rotate(5deg);
}

.quick-action-text {
    font-weight: 600;
    font-size: 0.95rem;
    color: #374151;
    position: relative;
    z-index: 2;
}

/* Status Badges Enhancement */
.status-badge-enhanced {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge-enhanced::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

.status-badge-enhanced.status-completed {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #047857;
    border-color: #10b981;
}

.status-badge-enhanced.status-pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-color: #f59e0b;
}

.status-badge-enhanced.status-cancelled {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #b91c1c;
    border-color: #ef4444;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .admin-dashboard-header {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .dashboard-title {
        font-size: 2rem;
    }
    
    .dashboard-time {
        position: static;
        margin-top: 1rem;
        text-align: center;
    }
    
    .premium-stats-card {
        height: auto;
        padding: 1.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .quick-action-card {
        height: 120px;
        padding: 1.5rem;
    }
    
    .quick-action-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Dashboard Loading Animation */
.dashboard-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

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

/* Dark Mode Toggle (Future Enhancement) */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

/* ================================================
   ADVANCED ADMIN DASHBOARD ENHANCEMENTS
   ================================================ */

/* Enhanced Dashboard Header */
.admin-dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 2rem;
    margin: -2rem -2rem 3rem -2rem;
    border-radius: 0 0 30px 30px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.admin-dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1)"/><stop offset="100%" style="stop-color:rgba(255,255,255,0)"/></linearGradient></defs><polygon points="0,0 100,0 80,100 0,80" fill="url(%23grad)"/></svg>') no-repeat;
    background-size: cover;
    opacity: 0.7;
}

.dashboard-time {
    position: absolute;
    top: 2rem;
    right: 2rem;
    text-align: right;
    z-index: 2;
}

.live-clock {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dashboard-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

/* Activity Feed Styling */
.activity-feed {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.activity-feed::-webkit-scrollbar {
    width: 6px;
}

.activity-feed::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.activity-feed::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 10px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    position: relative;
}

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

.activity-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateX(5px);
    padding-left: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 12px;
}

.activity-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.activity-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255,255,255,0.3), transparent);
    z-index: -1;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-text {
    font-size: 0.95rem;
    color: #374151;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.activity-time {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

/* Enhanced Mobile Sidebar */
.mobile-sidebar-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1100;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border: none;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.mobile-sidebar-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.admin-offcanvas {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.admin-offcanvas .offcanvas-header {
    background: rgba(59, 130, 246, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-offcanvas .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

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

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

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

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

/* Page Load Animations */
.admin-content > * {
    animation: fadeInUp 0.6s ease forwards;
}

.admin-content > *:nth-child(1) { animation-delay: 0.1s; }
.admin-content > *:nth-child(2) { animation-delay: 0.2s; }
.admin-content > *:nth-child(3) { animation-delay: 0.3s; }
.admin-content > *:nth-child(4) { animation-delay: 0.4s; }

.admin-sidebar .nav-link {
    animation: slideInLeft 0.5s ease forwards;
}

.admin-sidebar .nav-link:nth-child(1) { animation-delay: 0.1s; }
.admin-sidebar .nav-link:nth-child(2) { animation-delay: 0.15s; }
.admin-sidebar .nav-link:nth-child(3) { animation-delay: 0.2s; }
.admin-sidebar .nav-link:nth-child(4) { animation-delay: 0.25s; }
.admin-sidebar .nav-link:nth-child(5) { animation-delay: 0.3s; }

/* Advanced Card Hover Effects */
.dashboard-card {
    position: relative;
    overflow: visible;
}

.dashboard-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-card:hover::after {
    opacity: 1;
}

/* Enhanced Typography */
.dashboard-card-header h5 {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Premium Form Controls (for future admin forms) */
.form-control-premium {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

.form-control-premium:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #ffffff;
}

/* Enhanced Button Styles */
.btn-admin-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-admin-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: white;
}

/* Advanced Search Bar (for future implementation) */
.admin-search-bar {
    position: relative;
    max-width: 400px;
}

.admin-search-bar input {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 25px;
    padding: 0.875rem 1.25rem 0.875rem 3rem;
    width: 100%;
    transition: all 0.3s ease;
}

.admin-search-bar input:focus {
    background: white;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.admin-search-bar .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    z-index: 3;
}

/* Print Styles for Admin Reports */
@media print {
    .admin-sidebar,
    .mobile-sidebar-toggle,
    .theme-toggle,
    .dashboard-loading {
        display: none !important;
    }
    
    .admin-content {
        margin: 0 !important;
        padding: 1rem !important;
        background: white !important;
    }
    
    .dashboard-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        margin-bottom: 1rem !important;
        break-inside: avoid;
    }
}

/* ================================================
   MOBILE-FIRST CREATIVE ENHANCEMENTS
   ================================================ */

/* Mobile-specific body class */
.mobile-view .admin-content {
    padding: 1rem;
}

.mobile-view .dashboard-card {
    margin-bottom: 1.5rem;
}

.mobile-view .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Touch feedback animations */
@media (hover: none) and (pointer: coarse) {
    .premium-stats-card {
        transition: transform 0.15s ease;
    }
    
    .premium-stats-card:active {
        transform: scale(0.97);
    }
    
    .quick-action-card:active {
        transform: scale(0.94);
    }
    
    .nav-link:active {
        background: rgba(96, 165, 250, 0.25) !important;
        transform: translateX(12px);
    }
}

/* Enhanced table responsiveness */
@media (max-width: 768px) {
    .dashboard-table th:nth-child(n+4),
    .dashboard-table td:nth-child(n+4) {
        display: none;
    }
    
    .dashboard-table th,
    .dashboard-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .dashboard-table th:nth-child(n+3),
    .dashboard-table td:nth-child(n+3) {
        display: none;
    }
    
    .status-badge-enhanced {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* Creative mobile navigation enhancements */
@media (max-width: 768px) {
    .mobile-sidebar-toggle {
        animation: bounceIn 0.6s ease;
    }
    
    @keyframes bounceIn {
        0% { transform: scale(0); }
        50% { transform: scale(1.1); }
        100% { transform: scale(1); }
    }
    
    .admin-offcanvas .nav-link {
        padding: 1rem 1.5rem;
        border-radius: 0;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .admin-offcanvas .nav-link:hover {
        transform: none;
        background: rgba(96, 165, 250, 0.15);
    }
}

/* Improved loading experience for mobile */
@media (max-width: 768px) {
    .dashboard-loading {
        padding: 2rem;
    }
    
    .loading-spinner {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }
    
    .loading-text {
        font-size: 1rem;
        text-align: center;
        line-height: 1.4;
    }
}

/* Enhanced activity feed for mobile */
@media (max-width: 768px) {
    .activity-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .activity-icon {
        align-self: center;
        margin-bottom: 0.5rem;
    }
    
    .activity-content {
        text-align: center;
    }
}

/* Creative product item mobile layout */
@media (max-width: 768px) {
    .product-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .product-image {
        width: 80px;
        height: 80px;
        margin: 0 auto 1rem;
    }
    
    .product-item .d-flex {
        flex-direction: column;
        align-items: center;
    }
}

/* Advanced mobile performance optimizations */
@media (max-width: 768px) {
    /* Reduce animations for better performance */
    .premium-stats-card,
    .dashboard-card,
    .quick-action-card {
        transition: transform 0.2s ease;
    }
    
    /* Optimize background gradients for mobile */
    .admin-dashboard-header::before {
        display: none;
    }
    
    .premium-stats-card::before {
        display: none;
    }
    
    /* Simplify complex animations */
    .particle {
        display: none;
    }
}

/* Ultra-small screen optimizations */
@media (max-width: 360px) {
    .dashboard-title {
        font-size: 1.3rem;
    }
    
    .premium-stats-card {
        padding: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .quick-action-card {
        height: 80px;
        padding: 0.5rem;
    }
    
    .quick-action-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .quick-action-text {
        font-size: 0.75rem;
    }
}

/* Landscape mobile optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .admin-dashboard-header {
        padding: 1.5rem 1rem;
    }
    
    .dashboard-title {
        font-size: 1.6rem;
    }
    
    .premium-stats-card {
        height: 140px;
    }
    
    .stat-value {
        font-size: 1.6rem;
    }
}

/* High-DPI mobile displays */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
    .dashboard-table {
        font-size: 0.95rem;
    }
    
    .status-badge-enhanced {
        font-size: 0.75rem;
    }
    
    .activity-text {
        font-size: 0.9rem;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .admin-dashboard-header {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    
    .premium-stats-card {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    
    .mobile-sidebar-toggle {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
    .nav-link,
    .quick-action-card,
    .premium-stats-card {
        min-height: 44px; /* Apple's recommended minimum touch target */
    }
    
    .theme-toggle {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Improve focus visibility on mobile */
    .nav-link:focus,
    .quick-action-card:focus,
    .btn:focus {
        outline: 3px solid rgba(59, 130, 246, 0.5);
        outline-offset: 2px;
    }
}
