/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
}

html, body {
    min-height: 100vh;
}

/* Page layout for proper footer positioning */
.page-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding-top: 75px; /* Account for fixed header height - reduced to minimize gap */
}

.container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.count-badge {
    background: #e53e3e;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.wishlist-btn {
    background: transparent !important;
    border: none !important;
    padding: 8px !important;
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #cbd5e0;
}

.wishlist-btn.active {
    color: #e53e3e !important;
}

.wishlist-btn:hover {
    color: #e53e3e !important;
    transform: scale(1.1);
}

.copy-link-btn {
    background: transparent !important;
    border: 1px solid #e2e8f0 !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    color: #4a5568 !important;
    transition: all 0.3s ease;
}

.copy-link-btn:hover {
    background: #f7fafc !important;
    border-color: #667eea !important;
    color: #667eea !important;
}

.product-card-actions {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    align-items: center;
    opacity: 1;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: auto;
}

.product-card-btn {
    background: transparent !important;
    border: none !important;
    border-radius: 50% !important;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    padding: 0;
    margin: 0;
    color: #718096;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-card-btn.wishlist-btn {
    color: #a0aec0;
}

.product-card-btn.wishlist-btn.active {
    color: #e53e3e !important;
}

.product-card-btn.copy-btn {
    color: #4a5568;
}

.product-card-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product-card-btn.wishlist-btn:hover {
    color: #e53e3e !important;
}

.product-card-btn.copy-btn:hover {
    color: #667eea !important;
}

.product-card-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.product-card-btn.copy-btn:hover {
    background: #667eea !important;
    color: white !important;
    border-color: #667eea !important;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    border: 2px solid #667eea;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.3);
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
}

.btn-full {
    width: 100%;
}

.btn-danger {
    background: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background: #c53030;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.header.hide {
    transform: translateY(-100%);
}

.header.show {
    transform: translateY(0);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 15px;
    max-width: 100%;
    width: 100%;
}

/* Top row with logo and auth section - only for mobile */
.header-top {
    display: none;
}

.logo {
    flex: 0 0 auto;
}

.logo h1 {
    color: #667eea;
    font-size: 1.8rem;
    margin: 0;
}

/* Mobile navigation tabs - hidden by default */
.nav-tabs-mobile {
    display: none;
    width: 100%;
    margin-top: 1rem;
}

.nav-tabs-mobile ul {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

/* Desktop navigation (original) */
.nav {
    flex: 0 0 auto;
    margin-left: auto;
}

.nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
}

.auth-section {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.user-menu:hover .dropdown-content,
.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-name {
    font-weight: 600;
    color: #2d3748;
}

.dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #4a5568;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-content a {
    display: block;
    padding: 12px 16px;
    color: #4a5568;
    text-decoration: none;
    transition: background 0.3s ease;
}

.dropdown-content a:hover {
    background: #f7fafc;
    color: #667eea;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0 15px;
    text-align: center;
    min-height: 20vh;
}

.hero .container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 15px;
}

.hero-content {
    max-width: 90%;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}    .hero-actions {
        display: flex;
        gap: 0.8rem;
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap;
    }

.hero-actions .btn {
    flex: 0 1 auto;
    min-width: 160px;
    white-space: nowrap;
}

/* Ensure consistent hover effects for hero buttons */
.hero-actions .btn:hover {
    transform: translateY(-2px);
}

.hero-actions .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.hero-actions .btn-outline:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.hero-actions .btn-secondary:hover {
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.3);
}

/* General Section Spacing */
section {
    padding: 2rem 0;
}

section:first-child {
    padding-top: 1rem; /* Reduced for first section since main already has padding-top */
}

/* Categories */
.categories {
    padding: 20px 0;
    background: white;
}

.categories h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    max-width: 100%;
}

.category-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.category-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.15);
}

.category-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.category-card h4 {
    font-size: 1.2rem;
    color: #2d3748;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
    margin: 0;
    text-align: center;
    width: 100%;
}

