/* ============================================
   GoLadipo Ltd - Modern UI/UX Design
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #dbeafe;
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    --dark: #1f2937;
    --gray: #6b7280;
    --light: #f9fafb;
    --success: #10b981;
    --danger: #ef4444;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   NAVIGATION - Modern & Clean
   ============================================ */

.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo h2 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.support-btn {
    background: var(--success) !important;
    color: white !important;
    padding: 0.625rem 1.25rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.support-btn:hover {
    background: #059669 !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   PAGE TRANSITIONS
   ============================================ */

.page {
    display: none !important;
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
    animation: fadeIn 0.4s ease-in-out;
    position: relative;
    width: 100%;
}

.page.active {
    display: block !important;
}

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

/* ============================================
   HERO SECTION - Eye-Catching
   ============================================ */

.hero {
    background: white;
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: var(--shadow-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-video {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.hero-video:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.hero-video video {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1.5rem;
}

.video-overlay h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* ============================================
   BUTTONS - Modern & Attractive
   ============================================ */

.btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, #fbbf24 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

/* ============================================
   FEATURES SECTION - Cards Layout
   ============================================ */

.features {
    padding: 4rem 0;
    background: transparent;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: white;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.feature-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
}

.brands {
    padding: 4rem 0;
}

.brands .container {
    max-width: 1100px;
}

.brands-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.brands-header h2 {
    font-size: 2.25rem;
    color: white;
    margin-bottom: 0.75rem;
}

.brands-header p {
    color: #e0e7ff;
    font-size: 1.1rem;
}

.brands-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
}

.brand-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--primary);
    letter-spacing: 0.5px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    transition: var(--transition);
}

.brand-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   SEARCH SECTION - Clean & Functional
   ============================================ */

#search {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: var(--shadow-xl);
    min-height: 70vh;
}

.search-header {
    text-align: center;
    margin-bottom: 2rem;
}

.search-header h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.search-header p {
    color: var(--gray);
    font-size: 1.125rem;
}

.search-bar {
    display: flex;
    max-width: 800px;
    margin: 0 auto 2rem;
    gap: 0.75rem;
    background: white;
    padding: 0.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border);
}

.search-bar:focus-within {
    border-color: var(--primary);
}

.search-bar input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    background: transparent;
}

.search-bar input:focus {
    outline: none;
}

.search-bar button {
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

/* Advanced Filters */
.advanced-filters {
    background: var(--light);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: var(--radius);
    border: 2px solid var(--border);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.875rem;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    transition: var(--transition);
    background: white;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.filter-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* ============================================
   PRODUCTS GRID - Beautiful Cards
   ============================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.product-image {
    height: 220px;
    width: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.product-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.product-description {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.product-seller {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--light);
    font-size: 0.875rem;
}

.contact-btn {
    background: var(--success);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.contact-btn:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* No Results */
.no-results, .no-products, .no-data {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
}

.no-results i, .no-products i, .no-data i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.no-results h3, .no-products h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

/* ============================================
   AUTH PAGES - Clean Forms
   ============================================ */

.auth-page {
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
}

.auth-page.active {
    display: flex !important;
}

.auth-container {
    width: 100%;
    max-width: 480px;
}

.auth-form {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray);
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gray);
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ============================================
   DASHBOARD - Tabbed Interface
   ============================================ */

#dashboard {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: var(--shadow-xl);
    min-height: 70vh;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--gray);
    font-size: 1.125rem;
}

.dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 2rem;
    overflow-x: auto;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary);
    background: var(--primary-light);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

/* Image Preview */
.image-preview {
    margin-top: 1rem;
    max-width: 250px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.image-preview img {
    width: 100%;
    display: block;
}

/* ============================================
   MESSAGING SYSTEM
   ============================================ */

.messages-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    min-height: 600px;
}

.conversations-list {
    background: var(--light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.conversations-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conversations-header h4 {
    margin: 0;
    font-size: 1.125rem;
}

#conversationsList {
    max-height: 520px;
    overflow-y: auto;
}

.conversation-item {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.conversation-item:hover {
    background: var(--primary-light);
}

.conversation-item.active {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
}

.conversation-item.unread {
    background: #eff6ff;
    font-weight: 600;
}

.conversation-item h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--dark);
}

.conversation-item .last-message {
    font-size: 0.875rem;
    color: var(--gray);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.conversation-item .message-time {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

.message-view {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.conversation-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid var(--border);
    background: var(--light);
}

.conversation-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    color: var(--dark);
}

.conversation-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray);
}

.messages-list {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 450px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--light);
}

.message-bubble {
    max-width: 75%;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    position: relative;
    animation: messageSlide 0.3s ease;
}

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

