/* LumeriaTech - Unified Global & Store Styles */
/* Gabungan dari app/style.css dan app/store/style.css */

/* Enhanced scrollbar - Mobile friendly */
::-webkit-scrollbar { 
    width: 8px; 
}
::-webkit-scrollbar-track { 
    background: rgb(15, 23, 42); 
}
::-webkit-scrollbar-thumb { 
    background: linear-gradient(to bottom, rgb(139, 69, 255), rgb(236, 72, 153)); 
    border-radius: 6px; 
}
::-webkit-scrollbar-thumb:hover { 
    background: linear-gradient(to bottom, rgb(124, 58, 237), rgb(219, 39, 119)); 
}

/* Mobile scrollbar for thin devices */
@media (max-width: 640px) {
    ::-webkit-scrollbar { 
        width: 4px; 
    }
}

/* Enhanced mobile menu - FIXED */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.98) 0%, 
        rgba(30, 41, 59, 0.98) 50%, 
        rgba(15, 23, 42, 0.98) 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-100%);
    backdrop-filter: blur(25px);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu nav {
    width: 100%;
    max-width: 300px;
}

.mobile-menu nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-menu nav ul li {
    text-align: center;
}

.mobile-menu nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, 
        rgba(139, 69, 255, 0.1) 0%, 
        rgba(236, 72, 153, 0.1) 100%);
    border: 1px solid rgba(139, 69, 255, 0.3);
    display: block;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mobile-menu nav ul li a:hover,
.mobile-menu nav ul li a:focus {
    background: linear-gradient(135deg, 
        rgba(139, 69, 255, 0.3) 0%, 
        rgba(236, 72, 153, 0.3) 100%);
    border-color: rgba(139, 69, 255, 0.6);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 255, 0.2);
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(139, 69, 255, 0.2);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .desktop-nav {
        display: none;
    }
}

/* Enhanced loading overlay - Mobile optimized */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgb(15, 23, 42) 0%, 
        rgb(30, 41, 59) 50%, 
        rgb(15, 23, 42) 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease;
}

.enhanced-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(139, 69, 255, 0.3);
    border-top: 3px solid rgb(139, 69, 255);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    position: relative;
}

.enhanced-spinner::after {
    content: '';
    position: absolute;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(236, 72, 153, 0.3);
    border-top: 2px solid rgb(236, 72, 153);
    border-radius: 50%;
    top: 6px;
    left: 6px;
    animation: spin 2s linear infinite reverse;
}

/* Mobile spinner optimization */
@media (max-width: 640px) {
    .enhanced-spinner {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }
    
    .enhanced-spinner::after {
        width: 36px;
        height: 36px;
        top: 5px;
        left: 5px;
    }
}

/* Store-specific enhanced spinner for larger size */
.store-page .enhanced-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(139, 69, 255, 0.3);
    border-top: 4px solid rgb(139, 69, 255);
}

.store-page .enhanced-spinner::after {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(236, 72, 153, 0.3);
    border-top: 3px solid rgb(236, 72, 153);
    top: 6px;
    left: 6px;
    animation: spin 2s linear infinite reverse;
}