/* Mobile adjustments for category cards */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.5rem 1rem;
        min-height: 100px;
    }
    
    .category-card i {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .category-card h4 {
        font-size: 1rem;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .category-card {
        padding: 1rem 0.5rem;
        min-height: 90px;
    }
    
    .category-card i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .category-card h4 {
        font-size: 0.9rem;
        line-height: 1.1;
    }
}

/* Products Section */
.products {
    padding: 2rem 0;
    min-height: calc(100vh - 160px);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.products-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 2rem;
}

.filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filters select,
.filters input {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    min-width: 150px;
}

.filters select:focus,
.filters input:focus {
    outline: none;
    border-color: #667eea;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.product-image {
    width: 100%;
    height: 150px;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image i {
    font-size: 3rem;
    color: #cbd5e0;
}

.product-info {
    padding: 1rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.4rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.4rem;
}

.product-condition {
    display: inline-block;
    padding: 3px 8px;
    background: #e6fffa;
    color: #00b894;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.product-description {
    color: #718096;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.product-seller {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #4a5568;
    font-size: 12px;
}

.item-actions {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.product-card:hover .item-actions {
    opacity: 1;
    pointer-events: auto;
}

.edit-btn, .delete-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    padding: 0;
    margin: 0;
}

.edit-btn {
    color: #4338ca;
    font-weight: 600;
}

.delete-btn {
    color: #dc2626;
    font-weight: 600;
}

.edit-btn {
    color: #667eea;
}

.delete-btn {
    color: #e53e3e;
}

.edit-btn:hover {
    background: #4338ca;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(67, 56, 202, 0.4);
    border-color: #4338ca;
}

.delete-btn:hover {
    background: #dc2626;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
    border-color: #dc2626;
}

/* Ensure icons are properly centered and not clipped */
.edit-btn i, .delete-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: inherit;
}

/* Additional specificity for FontAwesome icons */
.edit-btn .fas, .delete-btn .fas {
    font-size: inherit !important;
    line-height: 1 !important;
}

/* Item Actions Animation */
@keyframes slideInButtons {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Legacy delete button styles for backward compatibility */
.delete-btn.legacy {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
}

.product-card:hover .delete-btn.legacy {
    opacity: 1;
}

/* Confirmation Modal Styles */
.confirm-modal {
    max-width: 400px;
    text-align: center;
    padding: 2rem;
}

.confirm-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.confirm-header i {
    font-size: 3rem;
    color: #e53e3e;
    margin-bottom: 1rem;
}

.confirm-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.5rem;
}

.confirm-body {
    margin-bottom: 2rem;
}

.confirm-body p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.confirm-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirm-actions .btn {
    min-width: 100px;
    padding: 10px 20px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex !important;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    margin: auto;
}

.modal-large {
    max-width: 900px;
    width: 90%;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #718096;
}

.close:hover {
    color: #2d3748;
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    color: #2d3748;
    font-size: 1.8rem;
}

.modal-content h3 i {
    color: #667eea;
}

/* Email Verification Modal Specific Styles */
#emailVerificationModal .modal-content {
    max-width: 500px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}
#emailVerificationModal .verification-content {
  max-height: 550px;
  overflow-y: auto;
  scrollbar-width: thin;         /* For Firefox */
  scrollbar-color: #e2e8f0 #f8fafc; /* For Firefox */
}

/* For Chrome, Edge, Safari */
#emailVerificationModal .verification-content::-webkit-scrollbar {
  width: 6px;
  background: #f8fafc;
}

#emailVerificationModal .verification-content::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 6px;
}

#emailVerificationModal .verification-content::-webkit-scrollbar-track {
  background: #f8fafc;
}

#emailVerificationModal .modal-content h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.8rem;
    color: #2d3748;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: -2rem -2rem 2rem -2rem;
    padding: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#emailVerificationModal .modal-content h3 i {
    color: #ffd700;
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.ultra-compact-verification {
    max-width: 320px !important;
    width: 90% !important;
    padding: 15px !important;
}

.ultra-compact-verification h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

#emailVerificationModal .verification-mini {
    padding: 0;
}

#emailVerificationModal .verification-mini p {
    margin: 5px 0 10px;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.3;
    word-break: break-all;
    text-align: center;
}

#emailVerificationModal .btn-mini-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.btn-sm {
    padding: 4px 8px !important;
    font-size: 13px !important;
}

#emailVerificationModal .verification-tip {
    color: #666;
    margin-top: 0.5rem;
    font-size: 12px;
}

#emailVerificationModal .verification-message .email-highlight {
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    color: #667eea;
}

#emailVerificationModal .verification-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#emailVerificationModal .verification-actions .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

#emailVerificationModal .verification-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#emailVerificationModal .verification-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#emailVerificationModal .verification-actions .btn-outline {
    background: white;
    border: 2px solid #e2e8f0;
    color: #4a5568;
}

#emailVerificationModal .verification-actions .btn-outline:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

#emailVerificationModal .verification-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

#emailVerificationModal .verification-note i {
    color: #f39c12;
    margin-top: 0.1rem;
}

/* Success state for email verification */
#emailVerificationModal.success .modal-content h3 {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

#emailVerificationModal.success .modal-content h3 i {
    color: #68d391;
    animation: checkmark 0.6s ease-in-out;
}

@keyframes checkmark {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

#emailVerificationModal.success .verification-message {
    border-left-color: #48bb78;
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.modal-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #718096;
}

.modal-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Forgot Password Modal Styles */
.email-display {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    font-weight: 600;
    color: #2d3748;
    margin: 1rem 0;
    word-break: break-all;
    text-align: center;
}

.success-message {
    text-align: center;
    padding: 1.5rem 0;
}

.success-message i {
    font-size: 3rem;
    color: #48bb78;
    margin-bottom: 1rem;
}

.success-message h4 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.reset-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.reset-actions .btn {
    flex: 1;
}

.email-note {
    font-size: 0.875rem;
    color: #718096;
    margin-top: 1rem;
}

/* Pagination Styles */
.pagination-container {
    margin-top: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
}

.pagination-info {
    text-align: center;
    margin-bottom: 1rem;
    color: #718096;
    font-size: 0.875rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #4a5568;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pagination-btn:hover:not(:disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f7fafc;
    color: #a0aec0;
}

.pagination-numbers {
    display: flex;
    gap: 0.25rem;
}

.pagination-number {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #4a5568;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pagination-number:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-number.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    font-weight: 600;
}

.pagination-ellipsis {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-weight: bold;
    cursor: default;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 0.75rem 0 0.5rem;
    margin-top: auto;
}

