 @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: system-ui;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
            min-height: 100vh;
            color: #333;
            overflow-x: hidden;
            position: relative;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            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, 219, 226, 0.3) 0%, transparent 50%);
            animation: backgroundFloat 20s ease-in-out infinite;
            z-index: -1;
        }

        @keyframes backgroundFloat {
            0%, 100% { transform: scale(1) rotate(0deg); }
            50% { transform: scale(1.1) rotate(5deg); }
        }

        .particle {
            position: fixed;
            pointer-events: none;
            opacity: 0.6;
            animation: float 6s ease-in-out infinite;
        }

        .particle::before {
            content: '';
            font-size: 20px;
            color: rgba(255, 255, 255, 0.8);
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.6; }
            50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
        }

        .navbar {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding: 1rem 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }

        .navbar a img {
        width: 22px;
        height: 22px;
        vertical-align: middle;
        margin-right: 6px;
        }
        .navbar a {
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        font-weight: 500;
        }

        .navbar a:hover {
        color: #ffeb3b;
        }

        .navbar a.active {
        color: #ffeb3b;
        }

        .nav-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .nav-links {
            display: flex;
            list-style: none;
            gap: 0.5rem;
        }

        .nav-links a {
            color: rgba(255, 255, 255, 0.9);
            text-decoration: none;
            padding: 0.5rem 1rem;
            border-radius: 50px;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            font-weight: 500;
            position: relative;
            overflow: hidden;
        }

        /* .nav-links a::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.5s;
        } */



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

        .nav-links a:hover, .nav-links a.active {
            background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(78, 205, 196, 0.2));
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(20px);
        }

        
/* Modern User Dropdown Styles */
.user-dropdown {
    position: relative;  
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0rem 0rem !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06)) !important;
    border: 2px solid rgba(255, 255, 255, 0.18); 
    position: relative;
    overflow: hidden;
    
}

.user-profile-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.user-profile-btn:hover::before {
    left: 100%;
}

.user-avatar img,
.user-avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar {
  
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.user-avatar::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background: #4ade80;
    border-radius: 50%;
    bottom: 0;
    right: 0;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

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

.user-profile-btn:hover .user-avatar {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.user-name {
    font-weight: 600;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.dropdown-arrow {
    font-size: 0.65rem;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin-left: 0rem;
}

.user-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 1.2rem);
    right: 0;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.95), rgba(20, 20, 40, 0.98));
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 24px;
    min-width: 320px;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    overflow: hidden;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    z-index: 0;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-header {
    padding: 2rem 1.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    position: relative;
    z-index: 1;
}

.user-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    flex-shrink: 0;
}

.user-avatar-large::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #667eea, #f093fb);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotate 3s linear infinite;
}

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



.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: white;
    flex: 1;
}

.user-info strong {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-info small {
    font-size: 0.82rem;
    opacity: 0.7;
    font-weight: 400;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    margin: 0.8rem 0;
    position: relative;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.1rem 1.8rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    margin: 0.2rem 0.5rem;
    border-radius: 12px;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 70%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 0 8px 8px 0;
    transition: width 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    color: white;
    transform: translateX(8px);
}

.dropdown-item:hover::before {
    width: 4px;
}

.dropdown-icon {
    font-size: 1.3rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.dropdown-item:hover .dropdown-icon {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1) rotate(5deg);
}

.logout-btn {
    color: rgba(248, 113, 113, 0.9);
    margin-top: 0.5rem;
}

.logout-btn .dropdown-icon {
    background: rgba(248, 113, 113, 0.15);
}

.logout-btn:hover {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.2), rgba(239, 68, 68, 0.15));
    color: #fca5a5;
}

.logout-btn:hover .dropdown-icon {
    background: rgba(248, 113, 113, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .user-name {
        display: none;
    }
    
    .dropdown-menu {
        right: -20px;
        min-width: 280px;
    }
    
    .dropdown-header {
        padding: 1.5rem 1.2rem 1rem;
    }
    
    .dropdown-item {
        padding: 1rem 1.2rem;
    }
}

/* Notification Badge (Optional) */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(248, 113, 113, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.9);
    animation: bounce 2s ease-in-out infinite;
}

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

