/* Custom styles for Flippys.gg - Professional Tech Marketplace */

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

/* Enhanced Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(99, 102, 241, 0.3);
    border-top: 4px solid var(--flippy-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    max-width: 350px;
}

.toast {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    animation: slideInFromRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.toast.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.toast.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.toast.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

/* Performance optimizations */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

.fade-in-page {
    opacity: 0;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* Enhanced Messaging Interface Styles */
#messages-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    scroll-behavior: smooth;
}

/* Webkit browsers scrollbar styling for messages */
#messages-container::-webkit-scrollbar {
    width: 8px;
}

#messages-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#messages-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

#messages-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Message bubble animations and transitions */
.message-bubble {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0); /* Enable hardware acceleration */
}

.message-bubble:hover {
    transform: translateY(-1px) translateZ(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Offer status transitions */
.message-bubble .badge {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button container animations */
.message-bubble .d-flex.gap-2 {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth button hover effects for offer buttons */
.message-bubble .btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.message-bubble .btn:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.message-bubble .btn:active {
    transform: translateY(0) translateZ(0);
    transition: transform 0.1s ease;
}

/* Prevent layout jumps during status updates */
.message-bubble .d-flex.align-items-center {
    min-height: 24px; /* Ensure consistent height for status container */
    transition: all 0.3s ease;
}

/* Enhanced message appearance animations */
.message-bubble {
    animation: messageSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes messageSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Status badge animation */
.badge {
    animation: badgeAppear 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes badgeAppear {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Enhanced Form Interactions & UX Polish */
.form-control, .form-select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-width: 2px;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    background-color: var(--card-bg);
    border-color: var(--card-border);
    font-size: 1rem;
    position: relative;
}

.form-control:focus, .form-select:focus {
    border-color: var(--flippy-primary);
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.15), 0 8px 25px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
    background-color: var(--card-bg);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.form-control:focus::placeholder {
    opacity: 0.5;
    transform: translateY(-2px);
}

/* Floating Label Effects */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--flippy-primary);
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    font-weight: 600;
}

/* Enhanced Button States */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

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

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* Loading Button States */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Alert Improvements */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    animation: slideInFromTop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
    border-left: 4px solid #10b981;
}

[data-bs-theme="light"] .alert-success {
    color: #065f46;
}

[data-bs-theme="dark"] .alert-success {
    color: #6ee7b7;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 100%);
    border-left: 4px solid #ef4444;
}

[data-bs-theme="light"] .alert-danger {
    color: #991b1b;
}

[data-bs-theme="dark"] .alert-danger {
    color: #fca5a5;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
    border-left: 4px solid #f59e0b;
}

[data-bs-theme="light"] .alert-warning {
    color: #92400e;
}

[data-bs-theme="dark"] .alert-warning {
    color: #fcd34d;
}

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-left: 4px solid #3b82f6;
}

[data-bs-theme="light"] .alert-info {
    color: #1e40af;
}

[data-bs-theme="dark"] .alert-info {
    color: #93c5fd;
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Enhanced Typography Variables */
:root {
    --flippy-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --flippy-font-business: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --flippy-font-display: 'Inter', system-ui, sans-serif;
    --flippy-font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
    
    /* Professional Typography Scale */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;
}

/* Professional Business Color Scheme */
:root {
    /* Primary Business Colors */
    --flippy-primary: #1e40af;        /* Professional blue */
    --flippy-primary-light: #3b82f6;   /* Light blue */
    --flippy-primary-dark: #1e3a8a;    /* Dark blue */
    --flippy-accent: #059669;          /* Professional green accent */
    --flippy-accent-light: #10b981;    /* Light green */
    --flippy-accent-dark: #047857;     /* Dark green */
    
    /* Professional Theme Colors */
    --flippy-success: #059669;         /* Professional green */
    --flippy-warning: #d97706;         /* Professional orange */
    --flippy-danger: #dc2626;          /* Professional red */
    --flippy-info: #0891b2;           /* Professional cyan */
    
    /* Professional Gradients */
    --flippy-gradient-primary: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
    --flippy-gradient-accent: linear-gradient(135deg, #059669 0%, #047857 100%);
    --flippy-gradient-success: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    --flippy-gradient-business: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    --flippy-gradient-hero: linear-gradient(135deg, #1e40af 0%, #3730a3 50%, #059669 100%);
    
    /* Card and Component Colors */
    --flippy-card-hover: rgba(99, 102, 241, 0.1);
    --flippy-border-color: rgba(99, 102, 241, 0.2);
    --flippy-shadow-color: rgba(0, 0, 0, 0.25);
    --flippy-shadow-hover: rgba(99, 102, 241, 0.3);
    
    /* Professional Category Colors */
    --category-computer: #1e40af;     /* Computers - Professional Blue */
    --category-gpu: #dc2626;          /* GPUs - Professional Red */
    --category-cpu: #059669;          /* CPUs - Professional Green */
    --category-enterprise: #374151;   /* Enterprise - Gray */
    --category-component: #d97706;    /* Components - Orange */
    --category-storage: #0891b2;      /* Storage - Cyan */
    --category-motherboard: #7c3aed;  /* Motherboard - Purple */
    --category-ram: #0d9488;          /* RAM - Teal */
    --category-psu: #ea580c;          /* PSU - Orange */
    --category-cooling: #2563eb;      /* Cooling - Blue */
}

/* Light mode variables - Professional focused */
[data-bs-theme="light"] {
    --bs-body-bg: #f8fafc;
    --bs-body-color: #1e293b;
    --bs-border-color: #e2e8f0;
    --dropdown-bg: #ffffff;
    --dropdown-border: #cbd5e1;
    --dropdown-item-hover: #f1f5f9;
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-border: rgba(99, 102, 241, 0.15);
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --text-muted: #64748b;
    --accent-bg: rgba(99, 102, 241, 0.05);
}

/* Dark mode variables - Professional theme */
[data-bs-theme="dark"] {
    --bs-body-bg: #0f172a;           /* Slate 900 */
    --bs-body-color: #e2e8f0;        /* Slate 200 - Lighter for better contrast */
    --bs-border-color: #334155;      /* Slate 700 */
    --dropdown-bg: #1e293b;          /* Slate 800 */
    --dropdown-border: #475569;      /* Slate 600 */
    --dropdown-item-hover: #334155;  /* Slate 700 */
    --navbar-bg: rgba(15, 23, 42, 0.95);  /* Slate 900 with opacity */
    --navbar-border: rgba(99, 102, 241, 0.3);
    --card-bg: #1e293b;              /* Slate 800 */
    --card-border: #334155;          /* Slate 700 */
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    --text-muted: #94a3b8;           /* Slate 400 - Lighter for better readability */
    --accent-bg: rgba(99, 102, 241, 0.1);
}

/* Dark mode text improvements */
[data-bs-theme="dark"] body {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .text-muted {
    color: #94a3b8 !important;
    opacity: 1;
}

[data-bs-theme="dark"] .card {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .card-body,
[data-bs-theme="dark"] .card-title,
[data-bs-theme="dark"] .card-text {
    color: #e2e8f0;
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
    color: #f1f5f9;
}

[data-bs-theme="dark"] p,
[data-bs-theme="dark"] span,
[data-bs-theme="dark"] label {
    color: #e2e8f0;
}

/* Custom navbar styling - Always white */
.navbar {
    background-color: white !important;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1030;
    position: relative;
    padding: 0.25rem 0;
}

/* Enhanced logo visibility - no background needed */
.logo-enhanced {
    transition: all 0.3s ease;
}

.logo-enhanced:hover {
    transform: scale(1.05);
}

.version-text {
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #000 !important;
}

/* Override theme-specific navbar styling - Always white */
[data-bs-theme="light"] .navbar,
[data-bs-theme="dark"] .navbar {
    background-color: white !important;
    border-bottom: 1px solid #dee2e6 !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #333 !important;
}

.navbar-brand i {
    color: var(--bs-warning);
}

.navbar-nav .nav-link {
    color: #333 !important;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--bs-primary) !important;
}

/* Consistent nav link colors for white navbar */
[data-bs-theme="light"] .navbar-nav .nav-link,
[data-bs-theme="dark"] .navbar-nav .nav-link {
    color: #333 !important;
}

[data-bs-theme="light"] .navbar-nav .nav-link:hover,
[data-bs-theme="dark"] .navbar-nav .nav-link:hover {
    color: #0d6efd !important;
}

/* Enhanced navbar toggler for mobile */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 6px 10px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.navbar-toggler:focus {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Mobile navbar collapse improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--dropdown-bg);
        border: 1px solid var(--dropdown-border);
        border-radius: 8px;
        margin-top: 10px;
        padding: 15px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .navbar-nav .nav-link {
        padding: 10px 15px;
        border-radius: 6px;
        margin: 2px 0;
        transition: all 0.2s ease;
    }

    .navbar-nav .nav-link:hover {
        background-color: var(--dropdown-item-hover);
        transform: translateX(5px);
    }
}

/* Professional Card System */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--flippy-border-color);
    border-color: var(--flippy-primary);
    z-index: 10;
}

.card:active {
    transform: translateY(-4px) scale(1.01);
    transition: transform 0.1s ease;
}

/* Professional Card Variants */
.tech-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 1px solid var(--flippy-border-color);
    position: relative;
    overflow: hidden;
}

.gaming-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--flippy-gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.gaming-card:hover::before {
    transform: scaleX(1);
}

/* Enhanced Interactive Elements */
.nav-link, .navbar-nav .nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    margin: 0 4px;
    position: relative;
}

.nav-link:hover {
    background-color: rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
    color: var(--flippy-primary) !important;
}

.nav-link.active {
    background-color: rgba(99, 102, 241, 0.15);
    color: var(--flippy-primary) !important;
    font-weight: 600;
}

/* Smooth Page Transitions */
.fade-in-page {
    animation: pageTransition 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pageTransition {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Listing Cards */
.listing-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: var(--card-shadow);
}

.listing-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--flippy-primary);
    border-color: var(--flippy-primary);
}

.listing-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.listing-card:hover .card-img-top {
    transform: scale(1.1);
}

/* Enhanced Input Groups */
.input-group {
    position: relative;
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
    z-index: 2;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    z-index: 1;
}

.input-group .form-control:focus + .btn {
    border-color: var(--flippy-primary);
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.15);
}