/* Ensure proper page height for footer positioning - only for specific pages */
.products-section {
    min-height: calc(100vh - 200px);
    padding: 1rem 0 2rem 0;
}

.wishlist-section {
    min-height: calc(100vh - 200px);
    padding: 1rem 0 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand {
    text-align: left;
    flex: 1;
}

.footer-brand h3 {
    color: #667eea;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.footer-brand p {
    color: #cbd5e0;
    line-height: 1.4;
    margin-bottom: 0;
    font-size: 0.75rem;
    max-width: 400px;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-shrink: 0;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-links a i {
    font-size: 0.8rem;
    color: inherit;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 0.5rem;
    text-align: center;
}

.footer-bottom p {
    color: #a0aec0;
    margin: 0;
    font-size: 0.7rem;
}

/* Mobile responsive styles for footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .footer-brand {
        flex: 1;
        margin-right: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-end;
        flex-shrink: 0;
    }
    
    .footer-links a {
        font-size: 0.7rem;
        text-align: right;
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: 0.8rem;
    }
    
    .footer-brand {
        margin-right: 0.5rem;
    }
    
    .footer-brand h3 {
        font-size: 1rem;
    }
    
    .footer-brand p {
        font-size: 0.7rem;
    }
    
    .footer-links {
        gap: 0.6rem;
    }
    
    .footer-links a {
        font-size: 0.65rem;
    }
}

/* Profile Page Styles */
.profile {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Add gap between back button and profile container */
.profile .section-header {
    margin-bottom: 1.5rem;
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.profile-avatar {
    position: relative;
    z-index: 2;
}

.profile-avatar img,
.profile-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.profile-placeholder {
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

.avatar-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-overlay:hover {
    background: #5a67d8;
    transform: scale(1.1);
}

.change-photo-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
}

.profile-info {
    flex: 1;
    z-index: 2;
}

.profile-title h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-subtitle {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.profile-badge:hover::before {
    left: 100%;
}

.profile-badge i {
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* MNIT Verified Badge - Most Premium */
.profile-badge.mnit-verified {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    color: #ffffff;
    border-color: #34d399;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    animation: mnit-glow 3s ease-in-out infinite;
}

.profile-badge.mnit-verified i {
    color: #d1fae5;
    animation: shield-pulse 2s ease-in-out infinite;
}

@keyframes mnit-glow {
    0%, 100% { 
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
        transform: scale(1.02);
    }
}

@keyframes shield-pulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    }
    50% { 
        transform: scale(1.1);
        filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
    }
}

/* Regular Verified Badge */
.profile-badge.verified {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
    color: #ffffff;
    border-color: #60a5fa;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.profile-badge.verified i {
    color: #dbeafe;
}

/* Unverified Badge */
.profile-badge.unverified {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    color: #ffffff;
    border-color: #fbbf24;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.profile-badge.unverified i {
    color: #fef3c7;
}

/* Error/Invalid Badge */
.profile-badge.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
    color: #ffffff;
    border-color: #f87171;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.profile-badge.error i {
    color: #fee2e2;
}

.profile-content {
    display: flex;
    gap: 2rem;
    padding: 2rem;
}

.profile-main {
    flex: 2;
}

.profile-sidebar {
    flex: 1;
}

.profile-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.card-header h4 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header i {
    color: #667eea;
}

.card-body {
    padding: 2rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #e2e8f0;
    transform: translateX(5px);
}

.info-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1.1rem;
    color: #2d3748;
    font-weight: 600;
}

.info-actions {
    display: flex;
    gap: 0.5rem;
}

.edit-field-btn {
    width: 35px;
    height: 35px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.edit-field-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg); }
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.quick-action-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.quick-action-btn i {
    width: 20px;
    text-align: center;
}

/* Verification Steps Styles */
.verification-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.verification-steps .step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.verification-steps .step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 4px 4px 0;
}

.verification-steps .step:hover {
    background: #e2e8f0;
    transform: translateX(5px);
}

.verification-steps .step i {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.verification-steps .step span {
    font-weight: 500;
    color: #4a5568;
}

/* Button link styles */
.btn-link {
    background: none;
    border: none;
    color: #667eea;
    text-decoration: none;
    padding: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Verification Badge Styles for User Menu and Other Areas */
.user-badge,
.verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.user-badge i,
.verification-badge i {
    font-size: 0.9rem;
}

/* MNIT Verified - Small Version */
.user-badge.mnit-verified,
.verification-badge.mnit-verified {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    animation: badge-glow 4s ease-in-out infinite;
}

.user-badge.mnit-verified i,
.verification-badge.mnit-verified i {
    color: #d1fae5;
}

@keyframes badge-glow {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    }
    50% { 
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5);
    }
}

/* Regular Verified - Small Version */
.user-badge.verified,
.verification-badge.verified {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
}

.user-badge.verified i,
.verification-badge.verified i {
    color: #dbeafe;
}

/* Unverified - Small Version */
.user-badge.unverified,
.verification-badge.unverified {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
}

.user-badge.unverified i,
.verification-badge.unverified i {
    color: #fef3c7;
}

/* Not Verified - Small Red Badge */
.user-badge.not-verified,
.verification-badge.not-verified {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #ffffff;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    margin-top: 0.2rem;
    display: inline-flex;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.4);
    letter-spacing: 0;
    text-transform: none;
}

