@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    font-family: 'Inter', sans-serif;
}

/* Base Theme - Dark with Red Accents */
body {
    background: #000000;
    color: #ffffff;
}

/* Custom Gradient Backgrounds */
.gradient-bg {
    background: #000000;
    border-bottom: 1px solid #1a1a1a;
}

/* Animation Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.15);
}

/* Deal Card Styles */
.deal-card {
    background: #111111;
    border: 1px solid #222222;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* Price and Discount Tags */
.price-tag {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.discount-badge {
    background: linear-gradient(45deg, #ff0000, #aa0000);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-tag {
    background: #1a1a1a;
    color: #cccccc;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 13px;
    border: 1px solid #333333;
    font-weight: 500;
}

/* Search Bar Styles */
.search-bar {
    background: #111111;
    border: 2px solid #333333;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #ffffff;
}

.search-bar:focus {
    border-color: #ff0000;
    box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.1);
    outline: none;
}

.search-bar::placeholder {
    color: #666666;
}

/* Navigation Link Effects */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff0000;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active-nav::after {
    width: 100%;
}

.nav-link.active-nav {
    color: #ff0000 !important;
}

/* Floating Action Button */
.floating-action {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(45deg, #ff0000, #aa0000);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-action:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(255, 0, 0, 0.4);
}

/* Category Pills */
.category-pill {
    background: #111111;
    border: 2px solid #333333;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: #cccccc;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.category-pill:hover,
.category-pill.active {
    border-color: #ff0000;
    background: #ff0000;
    color: white;
}

/* Notification Badge */
.notification-badge {
    background: #ff0000;
    color: white;
    border-radius: 4px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    position: absolute;
    top: -8px;
    right: -8px;
}

/* Glass Card Effect */
.glass-card {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid #333333;
    border-radius: 8px;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #111111 25%, #222222 50%, #111111 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Star Rating */
.star-rating {
    color: #ff0000;
}

/* Expired Deal Styling */
.expired-deal {
    opacity: 0.4;
    filter: grayscale(80%);
}

/* List View Styles */
.deals-list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.deals-list-view .deal-card {
    display: flex;
    flex-direction: row;
    overflow: visible;
    height: auto;
}

.deals-list-view .deal-card img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    flex-shrink: 0;
}

.deals-list-view .deal-card .deal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Modal Styles */
.modal-overlay {
    backdrop-filter: blur(5px);
}

/* Pagination Styles */
.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #333333;
    border-radius: 4px;
    background: #111111;
    color: #cccccc;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.pagination-btn:hover {
    background: #222222;
    border-color: #ff0000;
    color: #ffffff;
}

.pagination-btn.active {
    background: #ff0000;
    color: white;
    border-color: #ff0000;
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Override Tailwind backgrounds for dark theme */
.bg-white {
    background-color: #111111 !important;
}

.bg-gray-50 {
    background-color: #000000 !important;
}

.bg-gray-100 {
    background-color: #1a1a1a !important;
}

.text-gray-800 {
    color: #ffffff !important;
}

.text-gray-700 {
    color: #cccccc !important;
}

.text-gray-600 {
    color: #999999 !important;
}

.text-gray-500 {
    color: #666666 !important;
}

.border-gray-300 {
    border-color: #333333 !important;
}

.border-gray-200 {
    border-color: #222222 !important;
}

/* Hero section updates */
.gradient-bg h2 {
    color: #ffffff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gradient-bg p {
    color: #cccccc;
    font-weight: 400;
}

/* Button overrides */
.bg-purple-600 {
    background: linear-gradient(45deg, #ff0000, #aa0000) !important;
}

.bg-purple-700 {
    background: linear-gradient(45deg, #cc0000, #880000) !important;
}

.hover\:bg-purple-700:hover {
    background: linear-gradient(45deg, #cc0000, #880000) !important;
}

.text-purple-600 {
    color: #ff0000 !important;
}

.hover\:text-purple-700:hover {
    color: #cc0000 !important;
}

.border-purple-600 {
    border-color: #ff0000 !important;
}

/* Focus states */
.focus\:ring-purple-500:focus {
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1) !important;
}

/* Forms styling */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="datetime-local"],
select,
textarea {
    background: #111111 !important;
    border: 1px solid #333333 !important;
    color: #ffffff !important;
    border-radius: 4px !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
    border-color: #ff0000 !important;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1) !important;
    outline: none !important;
}

input::placeholder {
    color: #666666 !important;
}

/* Modal styling */
#dealModal .bg-white {
    background: #111111 !important;
    border: 1px solid #333333 !important;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

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

.toast.success {
    background: linear-gradient(45deg, #00cc00, #008800);
}

.toast.error {
    background: linear-gradient(45deg, #ff0000, #cc0000);
}

.toast.warning {
    background: linear-gradient(45deg, #ff8800, #cc6600);
}

.toast.info {
    background: linear-gradient(45deg, #0088ff, #0066cc);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #111111;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff0000;
}

/* Mobile Deal Cards */
@media (max-width: 768px) {
    .deal-card {
        margin-bottom: 1rem;
    }
    
    .deal-card h3 {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .deal-card .price-tag {
        font-size: 16px;
        padding: 4px 10px;
    }
    
    .deal-card button {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    /* Make buttons stack on very small screens */
    @media (max-width: 380px) {
        .deal-card .grid-cols-2 {
            grid-template-columns: 1fr;
        }
    }
}

/* Utility Classes */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3;
}

/* Form Styles */
.form-input {
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: #ff0000;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(45deg, #ff0000, #aa0000);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ff0000;
    border: 2px solid #ff0000;
    border-radius: 4px;
    padding: 10px 22px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background: #ff0000;
    color: white;
}

/* Animation for counting up numbers */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.count-animation {
    animation: countUp 0.6s ease-out;
}

/* Special styling for main headings */
h1, h2, h3 {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Logo styling */
.text-2xl.font-bold {
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
}

/* Red accent for special text */
.text-red-accent {
    color: #ff0000;
    font-weight: 700;
}

/* Updated Toast Notifications with Close Button */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.toast.success {
    background: linear-gradient(45deg, #00cc00, #008800);
}

.toast.error {
    background: linear-gradient(45deg, #ff0000, #cc0000);
}

.toast.warning {
    background: linear-gradient(45deg, #ff8800, #cc6600);
}

.toast.info {
    background: linear-gradient(45deg, #0088ff, #0066cc);
}

/* Close button styling */
.toast-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.toast-close i {
    font-size: 12px;
}

/* Stack multiple toasts */
.toast:nth-of-type(1) {
    top: 20px;
}

.toast:nth-of-type(2) {
    top: 80px;
}

.toast:nth-of-type(3) {
    top: 140px;
}

.toast:nth-of-type(4) {
    top: 200px;
}

.toast:nth-of-type(5) {
    top: 260px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .toast {
        left: 20px;
        right: 20px;
        min-width: auto;
        max-width: none;
        transform: translateY(-100%);
        top: 20px !important;
    }
    
    .toast.show {
        transform: translateY(0);
    }
    
    .toast:nth-of-type(n) {
        top: 20px !important;
        position: relative;
        margin-bottom: 10px;
    }
}

/* Force proper password field behavior */
input[type="password"] {
    -webkit-text-security: disc !important;
    font-family: text-security-disc !important;
    font-family: 'Courier New', monospace !important;
}

/* Ensure password dots show on all browsers */
input[type="password"]::-webkit-input-placeholder {
    font-family: 'Inter', sans-serif;
}

input[type="password"]::-moz-placeholder {
    font-family: 'Inter', sans-serif;
}

input[type="password"]:-ms-input-placeholder {
    font-family: 'Inter', sans-serif;
}

input[type="password"]::placeholder {
    font-family: 'Inter', sans-serif;
}

/* Override any conflicting styles */
#loginPassword[type="password"] {
    -webkit-text-security: disc !important;
    font-family: text-security-disc, 'Courier New', monospace !important;
    letter-spacing: 0.1em;
    padding-right: 2.5rem !important; /* Make room for the eye icon */
}

/* When password is revealed */
#loginPassword[type="text"] {
    font-family: 'Inter', sans-serif !important;
    -webkit-text-security: none !important;
    letter-spacing: normal;
    padding-right: 2.5rem !important; /* Keep consistent padding */
}

/* Password toggle button styling - Fixed positioning */
.password-toggle {
    position: absolute !important;
    right: 0.75rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0.25rem !important;
    color: #6b7280 !important;
    transition: color 0.2s ease !important;
    z-index: 10 !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.password-toggle:hover {
    color: #374151 !important;
}

.password-toggle:focus {
    outline: none !important;
    color: #374151 !important;
}

.password-toggle i {
    font-size: 14px !important;
    pointer-events: none !important;
}

/* Fix for password field container */
.password-container {
    position: relative !important;
    display: block !important;
}

/* Ensure the input field has proper spacing */
.password-field-with-toggle {
    padding-right: 2.5rem !important;
}
/* Mobile Category Scrolling */
@media (max-width: 768px) {
    #categoriesContainer {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    #categoriesContainer::-webkit-scrollbar {
        display: none;
    }
    
    .category-pill {
        flex-shrink: 0;
        font-size: 11px;
        padding: 8px 14px;
        white-space: nowrap;
    }
}
/* Mobile Modal Fixes */
@media (max-width: 768px) {
    .fixed.inset-0 > div {
        max-height: 95vh;
        margin: 2.5vh auto;
        max-width: 95vw;
    }
    
    /* Comments Modal */
    #commentsModal textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Report Modal */
    #reportModal select,
    #reportModal textarea {
        font-size: 16px;
    }
}
/* Improve Touch Targets for Mobile */
@media (max-width: 768px) {
    button, a, .category-pill, .deal-card button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Ensure interactive elements are easily tappable */
    .deal-card .flex.items-center.space-x-4 button {
        padding: 8px 12px;
    }
}
/* Fix Deal Card Buttons on Mobile */
@media (max-width: 768px) {
    .deal-card .p-5 {
        padding: 1rem;
    }
    
    .deal-card .mb-3 {
        margin-bottom: 0.5rem;
    }
    
    .deal-card .mb-4 {
        margin-bottom: 0.75rem;
    }
    
    /* Fix interaction buttons spacing */
    .deal-card .flex.items-center.space-x-4 {
        gap: 0.75rem;
    }
    
    .deal-card .flex.items-center.space-x-4 button {
        font-size: 12px;
    }
    
    /* Fix "Still works?" button */
    .deal-card .flex.items-center.space-x-4 button.ml-auto {
        margin-left: auto;
        font-size: 11px;
        padding: 6px 10px;
    }
    
    /* Fix grid buttons */
    .deal-card .grid.grid-cols-2 {
        gap: 0.5rem;
    }
    
    .deal-card .grid.grid-cols-2 button {
        padding: 0.75rem 0.5rem;
        font-size: 13px;
    }
}
/* Hide scrollbar but keep functionality */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
/* Glass Card Mobile Fix */
.glass-card {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid #333333;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .glass-card {
        font-size: 0.875rem;
        padding: 0.75rem 1rem !important;
    }
}
/* Add these mobile-specific improvements to your existing styles.css */

/* ========================================
   MOBILE OPTIMIZATIONS - Deal Details Page
   ======================================== */

/* Mobile Header Improvements */
@media (max-width: 768px) {
    header .container {
        padding: 0.75rem 1rem !important;
    }
    
    header h1 {
        font-size: 1.25rem !important;
    }
    
    header .w-10 {
        width: 2rem !important;
        height: 2rem !important;
    }
    
    header .text-xl {
        font-size: 1rem !important;
    }
    
    /* Stack header elements if needed */
    header .flex.items-center.space-x-4 {
        gap: 0.5rem;
    }
    
    header a, header button {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Mobile Deal Details Content */
@media (max-width: 1024px) {
    /* Force single column layout on tablets and mobile */
    .grid.grid-cols-1.lg\\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
    
    /* Reduce padding on deal container */
    .bg-white.rounded-xl.shadow-lg > div:not(.bg-gradient-to-r) {
        padding: 1.5rem 1rem !important;
    }
}

@media (max-width: 768px) {
    /* Main container padding */
    main.container {
        padding: 1rem !important;
    }
    
    .max-w-5xl {
        max-width: 100% !important;
    }
    
    /* Deal Header */
    .bg-gradient-to-r.from-purple-600 {
        padding: 1.5rem 1rem !important;
    }
    
    .bg-gradient-to-r.from-purple-600 h1 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.75rem !important;
    }
    
    .bg-gradient-to-r.from-purple-600 .flex.items-center.space-x-4 {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.75rem;
    }
    
    /* Share button mobile */
    .bg-gradient-to-r.from-purple-600 button {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Image container */
    .relative.mb-6 {
        margin-bottom: 1rem !important;
    }
    
    .relative.mb-6 img {
        border-radius: 0.5rem !important;
        max-height: 250px;
        object-fit: cover;
        width: 100%;
    }
    
    /* Discount badge on image */
    .discount-badge {
        font-size: 0.875rem !important;
        padding: 0.375rem 0.75rem !important;
    }
    
    /* Price Section Mobile */
    .bg-gray-50.rounded-lg.p-6 {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .text-4xl.font-bold {
        font-size: 2rem !important;
    }
    
    .text-2xl.text-gray-500 {
        font-size: 1.25rem !important;
    }
    
    .bg-green-100 {
        font-size: 0.875rem !important;
        padding: 0.5rem 0.75rem !important;
    }
    
    /* CTA Button - Make it prominent and finger-friendly */
    .block.w-full.bg-gradient-to-r.from-purple-600 {
        padding: 1rem !important;
        font-size: 1.125rem !important;
        margin-bottom: 1.5rem !important;
        border-radius: 0.5rem !important;
        min-height: 56px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Deal Information Section */
    .mb-6 h2 {
        font-size: 1.25rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .space-y-3 > div {
        padding: 0.5rem 0 !important;
        font-size: 0.875rem !important;
    }
    
    .space-y-3 .text-gray-600 {
        font-size: 0.875rem !important;
    }
    
    /* Stats Grid Mobile */
    .grid.grid-cols-3 {
        gap: 0.75rem !important;
    }
    
    .grid.grid-cols-3 .text-2xl {
        font-size: 1.5rem !important;
    }
    
    .grid.grid-cols-3 .text-xs {
        font-size: 0.625rem !important;
    }
    
    /* Community Submitted Badge */
    .bg-blue-50 {
        padding: 0.75rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Additional Info Section */
    .border-t.p-8 {
        padding: 1.5rem 1rem !important;
    }
    
    .border-t h2 {
        font-size: 1.25rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .border-t .space-y-3 p {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
    }
    
    .border-t .space-y-3 i {
        font-size: 0.875rem !important;
    }
}

/* Comments Section Mobile Optimization */
@media (max-width: 768px) {
    .mt-8.bg-white.rounded-xl {
        margin-top: 1.5rem !important;
        border-radius: 0.75rem !important;
    }
    
    .mt-8.bg-white.rounded-xl .p-6:first-child {
        padding: 1rem !important;
    }
    
    .mt-8.bg-white.rounded-xl h2 {
        font-size: 1.25rem !important;
    }
    
    .mt-8.bg-white.rounded-xl .text-sm {
        font-size: 0.75rem !important;
    }
    
    /* Comment Form */
    #addCommentForm {
        margin-bottom: 1rem !important;
    }
    
    #commentText {
        font-size: 1rem !important; /* Prevent iOS zoom */
        padding: 0.75rem !important;
        min-height: 100px !important;
    }
    
    #addCommentForm button[type="submit"] {
        font-size: 0.875rem !important;
        padding: 0.625rem 1rem !important;
        min-height: 44px !important;
    }
    
    /* Individual Comments */
    #commentsList > div {
        padding: 0.75rem !important;
    }
    
    #commentsList .w-10.h-10 {
        width: 2.5rem !important;
        height: 2.5rem !important;
        font-size: 1rem !important;
    }
    
    #commentsList .font-semibold {
        font-size: 0.875rem !important;
    }
    
    #commentsList .text-xs {
        font-size: 0.625rem !important;
    }
    
    #commentsList p {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
        margin-top: 0.5rem !important;
    }
    
    /* Delete comment button */
    #commentsList button {
        min-width: 44px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Related Deals Section Mobile */
@media (max-width: 768px) {
    .grid.grid-cols-1.md\\:grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .mt-8 > h2 {
        font-size: 1.25rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Related deal cards */
    .deal-card .p-4 {
        padding: 0.75rem !important;
    }
    
    .deal-card h3 {
        font-size: 0.875rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .deal-card .text-xl {
        font-size: 1.125rem !important;
    }
    
    .deal-card .text-sm {
        font-size: 0.75rem !important;
    }
}

/* Loading and Error States Mobile */
@media (max-width: 768px) {
    #loadingState, #errorState {
        padding: 2rem 1rem !important;
    }
    
    #loadingState .text-6xl,
    #errorState .text-6xl {
        font-size: 3rem !important;
    }
    
    #loadingState .text-xl,
    #errorState .text-xl {
        font-size: 1.125rem !important;
    }
    
    #errorState .text-gray-500 {
        font-size: 0.875rem !important;
    }
    
    #errorState a {
        font-size: 0.875rem !important;
        padding: 0.75rem 1.5rem !important;
    }
}

/* Footer Mobile */
@media (max-width: 768px) {
    footer {
        margin-top: 3rem !important;
    }
    
    footer .container {
        padding: 1.5rem 1rem !important;
    }
    
    footer p {
        font-size: 0.75rem !important;
    }
}

/* Improve Touch Targets on Mobile */
@media (max-width: 768px) {
    /* Ensure all interactive elements meet minimum touch target size */
    button, a[href], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve spacing between interactive elements */
    .flex.items-center.space-x-4,
    .flex.items-center.space-x-3,
    .flex.items-center.space-x-2 {
        gap: 0.75rem !important;
    }
}

/* Prevent horizontal scrolling on mobile */
@media (max-width: 768px) {
    body, html {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    * {
        max-width: 100%;
    }
    
    img {
        height: auto;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .bg-gradient-to-r.from-purple-600 {
        padding: 1rem !important;
    }
    
    .bg-gradient-to-r.from-purple-600 h1 {
        font-size: 1.25rem !important;
    }
    
    .relative.mb-6 img {
        max-height: 200px;
    }
}

/* Small mobile devices (< 375px) */
@media (max-width: 374px) {
    .bg-gradient-to-r.from-purple-600 h1 {
        font-size: 1.25rem !important;
    }
    
    .text-4xl.font-bold {
        font-size: 1.75rem !important;
    }
    
    .grid.grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 0.5rem !important;
    }
    
    .grid.grid-cols-3 .text-2xl {
        font-size: 1.25rem !important;
    }
}
/* AI Search Results Styling */
#aiSearchResults {
    background: #000000;
    padding: 2rem 0;
}

#aiSearchResults .container {
    background: transparent;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Search mode dropdown styling */
#searchMode, #mobileSearchMode {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 20px;
}
/* Ensure AI search cards match homepage cards */
#aiDealsGrid .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

#aiDealsGrid .category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Match the exact height for consistency */
#aiDealsGrid h3 {
    min-height: 3.5rem;
}
/* AI Search Results - Match homepage dark theme */
#aiDealsGrid {
    background: transparent;
}

#aiDealsGrid .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Make sure buttons inherit proper styling */
#aiDealsGrid button {
    cursor: pointer;
}

#aiDealsGrid button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* Mobile Header and Layout Fixes */
@media (max-width: 768px) {
    /* Disclosure Banner */
    .bg-yellow-50.border-b {
        padding: 0.5rem 1rem;
    }
    
    .bg-yellow-50 p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    /* Header Container */
    header .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Logo Section */
    header .w-8 {
        width: 2rem;
        height: 2rem;
    }
    
    header h1 {
        font-size: 1.125rem;
    }
    
    /* User Actions */
    header .sign-in-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Mobile Search Container */
    header .md\:hidden.mt-3 {
        margin-top: 0.75rem;
    }
    
    /* Categories Scrolling */
    #categoriesContainer {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    #categoriesContainer::-webkit-scrollbar {
        display: none;
    }
    
    .category-pill {
        flex-shrink: 0;
        font-size: 11px;
        padding: 8px 14px;
        white-space: nowrap;
    }
    
    /* Hero Section */
    .gradient-bg h2 {
        font-size: 1.5rem;
    }
    
    .gradient-bg p {
        font-size: 0.875rem;
    }
    
    /* Stats Cards */
    .glass-card {
        padding: 0.75rem 1rem;
        min-width: 90px;
    }
    
    .glass-card .text-xl {
        font-size: 1.25rem;
    }
    
    .glass-card .text-xs {
        font-size: 0.625rem;
    }
}