/* Home Page Styles */
body {
        .centered-search-input.error {
            border-color: #e74c3c !important;
            box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
            animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
        }
        .rotating-text{
            min-width: 70px;
            color: #f0f3c2;

        }
        
        /* Slide menu header styles */
        .slide-menu-header {
            display: none; /* Hide by default on desktop */
            padding: 16px;
            border-bottom: 1px solid #eee;
            position: relative;
            
        }
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
            20%, 40%, 60%, 80% { transform: translateX(5px); }
        }

        /* Add mobile toggle and overlay styles */
        .mobile-toggle {
            display: none;
            position: fixed;
            top: 15px;
            left: 15px;
            width: 40px;
            height: 40px;
            background: #fff;
            border: none;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            z-index: 1001;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        

        

        @media (max-width: 768px) {
            .mobile-toggle {
                display: flex;
            }

            .mobile-toggle i {
                font-size: 20px;
                color: #333;
                transition: transform 0.3s ease;
            }

            .mobile-toggle.active i {
                transform: rotate(90deg);
            }

            .sidebar {
                transform: translateX(-100%);
                position: fixed;
                height: 100vh;
                z-index: 1000;
                transition: transform 0.3s ease;
            }

            .sidebar.active {
                transform: translateX(0);
            }

            .overlay.active {
                display: block;
                opacity: 1;
            }

            .main-content {
                margin-left: 0;
                padding-top: 60px;
            }
        }

        /* Mobile optimization styles */
        @media screen and (-webkit-min-device-pixel-ratio: 0) { 
            select, textarea, input {
                font-size: 16px !important;
            }
        }

        @media (hover: none) and (pointer: coarse) {
            .nav-item, .footer-link, .floating-button {
                min-height: 44px;
                padding: 12px;
            }
        }

        @media (max-width: 768px) {
            .mobile-toggle {
                display: flex;
                position: fixed;
                top: 15px;
                left: 15px;
                z-index: 1001;
                display: none;
            }

            .sidebar {
                transform: translateX(-100%);
                position: fixed;
                width: 280px;
                height: 100vh;
            }

            .sidebar.active {
                transform: translateX(0);
            }

            .main-content {
                margin-left: 0;
                padding-top: 70px;
            }

            .search-center-container {
                padding: 0 15px;
                margin-top: 20px;
            }

            .news-section {
                padding: 10px;
                overflow-x: auto;
                gap: 12px;
                height: 139px;
            }

            .news-card {
                
                flex-shrink: 0;
            }
        }

        @media (max-width: 480px) {
            .footer-links {
                flex-wrap: wrap;
                gap: 8px;
                padding: 10px;
            }

            .footer-language {
                width: 100%;
                margin-top: 10px;
            }

            .search-heading {
                font-size: 24px;
            }

            .search-input-wrapper {
                width: 100%;
            }
        }
        
        /* Free Listing Button Styles */
        .free-listing-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 100;
        }
        
        .free-listing-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            background: linear-gradient(135deg, #ff6b6b, #ff8e53);
            color: white;
            padding: 12px 20px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 16px;
            text-decoration: none;
            box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            transform: translateY(0);
            animation: float 3s ease-in-out infinite, glow 2s infinite alternate;
        }
        
        .free-listing-btn:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
        }
        
        .free-listing-btn i {
            font-size: 18px;
            animation: bounce 2s infinite;
        }
        
        
        
        .free-listing-btn .highlight {
            font-weight: 800;
            color: #ffe600;
            text-shadow: 0 0 5px rgba(0,0,0,0.3);
            position: relative;
            display: inline-block;
            animation: pulse-text 1.5s infinite;
        }
        
        .shimmer-effect {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                90deg,
                rgba(255,255,255,0) 0%,
                rgba(255,255,255,0.2) 50%,
                rgba(255,255,255,0) 100%
            );
            background-size: 200% 100%;
            animation: shimmer 2s infinite;
            pointer-events: none;
        }
        
        @keyframes pulse-text {
            0% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.1);
            }
            100% {
                transform: scale(1);
            }
        }
        
        .pulse-animation {
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50px;
            background: rgb(21 122 157);
            top: 0;
            left: 0;
            z-index: -1;
            
        }
        
        /* Additional animations for Free Listing button */
        .free-listing-btn.attention {
            animation: attention 0.5s ease-in-out;
        }
        
        .ripple-effect {
            position: absolute;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.4);
            width: 100px;
            height: 100px;
            transform: scale(0);
            animation: ripple 0.6s linear;
            pointer-events: none;
        }
        
        .listing-tooltip {
            position: fixed;
            background-color: #333;
            color: white;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 14px;
            z-index: 1000;
            opacity: 0;
            animation: fadeInOut 2s ease-in-out forwards;
        }
        
        .listing-tooltip::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            border-width: 8px 8px 0;
            border-style: solid;
            border-color: #333 transparent transparent;
        }
        
        @keyframes pulse {
            0% {
                transform: scale(1);
                opacity: 0.7;
            }
            50% {
                transform: scale(1.05);
                opacity: 0.3;
            }
            100% {
                transform: scale(1);
                opacity: 0.7;
            }
        }
        
        @keyframes float {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-10px);
            }
        }
        
        @keyframes attention {
            0%, 100% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.1);
            }
        }
        
        @keyframes ripple {
            to {
                transform: scale(2.5);
                opacity: 0;
            }
        }
        
        @keyframes fadeInOut {
            0% {
                opacity: 0;
                transform: translateY(10px);
            }
            20% {
                opacity: 1;
                transform: translateY(0);
            }
            80% {
                opacity: 1;
                transform: translateY(0);
            }
            100% {
                opacity: 0;
                transform: translateY(-10px);
            }
        }
        
        @keyframes glow {
            from {
                box-shadow: 0 0 10px rgba(255, 107, 107, 0.6);
            }
            to {
                box-shadow: 0 0 20px rgba(255, 107, 107, 0.9), 0 0 30px rgba(255, 142, 83, 0.5);
            }
        }
        
        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-5px);
            }
            60% {
                transform: translateY(-3px);
            }
        }
        
        @keyframes shimmer {
            0% {
                background-position: -100% 0;
            }
            100% {
                background-position: 200% 0;
            }
        }
        
        /* Mobile responsive styles for free listing button */
        @media (max-width: 768px) {
            .free-listing-container {
                top: 15px;
                right: 15px;
            }
            
            .free-listing-btn {
                padding: 10px 16px;
                font-size: 14px;
            }
            
            .free-listing-btn i {
                font-size: 16px;
            }
        }
        
        @media (max-width: 480px) {
            .free-listing-btn .btn-text {
                display: inline-block;
                max-width: fit-content;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            
            .free-listing-btn {
                padding: 8px 12px;
                border-radius: 50px;
            }
            
            .free-listing-btn i {
                margin-right: 5px;
            }
            
            
        }

        /* Swipe Text Animation Styles */
        .swipe-paragraphs {
            position: relative;
            height: 20px;
            overflow: hidden;
        }

        .swipe-text {
            position: absolute;
            width: 100%;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.5s ease;
        }

        .swipe-text.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* Add these new styles */
        .rotating-ads {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .ad-content {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        .ad-content.active {
            opacity: 1;
            visibility: visible;
        }

        /* Search Input Typing Styles */
        .centered-search-input {
            width: 100%;
            
           
            border-radius: 8px;
            font-size: 16px;
            color: #666;
            font-weight: normal;
            transition: all 0.3s ease;
            background: white;
        }

      

        .centered-search-input.typing {
            color: #080808;
        }

        .search-input-wrapper .auto-detect {
            color: #666;
            opacity: 0.7;
            transition: all 0.3s ease;
        }

        .search-input-wrapper.typing .auto-detect {
            opacity: 1;
        }

        /* Add these styles for suggestions */
        .search-suggestions {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            margin-top: 8px;
            z-index: 1000;
            opacity: 0;
            transform: translateY(-10px);
            transition: all 0.3s ease;
        }

        .search-suggestions.active {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }

        .search-input-wrapper {
            position: relative;
        }

        /* Add styles for stock indicators */
        .stock-indicator {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            border-radius: 4px;
            font-size: 14px;
        }

        .stock-indicator.profit {
            background: linear-gradient(135deg, #4CAF50, #45a049);
            box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
        }

        .stock-indicator.loss {
            background: linear-gradient(135deg, #f44336, #e53935);
            box-shadow: 0 2px 8px rgba(244, 67, 54, 0.2);
        }

        .stock-indicator::before {
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            color: white;
        }

        .stock-indicator.profit::before {
            content: "\f062"; /* up arrow */
        }

        .stock-indicator.loss::before {
            content: "\f063"; /* down arrow */
        }

        .stock-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .stock-info p {
            margin: 0;
            font-size: 14px;
            color: #666;
        }

        /* Add loading animation */
        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.5; }
            100% { opacity: 1; }
        }

        .loading {
            animation: pulse 1.5s infinite;
        }

        .finance-card {
            height: 139px;
            overflow: hidden;
            display: flex;
            align-items: center;
            padding: 15px;
            background: white;
            border-radius: 12px;
            transition: all 0.3s ease;
        }

        .finance-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        }

        .finance-card .card-icon {
            margin-right: 15px;
            flex-shrink: 0;
        }

        .finance-card .card-content {
            flex: 1;
        }

        .finance-card h3 {
            color: #333;
            font-size: 16px;
            font-weight: 600;
            margin: 0 0 8px 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .stock-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .stock-info p {
            color: #666;
            font-size: 14px;
            margin: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .stock-indicator {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .stock-indicator.profit {
            background: linear-gradient(135deg, #4CAF50, #45a049);
            box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
        }

        .stock-indicator.loss {
            background: linear-gradient(135deg, #f44336, #e53935);
            box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
        }

        #stock-name, #stock-price, #stock-indicator {
            transition: opacity 0.3s ease;
        }

        /* Add bounce animation for arrows */
        @keyframes bounceArrow {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-3px); }
        }

        .auth-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1000;
            display: none; /* Hide by default */
            align-items: center;
        }

        /* Show auth container only on mobile screens */
        @media (max-width: 768px) {
            .auth-container {
                display: flex;
                top: auto; /* Remove top positioning */
                bottom: 70px; /* Position above mobile nav */
                right: 20px;
                z-index: 1000;
            }

            .auth-link {
                background: #157a9d;
                color: white;
                padding: 12px 20px;
                border-radius: 50px;
                box-shadow: 0 2px 10px rgba(0,0,0,0.2);
                text-decoration: none;
                margin-bottom: 30px;
            }

            .auth-link i {
                font-size: 18px;
            }

            .auth-link:hover {
                transform: translateY(-2px);
                box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            }

            /* Adjust profile container for mobile */
            #profile-container .btn-profile {
                background: #157a9d;
                color: white;
                padding: 12px 20px;
                border-radius: 50px;
        /* margin-right: 4px; */
             margin-left: -58%;
        /* margin-bottom: 54px;
            }

            #profile-container .profile-card {
                bottom: calc(100% + 10px);
                top: auto;
                right: 0;
            }
        }

        .profile-container {
            position: relative;
            z-index: 1002; /* Higher than other elements */
        }

        .profile-card {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            width: 280px;
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            padding: 16px;
            display: none;
            animation: slideDown 0.3s ease;
            z-index: 1002; /* Higher than other elements */
        }

        /* Desktop specific styles */
        @media (min-width: 769px) {
            .auth-container {
                position: relative;
                display: flex;
                align-items: center;
                z-index: 1002; /* Higher than other elements */
            }

            .profile-card {
                position: fixed; /* Change to fixed positioning */
                top: 80px; /* Position below the header */
                right: 20px;
                transform-origin: top right;
                max-height: calc(100vh - 100px); /* Prevent overflow */
                overflow-y: auto; /* Add scroll if needed */
            }
        }

        /* Mobile specific styles */
        @media (max-width: 768px) {
            .auth-container {
                position: relative;
                width: 100%;
            }

            .profile-card {
                position: absolute;
                bottom: calc(100% + 10px);
                right: 0;
                top: auto;
                max-height: calc(100vh - 200px); /* Prevent overflow */
                overflow-y: auto; /* Add scroll if needed */
            }
        }

        .profile-card.active {
            display: block;
        }

        /* Add backdrop when profile card is active */
        .profile-backdrop {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.3);
            z-index: 1001;
        }

        .profile-backdrop.active {
            display: block;
        }

        .centered-search-input.error {
            border-color: #e74c3c !important;
            box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
            animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
        }
        
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
            20%, 40%, 60%, 80% { transform: translateX(5px); }
        }

        /* Add mobile toggle and overlay styles */
        .mobile-toggle {
            display: none;
            position: fixed;
            top: 15px;
            left: 15px;
            width: 40px;
            height: 40px;
            background: #fff;
            border: none;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            z-index: 1001;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        

       

        @media (max-width: 768px) {
            .mobile-toggle {
                display: flex;
            }

            .mobile-toggle i {
                font-size: 20px;
                color: #333;
                transition: transform 0.3s ease;
            }

            .mobile-toggle.active i {
                transform: rotate(90deg);
            }

            .sidebar {
                transform: translateX(-100%);
                position: fixed;
                height: 100vh;
                z-index: 1000;
                transition: transform 0.3s ease;
            }

            .sidebar.active {
                transform: translateX(0);
            }

            .overlay.active {
                display: block;
                opacity: 1;
            }

            .main-content {
                margin-left: 0;
                padding-top: 60px;
            }
        }

        /* Mobile optimization styles */
        @media screen and (-webkit-min-device-pixel-ratio: 0) { 
            select, textarea, input {
                font-size: 16px !important;
            }
        }

        @media (hover: none) and (pointer: coarse) {
            .nav-item, .footer-link, .floating-button {
                min-height: 44px;
                padding: 12px;
            }
        }

        @media (max-width: 768px) {
            .mobile-toggle {
                display: flex;
                position: fixed;
                top: 15px;
                left: 15px;
                z-index: 1001;
                display: none;
            }

            .sidebar {
                transform: translateX(-100%);
                position: fixed;
                width: 280px;
                height: 100vh;
            }

            .sidebar.active {
                transform: translateX(0);
            }

            .main-content {
                margin-left: 0;
                padding-top: 70px;
            }

            .search-center-container {
                padding: 0 15px;
                margin-top: 20px;
            }

            .news-section {
                padding: 10px;
                overflow-x: auto;
                gap: 12px;
                height: 139px;
            }

            .news-card {
                
                flex-shrink: 0;
            }
        }

        @media (max-width: 480px) {
            .footer-links {
                flex-wrap: wrap;
                gap: 8px;
                padding: 10px;
            }

            .footer-language {
                width: 100%;
                margin-top: 10px;
            }

            .search-heading {
                font-size: 24px;
            }

            .search-input-wrapper {
                width: 100%;
            }
        }
        
        /* Free Listing Button Styles */
        .free-listing-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 100;
        }
        
        .free-listing-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            background: linear-gradient(135deg, #ff6b6b, #ff8e53);
            color: white;
            padding: 12px 20px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 16px;
            text-decoration: none;
            box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            transform: translateY(0);
            animation: float 3s ease-in-out infinite, glow 2s infinite alternate;
        }
        
        .free-listing-btn:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
        }
        
        .free-listing-btn i {
            font-size: 18px;
            animation: bounce 2s infinite;
        }
        
        
        
        .free-listing-btn .highlight {
            font-weight: 800;
            color: #ffe600;
            text-shadow: 0 0 5px rgba(0,0,0,0.3);
            position: relative;
            display: inline-block;
            animation: pulse-text 1.5s infinite;
        }
        
        .shimmer-effect {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                90deg,
                rgba(255,255,255,0) 0%,
                rgba(255,255,255,0.2) 50%,
                rgba(255,255,255,0) 100%
            );
            background-size: 200% 100%;
            animation: shimmer 2s infinite;
            pointer-events: none;
        }
        
        @keyframes pulse-text {
            0% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.1);
            }
            100% {
                transform: scale(1);
            }
        }
        
        .pulse-animation {
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50px;
            background: rgb(21 122 157);
            top: 0;
            left: 0;
            z-index: -1;
            
        }
        
        /* Additional animations for Free Listing button */
        .free-listing-btn.attention {
            animation: attention 0.5s ease-in-out;
        }
        
        .ripple-effect {
            position: absolute;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.4);
            width: 100px;
            height: 100px;
            transform: scale(0);
            animation: ripple 0.6s linear;
            pointer-events: none;
        }
        
        .listing-tooltip {
            position: fixed;
            background-color: #333;
            color: white;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 14px;
            z-index: 1000;
            opacity: 0;
            animation: fadeInOut 2s ease-in-out forwards;
        }
        
        .listing-tooltip::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            border-width: 8px 8px 0;
            border-style: solid;
            border-color: #333 transparent transparent;
        }
        
        @keyframes pulse {
            0% {
                transform: scale(1);
                opacity: 0.7;
            }
            50% {
                transform: scale(1.05);
                opacity: 0.3;
            }
            100% {
                transform: scale(1);
                opacity: 0.7;
            }
        }
        
        @keyframes float {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-10px);
            }
        }
        
        @keyframes attention {
            0%, 100% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.1);
            }
        }
        
        @keyframes ripple {
            to {
                transform: scale(2.5);
                opacity: 0;
            }
        }
        
        @keyframes fadeInOut {
            0% {
                opacity: 0;
                transform: translateY(10px);
            }
            20% {
                opacity: 1;
                transform: translateY(0);
            }
            80% {
                opacity: 1;
                transform: translateY(0);
            }
            100% {
                opacity: 0;
                transform: translateY(-10px);
            }
        }
        
        @keyframes glow {
            from {
                box-shadow: 0 0 10px rgba(255, 107, 107, 0.6);
            }
            to {
                box-shadow: 0 0 20px rgba(255, 107, 107, 0.9), 0 0 30px rgba(255, 142, 83, 0.5);
            }
        }
        
        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-5px);
            }
            60% {
                transform: translateY(-3px);
            }
        }
        
        @keyframes shimmer {
            0% {
                background-position: -100% 0;
            }
            100% {
                background-position: 200% 0;
            }
        }
        
        /* Mobile responsive styles for free listing button */
        @media (max-width: 768px) {
            .free-listing-container {
                top: 15px;
                right: 15px;
            }
            
            .free-listing-btn {
                padding: 10px 16px;
                font-size: 14px;
            }
            
            .free-listing-btn i {
                font-size: 16px;
            }
        }
        
        @media (max-width: 480px) {
            .free-listing-btn .btn-text {
                display: inline-block;
                max-width: fit-content;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            
            .free-listing-btn {
                padding: 8px 12px;
                border-radius: 50px;
            }
            
            .free-listing-btn i {
                margin-right: 5px;
            }
            
            
        }

        /* Swipe Text Animation Styles */
        .swipe-paragraphs {
            position: relative;
            height: 20px;
            overflow: hidden;
        }

        .swipe-text {
            position: absolute;
            width: 100%;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.5s ease;
        }

        .swipe-text.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* Add these new styles */
        .rotating-ads {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .ad-content {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        .ad-content.active {
            opacity: 1;
            visibility: visible;
        }

        /* Search Input Typing Styles */
        .centered-search-input {
            width: 100%;
            
           
            border-radius: 8px;
            font-size: 16px;
            color: #666;
            font-weight: normal;
            transition: all 0.3s ease;
            background: white;
        }

      

        .centered-search-input.typing {
            color: #080808;
        }

        .search-input-wrapper .auto-detect {
            color: #666;
            opacity: 0.7;
            transition: all 0.3s ease;
        }

        .search-input-wrapper.typing .auto-detect {
            opacity: 1;
        }

        /* Add these styles for suggestions */
        .search-suggestions {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            margin-top: 8px;
            z-index: 1000;
            opacity: 0;
            transform: translateY(-10px);
            transition: all 0.3s ease;
        }

        .search-suggestions.active {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }

        .search-input-wrapper {
            position: relative;
        }

        /* Add styles for stock indicators */
        .stock-indicator {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            border-radius: 4px;
            font-size: 14px;
        }

        .stock-indicator.profit {
            background: linear-gradient(135deg, #4CAF50, #45a049);
            box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
        }

        .stock-indicator.loss {
            background: linear-gradient(135deg, #f44336, #e53935);
            box-shadow: 0 2px 8px rgba(244, 67, 54, 0.2);
        }

        .stock-indicator::before {
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            color: white;
        }

        .stock-indicator.profit::before {
            content: "\f062"; /* up arrow */
        }

        .stock-indicator.loss::before {
            content: "\f063"; /* down arrow */
        }

        .stock-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .stock-info p {
            margin: 0;
            font-size: 14px;
            color: #666;
        }

        /* Add loading animation */
        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.5; }
            100% { opacity: 1; }
        }

        .loading {
            animation: pulse 1.5s infinite;
        }

        .finance-card {
            height: 139px;
            overflow: hidden;
            display: flex;
            align-items: center;
            padding: 15px;
            background: white;
            border-radius: 12px;
            transition: all 0.3s ease;
        }

        .finance-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        }

        .finance-card .card-icon {
            margin-right: 15px;
            flex-shrink: 0;
        }

        .finance-card .card-content {
            flex: 1;
        }

        .finance-card h3 {
            color: #333;
            font-size: 16px;
            font-weight: 600;
            margin: 0 0 8px 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .stock-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .stock-info p {
            color: #666;
            font-size: 14px;
            margin: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .stock-indicator {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .stock-indicator.profit {
            background: linear-gradient(135deg, #4CAF50, #45a049);
            box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
        }

        .stock-indicator.loss {
            background: linear-gradient(135deg, #f44336, #e53935);
            box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
        }

        #stock-name, #stock-price, #stock-indicator {
            transition: opacity 0.3s ease;
        }

        /* Add bounce animation for arrows */
        @keyframes bounceArrow {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-3px); }
        }

        .auth-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1000;
            display: none; /* Hide by default */
            align-items: center;
        }

        /* Show auth container only on mobile screens */
        @media (max-width: 768px) {
            .auth-container {
                display: flex;
                top: auto; /* Remove top positioning */
                bottom: 70px; /* Position above mobile nav */
                right: 20px;
                z-index: 1000;
            }

            .auth-link {
                background: #157a9d;
                color: white;
                padding: 12px 20px;
                border-radius: 50px;
                box-shadow: 0 2px 10px rgba(0,0,0,0.2);
                text-decoration: none;
                margin-bottom: 30px;
            }

            .auth-link i {
                font-size: 18px;
            }

            .auth-link:hover {
                transform: translateY(-2px);
                box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            }

            /* Adjust profile container for mobile */
            #profile-container .btn-profile {
                background: #157a9d;
                color: white;
                padding: 12px 20px;
            }

            #profile-container .profile-card {
                bottom: calc(100% + 10px);
                top: auto;
                right: 0;
            }
        }

        .profile-container {
            position: relative;
            z-index: 1002; /* Higher than other elements */
        }

        .profile-card {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            width: 280px;
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            padding: 16px;
            display: none;
            animation: slideDown 0.3s ease;
            z-index: 1002; /* Higher than other elements */
        }
        

        /* Desktop specific styles */
        @media (min-width: 769px) {
            .auth-container {
                position: relative;
                display: flex;
                align-items: center;
                z-index: 1002; /* Higher than other elements */
            }

            .profile-card {
                position: fixed; /* Change to fixed positioning */
                top: 80px; /* Position below the header */
                right: 20px;
                transform-origin: top right;
                max-height: calc(100vh - 100px); /* Prevent overflow */
                overflow-y: auto; /* Add scroll if needed */
            }
        }

        /* Mobile specific styles */
        @media (max-width: 768px) {
            .auth-container {
                position: relative;
                width: 100%;
            }

            .profile-card {
                position: absolute;
                bottom: calc(100% + 10px);
                right: 0;
                top: auto;
                max-height: calc(100vh - 200px); /* Prevent overflow */
                overflow-y: auto; /* Add scroll if needed */
            }
        }

        .profile-card.active {
            display: block;
        }

        /* Add backdrop when profile card is active */
        .profile-backdrop {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.3);
            z-index: 1001;
        }

        .profile-backdrop.active {
            display: block;
        }

        .centered-search-input.error {
            border-color: #e74c3c !important;
            box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
            animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
        }
        
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
            20%, 40%, 60%, 80% { transform: translateX(5px); }
        }

        /* Add mobile toggle and overlay styles */
        .mobile-toggle {
            display: none;
            position: fixed;
            top: 15px;
            left: 15px;
            width: 40px;
            height: 40px;
            background: #fff;
            border: none;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            z-index: 1001;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        


        @media (max-width: 768px) {
            .mobile-toggle {
                display: flex;
            }

            .mobile-toggle i {
                font-size: 20px;
                color: #333;
                transition: transform 0.3s ease;
            }

            .mobile-toggle.active i {
                transform: rotate(90deg);
            }

            .sidebar {
                transform: translateX(-100%);
                position: fixed;
                height: 100vh;
                z-index: 1000;
                transition: transform 0.3s ease;
            }

            .sidebar.active {
                transform: translateX(0);
            }

            .overlay.active {
                display: block;
                opacity: 1;
            }

            .main-content {
                margin-left: 0;
                padding-top: 60px;
            }
        }

        /* Mobile optimization styles */
        @media screen and (-webkit-min-device-pixel-ratio: 0) { 
            select, textarea, input {
                font-size: 16px !important;
            }
        }

        @media (hover: none) and (pointer: coarse) {
            .nav-item, .footer-link, .floating-button {
                min-height: 44px;
                padding: 12px;
            }
        }

        @media (max-width: 768px) {
            .mobile-toggle {
                display: flex;
                position: fixed;
                top: 15px;
                left: 15px;
                z-index: 1001;
                display: none;
            }

            .sidebar {
                transform: translateX(-100%);
                position: fixed;
                width: 280px;
                height: 100vh;
            }

            .sidebar.active {
                transform: translateX(0);
            }

            .main-content {
                margin-left: 0;
                padding-top: 70px;
            }

            .search-center-container {
                padding: 0 15px;
                margin-top: 20px;
            }

            .news-section {
                padding: 10px;
                overflow-x: auto;
                gap: 12px;
                height: 139px;
            }

            .news-card {
                
                flex-shrink: 0;
            }
        }

        @media (max-width: 480px) {
            .footer-links {
                flex-wrap: wrap;
                gap: 8px;
                padding: 10px;
            }

            .footer-language {
                width: 100%;
                margin-top: 10px;
            }

            .search-heading {
                font-size: 24px;
            }

            .search-input-wrapper {
                width: 100%;
            }
        }
        
        /* Free Listing Button Styles */
        .free-listing-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 100;
        }
        
        .free-listing-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            background: linear-gradient(135deg, #ff6b6b, #ff8e53);
            color: white;
            padding: 12px 20px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 16px;
            text-decoration: none;
            box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            transform: translateY(0);
            animation: float 3s ease-in-out infinite, glow 2s infinite alternate;
        }
        
        .free-listing-btn:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
        }
        
        .free-listing-btn i {
            font-size: 18px;
            animation: bounce 2s infinite;
        }
        
        
        
        .free-listing-btn .highlight {
            font-weight: 800;
            color: #ffe600;
            text-shadow: 0 0 5px rgba(0,0,0,0.3);
            position: relative;
            display: inline-block;
            animation: pulse-text 1.5s infinite;
        }
        
        .shimmer-effect {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                90deg,
                rgba(255,255,255,0) 0%,
                rgba(255,255,255,0.2) 50%,
                rgba(255,255,255,0) 100%
            );
            background-size: 200% 100%;
            animation: shimmer 2s infinite;
            pointer-events: none;
        }
        
        @keyframes pulse-text {
            0% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.1);
            }
            100% {
                transform: scale(1);
            }
        }
        
        .pulse-animation {
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50px;
            background: rgb(21 122 157);
            top: 0;
            left: 0;
            z-index: -1;
            
        }
        
        /* Additional animations for Free Listing button */
        .free-listing-btn.attention {
            animation: attention 0.5s ease-in-out;
        }
        
        .ripple-effect {
            position: absolute;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.4);
            width: 100px;
            height: 100px;
            transform: scale(0);
            animation: ripple 0.6s linear;
            pointer-events: none;
        }
        
        .listing-tooltip {
            position: fixed;
            background-color: #333;
            color: white;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 14px;
            z-index: 1000;
            opacity: 0;
            animation: fadeInOut 2s ease-in-out forwards;
        }
        
        .listing-tooltip::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            border-width: 8px 8px 0;
            border-style: solid;
            border-color: #333 transparent transparent;
        }
        
        @keyframes pulse {
            0% {
                transform: scale(1);
                opacity: 0.7;
            }
            50% {
                transform: scale(1.05);
                opacity: 0.3;
            }
            100% {
                transform: scale(1);
                opacity: 0.7;
            }
        }
        
        @keyframes float {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-10px);
            }
        }
        
        @keyframes attention {
            0%, 100% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.1);
            }
        }
        
        @keyframes ripple {
            to {
                transform: scale(2.5);
                opacity: 0;
            }
        }
        
        @keyframes fadeInOut {
            0% {
                opacity: 0;
                transform: translateY(10px);
            }
            20% {
                opacity: 1;
                transform: translateY(0);
            }
            80% {
                opacity: 1;
                transform: translateY(0);
            }
            100% {
                opacity: 0;
                transform: translateY(-10px);
            }
        }
        
        @keyframes glow {
            from {
                box-shadow: 0 0 10px rgba(255, 107, 107, 0.6);
            }
            to {
                box-shadow: 0 0 20px rgba(255, 107, 107, 0.9), 0 0 30px rgba(255, 142, 83, 0.5);
            }
        }
        
        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-5px);
            }
            60% {
                transform: translateY(-3px);
            }
        }
        
        @keyframes shimmer {
            0% {
                background-position: -100% 0;
            }
            100% {
                background-position: 200% 0;
            }
        }
        
        /* Mobile responsive styles for free listing button */
        @media (max-width: 768px) {
            .free-listing-container {
                top: 15px;
                right: 15px;
                margin-bottom: 170%;
            }
            
            .free-listing-btn {
                padding: 10px 16px;
                font-size: 14px;
            }
            
            .free-listing-btn i {
                font-size: 16px;
            }
        }
        
        @media (max-width: 480px) {
            .free-listing-btn .btn-text {
                display: inline-block;
                max-width: fit-content;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            
            .free-listing-btn {
                padding: 8px 12px;
                border-radius: 50px;
            }
            
            .free-listing-btn i {
                margin-right: 5px;
            }
            
            
        }

        /* Swipe Text Animation Styles */
        .swipe-paragraphs {
            position: relative;
            height: 20px;
            overflow: hidden;
        }

        .swipe-text {
            position: absolute;
            width: 100%;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.5s ease;
        }

        .swipe-text.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* Add these new styles */
        .rotating-ads {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .ad-content {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        .ad-content.active {
            opacity: 1;
            visibility: visible;
        }

        /* Search Input Typing Styles */
        .centered-search-input {
            width: 100%;
            
           
            border-radius: 8px;
            font-size: 16px;
            color: #666;
            font-weight: normal;
            transition: all 0.3s ease;
            background: white;
        }

      

        .centered-search-input.typing {
            color: #080808;
        }

        .search-input-wrapper .auto-detect {
            color: #666;
            opacity: 0.7;
            transition: all 0.3s ease;
        }

        .search-input-wrapper.typing .auto-detect {
            opacity: 1;
        }

        /* Add these styles for suggestions */
        .search-suggestions {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            margin-top: 8px;
            z-index: 1000;
            opacity: 0;
            transform: translateY(-10px);
            transition: all 0.3s ease;
        }

        .search-suggestions.active {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }

        .search-input-wrapper {
            position: relative;
        }

        /* Add styles for stock indicators */
        .stock-indicator {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            border-radius: 4px;
            font-size: 14px;
        }

        .stock-indicator.profit {
            background: linear-gradient(135deg, #4CAF50, #45a049);
            box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
        }

        .stock-indicator.loss {
            background: linear-gradient(135deg, #f44336, #e53935);
            box-shadow: 0 2px 8px rgba(244, 67, 54, 0.2);
        }

        .stock-indicator::before {
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            color: white;
        }

        .stock-indicator.profit::before {
            content: "\f062"; /* up arrow */
        }

        .stock-indicator.loss::before {
            content: "\f063"; /* down arrow */
        }

        .stock-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .stock-info p {
            margin: 0;
            font-size: 14px;
            color: #666;
        }

        /* Add loading animation */
        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.5; }
            100% { opacity: 1; }
        }

        .loading {
            animation: pulse 1.5s infinite;
        }

        .finance-card {
            height: 139px;
            overflow: hidden;
            display: flex;
            align-items: center;
            padding: 15px;
            background: white;
            border-radius: 12px;
            transition: all 0.3s ease;
        }

        .finance-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        }

        .finance-card .card-icon {
            margin-right: 15px;
            flex-shrink: 0;
        }

        .finance-card .card-content {
            flex: 1;
        }

        .finance-card h3 {
            color: #333;
            font-size: 16px;
            font-weight: 600;
            margin: 0 0 8px 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .stock-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .stock-info p {
            color: #666;
            font-size: 14px;
            margin: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .stock-indicator {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .stock-indicator.profit {
            background: linear-gradient(135deg, #4CAF50, #45a049);
            box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
        }

        .stock-indicator.loss {
            background: linear-gradient(135deg, #f44336, #e53935);
            box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
        }

        #stock-name, #stock-price, #stock-indicator {
            transition: opacity 0.3s ease;
        }

        /* Add bounce animation for arrows */
        @keyframes bounceArrow {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-3px); }
        }

        .auth-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1000;
            display: none; /* Hide by default */
            align-items: center;
        }

        /* Show auth container only on mobile screens */
        @media (max-width: 768px) {
            .auth-container {
                display: flex;
                top: auto; /* Remove top positioning */
                bottom: 70px; /* Position above mobile nav */
                right: 20px;
                z-index: 1000;
            }

            .auth-link {
                background: #157a9d;
                color: white;
                padding: 12px 12px;
                border-radius: 50px;
                box-shadow: 0 2px 10px rgba(0,0,0,0.2);
                text-decoration: none;
                margin-bottom: 30px;
            }

            .auth-link i {
                font-size: 18px;
            }

            .auth-link:hover {
                transform: translateY(-2px);
                box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            }

            /* Adjust profile container for mobile */
            #profile-container .btn-profile {
                background: #157a9d;
                color: white;
                padding: 1px 0px;
                margin-left: 42%;
                margin-top: -57px;
                min-width: 20px;
                margin-top: 7px;
            }

            #profile-container .profile-card {
                bottom: calc(100% + 10px);
                top: auto;
                right: 0;
                left: 47px;
            }
        }

        .profile-container {
            position: relative;
            z-index: 1002; /* Higher than other elements */
        }

        .profile-card {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            width: 280px;
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            padding: 16px;
            display: none;
            animation: slideDown 0.3s ease;
            z-index: 1002; /* Higher than other elements */
        }

        /* Desktop specific styles */
        @media (min-width: 769px) {
            .auth-container {
                position: relative;
                display: flex;
                align-items: center;
                z-index: 1002; /* Higher than other elements */
            }

            .profile-card {
                position: fixed; /* Change to fixed positioning */
                top: 80px; /* Position below the header */
                right: 20px;
                transform-origin: top right;
                max-height: calc(100vh - 100px); /* Prevent overflow */
                overflow-y: auto; /* Add scroll if needed */
            }
        }

        /* Mobile specific styles */
        @media (max-width: 768px) {
            .auth-container {
                position: relative;
                width: 100%;
            }

            .profile-card {
                position: absolute;
                bottom: calc(100% + 10px);
                right: 0;
                top: auto;
                max-height: calc(100vh - 200px); /* Prevent overflow */
                overflow-y: auto; /* Add scroll if needed */
            }
        }

        .profile-card.active {
            display: block;
        }

        /* Add backdrop when profile card is active */
        .profile-backdrop {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.3);
            z-index: 1001;
        }

        .profile-backdrop.active {
            display: block;
        }

        .centered-search-input.error {
            border-color: #e74c3c !important;
            box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
            animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
        }
        
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
            20%, 40%, 60%, 80% { transform: translateX(5px); }
        }

        /* Add mobile toggle and overlay styles */
        .mobile-toggle {
            display: none;
            position: fixed;
            top: 15px;
            left: 15px;
            width: 40px;
            height: 40px;
            background: #fff;
            border: none;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            z-index: 1001;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        

      
        @media (max-width: 768px) {
            .mobile-toggle {
                display: flex;
            }

            .mobile-toggle i {
                font-size: 20px;
                color: #333;
                transition: transform 0.3s ease;
            }

            .mobile-toggle.active i {
                transform: rotate(90deg);
            }

            .sidebar {
                transform: translateX(-100%);
                position: fixed;
                height: 100vh;
                z-index: 1000;
                transition: transform 0.3s ease;
            }

            .sidebar.active {
                transform: translateX(0);
            }

            .overlay.active {
                display: block;
                opacity: 1;
            }

            .main-content {
                margin-left: 0;
                padding-top: 60px;
            }
        }

        /* Mobile optimization styles */
        @media screen and (-webkit-min-device-pixel-ratio: 0) { 
            select, textarea, input {
                font-size: 16px !important;
            }
        }

        @media (hover: none) and (pointer: coarse) {
            .nav-item, .footer-link, .floating-button {
                min-height: 44px;
                padding: 12px;
            }
        }

        @media (max-width: 768px) {
            .mobile-toggle {
                display: flex;
                position: fixed;
                top: 15px;
                left: 15px;
                z-index: 1001;
                display: none;
            }

            .sidebar {
                transform: translateX(-100%);
                position: fixed;
                width: 280px;
                height: 100vh;
            }

            .sidebar.active {
                transform: translateX(0);
            }

            .main-content {
                margin-left: 0;
                padding-top: 70px;
            }

            .search-center-container {
                padding: 0 15px;
                margin-top: 20px;
            }

            .news-section {
                padding: 10px;
                overflow-x: auto;
                gap: 12px;
                height: 139px;
            }

            .news-card {
                
                flex-shrink: 0;
            }
        }

        @media (max-width: 480px) {
            .footer-links {
                flex-wrap: wrap;
                gap: 8px;
                padding: 10px;
                display: none;
            }

            .footer-language {
                width: 100%;
                margin-top: 10px;
            }

            .search-heading {
                font-size: 24px;
            }

            .search-input-wrapper {
                width: 100%;
            }
        }
        
        /* Free Listing Button Styles */
        .free-listing-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 100;
        }
        
        .free-listing-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            background: linear-gradient(135deg, #ff6b6b, #ff8e53);
            color: white;
            padding: 12px 20px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 16px;
            text-decoration: none;
            box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            transform: translateY(0);
            animation: float 3s ease-in-out infinite, glow 2s infinite alternate;
        }
        
        .free-listing-btn:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
        }
        
        .free-listing-btn i {
            font-size: 18px;
            animation: bounce 2s infinite;
        }
        
        
        
        .free-listing-btn .highlight {
            font-weight: 800;
            color: #ffe600;
            text-shadow: 0 0 5px rgba(0,0,0,0.3);
            position: relative;
            display: inline-block;
            animation: pulse-text 1.5s infinite;
        }
        
        .shimmer-effect {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                90deg,
                rgba(255,255,255,0) 0%,
                rgba(255,255,255,0.2) 50%,
        }

    
    
    
        .centered-search-input.error {
            border-color: #e74c3c !important;
            box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
            animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
        }
        
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
            20%, 40%, 60%, 80% { transform: translateX(5px); }
        }

        /* Add mobile toggle and overlay styles */
        .mobile-toggle {
            display: none;
            position: fixed;
            top: 15px;
            left: 15px;
            width: 40px;
            height: 40px;
            background:#ffffff;
            border: none;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            z-index: 1001;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        

        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 999;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        @media (max-width: 768px) {
            .mobile-toggle {
                display: flex;
            }

            .mobile-toggle i {
                font-size: 20px;
                color: #333;
                transition: transform 0.3s ease;
            }

            .mobile-toggle.active i {
                transform: rotate(90deg);
            }

            .sidebar {
                transform: translateX(-100%);
                position: fixed;
                height: 100vh;
                z-index: 1000;
                transition: transform 0.3s ease;
            }

            .sidebar.active {
                transform: translateX(0);
            }

            .overlay.active {
                display: block;
                opacity: 1;
            }

            .main-content {
                margin-left: 0;
                padding-top: 60px;
            }
        }

        /* Mobile optimization styles */
        @media screen and (-webkit-min-device-pixel-ratio: 0) { 
            select, textarea, input {
                font-size: 16px !important;
            }
        }

        @media (hover: none) and (pointer: coarse) {
            .nav-item, .footer-link, .floating-button {
                min-height: 44px;
                padding: 12px;
            }
        }

        @media (max-width: 768px) {
            .mobile-toggle {
                display: flex;
                position: fixed;
                top: 15px;
                left: 15px;
                z-index: 1001;
                display: none;
            }

            .sidebar {
                transform: translateX(-100%);
                position: fixed;
                width: 280px;
                height: 100vh;
            }

            .sidebar.active {
                transform: translateX(0);
            }

            .main-content {
                margin-left: 0;
                padding-top: 70px;
            }

            .search-center-container {
                padding: 0 15px;
                margin-top: 20px;
            }

            .news-section {
                padding: 10px;
                overflow-x: auto;
                gap: 12px;
                height: 139px;
            }

            .news-card {
                
                flex-shrink: 0;
            }
        }

        @media (max-width: 480px) {
            .footer-links {
                flex-wrap: wrap;
                gap: 8px;
                padding: 10px;
            }

            .footer-language {
                width: 100%;
                margin-top: 10px;
            }

            .search-heading {
                font-size: 24px;
            }

            .search-input-wrapper {
                width: 100%;
            }
        }
        
        /* Free Listing Button Styles */
        .free-listing-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 100;
        }
        
        .free-listing-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            background: linear-gradient(135deg, #ff6b6b, #ff8e53);
            color: white;
            padding: 12px 20px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 16px;
            text-decoration: none;
            box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            transform: translateY(0);
            animation: float 3s ease-in-out infinite, glow 2s infinite alternate;
        }
        
        .free-listing-btn:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
        }
        
        .free-listing-btn i {
            font-size: 18px;
            animation: bounce 2s infinite;
        }
        
        
        
        .free-listing-btn .highlight {
            font-weight: 800;
            color: #ffe600;
            text-shadow: 0 0 5px rgba(0,0,0,0.3);
            position: relative;
            display: inline-block;
            animation: pulse-text 1.5s infinite;
        }
        
        .shimmer-effect {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                90deg,
                rgba(255,255,255,0) 0%,
                rgba(255,255,255,0.2) 50%,
                rgba(255,255,255,0) 100%
            );
            background-size: 200% 100%;
            animation: shimmer 2s infinite;
            pointer-events: none;
        }
        
        @keyframes pulse-text {
            0% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.1);
            }
            100% {
                transform: scale(1);
            }
        }
        
        .pulse-animation {
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50px;
            background: rgb(21 122 157);
            top: 0;
            left: 0;
            z-index: -1;
            
        }
        
        /* Additional animations for Free Listing button */
        .free-listing-btn.attention {
            animation: attention 0.5s ease-in-out;
        }
        
        .ripple-effect {
            position: absolute;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.4);
            width: 100px;
            height: 100px;
            transform: scale(0);
            animation: ripple 0.6s linear;
            pointer-events: none;
        }
        
        .listing-tooltip {
            position: fixed;
            background-color: #333;
            color: white;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 14px;
            z-index: 1000;
            opacity: 0;
            animation: fadeInOut 2s ease-in-out forwards;
        }
        
        .listing-tooltip::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            border-width: 8px 8px 0;
            border-style: solid;
            border-color: #333 transparent transparent;
        }
        
        @keyframes pulse {
            0% {
                transform: scale(1);
                opacity: 0.7;
            }
            50% {
                transform: scale(1.05);
                opacity: 0.3;
            }
            100% {
                transform: scale(1);
                opacity: 0.7;
            }
        }
        
        @keyframes float {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-10px);
            }
        }
        
        @keyframes attention {
            0%, 100% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.1);
            }
        }
        
        @keyframes ripple {
            to {
                transform: scale(2.5);
                opacity: 0;
            }
        }
        
        @keyframes fadeInOut {
            0% {
                opacity: 0;
                transform: translateY(10px);
            }
            20% {
                opacity: 1;
                transform: translateY(0);
            }
            80% {
                opacity: 1;
                transform: translateY(0);
            }
            100% {
                opacity: 0;
                transform: translateY(-10px);
            }
        }
        
        @keyframes glow {
            from {
                box-shadow: 0 0 10px rgba(255, 107, 107, 0.6);
            }
            to {
                box-shadow: 0 0 20px rgba(255, 107, 107, 0.9), 0 0 30px rgba(255, 142, 83, 0.5);
            }
        }
        
        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-5px);
            }
            60% {
                transform: translateY(-3px);
            }
        }
        
        @keyframes shimmer {
            0% {
                background-position: -100% 0;
            }
            100% {
                background-position: 200% 0;
            }
        }
        
        /* Mobile responsive styles for free listing button */
        @media (max-width: 768px) {
            .free-listing-container {
                top: 15px;
                right: 15px;
            }
            
            .free-listing-btn {
                padding: 10px 16px;
                font-size: 14px;
            }
            
            .free-listing-btn i {
                font-size: 16px;
            }
        }
        
        @media (max-width: 480px) {
            .free-listing-btn .btn-text {
                display: inline-block;
                max-width: fit-content;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            
            .free-listing-btn {
                padding: 8px 12px;
                border-radius: 50px;
            }
            
            .free-listing-btn i {
                margin-right: 5px;
            }
            
            
        }

        /* Swipe Text Animation Styles */
        .swipe-paragraphs {
            position: relative;
            height: 20px;
            overflow: hidden;
        }

        .swipe-text {
            position: absolute;
            width: 100%;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.5s ease;
        }

        .swipe-text.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* Add these new styles */
        .rotating-ads {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .ad-content {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        .ad-content.active {
            opacity: 1;
            visibility: visible;
        }

        /* Search Input Typing Styles */
        .centered-search-input {
            width: 100%;
            
           
            border-radius: 8px;
            font-size: 16px;
            color: #666;
            font-weight: normal;
            transition: all 0.3s ease;
            background: white;
        }

      

        .centered-search-input.typing {
            color: #080808;
        }

        .search-input-wrapper .auto-detect {
            color: #666;
            opacity: 0.7;
            transition: all 0.3s ease;
        }

        .search-input-wrapper.typing .auto-detect {
            opacity: 1;
        }

        /* Add these styles for suggestions */
        .search-suggestions {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            margin-top: 8px;
            z-index: 1000;
            opacity: 0;
            transform: translateY(-10px);
            transition: all 0.3s ease;
        }

        .search-suggestions.active {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }

        .search-input-wrapper {
            position: relative;
        }

        /* Add styles for stock indicators */
        .stock-indicator {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            border-radius: 4px;
            font-size: 14px;
        }

        .stock-indicator.profit {
            background: linear-gradient(135deg, #4CAF50, #45a049);
            box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
        }

        .stock-indicator.loss {
            background: linear-gradient(135deg, #f44336, #e53935);
            box-shadow: 0 2px 8px rgba(244, 67, 54, 0.2);
        }

        .stock-indicator::before {
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            color: white;
        }

        .stock-indicator.profit::before {
            content: "\f062"; /* up arrow */
        }

        .stock-indicator.loss::before {
            content: "\f063"; /* down arrow */
        }

        .stock-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .stock-info p {
            margin: 0;
            font-size: 14px;
            color: #666;
        }

        /* Add loading animation */
        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.5; }
            100% { opacity: 1; }
        }

        .loading {
            animation: pulse 1.5s infinite;
        }

        .finance-card {
            height: 139px;
            overflow: hidden;
            display: flex;
            align-items: center;
            padding: 15px;
            background: white;
            border-radius: 12px;
            transition: all 0.3s ease;
        }

        .finance-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        }

        .finance-card .card-icon {
            margin-right: 15px;
            flex-shrink: 0;
        }

        .finance-card .card-content {
            flex: 1;
        }

        .finance-card h3 {
            color: #333;
            font-size: 16px;
            font-weight: 600;
            margin: 0 0 8px 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .stock-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .stock-info p {
            color: #666;
            font-size: 14px;
            margin: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .stock-indicator {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .stock-indicator.profit {
            background: linear-gradient(135deg, #4CAF50, #45a049);
            box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
        }

        .stock-indicator.loss {
            background: linear-gradient(135deg, #f44336, #e53935);
            box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
        }

        #stock-name, #stock-price, #stock-indicator {
            transition: opacity 0.3s ease;
        }

        /* Add bounce animation for arrows */
        @keyframes bounceArrow {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-3px); }
        }

        .auth-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1000;
            display: none; /* Hide by default */
            align-items: center;
        }

        /* Show auth container only on mobile screens */
        @media (max-width: 768px) {
            .auth-container {
                display: flex;
                top: auto; /* Remove top positioning */
                bottom: 70px; /* Position above mobile nav */
                right: 20px;
                z-index: 1000;
            }

            .auth-link {
                background: #157a9d;
                color: white;
                padding: 12px 20px;
                border-radius: 50px;
                box-shadow: 0 2px 10px rgba(0,0,0,0.2);
                text-decoration: none;
                margin-bottom: 30px;
            }

            .auth-link i {
                font-size: 18px;
            }

            .auth-link:hover {
                transform: translateY(-2px);
                box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            }

            /* Adjust profile container for mobile */
            #profile-container .btn-profile {
                background: #157a9d;
                color: white;
                padding: 12px 20px;
                
            }

            #profile-container .profile-card {
                bottom: calc(100% + 10px);
                top: auto;
                right: 0;
            }
        }

        .profile-container {
            position: relative;
        }

        .btn-profile {
            display: flex;
            align-items: center;
            padding: 8px 16px;
            background: #157a9d;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .profile-avatar-small {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            overflow: hidden;
        }

        .profile-avatar-small img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .profile-card {
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            width: 280px;
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            padding: 16px;
            display: none;
            animation: slideDown 0.3s ease;
        }

        .profile-card.active {
            display: block;
        }

        .profile-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding-bottom: 16px;
            border-bottom: 1px solid #eee;
        }

        .profile-avatar-large {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            overflow: hidden;
        }

        .profile-avatar-large img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .profile-info h3 {
            margin: 0;
            font-size: 16px;
            color: #333;
        }

        .profile-info p {
            margin: 4px 0 0;
            font-size: 14px;
            color: #666;
        }

        .profile-actions {
            margin-top: 16px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .profile-action-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px;
            border-radius: 8px;
            text-decoration: none;
            color: #333;
            transition: background-color 0.3s ease;
        }

        .profile-action-btn:hover {
            background-color: #f5f5f5;
        }

        .profile-action-btn i {
            width: 20px;
            color: #666;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Add styles for More button active state */
        .mobile-nav-item#moreBtn.active {
            color: #157a9d;
            background-color: rgba(21, 122, 157, 0.1);
        }

        .mobile-nav-item#moreBtn.active i {
            transform: rotate(90deg);
            transition: transform 0.3s ease;
        }

        /* Slide menu transition */
        .mobile-slide-menu {
            position: fixed;
            bottom: 60px;
            left: 0;
            right: 0;
            background: white;
            border-top-left-radius: 16px;
            border-top-right-radius: 16px;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
            transform: translateY(100%);
            transition: transform 0.3s ease;
            z-index: 999;
        }

        .mobile-slide-menu.active {
            transform: translateY(0);
        }
        @media (max-width: 768px) {
            /* Slide menu header styles */
        .slide-menu-header {
            display: none; /* Hide by default on desktop */
            padding: 16px;
            border-bottom: 1px solid #eee;
            position: relative;
            
        }

        }
        
        

        .slide-menu-title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
            
        }

        .slide-menu-close {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            padding: 8px;
            cursor: pointer;
            color: #666;
        }

       

        /* Floating Menu Styles */
        .floating-menu {
            position: fixed;
            right: 20px;
            bottom: 100px; /* Position above mobile nav */
            display: flex;
            flex-direction: column;
            gap: 10px;
            z-index: 1000;
        }

        .floating-button {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: white;
            border: none;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            position: relative;
        }

        .floating-button i {
            font-size: 20px;
            color: #333;
        }

        .floating-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .help-button {
            background: #ffffff;
        }

        .help-button i {
            color: #157a9d;
        }

        .help-card {
            position: absolute;
            bottom: calc(100% + 10px);
            right: 0;
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            padding: 12px;
            width: 200px;
            display: none;
            animation: slideUp 0.3s ease;
        }

        .help-button:hover .help-card,
        .help-button:focus .help-card,
        .help-button:active .help-card {
            display: block;
        }

        .help-card-item {
            display: flex;
            align-items: center;
            
            padding: 10px;
            border-radius: 8px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .help-card-item:hover {
            background-color: #f5f5f5;
        }

        .help-card-item i {
            font-size: 16px;
            color: #666;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Mobile specific styles */
        @media (max-width: 768px) {
            .floating-menu {
                bottom: 80px; /* Adjust position above mobile nav */
                right: 15px;
            }

            .floating-button {
                width: 45px;
                height: 45px;
            }

            .help-card {
                right: 0;
                bottom: calc(100% + 10px);
                width: 180px;
            }

            /* Handle touch events for mobile */
            .help-button.active .help-card {
                display: block;
            }

            .help-card-item {
                padding: 12px; /* Larger touch target */
            }
        }
        /* Add styles for the mobile toggle button */