.user-badge.not-verified i,
.verification-badge.not-verified i {
    color: #fecaca;
    font-size: 0.65rem;
    margin-right: 3px;
}

/* Account Statistics Section */
.profile-stats-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.profile-stats-section h4 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.stat-card:nth-child(1) {
    --gradient-start: #4facfe;
    --gradient-end: #00f2fe;
}

.stat-card:nth-child(2) {
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
}

.stat-card:nth-child(3) {
    --gradient-start: #ff9a9e;
    --gradient-end: #fad0c4;
}

.stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-right: 0.8rem;
    flex-shrink: 0;
}

.stat-icon i {
    color: white;
    font-size: 1.2rem;
}

.stat-info {
    color: white;
}

.stat-number {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
}

/* Delete Account Danger Zone */
.delete-account-section {
    margin-top: 1.5rem;
}

.danger-zone {
    background-color: #fff1f0;
    border: 1px solid #ffccc7;
    border-left: 4px solid #ff4d4f;
    border-radius: 10px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(229, 57, 53, 0.1);
}

.danger-zone h4 {
    color: #dc3545;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.danger-zone p {
    color: #545454;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.danger-zone::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 120px;
    height: 120px;
    background-color: rgba(255, 77, 79, 0.03);
    border-radius: 50%;
}

.btn-delete-account {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.btn-delete-account:hover {
    background-color: #c82333;
}

.btn-delete-account:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.3);
}

/* Delete Account Modal Styling */
.delete-account-modal {
    max-width: 550px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.2);
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.delete-account-modal .modal-header {
    background: linear-gradient(135deg, #ff4d4d 0%, #dc3545 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.delete-account-modal .modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.delete-account-modal .warning-content {
    padding: 1.5rem;
    position: relative;
}

.delete-account-modal .warning-icon {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.delete-account-modal .warning-title {
    color: #dc3545;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.delete-account-modal .warning-message {
    margin-bottom: 1.5rem;
}

.delete-account-modal .warning-message p {
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
}

.delete-account-modal .warning-message ul {
    background-color: rgba(220, 53, 69, 0.05);
    padding: 1rem 1rem 1rem 2.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.delete-account-modal .warning-message li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 0.5rem;
}

.delete-account-modal .confirmation-input {
    background-color: rgba(220, 53, 69, 0.07);
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px dashed rgba(220, 53, 69, 0.3);
}

.delete-account-modal .confirmation-input label {
    display: block;
    margin-bottom: 0.8rem;
    color: #333;
    font-weight: 500;
    text-align: center;
}

.delete-account-modal .confirmation-input input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 5px;
    background-color: #fff;
    font-size: 1rem;
    text-align: center;
}

.delete-account-modal .confirmation-input input:focus {
    border-color: #dc3545;
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.delete-account-modal .form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.delete-account-modal #confirmDeleteBtn {
    background-color: #dc3545;
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.25);
}

.delete-account-modal #confirmDeleteBtn:hover:not(:disabled) {
    background-color: #c82333;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.delete-account-modal #confirmDeleteBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Delete Account Progress Indicators */
.deletion-progress {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    text-align: center;
}

.progress-indicator, 
.progress-success, 
.progress-error,
.progress-warning {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.progress-spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(220, 53, 69, 0.1);
    border-top-color: #dc3545;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.progress-success i {
    color: #28a745;
    font-size: 2.5rem;
}

.progress-error i {
    color: #dc3545;
    font-size: 2.5rem;
}

.progress-warning i {
    color: #ffc107;
    font-size: 2.5rem;
}

.progress-success p,
.progress-error p,
.progress-warning p,
.progress-indicator p {
    margin: 0;
    font-size: 0.9rem;
}