/* Smooth entrance animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    animation: slideDown 0.3s ease forwards;
}

.dropdown-item:nth-child(1) { animation-delay: 0.05s; }
.dropdown-item:nth-child(2) { animation-delay: 0.1s; }
.dropdown-item:nth-child(3) { animation-delay: 0.15s; }
.dropdown-item:nth-child(4) { animation-delay: 0.2s; }
.dropdown-item:nth-child(5) { animation-delay: 0.25s; }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0rem 2rem;
            position: relative;
        }

        .title {
            text-align: center;
            background: linear-gradient(135deg, #ffffff, #f0f0f0, #ffffff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-size: 3rem;
            font-weight: 700;
            margin: 3rem 0;
            text-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
            animation: titleFloat 3s ease-in-out infinite;
            position: relative;
        }

        .title::after {
            content: '✨';
            position: absolute;
            top: -20px;
            right: -30px;
            animation: sparkle 2s ease-in-out infinite;
        }

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

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

        .search-section {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            border-radius: 30px;
            padding: 2rem;
            margin: 3rem 0rem;
            box-shadow: 
                0 20px 40px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2),
                inset 0 -1px 0 rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.1);
            position: relative;
            overflow: hidden;
        }

        .search-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
            animation: shimmer 3s ease-in-out infinite;
        }

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

        .search-bar {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.1rem;
            margin-bottom: 0rem;
        }

        .search-input {
            padding: 1rem;
            border: none;
            border-radius: 20px;
            background:rgba(255, 255, 255, 0.3);
            font-size: 0.9rem;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
            
        }

        .search-input:focus {
            outline: none;
            transform: translateY(-2px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
            background:rgba(255, 255, 255, 0.3);
        }

        .search-btn {
            background: linear-gradient(135deg, #ff6b6b, #ee5a24, #ff9ff3);
            color: white;
            border: none;
            padding: 1.2rem 3rem;
            border-radius: 25px;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
            position: relative;
            overflow: hidden;
        }

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

        .search-btn:hover::before {
            width: 300px;
            height: 300px;
        }

        .search-btn:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 25px 50px rgba(255, 107, 107, 0.6);
        }

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

        .stat-card {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
            backdrop-filter: blur(30px);
            border-radius: 25px;
            padding: 2rem 1.5rem;
            text-align: center;
            color: white;
            transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border: 1px solid rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
            cursor: pointer;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
            transform: rotate(45deg);
            transition: all 0.6s;
            opacity: 0;
        }

        .stat-card:hover::before {
            animation: sweep 0.6s ease-in-out;
            opacity: 1;
        }

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

        .stat-card:hover {
            transform: translateY(-15px) scale(1.05);
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
        }

        .stat-number {
            font-size: 2.2rem;
            font-weight: 700;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, #ffeb3b, #ff9800, #ffeb3b);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 0 30px rgba(255, 235, 59, 0.5);
            animation: numberGlow 2s ease-in-out infinite alternate;
        }

        @keyframes numberGlow {
            0% { filter: brightness(1); }
            100% { filter: brightness(1.2); }
        }

        .stat-label {
            font-size: 1.2rem;
            font-weight: 600;
            opacity: 0.9;
        }

        .section {
            margin: 5rem 0;
            position: relative;
        }

        .section-title {
            color: white;
            font-size: 1.6rem;
            font-weight: 700;
            margin-bottom: 3rem;
            text-align: center;
            text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
            border-radius: 2px;
            animation: underlineGlow 2s ease-in-out infinite alternate;
        }

        @keyframes underlineGlow {
            0% { box-shadow: 0 0 5px rgba(255, 107, 107, 0.5); }
            100% { box-shadow: 0 0 20px rgba(255, 107, 107, 0.8); }
        }

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

.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 25px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: visible; /* ✅ FIXED - was 'hidden' */
    cursor: pointer;
    
    /* Smooth transitions */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
    
    /* Initial shadow */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    
    /* Performance optimization */
    will-change: transform;
    transform: translateZ(0); /* Hardware acceleration */
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 25px;
    z-index: 0;
    pointer-events: none; /* Don't block clicks */
}

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

.card:hover {
    transform: translateY(-15px) scale(1.03) translateZ(0);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3),
                0 15px 30px rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Ensure all children are above ::before */
.card > * {
    position: relative;
    z-index: 1;
}

/* Fix for card with badge */
.card:has(.cr-status-badge) {
    overflow: visible !important;
}



    .profile-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9a9e, #fecfef, #fecfef);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.profile-photo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: photoShine 3s ease-in-out infinite;
    z-index: 1;
}

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

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

        .modal-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
            backdrop-filter: blur(30px);
            border-radius: 25px;
            padding: 3rem;
            max-width: 500px;
            width: 90%;
            border: 1px solid rgba(255,255,255,0.2);
        }

/* ✅ Add this at the end of your CSS file */
.modal.show {
    display: flex !important;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.25s ease-in-out;
}