/* Multi-step Form Enhancements */
.step-indicator {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.step-indicator.active .rounded-circle {
    background-color: var(--flippy-primary) !important;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.step-indicator.completed .rounded-circle {
    background-color: var(--flippy-success) !important;
    transform: scale(1.05);
}

.step-indicator:hover .rounded-circle {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

/* Category Cards */
.category-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--accent-bg) 100%);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--flippy-primary);
    box-shadow: 0 20px 40px -8px var(--flippy-shadow-hover);
}

.category-card:active {
    transform: translateY(-4px) scale(0.98);
    transition: transform 0.1s ease;
}

.category-card.selected {
    border-color: var(--flippy-primary) !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -8px var(--flippy-shadow-hover);
}

.category-card .category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--flippy-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Trust Indicator Cards */
/* Enhanced Message Bubbles */
.message-bubble {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    max-width: 75%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
    hyphens: auto;
}

.message-bubble p,
.message-bubble div,
.message-bubble span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
    margin: 0;
}

.message-bubble a {
    word-break: break-all;
    overflow-wrap: anywhere;
}

.message-sent {
    background: linear-gradient(135deg, var(--flippy-primary) 0%, rgba(99, 102, 241, 0.9) 100%);
    color: white;
    border-radius: 20px 6px 20px 20px;
    margin-left: auto;
}