/* Profile Page Mobile Responsive Styles */
@media (max-width: 1024px) {
    .profile-content {
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .profile-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .profile {
        padding: 1rem 0;
        background: #f8fafc;
    }
      .profile-container {
        margin: 0 1rem;
        border-radius: 15px;
        width: calc(100% - 2rem);
        max-width: none;
        overflow: visible;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .profile-avatar img,
    .profile-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .avatar-overlay {
        width: 35px;
        height: 35px;
    }
    
    .profile-title h2 {
        font-size: 2rem;
    }
    
    .profile-badge {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    /* Stack profile content vertically on mobile */
    .profile-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
      .profile-main {
        flex: none;
        order: 1;
        width: 100%;
    }
    
    .profile-sidebar {
        flex: none;
        order: 2;
        width: 100%;
    }
    
    .profile-card {
        border-radius: 12px;
    }
    
    .card-header {
        padding: 1.2rem 1.5rem;
    }
    
    .card-header h4 {
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        padding: 1rem;
    }
    
    .info-item .info-actions {
        align-self: flex-end;
        margin-top: -2.5rem;
    }
    
    .info-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .info-label {
        font-size: 0.85rem;
    }
    
    .info-value {
        font-size: 1rem;
        word-break: break-word;
    }
      /* Stats section mobile adjustments */
    .profile-stats-section {
        width: 100%;
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .profile-stats-section h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .profile-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
    }
    
    .stat-card {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Danger zone mobile adjustments */
    .delete-account-section {
        margin-top: 1.5rem;
    }
    
    .danger-zone {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .danger-zone h4 {
        font-size: 1.1rem;
    }
    
    .danger-zone p {
        font-size: 0.9rem;
    }
    
    .btn-delete-account {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .profile-container {
        margin: 0 0.5rem;
        border-radius: 12px;
        width: calc(100% - 1rem);
    }
    
    .profile-header {
        padding: 1rem;
    }
    
    .profile-title h2 {
        font-size: 1.6rem;
    }
    
    .profile-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .profile-content {
        padding: 1rem;
        gap: 1rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .info-item {
        padding: 0.8rem;
    }
    
    .info-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .info-value {
        font-size: 0.95rem;
    }
    
    .profile-stats-section {
        padding: 0.8rem;
    }
    
    .stat-card {
        padding: 0.8rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .danger-zone {
        padding: 1rem;
    }
}

/* Product Detail Page Styles */
.product-detail-section {
    padding: 2rem 0;
    min-height: calc(100vh - 160px);
}

.product-detail-section .section-header {
    margin-bottom: 0.5rem;
}

.product-detail-section .section-header {
    margin-bottom: 0.5rem;
}

.back-btn {
    margin-bottom: 0.5rem;
    margin-top: 1.5em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: translateX(-2px);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 600px 1fr;
    gap: 2rem;
    min-height: 500px;
    margin-top: 1rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 4rem;
}

/* Left Section: Photo and Contact Buttons */
.product-left-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-image-container {
    position: relative;
}

.product-main-image {
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

/* Share and Wishlist icons on photo box (bottom right) */
.photo-action-buttons {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
}

.photo-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 16px;
}

.photo-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.photo-action-btn.wishlist-btn {
    background-color: #fff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    border-radius: 50% !important;
    padding: 8px !important;
}

.photo-action-btn.wishlist-btn {
    color: #e53e3e;
}

.photo-action-btn.wishlist-btn.active {
    background: #e53e3e;
    color: white;
}

.photo-action-btn.wishlist-btn.active i {
    color: white;
}

.photo-action-btn.share-btn {
    color: #667eea;
}

.photo-action-btn:hover {
    background: white;
}

/* Contact Buttons below photo */
.contact-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.contact-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.contact-btn i {
    font-size: 16px;
}

.contact-btn.active {
    color: white;
    transform: translateY(0);
}

.contact-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-btn.disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
}

.contact-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.contact-btn.email-btn.active {
    background: #3b82f6;
}

.contact-btn.email-btn.active:hover {
    background: #2563eb;
}

.contact-btn.call-btn.active {
    background: #10b981;
}

.contact-btn.call-btn.active:hover {
    background: #059669;
}

.contact-btn.whatsapp-btn.active {
    background: #25d366;
}

.contact-btn.whatsapp-btn.active:hover {
    background: #22c55e;
}

/* Login message for non-authenticated users */
.login-message {
    background: #f0f4f8;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    color: #4a5568;
}

.login-message p {
    margin: 0;
    font-size: 14px;
}

.login-message a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.login-message a:hover {
    text-decoration: underline;
}

/* Right Section: Product Details */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.2;
    margin: 0 0 0.125rem 0;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    margin: 0 0 0.5rem 0;
}

.product-description {
    margin: 0 0 1rem 0;
}

.product-description h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
}

.product-description p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 15px;
    margin: 0;
}

/* Product Detail Page Description Styles */
.product-detail-description {
    margin: 0 0 1rem 0;
}

.product-detail-description h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
}

.product-detail-description p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 15px;
    margin: 0;
    white-space: pre-wrap; /* Preserve line breaks and spacing */
    overflow-wrap: break-word; /* Handle long words */
    /* Ensure no line restrictions */
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    overflow: visible !important;
    display: block !important;
}

/* Item Details and Seller Info Boxes */
.item-details-box,
.seller-info-box {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.item-details-box h3,
.seller-info-box h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 1rem 0;
}

.detail-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    gap: 1rem;
}

.detail-item:last-child {
    padding-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
    flex-shrink: 0;
}

.detail-value {
    color: #2d3748;
    font-size: 14px;
    text-align: left;
}

.product-condition-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e6fffa;
    color: #00b894;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.error-state,
.loading {
    text-align: center;
    padding: 4rem 2rem;
    color: #4a5568;
}

.error-state i,
.loading i {
    font-size: 3rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.error-state h2 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.loading p {
    margin-top: 1rem;
}

/* Loading and Error States for My Items */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.loading-state .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-state p {
    color: #4a5568;
    font-size: 1.1rem;
    margin: 0;
}

.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.error-state i {
    color: #e53e3e;
    margin-bottom: 1.5rem;
}

.error-state h2 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.error-state p {
    color: #4a5568;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide mobile contact section on desktop */
.mobile-contact-only {
    display: none;
}

/* Mobile Header Responsive Design */
@media (max-width: 768px) {
    /* Adjust main padding for taller mobile header */
    main {
        padding-top: 95px; /* Reduced from 120px to minimize gap while ensuring content visibility */
    }
    
    /* Restructure header for mobile */
    .header .container {
        display: flex;
        flex-direction: column;
        padding: 0.5rem 10px; /* Reduced padding */
        gap: 0.2rem; /* Further reduced gap between logo and tabs */
    }
    
    /* Hide desktop logo and nav structure on mobile */
    .header .container > .logo {
        display: none;
    }
    
    .header .container > .nav {
        display: none;
    }
    
    /* Show header-top structure on mobile */
    .header-top {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
      /* Show mobile navigation tabs below logo */
    .nav-tabs-mobile {
        display: block !important;
        margin-top: 0.3rem; /* Reduced margin between logo and tabs */
    }
    
    /* Reduce mobile navigation tabs gap */
    .nav-tabs-mobile ul {
        gap: 1rem; /* Reduced from 1.5rem */
        padding: 0;
        margin: 0;
    }
    
    /* Adjust logo size for mobile */
    .header-top .logo h1 {
        font-size: 1.4rem; /* Reduced from 1.6rem */
        margin: 0;
    }
    
    /* Make auth section smaller on mobile */
    .auth-section {
        gap: 0.3rem; /* Reduced from 0.5rem */
    }
      .btn {
        padding: 6px 12px; /* Reduced from 8px 16px */
        font-size: 12px; /* Reduced from 13px */
    }
    
    /* Make mobile header auth buttons wider */
    #loginBtnMobile, #signupBtnMobile {
        padding: 8px 16px !important; /* Wider padding for mobile header buttons */
        font-size: 13px !important; /* Slightly larger font */
        min-width: 80px; /* Ensure minimum width */
    }
    
    .user-name {
        font-size: 0.8rem; /* Reduced from 0.9rem */
    }
      /* Reduce nav-link font size on mobile */
    .nav-tabs-mobile .nav-link {
        font-size: 0.9rem;
        padding: 0.25rem 0;
    }
      /* Make hero banner more compact on mobile */
    .hero {
        padding: 20px 0 10px; /* Reduced from 20px 0 15px */
    }
    
    
    .hero-content h2 {
        font-size: 1.6rem; /* Reduced from 2.5rem */
        margin-bottom: 0.5rem; /* Reduced from 0.8rem */
        line-height: 1.2; /* Tighter line height */
    }
    
    .hero-content p {
        font-size: 0.95rem; /* Reduced from 1.1rem */
        margin-bottom: 1rem; /* Reduced from 1.5rem */
    }      .hero-actions {
        gap: 0.5rem; /* Reduced from 0.8rem */
    }
    
    .hero-actions .btn {
        min-width: 150px; /* Slightly smaller on mobile but still prominent */
    }
    
    .btn-large {
        padding: 16px 35px; /* Slightly smaller padding on mobile */
        font-size: 17px; /* Slightly smaller font on mobile */
    }
    
    /* Ensure modal buttons maintain proper size on mobile */
    .modal-content .btn {
        padding: 12px 20px; /* Override mobile reduction for modal buttons */
        font-size: 14px; /* Override mobile reduction for modal buttons */
        min-height: 44px; /* Ensure touch-friendly size */
    }
    
    .modal-content .btn-full {
        width: 100%;
        display: block;
        text-align: center;
    }
    
    .modal-content .social-login {
        text-align: center;
    }
      .modal-content .divider {
        text-align: center;
        margin: 20px 0;
    }
    
    /* Ensure Google button looks consistent on mobile */
    .modal-content .btn-google {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
        background: #db4437 !important;
        border-color: #db4437 !important;
        color: white !important;
    }
    
    .modal-content .btn-google:hover {
        background: #c23321 !important;
        border-color: #c23321 !important;
    }
}

/* Responsive Design for Product Detail */
@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 500px 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .mobile-contact-only {
        display: block;
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
        margin-top: 0.5rem;
    }
    
    .product-main-image {
        height: 300px;
    }
      .product-title {
        font-size: 1.5rem;
        margin: 0 0 0.125rem 0;
    }
    
    .product-price {
        font-size: 1.6rem;
        margin-bottom: 0.25rem;
    }
    
    /* Hide contact buttons in left section on mobile */
    .product-left-section #contact-section {
        display: none;
    }
    
    /* Move contact section to mobile layout */
    .product-left-section {
        order: 1;
    }
    
    .product-info-section {
        order: 2;
        position: relative;
    }
      .mobile-contact-buttons {
        display: flex;
        gap: 8px;
        margin: 0.25rem 0;
    }
    
    .mobile-contact-buttons .contact-btn {
        flex: 1;
        padding: 10px 8px;
        font-size: 12px;
        flex-direction: column;
        gap: 4px;
    }
    
    .mobile-contact-buttons .contact-btn i {
        font-size: 16px;
    }
      .mobile-contact-buttons .contact-btn span {
        font-size: 11px;
    }
      .item-details-box,
    .seller-info-box {
        padding: 1rem;
    }
      .detail-item {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .detail-label {
        min-width: fit-content;
        flex-shrink: 0;
    }
      .detail-value {
        text-align: left;
        flex: 0 1 auto;
        display: flex;
        align-items: center;
    }
    
    /* Fix condition badge stretching in mobile */
    .detail-value .product-condition-badge {
        display: inline-block;
        width: auto;
        max-width: fit-content;
        flex: none;
    }
}

/* Error Action Buttons Styles */
.error-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.error-actions .btn {
    min-width: 120px;
}

/* Responsive Product Cards */
/* Tablets and smaller desktops */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .product-image {
        height: 140px;
    }
    
    .product-info {
        padding: 0.9rem;
    }
    
    .product-title {
        font-size: 0.95rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.8rem;
    }
    
    .product-card {
        border-radius: 10px;
    }
    
    .product-image {
        height: 120px;
    }
    
    .product-info {
        padding: 0.8rem;
    }
    
    .product-title {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .product-price {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .product-condition {
        padding: 2px 6px;
        font-size: 9px;
        margin-bottom: 0.4rem;
    }
    
    .product-description {
        font-size: 11px;
        margin-bottom: 0.4rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
    
    .product-seller {
        font-size: 11px;
        gap: 0.3rem;
    }
}

/* Very small mobile devices */
@media (max-width: 480px) {
    /* Ensure adequate padding for very small mobile header */
    main {
        padding-top: 95px; /* Reduced from 130px to minimize gap while ensuring content visibility */
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.6rem;
    }
    
    .product-image {
        height: 100px;
    }
    
    .product-info {
        padding: 0.6rem;
    }
    
    .product-title {
        font-size: 0.85rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .product-condition {
        font-size: 8px;
        padding: 1px 4px;
    }
    
    .product-description {
        display: none; /* Hide description on very small screens */
    }
    
    .product-seller {
        font-size: 10px;
    }
}

/* Responsive Product Cards */
/* Tablets and smaller desktops */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .product-image {
        height: 140px;
    }
    
    .product-info {
        padding: 0.9rem;
    }
    
    .product-title {
        font-size: 0.95rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.8rem;
    }
    
    .product-card {
        border-radius: 10px;
    }
    
    .product-image {
        height: 120px;
    }
    
    .product-info {
        padding: 0.8rem;
    }
    
    .product-title {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .product-price {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .product-condition {
        padding: 2px 6px;
        font-size: 9px;
        margin-bottom: 0.4rem;
    }
    
    .product-description {
        font-size: 11px;
        margin-bottom: 0.4rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
    
    .product-seller {
        font-size: 11px;
        gap: 0.3rem;
    }
}

/* Very small mobile devices */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.6rem;
    }
    
    .product-image {
        height: 100px;
    }
    
    .product-info {
        padding: 0.6rem;
    }
    
    .product-title {
        font-size: 0.9rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .product-description {
        display: none;
    }
    
    .edit-btn, .delete-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
}

/* Pagination Responsive Styles */
@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination-numbers {
        order: 1;
        justify-content: center;
    }
    
    .pagination-btn {
        order: 2;
        min-width: 120px;
        justify-content: center;
    }
    
    .pagination-info {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .pagination-container {
        padding: 1rem 0;
    }
    
    .pagination-numbers {
        gap: 0.1rem;
    }
    
    .pagination-number {        min-width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .pagination-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Ensure product description shows on mobile for product detail pages */
@media (max-width: 768px) {
    .product-detail-description {
        display: block !important;
        font-size: 14px;
        line-height: 1.5;
        margin: 1rem 0;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
        overflow: visible !important;
    }
    
    .product-detail-description h3 {
        font-size: 1rem;
        font-weight: 600;
        color: #2d3748;
        margin: 0 0 0.5rem 0;
    }
    
    .product-detail-description p {
        font-size: 14px;
        color: #4a5568;
        line-height: 1.5;
        margin: 0;
        white-space: pre-wrap;
        overflow-wrap: break-word;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
        overflow: visible !important;
        display: block !important;
    }
}

@media (max-width: 480px) {
    .product-detail-description {
        display: block !important;
        font-size: 13px;
        margin: 0.75rem 0;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
        overflow: visible !important;
    }
    
    .product-detail-description h3 {
        font-size: 0.9rem;
    }
    
    .product-detail-description p {
        font-size: 13px;
        white-space: pre-wrap;
        overflow-wrap: break-word;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
        overflow: visible !important;
        display: block !important;
    }
}

/* Contact Form Styles */
#contactModal .modal-content {
    max-width: 500px;
}

#contactModal h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

#contactModal p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

#contactForm .form-group {
    margin-bottom: 1.2rem;
}

#contactForm select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
}

#contactForm select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

#contactForm textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
}

#contactForm textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

#contactForm textarea::placeholder {
    color: #999;
}

.success-message {
    text-align: center;
    padding: 2rem;
    color: #22c55e;
}

.success-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.success-message p {
    font-size: 1.1rem;
    color: #16a34a;
}

#contactSubmitBtn {
    position: relative;
}

#contactSubmitBtn .btn-spinner {
    color: white;
}

/* Error states */
#contactForm .error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1) !important;
}