/* Optional fade animation */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}




        .rating-star {
            font-size: 3rem;
            color: rgba(255,255,255,0.3);
            cursor: pointer;
            transition: all 0.3s ease;
            margin: 0 0.5rem;
        }

        .rating-star.active {
            color: #ffeb3b;
            text-shadow: 0 0 20px rgba(255,235,59,0.8);
            transform: scale(1.2);
        }
        

        .cr-name {
            color: white;
            font-size: 1.4rem;
            font-weight: 600;
            text-align: center;
            margin-bottom: 1rem;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .cr-details {
            color: rgba(255, 255, 255, 0.9);
            text-align: center;
            line-height: 1.8;
            font-size: 1rem;
            margin-bottom: 1.5rem;
        }

        .review_cr{
            
            padding: 10px 10px 10px 10px;
            color: rgba(255, 255, 255, 0.9);
            text-align: center;
            line-height: 1.8;
            font-size: 1rem;
            margin-bottom: 1.5rem;
        }

        .rating {
            display: flex;
            justify-content: center;
            gap: 0.3rem;
            margin: 1.5rem 0;
        }

        .star {
            font-size: 1.8rem;
            transition: all 0.3s ease;
            cursor: pointer;
            text-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
            color: #ccc;
        }
        .star.filled {
            color: gold;
        }
        .star:hover {
            transform: scale(1.3) rotate(72deg);
            text-shadow: 0 0 20px rgba(255, 235, 59, 0.8);
        }
        .star_avg{
            padding-top: 10px;
            font-size: 18px;
            transition: all 0.3s ease;
            cursor: pointer;
            text-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
            color: #ccc;
            cursor: default;
        }


        

        .btn {
            background: linear-gradient(135deg, #4facfe, #00f2fe, #4facfe);
            color: white;
            border: none;
            padding: 1rem 1rem;
            border-radius: 50px;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.8rem;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            margin: 0.5rem;
            position: relative;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4);
            text-decoration: none;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.5s;
        }

        .btn:hover::before {
            left: 100%;
        }

        .btn:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 20px 40px rgba(79, 172, 254, 0.6);
        }

        .btn-secondary {
            background: linear-gradient(135deg, #a8edea, #fed6e3, #d299c2);
            color: #333;
            box-shadow: 0 10px 30px rgba(168, 237, 234, 0.4);
            text-decoration: none;
        }

        .btn-secondary:hover {
            box-shadow: 0 20px 40px rgba(168, 237, 234, 0.6);
        }

        .rating-chart {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
            backdrop-filter: blur(30px);
            border-radius: 25px;
            padding: 3rem;
            margin: 3rem 0;
            border: 1px solid rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
        }

        .chart-bar {
            display: flex;
            align-items: center;
            margin: 2rem 0;
            color: white;
        }

        .chart-label {
            width: 120px;
            font-weight: 700;
            font-size: 1.1rem;
        }

        .chart-progress {
            flex: 1;
            height: 20px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            margin: 0 2rem;
            overflow: hidden;
            position: relative;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .chart-fill {
            height: 100%;
            background: linear-gradient(90deg, #ff6b6b, #ee5a24, #ff9800);
            border-radius: 15px;
            transition: width 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            position: relative;
            box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
        }

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

        @keyframes progressShine {
            0% { left: -100%; }
            100% { left: 100%; }
        }

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

        

       

        .filter-section {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
            backdrop-filter: blur(30px);
            border-radius: 25px;
            padding: 3rem;
            margin: 3rem 0;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .option{
            color: #000;
        }


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

        .filter-select {
            padding: 1rem 1.5rem;
            border: none;
            border-radius: 50px;
            background:rgba(255, 255, 255, 0.3);
            font-size: 0.9rem;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
        }

        .filter-select:focus {
            outline: none;
            transform: translateY(-2px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
            background:rgba(255, 255, 255, 0.3);

        }

       
 @media (max-width: 768px) {
    .search-bar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        justify-items: stretch ;   /* full width */
        width: 100% ;
    }

    .search-bar input,
    .search-bar select,
    .search-bar button {
        width: 100% ;  /* elements full width */
    }
    
    .filter-section {
        padding: 1.5rem;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-select {
        width: 100%;
    }
}



        


        .review-card {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
            backdrop-filter: blur(30px);
            border-radius: 25px;
            padding: 1rem;
            margin: 2rem 0;
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .review-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        }

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

        .review-text {
            line-height: 1.8;
            margin: 1.5rem 0;
            font-size: 1.1rem;
            font-style: italic;
            opacity: 0.9;
        }

        @media (max-width: 768px) {
            .nav-links {
                display: flex;
            }
            
            .title {
                font-size: 2.5rem;
            }
            
            
            

            .grid {
                grid-template-columns: 1fr;
            }

            .container {
                padding: 1rem;
            }
        }

        /* ==================== 
   ENHANCED MOBILE MENU DESIGN
   ==================== */

/* Mobile Menu Toggle Button */
.mobile-menu {
    display: none;
    position: relative;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1001;
    overflow: hidden;
}

.mobile-menu::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.5s;
}

.mobile-menu:hover::before {
    left: 100%;
}

.mobile-menu:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.mobile-menu:active {
    transform: scale(0.95);
}

/* Hamburger Icon */
.mobile-menu-icon {
    position: relative;
    width: 24px;
    height: 18px;
    margin: 0 auto;
    display: block;
}

.mobile-menu-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.mobile-menu-icon span:nth-child(1) {
    top: 0;
}

.mobile-menu-icon span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-icon span:nth-child(3) {
    bottom: 0;
}

/* Hamburger to X Animation */
.mobile-menu.active .mobile-menu-icon span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-menu.active .mobile-menu-icon span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu.active .mobile-menu-icon span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.4s ease;
}

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

/* Mobile Navigation Links Container */
@media (max-width: 768px) {
    .mobile-menu {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: 100%;
        width: 85%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.98), rgba(118, 75, 162, 0.98));
        backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 5rem 2rem 2rem ;
        gap: 0.5rem;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    
    .nav-links.active {
        display: flex;
        right: 0;
    }
    
    /* Mobile Nav Link Styling */
    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateX(50px);
        animation: slideInRight 0.5s ease forwards;
    }
    
    .nav-links.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { animation-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { animation-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { animation-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { animation-delay: 0.3s; }
    .nav-links.active li:nth-child(6) { animation-delay: 0.35s; }
    
    @keyframes slideInRight {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .nav-links a,
    .nav-links .user-profile-btn {
        width: 100%;
        padding: 1rem 1.5rem;
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: white;
        font-size: 1.05rem;
        font-weight: 600;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 1rem;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .nav-links a::before,
    .nav-links .user-profile-btn::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 0;
        background: linear-gradient(180deg, #ffeb3b, #ff9800);
        transition: height 0.3s ease;
        border-radius: 0 4px 4px 0;
    }
    
    .nav-links a:hover::before,
    .nav-links .user-profile-btn:hover::before,
    .nav-links a.active::before {
        height: 100%;
    }
    
    .nav-links a:hover,
    .nav-links .user-profile-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateX(8px);
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .nav-links a.active {
        background: linear-gradient(135deg, rgba(255, 235, 59, 0.25), rgba(255, 152, 0, 0.25));
        border-color: rgba(255, 235, 59, 0.4);
        box-shadow: 0 8px 20px rgba(255, 235, 59, 0.3);
    }
    
    /* Add Icons to Nav Links */
    .nav-links a::after {
        content: '→';
        margin-left: auto;
        opacity: 0;
        transform: translateX(-10px);
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover::after {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* User Dropdown in Mobile Menu */
    .nav-links .user-dropdown {
        width: 100%;
    }
    
    .nav-links .user-profile-btn {
        justify-content: flex-start;
    }
    
    .nav-links .user-avatar {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    .nav-links .user-name {
        display: block !important;
        font-size: 1.05rem;
    }
    
    .nav-links .dropdown-arrow {
        margin-left: auto;
    }
    
    /* Mobile Dropdown Menu */
    .nav-links .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        margin-top: 0.5rem;
        padding: 0;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .nav-links .user-dropdown.active .dropdown-menu {
        display: block;
        animation: slideDown 0.4s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            max-height: 0;
        }
        to {
            opacity: 1;
            max-height: 500px;
        }
    }
    
    .nav-links .dropdown-header {
        padding: 1.5rem 1rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links .dropdown-item {
        margin: 0.3rem 0.5rem;
        padding: 0.9rem 1rem;
        border-radius: 10px;
        font-size: 0.95rem;
    }
    
    /* Close Button in Mobile Menu */
    .mobile-close-btn {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        color: white;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 1001;
    }
    
    .mobile-close-btn:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: rotate(90deg) scale(1.1);
    }
    
    /* Mobile Menu Header */
    .mobile-menu-header {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        padding: 1.5rem 2rem;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent);
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .mobile-menu-logo {
        width: 40px;
        height: 40px;
        background: white;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        color: #667eea;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    
    .mobile-menu-title {
        color: white;
        font-size: 1.3rem;
        font-weight: 700;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }
}

/* Smaller Mobile Devices */
@media (max-width: 480px) {
    .nav-links {
        width: 90%;
        max-width: none;
        padding: 4.5rem 1.5rem 2rem;
    }
    
    .nav-links a,
    .nav-links .user-profile-btn {
        padding: 0.9rem 1.2rem;
        font-size: 1rem;
    }
    
    .mobile-menu {
        width: 42px;
        height: 42px;
    }
    
    .mobile-menu-icon {
        width: 22px;
        height: 16px;
    }
    
    .mobile-menu-icon span {
        height: 2.5px;
    }
}

/* Landscape Mode */
@media (max-width: 812px) and (orientation: landscape) {
    .nav-links {
        padding: 3rem 1.5rem 1.5rem;
        gap: 0.3rem;
    }
    
    .nav-links a,
    .nav-links .user-profile-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }
}

/* Smooth Scroll Lock when Menu is Open */
body.menu-open {
    overflow: hidden;
}

/* Accessibility - Focus States */
.mobile-menu:focus,
.nav-links a:focus,
.mobile-close-btn:focus {
    outline: 2px solid rgba(255, 235, 59, 0.8);
    outline-offset: 3px;
}

/* Print Styles - Hide Mobile Menu */
@media print {
    .mobile-menu,
    .mobile-overlay,
    .nav-links {
        display: none !important;
    }
}

        .loading {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #667eea, #764ba2);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.5s ease;
        }

        .loading.active {
            opacity: 1;
            visibility: visible;
        }

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

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

         /* Info Grid */
        .info-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .info-item {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            padding: 1.5rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .info-label {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .info-value {
            color: white;
            font-size: 1rem;
            font-weight: 500;
            word-break: break-all;
        }


        .card-title1 {
            color: white;
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }

        /* Social Links */
        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

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

        .social-btn:hover {
            background: linear-gradient(135deg, #4facfe, #00f2fe);
            border-color: #4facfe;
            transform: translateY(-3px);
        }

         /* About Section */
        .about-content {
            color: rgba(255, 255, 255, 0.9);
            line-height: 1.8;
            font-size: 1rem;
        }

        .button_remove {
            background: linear-gradient(135deg, #960404, #520303, #370303);
            color: white;
            border: none;
            padding: 1rem 1rem;
            border-radius: 50px;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.8rem;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            margin: 0.5rem;
            position: relative;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4);
            text-decoration: none;
        }

        

        .button_save {
            background: linear-gradient(135deg, #03e066, #03522b, #033711);
            color: white;
            border: none;
            padding: 1rem 1rem;
            border-radius: 50px;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.8rem;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            margin: 0.5rem;
            position: relative;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4);
            text-decoration: none;
        }

       
.cr-status-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem ;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  z-index: 10;
  animation: fadeInSlide 0.6s ease-out;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

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

/* Present CR Badge - Vibrant Green/Cyan Theme */
.cr-status-badge.present {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(6, 182, 212, 0.95));
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cr-status-badge.present::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmerPresent 2.5s ease-in-out infinite;
}

@keyframes shimmerPresent {
  0% { left: -100%; }
  100% { left: 100%; }
}

.cr-status-badge.present::after {
  content: '●';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #10b981;
  font-size: 0.8rem;
  animation: pulseGreen 1.5s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
  50% { opacity: 0.6; transform: translateY(-50%) scale(1.3); }
}

/* Former CR Badge - Elegant Purple/Gray Theme */
.cr-status-badge.former {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(107, 114, 142, 0.9));
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cr-status-badge.former::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmerFormer 3s ease-in-out infinite;
}

@keyframes shimmerFormer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Badge Icon Animations */
.badge-icon {
  font-size: 1.1rem;
  display: inline-block;
  position: relative;
  z-index: 2;
}

.cr-status-badge.present .badge-icon {
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { 
    transform: scale(1) rotate(0deg);
    filter: brightness(1);
  }
  25% { 
    transform: scale(1.2) rotate(-10deg);
    filter: brightness(1.3);
  }
  50% { 
    transform: scale(1) rotate(0deg);
    filter: brightness(1);
  }
  75% { 
    transform: scale(1.2) rotate(10deg);
    filter: brightness(1.3);
  }
}

.cr-status-badge.former .badge-icon {
  animation: gentleFloat 3s ease-in-out infinite;
}

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

/* Badge Text */
.badge-text {
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-size: 0.75rem;
  position: relative;
  z-index: 2;
}

/* Hover Effects */
.cr-status-badge:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.6);
}

.cr-status-badge.present:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 1), rgba(6, 182, 212, 1));
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.6);
}

.cr-status-badge.former:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 1), rgba(107, 114, 142, 1));
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.5);
}


