/* ============================================ */
/* SELLNOW VERSION 1 - MAIN STYLESHEET          */
/* Developed By Global Tech                     */
/* Luxury Black, White & Gold Theme             */
/* ============================================ */

:root {
    --primary: #0F0F0F;
    --primary-light: #1A1A1A;
    --primary-lighter: #2A2A2A;
    --secondary: #FFFFFF;
    --secondary-dark: #E0E0E0;
    --accent: #D4AF37;
    --accent-dark: #B8960F;
    --accent-light: #F0D060;
    --ai: #7C3AED;
    --ai-light: #9D6EF5;
    --success: #28A745;
    --danger: #DC3545;
    --warning: #FFC107;
    --info: #17A2B8;
    --dark: #0F0F0F;
    --darker: #000000;
    --light: #F8F9FA;
    --muted: #6C757D;
    --border: #333333;
    --border-light: #444444;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition-speed: 0.3s;
}

/* ============================================ */
/* GLOBAL RESET & BASE STYLES                   */
/* ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    background: var(--primary);
    color: var(--secondary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================ */
/* TYPOGRAPHY                                   */
/* ============================================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--secondary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h5 { font-size: clamp(1rem, 1.5vw, 1.25rem); }
h6 { font-size: clamp(0.9rem, 1.2vw, 1rem); }

p { margin-bottom: 1rem; }

.text-gold { color: var(--accent) !important; }
.text-ai { color: var(--ai) !important; }
.text-muted { color: var(--muted) !important; }
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================ */
/* BUTTONS                                      */
/* ============================================ */
.btn {
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    border-radius: 6px;
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #000;
    font-weight: 600;
    border: none;
    padding: 0.625rem 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
    color: #000;
}

.btn-gold:active {
    transform: translateY(0);
}

.btn-outline-gold {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    font-weight: 600;
}

.btn-outline-gold:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.btn-ai {
    background: linear-gradient(135deg, var(--ai), var(--ai-light));
    color: #fff;
    font-weight: 600;
    border: none;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

.btn-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    color: #fff;
}

/* ============================================ */
/* CARDS                                        */
/* ============================================ */
.card {
    background: var(--primary-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all var(--transition-speed) ease;
    overflow: hidden;
}

.card:hover {
    border-color: var(--border-light);
}

.card-header {
    background: var(--primary-lighter);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
}

.card-footer {
    background: var(--primary-lighter);
    border-top: 1px solid var(--border);
    padding: 1rem 1.25rem;
}

.stat-card {
    border-left: 3px solid var(--accent);
}

.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ============================================ */
/* FORMS                                        */
/* ============================================ */
.form-control, .form-select {
    background: var(--dark);
    border: 1px solid var(--border);
    color: var(--secondary);
    padding: 0.625rem 0.875rem;
    border-radius: 6px;
    transition: all var(--transition-speed) ease;
    font-size: 0.9375rem;
}

.form-control:focus, .form-select:focus {
    background: var(--dark);
    border-color: var(--accent);
    color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: var(--muted);
    opacity: 0.7;
}

.form-label {
    color: var(--secondary-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.input-group-text {
    background: var(--primary-lighter);
    border-color: var(--border);
    color: var(--muted);
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* ============================================ */
/* NAVIGATION                                   */
/* ============================================ */
.navbar {
    background: var(--primary-light) !important;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    color: var(--accent) !important;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--secondary-dark) !important;
    font-weight: 500;
    transition: color var(--transition-speed) ease;
    padding: 0.5rem 1rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
}

/* ============================================ */
/* SIDEBAR                                      */
/* ============================================ */
.sidebar {
    background: var(--primary-light);
    min-height: 100vh;
    border-right: 1px solid var(--border);
    width: 280px;
    padding: 1.25rem 0;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar .nav-link {
    padding: 0.75rem 1.5rem;
    color: var(--secondary-dark) !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    border-right: 3px solid transparent;
    transition: all var(--transition-speed) ease;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(212, 175, 55, 0.08);
    color: var(--accent) !important;
    border-right-color: var(--accent);
}

.main-content {
    margin-left: 280px;
    padding: 1.5rem 2rem;
    min-height: 100vh;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1051;
    background: var(--accent);
    color: #000;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1049;
}

/* ============================================ */
/* TABLES                                       */
/* ============================================ */
.table {
    color: var(--secondary);
    margin-bottom: 0;
}

.table-dark {
    --bs-table-bg: var(--primary-light);
    --bs-table-border-color: var(--border);
    --bs-table-hover-bg: rgba(212, 175, 55, 0.05);
}

.table > thead > tr > th {
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    border-bottom-width: 1px;
    padding: 0.75rem 1rem;
}

.table > tbody > tr > td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

/* ============================================ */
/* BADGES                                       */
/* ============================================ */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
}

.badge-gold {
    background: var(--accent);
    color: #000;
}

.badge-ai {
    background: var(--ai);
    color: #fff;
}

/* ============================================ */
/* ALERTS                                       */
/* ============================================ */
.alert {
    border-radius: 8px;
    border: none;
    font-size: 0.9rem;
}

/* ============================================ */
/* MODALS                                       */
/* ============================================ */
.modal-content {
    background: var(--primary-light);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem;
}

.modal-footer {
    border-top: 1px solid var(--border);
    padding: 1rem 1.25rem;
}

/* ============================================ */
/* PAGINATION                                   */
/* ============================================ */
.pagination .page-link {
    background: var(--primary-lighter);
    border-color: var(--border);
    color: var(--secondary);
    padding: 0.5rem 0.875rem;
}

.pagination .page-link:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.pagination .active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    font-weight: 600;
}

.pagination .disabled .page-link {
    background: var(--primary-lighter);
    color: var(--muted);
}

/* ============================================ */
/* PROGRESS BARS                                */
/* ============================================ */
.progress {
    background: var(--primary-lighter);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    transition: width 0.5s ease;
}

/* ============================================ */
/* DROPDOWNS                                    */
/* ============================================ */
.dropdown-menu {
    background: var(--primary-light);
    border: 1px solid var(--border);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.dropdown-item {
    color: var(--secondary);
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
}

.dropdown-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent);
}

.dropdown-divider {
    border-color: var(--border);
}

/* ============================================ */
/* PRODUCT CARDS                                */
/* ============================================ */
.product-card {
    background: var(--primary-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--accent);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card .product-info {
    padding: 1rem;
}

.product-card .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.product-card .original-price {
    text-decoration: line-through;
    color: var(--muted);
    font-size: 0.875rem;
}

/* ============================================ */
/* STORE CARDS                                  */
/* ============================================ */
.store-card {
    background: var(--primary-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-speed) ease;
}

.store-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.store-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

/* ============================================ */
/* CAMPAIGN CARDS                               */
/* ============================================ */
.campaign-card {
    background: var(--primary-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    transition: all var(--transition-speed) ease;
}

.campaign-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ============================================ */
/* WALLET DISPLAY                               */
/* ============================================ */
.wallet-balance {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--accent);
}

.wallet-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================ */
/* AI WIDGET                                    */
/* ============================================ */
.ai-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.ai-widget-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ai), var(--ai-light));
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    transition: transform 0.2s ease;
}