#contactForm .error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

/* Demand Page Styles */
.demand-section {
    padding: 1rem 0 2rem 0; /* Reduced top padding to match other pages */
    min-height: calc(100vh - 200px); /* Reduced to prevent unnecessary scrolling */
}

.demand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2rem;
    gap: 1rem;
}

.demand-title h2 {
    margin: 0 0 0.5rem 0;
    color: #2d3748;
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demand-title p {
    margin: 0;
    color: #718096;
    font-size: 1rem;
}

.demand-title i {
    color: #667eea;
}

.demand-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #667eea;
}

.demands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.8rem;
}

/* Tablet view - 2 columns for larger tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    .demands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .demand-card {
        max-width: none;
    }
}

.demand-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    max-width: 350px;
    height: fit-content;
}

.demand-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.demand-card .demand-header {
    padding: 0.3rem 0.8rem 0.1rem 0.8rem; /* Reduced bottom padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.demand-category {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #f8fafc;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4a5568;
}

.demand-category i {
    color: #667eea;
    font-size: 0.8rem;
}

.demand-urgency-text {
    font-size: 0.7rem;
    color: #718096;
    font-weight: 500;
}

.demand-content {
    padding: 0.2rem 0.8rem 0.4rem 0.8rem;
}

.demand-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.4rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.demand-description {
    color: #718096;
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.demand-budget {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #667eea;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    padding: 0.3rem 0.5rem;
    background: #f0f4ff;
    border-radius: 5px;
}

.demand-budget i {
    color: #667eea;
    font-size: 0.8rem;
}

.demand-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: #718096;
    margin-bottom: 0.4rem;
}

.demand-user,
.demand-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.demand-user {
    flex: 1;
    min-width: 0;
}

.demand-user span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demand-time {
    flex-shrink: 0;
}

.demand-actions {
    padding: 0 0.8rem 0.6rem 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-actions {
    display: flex;
    gap: 0.3rem;
}

.contact-actions .btn {
    padding: 0.35rem 0.45rem;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    background: white;
    color: #4a5568;
}

.contact-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-contact-email {
    color: #667eea !important;
    border-color: #667eea !important;
}

.btn-contact-email:hover {
    background: #667eea !important;
    color: white !important;
}

.btn-contact-whatsapp {
    color: #25d366 !important;
    border-color: #25d366 !important;
}

.btn-contact-whatsapp:hover {
    background: #25d366 !important;
    color: white !important;
}

.no-contact-info {
    color: #a0aec0;
    font-size: 0.7rem;
    font-style: italic;
}

.contact-actions .btn i {
    font-size: 0.8rem;
}

/* Email button specific styling */
.btn-contact-email {
    color: #dc2626 !important;
    border-color: #fecaca !important;
    background: #fef2f2 !important;
}