/* Optional: Add subtle glow to card based on status */
.card:has(.cr-status-badge.present):hover {
  box-shadow: 0 30px 60px rgba(16, 185, 129, 0.2);
}

.card:has(.cr-status-badge.former):hover {
  box-shadow: 0 30px 60px rgba(139, 92, 246, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cr-status-badge {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    top: 12px;
    left: 12px;
  }
  
  
  .badge-text {
    font-size: 0.7rem;
  }
  
  .cr-status-badge.present::after {
    right: 10px;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .cr-status-badge {
    padding: 0.4rem 0.9rem;
    font-size: 0.7rem;
    top: 10px;
    left: 10px;
    gap: 0.4rem;
  }
  
  .badge-icon {
    font-size: 0.9rem;
  }
  
  .badge-text {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
  }
  
  .cr-status-badge.present::after {
    display: none; /* Hide pulse dot on very small screens */
  }
}

/* Extra polish: Badge entrance animation on page load */
@keyframes badgeEntrance {
  0% {
    opacity: 0;
    transform: translateX(-30px) scale(0.8);
  }
  60% {
    transform: translateX(5px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.cr-status-badge {
  animation: badgeEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}




/* Pagination Styles */
.pagination-section {
    margin: 3rem auto 1.5rem;
    max-width: 700px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.pagination-numbers {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
    
}

.pagination-btn {
    min-width: 42px;
    height: 42px;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(0, 0, 0, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 11px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

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

.pagination-btn:hover::before {
    width: 150%;
    height: 150%;
}

.pagination-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4), rgba(118, 75, 162, 0.4));
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.pagination-active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    font-weight: 700;
    transform: scale(1.08);
}

.pagination-active:hover {
    transform: translateY(-3px) scale(1.12);
}

.pagination-disabled {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-first,
.pagination-last,
.pagination-prev,
.pagination-next {
    padding: 0 0.85rem;
    font-size: 0.9rem;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(78, 205, 196, 0.2));
}

.pagination-first:hover,
.pagination-last:hover,
.pagination-prev:hover,
.pagination-next:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.4), rgba(78, 205, 196, 0.4));
}

.pagination-info {
    text-align: center;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(20px);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination-info p {
    color: rgba(11, 0, 0, 0.85);
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 2px 4px rgb(87, 85, 85);
}

/* Animation for page numbers */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pagination-btn {
    animation: fadeInScale 0.4s ease forwards;
}

.pagination-btn:nth-child(1) { animation-delay: 0.05s; }
.pagination-btn:nth-child(2) { animation-delay: 0.1s; }
.pagination-btn:nth-child(3) { animation-delay: 0.15s; }
.pagination-btn:nth-child(4) { animation-delay: 0.2s; }
.pagination-btn:nth-child(5) { animation-delay: 0.25s; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .pagination {
        padding: 1rem 1rem;
        gap: 0.5rem;
    }
    
    .pagination-btn {
        min-width: 38px;
        height: 38px;
        font-size: 0.85rem;
        padding: 0 0.4rem;
    }
    
    .pagination-numbers {
        gap: 0.3rem;
    }
    
    .pagination-first,
    .pagination-last,
    .pagination-prev,
    .pagination-next {
        padding: 0 0.7rem;
        font-size: 0.85rem;
    }
    
    .pagination-info {
        padding: 0.65rem 1.25rem;
    }
    
    .pagination-info p {
        font-size: 0.825rem;
    }
}



/* Notice Banner Styles */
.notice-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(78, 205, 196, 0.15));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    /* padding: 1.2rem 3rem 1.2rem 1.5rem; */
    margin: 2rem 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideDown 0.6s ease-out;
}

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

.notice-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #ff6b6b, #4ecdc4, #45b7d1);
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background: linear-gradient(180deg, #ff6b6b, #4ecdc4); }
    50% { background: linear-gradient(180deg, #4ecdc4, #ff6b6b); }
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.notice-icon {
    font-size: 2.4rem;
    flex-shrink: 0;
    animation: bounce 2s ease-in-out infinite;
}

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

.notice-info {
    flex: 1;
}

.notice-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.notice-message {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
}

.notice-link {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.notice-link:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.notice-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.notice-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

/* Notice Type Specific Styles */
.notice-banner.info {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.2), rgba(0, 242, 254, 0.15));
}

.notice-banner.info::before {
    background: linear-gradient(180deg, #4facfe, #00f2fe);
}

.notice-banner.success {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.2), rgba(17, 153, 142, 0.15));
}

.notice-banner.success::before {
    background: linear-gradient(180deg, #4ecdc4, #11998e);
}

.notice-banner.warning {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), rgba(255, 193, 7, 0.15));
}

.notice-banner.warning::before {
    background: linear-gradient(180deg, #ff9800, #ffc107);
}

.notice-banner.urgent {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.25), rgba(238, 90, 36, 0.2));
    border-color: rgba(255, 107, 107, 0.4);
    animation: urgentPulse 2s ease-in-out infinite;
}