.message-bubble.sent {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message-bubble.received {
    background: white;
    color: var(--dark);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.message-bubble .message-text {
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    line-height: 1.5;
}

.message-bubble .message-time {
    font-size: 0.75rem;
    opacity: 0.7;
}

.message-input {
    padding: 1.25rem 1.5rem;
    border-top: 2px solid var(--border);
    display: flex;
    gap: 1rem;
    background: white;
}

.message-input textarea {
    flex: 1;
    padding: 0.875rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    resize: none;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.message-input textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* ============================================
   VERIFICATION SYSTEM
   ============================================ */

.verification-status {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.status-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius);
}

.status-card.verified {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid var(--success);
}

.status-card.pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid var(--secondary);
}

.status-card.rejected {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid var(--danger);
}

.status-card.unverified {
    background: var(--light);
    border: 2px solid var(--border);
}

.status-icon {
    font-size: 3rem;
}

.status-icon.verified {
    color: var(--success);
}

.status-icon.pending {
    color: var(--secondary);
}

.status-icon.rejected {
    color: var(--danger);
}

.status-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.status-info p {
    margin: 0;
    color: var(--gray);
    line-height: 1.6;
}

.verification-form {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.info-text {
    background: var(--primary-light);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.info-text i {
    color: var(--primary);
    margin-top: 0.2rem;
    font-size: 1.25rem;
}

/* ============================================
   BADGES & LABELS
   ============================================ */

.badge {
    background: var(--danger);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.verified-badge i {
    font-size: 0.875rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-section p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #d1d5db;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
}

/* ============================================
   LOADING & TOASTS
   ============================================ */

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1.5rem;
}

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

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--dark);
    color: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xl);
    z-index: 10000;
    transform: translateY(150px);
    opacity: 0;
    transition: var(--transition);
    max-width: 400px;
    font-weight: 500;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .messages-container {
        grid-template-columns: 1fr;
    }
    
    .conversations-list {
        max-height: 350px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        gap: 1rem;
        align-items: stretch;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        text-align: center;
        padding: 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .brands-logos {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .filter-actions {
        flex-direction: column;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab-btn {
        text-align: left;
        border-bottom: 2px solid var(--border);
        border-radius: 0;
    }
    
    .tab-btn.active {
        border-bottom-color: var(--primary);
        border-left: 4px solid var(--primary);
    }
    
    #dashboard,
    #search,
    .auth-form {
        padding: 2rem 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .search-header h2,
    .dashboard-header h2 {
        font-size: 1.75rem;
    }
    
    .features h2 {
        font-size: 1.75rem;
    }
}

/* ============================================
   AI CHATBOX - Modern Chat Interface
   ============================================ */

.ai-chatbox {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 600px;
    max-height: calc(100vh - 120px);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: none;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.ai-chatbox.active {
    display: flex;
}

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

.chatbox-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.chatbox-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chatbox-header-content i {
    font-size: 1.5rem;
}

.chatbox-header-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.chatbox-status {
    font-size: 0.75rem;
    opacity: 0.9;
    margin: 0;
}

.chatbox-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.chatbox-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--light);
}

.chatbox-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbox-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbox-messages::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 3px;
}

.chatbox-messages::-webkit-scrollbar-thumb:hover {
    background: var(--dark);
}

.message {
    display: flex;
    gap: 0.75rem;
    animation: fadeIn 0.3s ease-out;
}

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

.message.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    font-size: 1rem;
}

.user-message .message-avatar {
    background: var(--gray);
}

.message-content {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.user-message .message-content {
    background: var(--primary);
    color: var(--white);
}

.message-content p {
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
    font-size: 0.9375rem;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
    font-size: 0.875rem;
}

.message-content li {
    margin: 0.25rem 0;
}

.message-content .quick-action {
    display: inline-block;
    margin: 0.5rem 0.5rem 0.5rem 0;
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    transition: var(--transition);
    border: none;
}

.message-content .quick-action:hover {
    background: var(--primary);
    color: var(--white);
}

.chat-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.chat-actions.horizontal {
    flex-direction: row;
    flex-wrap: wrap;
}

.chat-action {
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    font-weight: 600;
    text-align: left;
    transition: var(--transition);
}

.chat-action:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.language-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.language-button {
    flex: 1 1 calc(50% - 0.5rem);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.language-button:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.language-button.selected {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    cursor: default;
}

.chatbox-input-container {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--white);
    border-top: 1px solid var(--border);
}

#chatboxInput {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    outline: none;
    transition: var(--transition);
}

#chatboxInput:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.chatbox-send-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.chatbox-send-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.chatbox-send-btn:active {
    transform: scale(0.95);
}

.chatbox-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border: none;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 9998;
    transition: var(--transition);
}

.chatbox-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
}

.chatbox-toggle-btn:active {
    transform: scale(0.95);
}

.chatbox-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    border: 2px solid var(--white);
}

.ai-chatbox.active ~ .chatbox-toggle-btn {
    display: none;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray);
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ai-chatbox {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
    
    .chatbox-header {
        border-radius: 0;
    }
    
    .chatbox-toggle-btn {
        bottom: 15px;
        right: 15px;
        width: 56px;
        height: 56px;
    }
}

/* Social Media Icons */
.social-links {
    margin-top: 10px;
    display: flex;
    gap: 15px;
}

.social-links a {
    font-size: 22px;
    color: #ffffff;
    background: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

.social-links a:hover {
    background: #ffcc00;
    color: #000;
    transform: translateY(-5px);
}