.btn-contact-email:hover {
    color: #b91c1c !important;
    border-color: #fca5a5 !important;
    background: #fee2e2 !important;
}

/* WhatsApp button specific styling */
.btn-contact-whatsapp {
    color: #059669 !important;
    border-color: #a7f3d0 !important;
    background: #ecfdf5 !important;
}

.btn-contact-whatsapp:hover {
    color: #047857 !important;
    border-color: #6ee7b7 !important;
    background: #d1fae5 !important;
}

.no-contact-info {
    font-size: 0.7rem;
    color: #718096;
    font-style: italic;
}

.owner-actions {
    display: flex;
    gap: 0.3rem;
}

.owner-actions .btn {
    padding: 0.35rem 0.45rem;
    min-width: 28px;
    height: 28px;
    font-size: 0.75rem;
    border-radius: 5px;
}

/* Demand Mobile Responsive Styles */
@media (max-width: 768px) {
    .demand-section .demand-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .demand-title h2 {
        font-size: 1.6rem;
    }

    .demand-filters {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
    }

    .filter-group {
        flex: 1;
        min-width: 0;
    }

    .demands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .demand-card {
        max-width: none;
    }

    .demand-card .demand-header {
        padding: 0.5rem 0.7rem 0.2rem 0.7rem;
    }

    .demand-content {
        padding: 0.2rem 0.7rem 0.4rem 0.7rem;
    }

    .demand-actions {
        padding: 0 0.7rem 0.7rem 0.7rem;
        flex-direction: row;
        gap: 0.4rem;
        align-items: center;
        justify-content: space-between;
    }

    .contact-actions,
    .owner-actions {
        justify-content: center;
    }

    .demand-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.6rem;
    }
}