.notice-banner.urgent::before {
    background: linear-gradient(180deg, #ff6b6b, #ee5a24);
}

@keyframes urgentPulse {
    0%, 100% {
        box-shadow: 0 15px 40px rgba(255, 107, 107, 0.3);
    }
    50% {
        box-shadow: 0 15px 50px rgba(255, 107, 107, 0.6);
    }
}

/* Running text animation for long messages */
.notice-message.running {
    display: inline-block;
    animation: scrollText 15s linear infinite;
}

@keyframes scrollText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notice-banner {
        padding: 1rem 2.5rem 1rem 1rem;
        margin: 1.5rem 0;
    }
    
    .notice-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .notice-icon {
        font-size: 1.5rem;
    }
    
    .notice-title {
        font-size: 1.1rem;
    }
    
    .notice-message {
        font-size: 1rem;
    }
    
    .notice-close {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .notice-banner {
        padding: 0.9rem 2rem 0.9rem 0.8rem;
        border-radius: 15px;
    }
    
    .notice-icon {
        font-size: 1.8rem;
    }
    
    .notice-title {
        font-size: 1rem;
    }
    
    .notice-message {
        font-size: 1rem;
    }
}


/* Anonymous badge animation */
@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 235, 59, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 235, 59, 0.6);
    }
}