.message-received {
    background: var(--card-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--card-border);
    border-radius: 6px 20px 20px 20px;
    margin-right: auto;
}

.message-bubble:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Enhanced Table Styles */
.table {
    --bs-table-bg: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table th {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--flippy-primary);
    font-weight: 600;
    border-bottom: 2px solid var(--flippy-primary);
    padding: 1rem;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--card-border);
    transition: background-color 0.2s ease;
}

.table tbody tr:hover td {
    background-color: rgba(99, 102, 241, 0.05);
}

.trust-card {
    background: linear-gradient(135deg, var(--flippy-success) 10%, transparent 50%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    position: relative;
}

.trust-card::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--flippy-success);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Enhanced Gaming Messaging UI - jawa.gg inspired */
#messages-container {
    scrollbar-width: thin;
    scrollbar-color: var(--bs-border-color) transparent;
}

/* Gaming Card Enhancements */
.gaming-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(99, 102, 241, 0.02) 100%);
    border: 1px solid var(--flippy-border-color);
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gaming-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--flippy-gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gaming-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

/* Gaming Badge System */
.badge-gaming {
    background: linear-gradient(135deg, var(--flippy-primary), var(--flippy-secondary));
    color: white;
    border-radius: 20px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    .gaming-card {
        border-radius: 16px;
        margin-bottom: 1rem;
    }
    
    .gaming-card .card-body {
        padding: 1rem;
    }
    
    .message-bubble {
        max-width: 90%;
        font-size: 0.9rem;
        padding: 12px 16px;
        border-radius: 16px 16px 4px 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    
    .message-sent {
        border-radius: 16px 16px 4px 16px;
    }
    
    .message-received {
        border-radius: 16px 16px 16px 4px;
    }
    
    .offer-card, .payment-card {
        margin: 0.5rem 0;
        border-radius: 12px;
    }
    
    .btn-group-mobile {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-group-mobile .btn {
        width: 100%;
        margin: 0;
        padding: 0.75rem;
    }
    
    #messages-container {
        height: 50vh !important;
        min-height: 300px;
    }
    
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .display-6 {
        font-size: 1.25rem;
    }
    
    .user-avatar-large {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 576px) {
    .gaming-card {
        border-radius: 12px;
        margin-bottom: 0.75rem;
    }
    
    .message-bubble {
        max-width: 95%;
        font-size: 0.85rem;
        padding: 10px 14px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .btn-message-action {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .quick-amount-btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Enhanced Error States */
.error-message {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: var(--flippy-danger);
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.success-message {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: var(--flippy-success);
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
    animation: slideInFromTop 0.5s ease;
}

@keyframes slideInFromTop {
    0% { transform: translateY(-20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Loading States for Better UX */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: inherit;
}

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

/* Message Status Indicators */
.message-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.7;
}

.status-sent::before {
    content: '✓';
    color: var(--flippy-primary);
}

.status-delivered::before {
    content: '✓✓';
    color: var(--flippy-primary);
}

.status-read::before {
    content: '✓✓';
    color: var(--flippy-success);
}

/* Enhanced Scrollbar Styling */
#messages-container::-webkit-scrollbar {
    width: 6px;
}

#messages-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

#messages-container::-webkit-scrollbar-thumb {
    background: var(--flippy-primary);
    border-radius: 3px;
    transition: background 0.3s ease;
}

#messages-container::-webkit-scrollbar-thumb:hover {
    background: var(--flippy-primary-dark);
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1060;
}

.toast-gaming {
    background: var(--card-bg);
    border: 1px solid var(--flippy-border-color);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    min-width: 300px;
}

.toast-gaming .toast-header {
    background: var(--flippy-gradient-primary);
    color: white;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
}

.toast-gaming .toast-body {
    padding: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Connection Status Indicator */
.connection-status {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 1050;
    transition: all 0.3s ease;
}

.connection-online {
    background: rgba(40, 167, 69, 0.9);
    color: white;
    border: 1px solid rgba(40, 167, 69, 1);
}

.connection-offline {
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: 1px solid rgba(220, 53, 69, 1);
    animation: pulse 2s infinite;
}

/* Focus Management for Accessibility */
.message-input-enhanced:focus {
    outline: 2px solid var(--flippy-primary);
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid var(--flippy-primary);
    outline-offset: 2px;
}

/* Dark Mode Enhancements */
[data-bs-theme="dark"] .gaming-card {
    background: linear-gradient(135deg, var(--bs-gray-800) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-color: var(--bs-gray-600);
}

[data-bs-theme="dark"] .message-bubble {
    background-color: rgba(73, 80, 87, 0.9);
}

[data-bs-theme="dark"] .error-message {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2), rgba(220, 53, 69, 0.1));
    border-color: rgba(220, 53, 69, 0.4);
}

[data-bs-theme="dark"] .success-message {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2), rgba(40, 167, 69, 0.1));
    border-color: rgba(40, 167, 69, 0.4);
}

#messages-container::-webkit-scrollbar {
    width: 6px;
}

#messages-container::-webkit-scrollbar-track {
    background: transparent;
}