/* Gradient text animation - Mobile optimized */
.gradient-text {
    background: linear-gradient(-45deg, #8b45ff, #ec4899, #06b6d4, #10b981);
    background-size: 400%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 6s ease-in-out infinite;
}

/* Reduce animation on mobile for performance */
@media (max-width: 640px) {
    .gradient-text {
        animation: gradient-shift 8s ease-in-out infinite;
    }
}

/* Enhanced card hover effects - Mobile friendly */
.enhanced-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.enhanced-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(139, 69, 255, 0.15),
        0 12px 25px rgba(236, 72, 153, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Store-specific card hover effects - Enhanced */
.store-card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-card-hover:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(139, 69, 255, 0.15),
        0 15px 35px rgba(236, 72, 153, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Store page enhanced card hover with 3D effect */
.store-page .enhanced-card:hover {
    transform: translateY(-12px) rotateX(5deg) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(139, 69, 255, 0.15),
        0 15px 35px rgba(236, 72, 153, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Simplified hover for mobile */
@media (max-width: 640px) {
    .enhanced-card:hover,
    .store-card-hover:hover,
    .store-page .enhanced-card:hover {
        transform: translateY(-4px) scale(1.01);
        box-shadow: 
            0 12px 25px rgba(139, 69, 255, 0.1),
            0 6px 15px rgba(236, 72, 153, 0.05),
            0 2px 8px rgba(0, 0, 0, 0.15);
    }
}

/* Particle background - Disabled on mobile for performance */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: linear-gradient(45deg, 
        rgba(139, 69, 255, 0.4), 
        rgba(236, 72, 153, 0.3));
    border-radius: 50%;
    opacity: 0.6;
    animation: float 25s infinite linear;
}

@media (max-width: 640px) {
    .particles {
        display: none; /* Disable particles on mobile */
    }
}

/* Enhanced button styles - Mobile optimized */
.enhanced-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px; /* Touch target size */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.enhanced-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.6s;
}

.enhanced-btn:hover::before {
    left: 100%;
}

.enhanced-btn:active {
    transform: scale(0.98);
}

/* Mobile button improvements */
@media (max-width: 640px) {
    .enhanced-btn {
        min-height: 48px; /* Larger touch target */
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Smooth reveal animation - Mobile friendly */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion for mobile */
@media (max-width: 640px) {
    .reveal-text {
        transform: translateY(10px);
        transition: all 0.4s ease;
    }
}

/* Header contrast fix */
.header-nav {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.95) 0%, 
        rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 69, 255, 0.2);
}

.header-nav a {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.header-nav a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(139, 69, 255, 0.5);
}

/* Logo contrast fix */
.logo-text {
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Mobile header fixes */
@media (max-width: 640px) {
    .header-nav {
        padding: 0.75rem 1rem;
        background: linear-gradient(135deg, 
            rgba(15, 23, 42, 0.98) 0%, 
            rgba(30, 41, 59, 0.98) 100%);
    }
    
    .header-nav a {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
}

/* =================================== */
/* STORE-SPECIFIC STYLES */
/* =================================== */

/* Filter button enhancements */
.filter-btn {
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

/* Product price styling */
.product-price {
    background: linear-gradient(-45deg, #8b45ff, #ec4899, #06b6d4, #10b981);
    background-size: 400%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 6s ease-in-out infinite;
    font-weight: 700;
}

/* Category badge styling */
.category-badge {
    background: linear-gradient(135deg, rgba(139, 69, 255, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    border: 1px solid rgba(139, 69, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* Enhanced grid layout for products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Loading animation for product cards */
.product-card-loading {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

/* Floating action button for mobile */
.floating-action-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b45ff, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(139, 69, 255, 0.3);
    transition: all 0.3s ease;
}

.floating-action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(139, 69, 255, 0.4);
}

/* Store statistics cards */
.stats-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%);
    border: 1px solid rgba(139, 69, 255, 0.2);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.stats-card:hover {
    border-color: rgba(139, 69, 255, 0.4);
    transform: translateY(-4px);
}

/* Testimonial slider */
.testimonial-slider {
    overflow: hidden;
    position: relative;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
    border: 1px solid rgba(139, 69, 255, 0.2);
    border-radius: 1rem;
    backdrop-filter: blur(20px);
}

/* Search functionality */
.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(139, 69, 255, 0.3);
    border-radius: 2rem;
    color: white;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: rgba(139, 69, 255, 0.6);
    box-shadow: 0 0 20px rgba(139, 69, 255, 0.2);
}

.search-input::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(139, 69, 255, 0.6);
}

/* Breadcrumb navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.breadcrumb a {
    color: rgba(139, 69, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #8b45ff;
}

.breadcrumb-separator {
    color: rgba(148, 163, 184, 0.6);
}

/* Advanced Notification System - Ultra Modern Design */
.notification-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    max-width: 380px;
    width: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.95) 0%, 
        rgba(30, 41, 59, 0.98) 50%, 
        rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(139, 69, 255, 0.4);
    border-radius: 2rem;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(25px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 25px rgba(139, 69, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateX(120%) scale(0.8);
    opacity: 0;
    animation: slideInAdvanced 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(139, 69, 255, 0.1), 
        transparent);
    animation: shimmer 2s infinite;
}

.notification::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        #8b45ff, 
        #ec4899, 
        #06b6d4, 
        #10b981);
    background-size: 200% 100%;
    animation: gradient-border 3s linear infinite;
    border-radius: 2rem 2rem 0 0;
}

.notification:hover {
    transform: translateX(0) scale(1.02);
    border-color: rgba(139, 69, 255, 0.6);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 12px 35px rgba(139, 69, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.notification.fadeOut {
    animation: slideOutAdvanced 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.notification-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b45ff, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    box-shadow: 
        0 8px 20px rgba(139, 69, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: iconPulse 2s ease-in-out infinite;
}

.notification-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b45ff, #ec4899, #06b6d4);
    z-index: -1;
    opacity: 0.3;
    animation: iconGlow 2s ease-in-out infinite;
}

.notification-icon i {
    color: white;
    font-size: 18px;
    z-index: 1;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 700;
    color: white;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.notification-message {
    color: rgba(203, 213, 225, 0.9);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    color: rgba(139, 69, 255, 0.8);
    font-size: 0.7rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.notification-time::before {
    content: '●';
    color: #10b981;
    font-size: 0.5rem;
    animation: statusBlink 2s infinite;
}

/* Success Notification Variant */
.notification.success .notification-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.notification.success .notification-icon::before {
    background: linear-gradient(135deg, #10b981, #059669, #06b6d4);
}

/* Warning Notification Variant */
.notification.warning .notification-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.notification.warning .notification-icon::before {
    background: linear-gradient(135deg, #f59e0b, #d97706, #ef4444);
}

/* Info Notification Variant */
.notification.info .notification-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.notification.info .notification-icon::before {
    background: linear-gradient(135deg, #06b6d4, #0891b2, #8b45ff);
}

/* =================================== */
/* ANIMATIONS */
/* =================================== */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
        opacity: 0.8;
    }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Advanced Animations - Mobile Optimized */
@keyframes slideInAdvanced {
    0% {
        transform: translateX(120%) scale(0.8) rotate(10deg);
        opacity: 0;
    }
    50% {
        transform: translateX(-5%) scale(1.05) rotate(-2deg);
        opacity: 0.8;
    }
    100% {
        transform: translateX(0) scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes slideOutAdvanced {
    0% {
        transform: translateX(0) scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateX(120%) scale(0.8) rotate(-10deg);
        opacity: 0;
    }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes gradient-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 8px 20px rgba(139, 69, 255, 0.4);
    }
    50% { 
        transform: scale(1.1); 
        box-shadow: 0 12px 30px rgba(139, 69, 255, 0.6);
    }
}

@keyframes iconGlow {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.6; 
        transform: scale(1.2);
    }
}

@keyframes statusBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Mobile-specific slideIn animation */
@media (max-width: 640px) {
    @keyframes slideInAdvanced {
        0% {
            transform: translateX(100%) scale(0.9);
            opacity: 0;
        }
        100% {
            transform: translateX(0) scale(1);
            opacity: 1;
        }
    }
    
    @keyframes slideOutAdvanced {
        0% {
            transform: translateX(0) scale(1);
            opacity: 1;
        }
        100% {
            transform: translateX(100%) scale(0.9);
            opacity: 0;
        }
    }
}

/* =================================== */
/* MOBILE RESPONSIVE - COMPREHENSIVE */
/* =================================== */

/* Mobile Responsive - FIXED FOR ANDROID */
@media (max-width: 640px) {
    .notification-container {
        right: 0.75rem;
        left: 0.75rem;
        max-width: none;
        bottom: 1rem;
        width: auto;
    }
    
    .notification {
        padding: 0.875rem 1rem;
        border-radius: 1.25rem;
        margin-bottom: 0.5rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        font-size: 0.8rem;
        /* Fix untuk Android */
        -webkit-transform: translateX(120%) scale(0.8);
        transform: translateX(120%) scale(0.8);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        will-change: transform, opacity;
    }
    
    .notification-header {
        gap: 0.75rem;
    }
    
    .notification-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    .notification-icon i {
        font-size: 14px;
    }
    
    .notification-title {
        font-size: 0.8125rem;
        line-height: 1.2;
        margin-bottom: 0.3rem;
    }
    
    .notification-message {
        font-size: 0.7rem;
        line-height: 1.3;
        margin-bottom: 0.3rem;
        /* Batas maksimal baris untuk mobile */
        -webkit-line-clamp: 3;
        max-height: 3.6em;
        overflow: hidden;
    }
    
    .notification-time {
        font-size: 0.65rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .notification-container {
        right: 0.5rem;
        left: 0.5rem;
        bottom: 0.75rem;
    }
    
    .notification {
        padding: 0.75rem 0.875rem;
        border-radius: 1rem;
    }
    
    .notification-icon {
        width: 36px;
        height: 36px;
    }
    
    .notification-icon i {
        font-size: 12px;
    }
    
    .notification-title {
        font-size: 0.75rem;
    }
    
    .notification-message {
        font-size: 0.65rem;
        -webkit-line-clamp: 2;
        max-height: 2.4em;
    }
    
    .notification-time {
        font-size: 0.6rem;
    }
}

/* Android-specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (max-width: 640px) {
    .notification {
        /* Fix untuk Chrome Android */
        -webkit-transform: translateX(120%) scale(0.8);
        transform: translateX(120%) scale(0.8);
        -webkit-transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
        transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    .notification::before {
        /* Disable shimmer on mobile untuk performa */
        display: none;
    }
    
    .notification-icon {
        /* Simplified animation untuk Android */
        animation: iconPulseMobile 3s ease-in-out infinite;
    }
    
    .notification-icon::before {
        /* Simplified glow untuk Android */
        animation: iconGlowMobile 3s ease-in-out infinite;
    }
}

@keyframes iconPulseMobile {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 4px 15px rgba(139, 69, 255, 0.3);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 6px 20px rgba(139, 69, 255, 0.4);
    }
}

@keyframes iconGlowMobile {
    0%, 100% { 
        opacity: 0.2; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.4; 
        transform: scale(1.1);
    }
}

/* =================================== */
/* ACCESSIBILITY & PERFORMANCE */
/* =================================== */

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .header-nav a {
        color: #ffffff !important;
        border: 1px solid transparent;
    }
    
    .header-nav a:hover {
        border-color: #ffffff;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .enhanced-btn {
        border: 2px solid currentColor;
    }
}