.review-card:has([style*="ANONYMOUS"]) {
    border-left: 3px solid rgba(255, 235, 59, 0.5);
}

/* Responsive design */
@media (max-width: 768px) {
    .review-header {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start !important;
    }
    
    .review-header > div:last-child {
        width: 100%;
        text-align: left;
    }
}


/* Review Statistics Stat Cards */
.stat-card-review,
.stat-card-anonymous,
.stat-card-approved,
.stat-card-pending {
    position: relative;
    overflow: hidden;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Individual stat card color themes */
.stat-card-review {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.2), rgba(0, 242, 254, 0.15));
}

.stat-card-review::before {
    background: linear-gradient(45deg, rgba(79, 172, 254, 0.3), rgba(0, 242, 254, 0.3));
}

.stat-card-review:hover {
    box-shadow: 0 30px 60px rgba(79, 172, 254, 0.4);
}

.stat-card-anonymous {
    background: linear-gradient(135deg, rgba(255, 235, 59, 0.2), rgba(255, 152, 0, 0.15));
}

.stat-card-anonymous::before {
    background: linear-gradient(45deg, rgba(255, 235, 59, 0.3), rgba(255, 152, 0, 0.3));
}

.stat-card-anonymous:hover {
    box-shadow: 0 30px 60px rgba(255, 235, 59, 0.4);
}