@media (max-width: 480px) {
    .demands-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .demand-card {
        max-width: none;
    }

    .demand-title h2 {
        font-size: 1.4rem;
    }

    .demand-title p {
        font-size: 0.9rem;
    }

    .demand-card .demand-header {
        padding: 0.5rem 0.6rem 0.2rem 0.6rem;
    }

    .demand-content {
        padding: 0.2rem 0.6rem 0.4rem 0.6rem;
    }

    .demand-actions {
        padding: 0 0.6rem 0.6rem 0.6rem;
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .contact-actions,
    .owner-actions {
        justify-content: center;
        gap: 0.3rem;
    }

    .contact-actions .btn,
    .owner-actions .btn {
        min-width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .demand-category {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .demand-urgency-text {
        font-size: 0.65rem;
    }

    .demand-card .demand-title {
        font-size: 0.9rem;
    }

    .demand-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .demand-budget {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }

    .demand-meta {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .demands-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    
    .demand-card {
        margin: 0 auto;
        max-width: none;
    }
    
    .demand-card .demand-header {
        padding: 0.4rem 0.5rem 0.2rem 0.5rem;
    }

    .demand-content {
        padding: 0.2rem 0.5rem 0.3rem 0.5rem;
    }

    .demand-actions {
        padding: 0 0.5rem 0.5rem 0.5rem;
    }
    
    .demand-category {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .demand-title {
        font-size: 1rem;
    }
    
    .demand-meta {
        font-size: 0.65rem;
        gap: 0.3rem;
    }
    
    .demand-user span {
        max-width: 120px;
    }
}