#messages-container::-webkit-scrollbar-thumb {
    background-color: var(--bs-border-color);
    border-radius: 3px;
}

.message-bubble {
    max-width: 75%;
    min-width: 120px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid transparent;
    display: inline-block;
    hyphens: auto;
}

.message-bubble p,
.message-bubble div,
.message-bubble span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
}

.message-bubble a,
.message-bubble a[href] {
    word-break: break-all;
    overflow-wrap: anywhere;
}

.message-sent {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
    margin-left: auto;
    max-width: 75%;
}

.message-received {
    background-color: #f8f9fa;
    color: #212529;
    max-width: 75%;
    border-color: #dee2e6;
}

[data-bs-theme="dark"] .message-received {
    background-color: #495057;
    color: #f8f9fa;
    border-color: #6c757d;
}

/* Remove all the complex message input styling that was causing issues */

/* Fix form control visibility issues */
.form-control {
    background-color: var(--bs-body-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
}

.form-control:focus {
    background-color: var(--bs-body-bg);
    border-color: var(--bs-primary);
    color: var(--bs-body-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

[data-bs-theme="dark"] .form-control {
    background-color: var(--bs-gray-800);
    border-color: var(--bs-gray-600);
    color: var(--bs-gray-100);
}

[data-bs-theme="dark"] .form-control:focus {
    background-color: var(--bs-gray-800);
    border-color: var(--bs-primary);
    color: var(--bs-gray-100);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Selection visibility fixes */
::selection {
    background-color: rgba(13, 110, 253, 0.3);
    color: inherit;
}

[data-bs-theme="light"] ::selection {
    background-color: rgba(13, 110, 253, 0.2);
    color: #212529;
}

[data-bs-theme="dark"] ::selection {
    background-color: rgba(13, 110, 253, 0.4);
    color: #ffffff;
}

/* Fix text selection in form controls */
.form-control::selection {
    background-color: rgba(13, 110, 253, 0.3);
    color: inherit;
}

/* Conversation item hover fixes */
.conversation-item {
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 2px;
}

.conversation-item:hover {
    background-color: var(--bs-gray-100);
    transform: translateX(3px);
}

[data-bs-theme="dark"] .conversation-item:hover {
    background-color: var(--bs-gray-800);
}

/* Message Compose Textarea Wrapping */
textarea[name="content"],
.message-compose-textarea {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    resize: vertical;
    overflow-y: auto;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Handle code blocks and pre-formatted text in messages */
.message-bubble pre,
.message-bubble code {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    overflow-x: auto;
}

/* Ensure listing titles and small text also wrap properly */
.message-bubble small {
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
}

/* Strong emphasis text wrapping */
.message-bubble strong {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Responsive messaging */
@media (max-width: 768px) {
    .message-bubble {
        max-width: 85%;
        font-size: 0.9rem;
    }
    
    textarea[name="content"] {
        min-height: 60px;
    }
}

/* Form control improvements */
.form-control, .form-select {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Fix checkbox and label styling */
.form-check-input {
    border: 2px solid var(--bs-border-color);
    background-color: var(--bs-body-bg);
}

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.form-check-label {
    color: var(--bs-body-color);
    cursor: pointer;
}

[data-bs-theme="dark"] .form-check-input {
    border-color: var(--bs-gray-600);
}

[data-bs-theme="dark"] .form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.card-img-top {
    transition: opacity 0.2s ease-in-out;
}

.card-img-top:hover {
    opacity: 0.9;
}

/* Listing cards specific styling */
.listing-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease, z-index 0.2s ease;
}

.listing-card:hover {
    z-index: 15;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.listing-card .card-body {
    padding: 1.25rem;
    position: relative;
    z-index: 2;
}

/* Modern Gaming Button System */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    font-weight: 600;
    border-width: 2px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Gaming Primary Button */
.btn-primary {
    background: var(--flippy-gradient-primary);
    border: 2px solid var(--flippy-primary);
    color: white;
    position: relative;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
    border-color: var(--flippy-primary-light);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* Gaming Accent Button */
.btn-accent {
    background: var(--flippy-gradient-accent);
    border: 2px solid var(--flippy-accent);
    color: white;
}

.btn-accent:hover {
    background: var(--flippy-gradient-gaming);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

/* Category Buttons */
.btn-category {
    background: transparent;
    border: 2px solid var(--flippy-border-color);
    color: var(--bs-body-color);
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.btn-category:hover {
    background: var(--flippy-primary);
    border-color: var(--flippy-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-category.active {
    background: var(--flippy-primary);
    border-color: var(--flippy-primary);
    color: white;
}

/* Gaming Badge System */
.badge {
    font-weight: 600;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-verified {
    background: var(--flippy-gradient-success);
    color: white;
    border: 1px solid var(--flippy-success);
}

.badge-gaming {
    background: var(--flippy-gradient-gaming);
    color: white;
}

.badge-pc { background: var(--category-pc); color: white; }
.badge-gpu { background: var(--category-gpu); color: white; }
.badge-cpu { background: var(--category-cpu); color: white; }
.badge-console { background: var(--category-console); color: white; }
.badge-peripheral { background: var(--category-peripheral); color: white; }
.badge-storage { background: var(--category-storage); color: white; }

/* Seller Verification Indicators */
.seller-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--flippy-gradient-success);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.seller-badge.verified::before {
    content: '✓';
    background: white;
    color: var(--flippy-success);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.trust-score {
    background: var(--flippy-gradient-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Professional Hero Section */
.hero-tech {
    background: var(--flippy-gradient-hero);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

/* Hero section logo enhancement - optimized size */
.hero-tech img[src*="flippys-logo"],
.hero-section img[src*="flippys-logo"] {
    height: 90px !important;
    width: auto !important;
}

.hero-tech img[src*="flippys-logo"]:hover,
.hero-section img[src*="flippys-logo"]:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.hero-gaming::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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-gaming .container {
    position: relative;
    z-index: 2;
}

/* Floating Theme Toggle Button */
.theme-toggle-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
}

.theme-toggle-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-bs-theme="dark"] .theme-toggle-btn {
    background: rgba(33, 37, 41, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffc107;
}

[data-bs-theme="dark"] .theme-toggle-btn:hover {
    background: rgba(33, 37, 41, 1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="light"] .theme-toggle-btn {
    background: rgba(248, 249, 250, 0.9);
    border-color: rgba(0, 0, 0, 0.2);
    color: #495057;
}

[data-bs-theme="light"] .theme-toggle-btn:hover {
    background: rgba(248, 249, 250, 1);
    border-color: rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .theme-toggle-wrapper {
        bottom: 20px;
        right: 20px;
    }

    .theme-toggle-btn {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
}

.btn-group-vertical .btn {
    border-radius: 0;
}

.btn-group-vertical .btn:first-child {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.btn-group-vertical .btn:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* Form styling */
.form-control,
.form-select {
    background-color: var(--bs-body-bg);
    border: 2px solid var(--bs-border-color);
    color: var(--bs-body-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    height: auto;
    min-height: 40px;
    font-size: 14px;
    padding: 8px 12px;
}

/* Smaller form controls for specific contexts */
.form-control-sm,
textarea.form-control {
    min-height: 36px;
    font-size: 13px;
    padding: 6px 10px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: none;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

/* Light mode form adjustments */
[data-bs-theme="light"] .form-control,
[data-bs-theme="light"] .form-select {
    background-color: #ffffff;
    border-color: #ced4da;
    color: #212529;
}

[data-bs-theme="light"] .form-control::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

[data-bs-theme="light"] .form-control:focus,
[data-bs-theme="light"] .form-select:focus {
    background-color: #ffffff;
    border-color: #0d6efd;
    color: #212529;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #1e293b;
    border-color: #475569;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: #94a3b8;
    opacity: 0.7;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #1e293b;
    border-color: #3b82f6;
    color: #f1f5f9;
}

/* Badge styling */
.badge {
    font-weight: 500;
    border-radius: 4px;
}

/* Price display */
.price-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-success);
}

/* Status badges with icons */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Loading states */
.loading-spinner {
    width: 1.5rem;
    height: 1.5rem;
}

/* PayPal button customization */
#paypal-button-container {
    max-width: 400px;
    margin: 0 auto;
}

/* Admin dashboard stats */
.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card .card-body {
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

/* Table styling */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
}

.table {
    margin-bottom: 0;
    background-color: var(--card-bg);
    font-size: 0.95rem;
}

.table th {
    border-bottom: 2px solid var(--bs-border-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    background-color: var(--dropdown-item-hover);
    padding: 1rem 0.75rem;
}

.table td {
    border-top: 1px solid var(--bs-border-color);
    vertical-align: middle;
    padding: 1rem 0.75rem;
}

/* Admin table improvements */
.table-hover tbody tr:hover {
    background-color: var(--dropdown-item-hover) !important;
    transform: translateX(2px);
    transition: all 0.2s ease;
}

/* Listing cards improvements */
.listing-card {
    transition: all 0.3s ease;
    min-height: 400px;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.listing-card .card-body {
    padding: 1.5rem;
}

.listing-card .card-title {
    font-size: 1.1rem;
    line-height: 1.3;
}

/* Button improvements for listings */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.d-flex.gap-2 .btn {
    min-width: auto;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--dropdown-item-hover);
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: var(--dropdown-item-hover) !important;
}

/* Pagination styling */
.pagination .page-link {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: transparent;
    color: var(--bs-body-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-success {
    border-left-color: var(--bs-success);
}

.alert-warning {
    border-left-color: var(--bs-warning);
}

.alert-danger {
    border-left-color: var(--bs-danger);
}

.alert-info {
    border-left-color: var(--bs-info);
}

/* Modal styling */
.modal {
    z-index: 1060;
}

.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1061;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced dropdown styling */
.dropdown-menu {
    background-color: var(--dropdown-bg) !important;
    border: 2px solid var(--dropdown-border) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    z-index: 1050;
    position: absolute;
}

[data-bs-theme="light"] .dropdown-menu {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    color: var(--bs-body-color) !important;
    padding: 10px 15px;
    border-radius: 8px;
    margin: 2px 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--dropdown-item-hover) !important;
    color: var(--bs-body-color) !important;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .dropdown-item {
    color: #212529 !important;
}

[data-bs-theme="light"] .dropdown-item:hover,
[data-bs-theme="light"] .dropdown-item:focus {
    background-color: #e9ecef !important;
    color: #212529 !important;
}

[data-bs-theme="dark"] .dropdown-item {
    color: #adb5bd !important;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
    background-color: #495057 !important;
    color: #ffffff !important;
}

.dropdown-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Dropdown dividers */
.dropdown-divider {
    border-color: var(--dropdown-border);
    margin: 8px 0;
}

/* Sticky Footer Layout */
/* Body and HTML setup for sticky footer */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Footer styling */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-top: 1px solid #333;
    margin-top: auto;
    min-height: 400px;
}

/* Footer logo enhancement - clean design */
footer img[src*="flippys-logo"] {
    height: 70px !important;
    width: auto !important;
}

footer img[src*="flippys-logo"]:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 4px 12px rgba(255,255,255,0.2));
}

/* Footer link hover effects */
.footer-link {
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-link:hover {
    opacity: 1;
    transform: translateX(5px);
    color: #0d6efd !important;
}

/* Footer section headings */
.footer-section h6 {
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

/* Discord button styling */
.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Payment security section */
.payment-security {
    background: rgba(13, 110, 253, 0.1);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(13, 110, 253, 0.2);
    backdrop-filter: blur(10px);
}

/* Responsive footer adjustments */
@media (max-width: 768px) {
    footer .col-lg-4,
    footer .col-lg-2 {
        margin-bottom: 2rem;
    }

    footer .row .col-md-6:last-child {
        text-align: center !important;
        margin-top: 1rem;
    }
}

/* Search and filter section */
.filter-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Empty state styling */
.empty-state {
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state i {
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

/* Image placeholder styling */
.image-placeholder {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1));
    border: 2px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Profile avatar styling */
.profile-avatar {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }

    .btn-group-vertical .btn {
        margin-bottom: 0.25rem;
    }

    .table-responsive {
        font-size: 0.875rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Search Loading Animation with Circuit Board Logo */
.search-loading-logo {
    display: inline-block;
    width: 32px;
    height: 32px;
    background-image: url('/static/uploads/flippys-logo-new.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: white;
    border-radius: 6px;
    padding: 2px;
    animation: circuit-branch 3s ease-in-out infinite;
}

@keyframes circuit-branch {
    0% {
        opacity: 0.8;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) rotate(180deg);
    }
    100% {
        opacity: 0.8;
        transform: scale(1) rotate(360deg);
    }
}

.search-loading-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.search-loading-text {
    color: var(--bs-primary);
    font-weight: 500;
    animation: pulse-text 2s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.3s ease-in-out;
}

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

/* Success/Error states */
.success-state {
    color: var(--bs-success);
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-radius: 8px;
    padding: 1rem;
}

.error-state {
    color: var(--bs-danger);
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 8px;
    padding: 1rem;
}

/* Search and marketplace specific fixes */
.sticky-top {
    z-index: 1020;
    position: sticky !important;
}

#search-results {
    position: relative;
    z-index: 1;
}

#search-results .row {
    position: relative;
    z-index: 1;
}

#search-results .card {
    position: relative;
    z-index: 2;
}

#search-results .card:hover {
    z-index: 20;
}

/* Filter sidebar */
.filter-card {
    position: relative;
    z-index: 5;
}

/* Pagination */
.pagination {
    position: relative;
    z-index: 1;
}

/* Loading overlay */
#loading {
    position: relative;
    z-index: 5;
}

/* Compact dropdown menu styles */
.dropdown-menu-compact {
    min-width: 320px;
    padding: 0.5rem 0;
}

.dropdown-row {
    margin: 0;
}

.dropdown-row .d-flex .dropdown-item {
    border-radius: 0;
    margin: 0;
    padding: 0.5rem 1rem;
    border-right: 1px solid var(--dropdown-border);
}

.dropdown-row .d-flex .dropdown-item:last-child {
    border-right: none;
}

/* Quick Actions dropdown grid styling */
.dropdown-menu .row .dropdown-item {
    border-radius: 6px;
    margin: 2px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-menu .row .dropdown-item:hover {
    background-color: var(--bs-primary);
    color: white;
    transform: translateY(-1px);
}

.dropdown-menu .row .dropdown-item i {
    font-size: 1.1rem;
}

/* Custom utility classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.box-shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.border-gradient {
    border: 1px solid;
    border-image: linear-gradient(45deg, var(--bs-primary), var(--bs-info)) 1;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }

    .card {
        break-inside: avoid;
    }
}

/* Enhanced Buttery Smooth UI Elements */

/* Improved transitions for all interactive elements */
.btn, .card, .form-control, .form-select, .modal, .alert {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Enhanced card hover with subtle depth */
.card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25) !important;
}

/* Smooth button interactions */
.btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

.btn:active {
    transform: translateY(-1px) !important;
    transition: transform 0.1s !important;
}

/* Form field enhancements */
.form-control:focus, .form-select:focus {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2) !important;
}

/* Profile avatar with gradient and glow */
.profile-avatar, .bg-primary.rounded-circle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
    animation: profileGlow 3s ease-in-out infinite alternate;
}

@keyframes profileGlow {
    0% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.4); }
    100% { box-shadow: 0 0 30px rgba(118, 75, 162, 0.6); }
}

/* Enhanced modal animations */
.modal.fade .modal-dialog {
    transform: scale(0.8) translateY(-50px);
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/*Navbar glass effect is now handled in the main navbar section above */

/* Enhanced loading states */
.spinner-border {
    animation: spinner-glow 1.5s linear infinite;
}

@keyframes spinner-glow {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
        opacity: 0.8;
    }
    50% { 
        box-shadow: 0 0 25px rgba(13, 110, 253, 0.8);
        opacity: 1;
    }
}

/* Page transitions */
.fade-in-page {
    animation: fadeInPage 0.8s ease-out forwards;
}

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

/* Enhanced alerts */
.alert {
    border-left-width: 5px !important;
    animation: slideInAlert 0.5s ease-out;
}

@keyframes slideInAlert {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Smooth scrolling improvements */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Enhanced focus states for accessibility */
.btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.5);
    outline-offset: 2px;
}

/* Micro-interactions */
.badge {
    transition: all 0.2s ease;
}

.badge:hover {
    transform: scale(1.05);
}

/* Enhanced table interactions */
.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Footer gradient enhancement */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
}

/* Add subtle animations to page load */
.container {
    animation: containerFadeIn 0.6s ease-out;
}

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

/* Light mode text visibility improvements */
[data-bs-theme="light"] body {
    background-color: #f8f9fa;
    color: #212529;
}

[data-bs-theme="light"] .text-muted {
    color: #6c757d !important;
    opacity: 1;
}

[data-bs-theme="light"] .card {
    background-color: #ffffff;
    color: #212529;
    border-color: #dee2e6;
}

[data-bs-theme="light"] .card-body,
[data-bs-theme="light"] .card-title,
[data-bs-theme="light"] .card-text {
    color: #212529;
}

[data-bs-theme="light"] .btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

[data-bs-theme="light"] .btn-outline-secondary:hover {
    background-color: #6c757d;
    color: #ffffff;
}

[data-bs-theme="light"] .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.3);
}

[data-bs-theme="light"] .navbar-toggler:hover {
    border-color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Improved styles for listing cards and admin panel */
.listing-container {
    padding: 2rem 0;
}

.listing-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    height: 2.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-text {
    height: 3rem;
    overflow: hidden;
}

.price-display {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Admin Panel Improvements */
.admin-table {
    font-size: 0.85rem;
}

.admin-table th {
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    background-color: #343a40;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-table td {
    vertical-align: middle;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #eee;
}

.admin-table tr:hover {
    background-color: #f8f9fa;
}

.btn-group .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.btn-group .btn:not(:first-child) {
    border-left: 1px solid rgba(255,255,255,0.2);
}

.badge {
    font-size: 0.7rem;
    padding: 0.35em 0.65em;
    font-weight: 500;
}

/* My Listings Table */
.my-listings-table {
    font-size: 0.9rem;
}

.my-listings-table td {
    vertical-align: middle;
    padding: 1rem 0.75rem;
}

.my-listings-table img {
    border-radius: 8px;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .admin-table {
        font-size: 0.8rem;
    }

    .admin-table td, .admin-table th {
        padding: 0.5rem 0.25rem;
    }

    .btn-group .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }

    .card-title {
        font-size: 1rem;
        height: auto;
        -webkit-line-clamp: 3;
    }
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.table-loading {
    position: relative;
    opacity: 0.7;
}

.table-loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =================================== */
/* FLIPPY.GG ENHANCED BRAND IDENTITY  */
/* =================================== */

/* Enhanced Logo Responsive Design - Clean, no backdrop */
.navbar-brand img {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.navbar-brand img:hover {
    transform: translateY(-1px) scale(1.02);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

/* Universal logo styling - clean transparent design */
img[src*="flippys-logo"],
img[src*="flippys-logo-transparent"],
img[src*="flippys-logo-new"] {
    transition: all 0.3s ease !important;
    max-width: 100% !important;
    height: auto !important;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.1));
}

img[src*="flippys-logo"]:hover,
img[src*="flippys-logo-transparent"]:hover,
img[src*="flippys-logo-new"]:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

/* Optimized navbar logo size */
.navbar-brand img[src*="flippys-logo"] {
    height: 60px !important;
    width: auto !important;
}

/* Version text styling improvements */
.navbar-brand .version-text {
    font-family: var(--flippy-font-primary);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Card and content logo sizing */
.card img[src*="flippys-logo"],
.card-body img[src*="flippys-logo"],
.modal img[src*="flippys-logo"] {
    height: 50px !important;
    width: auto !important;
}

/* Message bubble logo sizing */
.message-bubble img[src*="flippys-logo"] {
    height: 35px !important;
    width: auto !important;
    transition: opacity 0.2s ease;
}

.message-bubble img[src*="flippys-logo"]:hover {
    opacity: 0.9;
}

/* Responsive Logo Sizes */
@media (max-width: 768px) {
    .navbar-brand img[src*="flippys-logo"] {
        height: 50px !important;
    }
    
    .hero-tech img[src*="flippys-logo"],
    .hero-section img[src*="flippys-logo"] {
        height: 70px !important;
    }
    
    footer img[src*="flippys-logo"] {
        height: 55px !important;
    }
}

@media (max-width: 576px) {
    .navbar-brand img[src*="flippys-logo"] {
        height: 45px !important;
    }
    
    .hero-tech img[src*="flippys-logo"],
    .hero-section img[src*="flippys-logo"] {
        height: 60px !important;
    }
    
    footer img[src*="flippys-logo"] {
        height: 45px !important;
    }
}

/* Enhanced Professional Blue Theme - Complementing New Logo */
:root {
    /* Primary Brand Colors - Matching New Logo Blue */
    --flippy-primary: #2563eb;        /* Professional blue matching logo */
    --flippy-primary-light: #3b82f6;   /* Light blue */
    --flippy-primary-dark: #1d4ed8;    /* Dark blue */
    --flippy-primary-rgb: 37, 99, 235;
    
    /* Circuit/Tech Theme Colors */
    --flippy-circuit-blue: #1e40af;    /* Deep circuit blue */
    --flippy-circuit-light: #60a5fa;   /* Light circuit blue */
    --flippy-tech-accent: #0ea5e9;     /* Tech accent blue */
    
    /* Professional Enhancement Colors */
    --flippy-success: #059669;         /* Professional green */
    --flippy-warning: #d97706;         /* Professional orange */
    --flippy-danger: #dc2626;          /* Professional red */
    --flippy-info: var(--flippy-tech-accent);
    
    /* Brand Gradients - Enhanced */
    --flippy-gradient-primary: linear-gradient(135deg, var(--flippy-primary) 0%, var(--flippy-primary-dark) 100%);
    --flippy-gradient-hero: linear-gradient(135deg, var(--flippy-circuit-blue) 0%, var(--flippy-primary) 50%, var(--flippy-tech-accent) 100%);
    --flippy-gradient-card: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(30, 64, 175, 0.1) 100%);
    
    /* Professional Shadows - Matching Logo Style */
    --flippy-shadow-logo: 0 2px 8px rgba(37, 99, 235, 0.15);
    --flippy-shadow-card: 0 4px 16px rgba(37, 99, 235, 0.08);
    --flippy-shadow-hover: 0 8px 25px rgba(37, 99, 235, 0.15);
}

/* Enhanced Brand Identity Elements */
.btn-primary {
    background: var(--flippy-gradient-primary);
    border: none;
    box-shadow: var(--flippy-shadow-logo);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--flippy-primary-dark) 0%, var(--flippy-circuit-blue) 100%);
    box-shadow: var(--flippy-shadow-hover);
    transform: translateY(-1px);
}

.text-primary {
    color: var(--flippy-primary) !important;
}

.bg-primary {
    background: var(--flippy-gradient-primary) !important;
}

/* Enhanced Card Styling - Professional Tech Marketplace */
.card {
    border: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: var(--flippy-shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: var(--flippy-shadow-hover);
    transform: translateY(-2px);
}

/* Professional Navbar Enhancement */
.navbar-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    border-bottom: 2px solid var(--flippy-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-family: var(--flippy-font-display);
    font-weight: 700;
    color: white !important;
}

/* Professional Focus States */
.form-control:focus {
    border-color: var(--flippy-primary);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.15);
}

.form-select:focus {
    border-color: var(--flippy-primary);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.15);
}

/* Enhanced Alert Styles - Professional Tech Theme */
.alert-primary {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(30, 64, 175, 0.05) 100%);
    border-left: 4px solid var(--flippy-primary);
    color: var(--flippy-primary-dark);
}

.alert-info {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(14, 165, 233, 0.05) 100%);
    border-left: 4px solid var(--flippy-tech-accent);
    color: #0c4a6e;
}

/* Professional Badge Styles */
.badge.bg-primary {
    background: var(--flippy-gradient-primary) !important;
    box-shadow: var(--flippy-shadow-logo);
}

/* Loading States - Tech Theme */
.loading-spinner {
    border-color: rgba(37, 99, 235, 0.3);
    border-top-color: var(--flippy-primary);
}

/* Professional Tech Marketplace Enhancements */
.tech-marketplace-header {
    background: var(--flippy-gradient-hero);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.tech-category-card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.tech-category-card:hover {
    border-color: var(--flippy-primary);
    background: var(--flippy-gradient-card);
    transform: translateY(-3px);
}

/* Professional Footer Enhancement */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-top: 2px solid var(--flippy-primary);
    color: #cbd5e1;
}

.footer-link:hover {
    color: var(--flippy-circuit-light) !important;
    text-decoration: none;
}

/* Responsive Enhancements for Professional Design */
@media (max-width: 992px) {
    .tech-marketplace-header {
        padding: 1.5rem 0;
    }
    
    .navbar-brand img {
        height: 40px !important;
    }
}

@media (max-width: 768px) {
    .tech-marketplace-header {
        padding: 1rem 0;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* Professional Animation Enhancements */
@keyframes tech-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(37, 99, 235, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.6);
    }
}

.tech-glow-effect {
    animation: tech-glow 3s ease-in-out infinite;
}

/* Brand Consistency - Professional Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--flippy-primary-dark);
    font-weight: 600;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--flippy-font-display);
    color: var(--flippy-primary);
}

/* Professional Link Styling */
a:not(.btn):not(.nav-link):not(.navbar-brand) {
    color: var(--flippy-primary);
    transition: color 0.2s ease;
}

a:not(.btn):not(.nav-link):not(.navbar-brand):hover {
    color: var(--flippy-primary-dark);
    text-decoration: underline;
}

/* Enhanced Professional Table Styling */
.table-hover tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

.table th {
    border-bottom: 2px solid var(--flippy-primary);
    color: var(--flippy-primary-dark);
    font-weight: 600;
}