.stat-card-approved {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.2), rgba(17, 153, 142, 0.15));
}

.stat-card-approved::before {
    background: linear-gradient(45deg, rgba(78, 205, 196, 0.3), rgba(17, 153, 142, 0.3));
}

.stat-card-approved:hover {
    box-shadow: 0 30px 60px rgba(78, 205, 196, 0.4);
}

.stat-card-pending {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(238, 90, 36, 0.15));
}

.stat-card-pending::before {
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.3), rgba(238, 90, 36, 0.3));
}

.stat-card-pending:hover {
    box-shadow: 0 30px 60px rgba(255, 107, 107, 0.4);
}

/* Hover effect for stat icons */
.stat-card:hover .stat-icon {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-15px) scale(1.1); }
    50% { transform: translateY(0) scale(1.05); }
    75% { transform: translateY(-8px) scale(1.08); }
}

/* Pulsing effect for pending reviews */
.stat-card-pending .stat-number {
    animation: pulsePending 2s ease-in-out infinite;
}

@keyframes pulsePending {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

/* Shimmer effect on stat cards */
.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    bottom: -50%;
    left: -50%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    animation: shimmerEffect 3s infinite;
    pointer-events: none;
}

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

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .stat-icon {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .stat-icon {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }
    
    .stat-number {
        font-size: 1.9rem;
        margin-bottom: 0.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

/* ================================
   MOBILE RESPONSIVE IMPROVEMENTS
   Add this to your main CSS or create mobile.css
   ================================ */

/* ==================== 
   GLOBAL MOBILE FIXES 
   ==================== */

/* Better minimum widths for very small screens */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 1rem 0.75rem;
    }
    
    /* Fix horizontal scroll */
    * {
        max-width: 100%;
    }
}




/* ==================== 
   GRID LAYOUTS FIX 
   ==================== */

/* Main card grid - MOST IMPORTANT FIX */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .grid {
        gap: 1rem;
    }
}


/* ==================== 
   SEARCH SECTION FIX 
   ==================== */

@media (max-width: 768px) {
    .search-section {
        padding: 1.5rem 1rem;
        margin: 2rem 0;
    }
    
    
    .search-input {
        font-size: 0.9rem;
        padding: 0.8rem;
        
    }
    
    .search-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
}

/* ==================== 
   FILTER SECTION FIX 
   ==================== */