.ai-widget-button:hover {
    transform: scale(1.1);
}

/* ============================================ */
/* BOOST BADGE                                  */
/* ============================================ */
.boost-badge {
    background: linear-gradient(135deg, #FF6B6B, #FF4500);
    color: #fff;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ============================================ */
/* VERIFIED BADGE                               */
/* ============================================ */
.verified-badge {
    color: var(--accent);
    font-size: 1.125rem;
}

/* ============================================ */
/* LOADING SPINNER                              */
/* ============================================ */
.spinner {
    border: 3px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================ */
/* SCROLL TO TOP BUTTON                         */
/* ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: none;
    z-index: 1000;
    font-size: 1.25rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ============================================ */
/* FOOTER                                       */
/* ============================================ */
.footer {
    background: var(--primary-light);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

/* ============================================ */
/* TOAST NOTIFICATIONS                          */
/* ============================================ */
.toast-container {
    z-index: 9999;
}

.toast {
    background: var(--primary-lighter);
    border: 1px solid var(--border);
    color: var(--secondary);
}

/* ============================================ */
/* UTILITY CLASSES                              */
/* ============================================ */
.bg-primary-dark { background: var(--primary-light); }
.border-gold { border-color: var(--accent) !important; }
.cursor-pointer { cursor: pointer; }
.object-fit-cover { object-fit: cover; }
.overflow-x-auto { overflow-x: auto; }
.flex-1 { flex: 1; }

/* ============================================ */
/* LAZY LOADING                                 */
/* ============================================ */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[data-src].loaded {
    opacity: 1;
}

/* ============================================ */
/* SKELETON LOADING                             */
/* ============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--primary-lighter) 25%, var(--border) 50%, var(--primary-lighter) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================ */
/* PRINT STYLES                                 */
/* ============================================ */
@media print {
    .sidebar, .navbar, .footer, .btn, .no-print, .ai-widget, .sidebar-toggle {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    body {
        background: #fff;
        color: #000;
    }
    .card {
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

/* ============================================ */
/* REDUCED MOTION                               */
/* ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ============================================ */
/* FOCUS VISIBLE                                */
/* ============================================ */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ============================================ */
/* SELECTION                                    */
/* ============================================ */
::selection {
    background: var(--accent);
    color: #000;
}