@media (max-width: 768px) {
    .filter-section {
        padding: 1.5rem 1rem;
        margin: 2rem 0;
    }
    
    .filter-row {
        grid-template-columns: 1fr !important;
        gap: 0.8rem;
    }
    
    .filter-select {
        width: 100%;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* ==================== 
   CARD IMPROVEMENTS 
   ==================== */

@media (max-width: 768px) {
    .card {
        padding: 1.2rem;
        border-radius: 20px;
    }
    
    .profile-photo {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    
    
    .cr-details {
        font-size: 0.95rem;
    }
    
    .rating {
        gap: 0.2rem;
    }
    
    .star {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 1rem;
    }
    
    .profile-photo {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .cr-name {
        font-size: 1.1rem;
    }
    
    .cr-details {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* ==================== 
   TITLE & HEADERS 
   ==================== */

@media (max-width: 768px) {
    .title {
        font-size: 2rem;
        margin: 2rem 0;
    }
    
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.75rem;
        margin: 1.5rem 0;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
}

/* ==================== 
   MODAL FIX 
   ==================== */

@media (max-width: 768px) {
    .modal-content {
        width: 90% !important;
        max-width: 90% !important;
        padding: 1.5rem;
        margin: 10% auto;
    }
    
    .rating-star {
        font-size: 2.5rem;
        margin: 0 0.3rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 95% !important;
        padding: 1.2rem;
    }
    
    .rating-star {
        font-size: 2rem;
        margin: 0 0.2rem;
    }
}



/* ==================== 
   USER DROPDOWN FIX 
   ==================== */

@media (max-width: 768px) {
    .user-dropdown {
        position: static;
    }
    
    .user-profile-btn {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }
    
    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .user-name {
        display: none;
    }
    
    .dropdown-menu {
        right: 0;
        left: auto;
        min-width: 280px;
    }
    
    .dropdown-header {
        padding: 1.5rem 1.2rem 1rem;
    }
    
    .user-avatar-large {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .dropdown-item {
        padding: 1rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* ==================== 
   DASHBOARD FIX 
   ==================== */

@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        padding: 1.5rem;
        text-align: center;
    }
    
    .header-left {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .profile-avatar-large {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .user-info h1 {
        font-size: 1.5rem;
    }
    
    .user-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}



/* ==================== 
   ADMIN DASHBOARD FIX 
   ==================== */

@media (max-width: 1024px) {
    .sidebar1 {
        transform: translateX(-100%);
    }
    
    .sidebar1.active {
        transform: translateX(0);
    }
    
    .main-content1 {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .top-bar1 {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .page-title1 {
        font-size: 1.5rem;
    }
    
    .stats-grid1 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .data-table1 {
        font-size: 0.85rem;
        overflow-x: auto;
    }
    
    .search-filters1 {
        grid-template-columns: 1fr;
    }
}

/* ==================== 
   NOTICE BANNER FIX 
   ==================== */

@media (max-width: 768px) {
    .notice-banner {
        padding: 1rem 2.5rem 1rem 1rem;
        margin: 1.5rem 0;
        border-radius: 15px;
    }
    
    .notice-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .notice-icon {
        font-size: 2rem;
    }
    
    .notice-title {
        font-size: 1.1rem;
    }
    
    .notice-message {
        font-size: 0.9rem;
    }
}

/* ==================== 
   CR STATUS BADGE FIX 
   ==================== */

@media (max-width: 480px) {
    .cr-status-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        top: 8px;
        left: 8px;
        gap: 0.3rem;
    }
    
    .badge-icon {
        font-size: 0.85rem;
    }
    
    .badge-text {
        font-size: 0.65rem;
    }
}

/* ==================== 
   REVIEW CARD FIX 
   ==================== */

@media (max-width: 768px) {
    .review-card {
        padding: 1.2rem;
    }
    .section{
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    .review-header {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start !important;
    }
    
    .review-text {
        font-size: 0.95rem;
    }
}

/* ==================== 
   FORM FIX (ADD CR) 
   ==================== */

@media (max-width: 768px) {
    .form-wrapper {
        padding: 0 1rem 2rem;
    }
    
    .form-main {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .submit-button,
    .cancel-button {
        width: 100%;
    }
}

/* ==================== 
   SMOOTH TRANSITIONS 
   ==================== */

@media (max-width: 768px) {
    /* Disable some animations on mobile for performance */
    *,
    *::before,
    *::after {
        animation-duration: 0.5s !important;
        transition-duration: 0.3s !important;
    }
}

/* ==================== 
   TOUCH-FRIENDLY BUTTONS 
   ==================== */

@media (max-width: 768px) {
    button,
    .btn,
    .action-btn,
    a {
        min-height: 44px; /* iOS recommended touch target */
        min-width: 44px;
    }
    
    /* Increase tap area */
    .nav-links a {
        padding: 1rem 1.5rem;
    }
}

/* ==================== 
   FIX HORIZONTAL SCROLL 
   ==================== */

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .container,
    .section,
    .grid,
    .stats {
        overflow-x: hidden;
    }
    
    /* Prevent tables from breaking layout */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ==================== 
   LOADING SPINNER FIX 
   ==================== */

@media (max-width: 768px) {
    .spinner {
        width: 40px;
        height: 40px;
    }
    
    .spinner-large {
        width: 40px;
        height: 40px;
    }
}

/* ==================== 
   TEXT READABILITY 
   ==================== */

@media (max-width: 480px) {
    body {
        line-height: 1.6;
    }
    
    p, .cr-details, .review-text {
        line-height: 1.7;
    }
}

/* ==================== 
   IMAGE RESPONSIVENESS 
   ==================== */

@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }
    
    .profile-photo img,
    .user-avatar img,
    .saved-avatar img {
        object-fit: cover;
    }
}

/* ==================== 
   SAFE AREA (iPhone Notch) 
   ==================== */

@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    
    .navbar {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* ==================== 
   LANDSCAPE MODE FIX 
   ==================== */

@media (max-width: 812px) and (orientation: landscape) {
    .title {
        font-size: 1.5rem;
        margin: 1rem 0;
    }
    
    .modal-content {
        max-height: 80vh;
        overflow-y: auto;
    }
}