/* ============================================
   QScrap Garage Dashboard - Qatar Premium Edition
   Single unified theme - No dark mode
   ============================================ */

/* Qatar Premium Theme */
:root {
    /* Qatar Premium Palette */
    --qatar-maroon: #8D1B3D;
    --qatar-maroon-dark: #6B1530;
    --qatar-maroon-light: #F5E6EB;
    --gold: #C9A227;
    --gold-light: #F5F0E1;

    /* Neutral Scale */
    --gray-50: #F8F8F8;
    --gray-100: #F2F2F2;
    --gray-200: #E5E5E5;
    --gray-300: #D5D5D5;
    --gray-400: #9A9A9A;
    --gray-500: #6A6A6A;
    --gray-600: #4A4A4A;
    --gray-700: #3A3A3A;
    --gray-800: #2A2A2A;
    --gray-900: #1A1A1A;

    /* Layout */
    --bg-primary: var(--gray-50);
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;

    /* Accent - Qatar Maroon */
    --accent: var(--qatar-maroon);
    --accent-glow: rgba(141, 27, 61, 0.2);

    /* Semantic */
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;

    /* Text */
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);

    /* Borders & Shadows */
    --border: var(--gray-200);
    --shadow: rgba(0, 0, 0, 0.08);
    --input-bg: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth theme transition */
body,
.sidebar,
.stat-card,
.request-card,
.bid-card,
.order-card,
.modal,
.login-card {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: 100vh;
    color: var(--text-primary);
}

/* Login Screen */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

.login-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo-img {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    border-radius: 24px;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.3),
        0 0 40px 8px rgba(141, 27, 61, 0.4),
        0 0 80px 16px rgba(141, 27, 61, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.3);
    animation: authLogoFloat 3s ease-in-out infinite, authLogoGlow 2s ease-in-out infinite alternate;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-logo-img:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow:
        0 0 0 6px rgba(255, 255, 255, 0.4),
        0 0 60px 12px rgba(141, 27, 61, 0.5),
        0 0 100px 24px rgba(141, 27, 61, 0.3),
        0 30px 50px rgba(0, 0, 0, 0.35);
}

@keyframes authLogoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes authLogoGlow {
    0% {
        filter: brightness(1) drop-shadow(0 0 10px rgba(141, 27, 61, 0.3));
    }

    100% {
        filter: brightness(1.1) drop-shadow(0 0 20px rgba(141, 27, 61, 0.5));
    }
}

.login-logo h1 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--qatar-maroon-light, #A82050) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-logo p {
    color: var(--text-secondary);
    margin-top: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--qatar-maroon-dark, #6B1530) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

/* Dashboard Layout */
.dashboard {
    display: none;
}

.dashboard.active {
    display: flex;
}

.sidebar {
    width: 280px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    z-index: var(--z-fixed);
    transition: transform var(--transition-normal);
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: var(--shadow-xl);
    }
}

/* Premium Sidebar Header with Logo */
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo-img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.2),
        0 0 20px 4px rgba(141, 27, 61, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.3);
    animation: sidebarLogoPulse 2.5s ease-in-out infinite;
    transition: all 0.3s ease;
}

.sidebar-logo-img:hover {
    transform: scale(1.1) rotate(3deg);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.3),
        0 0 30px 6px rgba(141, 27, 61, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.4);
}

@keyframes sidebarLogoPulse {

    0%,
    100% {
        box-shadow:
            0 0 0 2px rgba(255, 255, 255, 0.2),
            0 0 20px 4px rgba(141, 27, 61, 0.3),
            0 4px 12px rgba(0, 0, 0, 0.3);
    }

    50% {
        box-shadow:
            0 0 0 3px rgba(255, 255, 255, 0.3),
            0 0 25px 6px rgba(141, 27, 61, 0.45),
            0 4px 16px rgba(0, 0, 0, 0.35);
    }
}

.sidebar-brand {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent) 0%, var(--qatar-maroon-light, #A82050) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    letter-spacing: -0.5px;
}

.partner-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

/* Legacy sidebar-logo class for backward compatibility */
.sidebar-logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--qatar-maroon-light, #A82050) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.sidebar-subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 20px;
    padding-left: 2px;
}

.nav-menu {
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--qatar-maroon-dark, #6B1530) 100%);
    color: white;
}

.nav-item i {
    font-size: 20px;
}

.nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Pulsing badge for urgent items */
.nav-badge.pulse-badge {
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--qatar-maroon-light, #A82050) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

.user-role {
    color: var(--text-secondary);
    font-size: 12px;
}

.btn-logout {
    width: 100%;
    padding: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: var(--danger);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Theme Toggle Switch */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.theme-toggle:hover {
    border-color: var(--accent);
}

.theme-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.theme-toggle-label i {
    font-size: 18px;
    color: var(--accent);
}

.theme-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background: var(--border);
    border-radius: 13px;
    transition: all 0.3s;
}

.theme-switch::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .theme-switch {
    background: var(--accent);
}

[data-theme="light"] .theme-switch::before {
    transform: translateX(24px);
}

.theme-icon {
    transition: transform 0.3s, opacity 0.3s;
}

/* Dark mode (default): Show moon, hide sun */
.theme-icon-moon {
    opacity: 1;
}

.theme-icon-sun {
    display: none;
}

/* Light mode: Show sun, hide moon */
[data-theme="light"] .theme-icon-moon {
    display: none;
}

[data-theme="light"] .theme-icon-sun {
    display: inline;
    opacity: 1;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 32px;
    min-height: 100vh;
    transition: margin-left var(--transition-normal);
    width: 100%;
}

@media (max-width: 1024px) {
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none !important;
    font-size: 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    margin-right: 8px;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: block !important;
    }

    .page-header {
        margin-bottom: 24px;
    }

    /* Fix z-index issue: Sidebar must be above overlay (900) and dropdowns (1100) */
    .sidebar {
        z-index: 2000 !important;
    }
}

.page-title {
    font-size: 28px;
    font-weight: 700;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
    font-size: 14px;
    font-weight: 500;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.stat-icon.blue {
    background: rgba(141, 27, 61, 0.2);
    color: var(--accent);
}

.stat-icon.green {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.stat-icon.yellow {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.stat-icon.purple {
    background: rgba(168, 85, 247, 0.2);
    color: var(--qatar-maroon-light, #A82050);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Content Sections */
.section {
    display: none;
}

.section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
}

/* Request Cards */
.requests-grid {
    display: grid;
    gap: 16px;
}

.request-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    border-left: 4px solid var(--accent);
}

@media (max-width: 640px) {
    .request-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .request-card .btn-bid {
        width: 100%;
    }
}

.request-card:hover {
    transform: translateX(4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.request-card.new {
    border-left-color: var(--success);
    animation: slideIn 0.3s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.request-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.request-info p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.request-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.request-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-bid {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--qatar-maroon-dark, #6B1530) 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-bid:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px var(--accent-glow);
}

/* Bid Cards */
.bid-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 12px;
}

.bid-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.bid-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--success);
}

.bid-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.bid-status.pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.bid-status.accepted {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.bid-status.rejected {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.bid-status.withdrawn {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-secondary);
}

.bid-status.expired {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-secondary);
}

/* ===== PREMIUM BID CARD WITH INLINE TIMELINE ===== */
.bid-card-pro {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    gap: 24px;
    align-items: stretch;
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent);
}

.bid-card-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-left-color: var(--success);
}

.bid-card-pro.pending {
    border-left-color: var(--warning);
}

.bid-card-pro.accepted {
    border-left-color: var(--success);
}

.bid-card-pro.rejected {
    border-left-color: var(--danger);
    opacity: 0.7;
}

.bid-card-pro.withdrawn {
    border-left-color: var(--text-muted);
    opacity: 0.6;
}

.bid-card-pro.expired {
    border-left-color: var(--text-muted);
    opacity: 0.5;
}

.bid-card-left {
    display: flex;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.bid-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.bid-thumb-placeholder {
    width: 80px;
    height: 80px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bid-thumb-placeholder i {
    font-size: 28px;
    color: var(--text-muted);
}

.bid-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bid-amount-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bid-info .bid-amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--success);
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bid-info .bid-amount.final {
    font-size: 24px;
}

/* Strikethrough original price when negotiated */
.bid-amount-original {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.7;
}

/* Negotiated badge */
.negotiated-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.negotiated-badge i {
    font-size: 10px;
}

/* Order number badge */
.order-number-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(141, 27, 61, 0.12);
    padding: 4px 10px;
    border-radius: 8px;
    margin-top: 4px;
}

.order-number-badge i {
    font-size: 12px;
}


.bid-status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bid-status-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.bid-status-badge.accepted {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.bid-status-badge.rejected {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.bid-status-badge.withdrawn {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-secondary);
}

.bid-status-badge.expired {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-secondary);
}

.bid-car {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bid-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.bid-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.bid-meta i {
    font-size: 13px;
}

/* Timeline Container */
.bid-timeline-container {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-left: 20px;
    border-left: 1px solid var(--border);
}

/* Loading Skeleton */
.timeline-loading {
    width: 100%;
}

.timeline-skeleton {
    height: 50px;
    background: linear-gradient(90deg, var(--bg-secondary) 0%, var(--bg-tertiary) 50%, var(--bg-secondary) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

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

    100% {
        background-position: -200% 0;
    }
}

/* Mini Timeline */
.mini-timeline {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 60px;
}

.step-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.timeline-step.garage .step-marker {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(141, 27, 61, 0.1);
}

.timeline-step.customer .step-marker {
    border-color: #10b981;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.timeline-step.waiting .step-marker {
    border-color: var(--text-muted);
    color: var(--text-muted);
    animation: pulse-muted 2s infinite;
}

@keyframes pulse-muted {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.timeline-step.accepted .step-marker {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}

.timeline-step.rejected .step-marker {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

.step-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.step-amount {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
}

.step-time {
    font-size: 9px;
    color: var(--text-muted);
}

.step-label {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
}

.step-status {
    font-size: 11px;
}

.step-status.accepted {
    color: #10b981;
}

.step-status.rejected {
    color: #ef4444;
}

.step-status.pending {
    color: #f59e0b;
}

.step-status.countered {
    color: #8D1B3D;
}

/* Timeline Connector */
.timeline-connector {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #10b981);
    min-width: 20px;
    max-width: 40px;
}

.timeline-connector.dashed {
    background: repeating-linear-gradient(90deg,
            var(--border) 0px,
            var(--border) 4px,
            transparent 4px,
            transparent 8px);
}

.timeline-more {
    font-size: 10px;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.timeline-error {
    color: var(--danger);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 900px) {
    .bid-card-pro {
        flex-direction: column;
        gap: 16px;
    }

    .bid-timeline-container {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 16px;
        justify-content: center;
    }
}


.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.order-number {
    font-weight: 700;
    font-size: 18px;
}

.order-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.order-status.confirmed {
    background: rgba(141, 27, 61, 0.2);
    color: var(--accent);
}

.order-status.preparing {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.order-status.in_transit {
    background: rgba(168, 85, 247, 0.2);
    color: var(--qatar-maroon-light, #A82050);
}

.order-status.delivered {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.order-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.btn-status {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-status:hover {
    opacity: 0.9;
}

.btn-status.next {
    background: var(--success);
    color: white;
}

.btn-cancel {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

/* Thumbnails */
.request-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.thumb {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.thumb:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    animation: fadeIn 0.2s ease-out;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
    overflow: hidden;
}

.lightbox-content:active {
    cursor: grabbing;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.1s ease-out;
    transform-origin: center;
    user-select: none;
    pointer-events: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-toolbar {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    z-index: 2002;
    backdrop-filter: blur(5px);
}

.lightbox-toolbar button {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.lightbox-toolbar button:hover {
    transform: scale(1.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-can-drag-hint {
    position: absolute;
    top: 20px;
    left: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    pointer-events: none;
}


.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}

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

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
    min-width: 300px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.info {
    border-left: 4px solid #3b82f6;
}

/* Undo Toast */
.undo-toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.undo-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.undo-btn:hover {
    background: #a82050;
    transform: scale(1.02);
}

.undo-btn .countdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 11px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

/* Bid Photo Upload */
.bid-photo-upload {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
}

.bid-photo-upload:hover {
    border-color: var(--accent);
    background: rgba(141, 27, 61, 0.05);
}

.bid-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.bid-photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.bid-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bid-photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Counter-Offer Respond Modal */
.counter-respond-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1500;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.counter-respond-modal.active {
    display: flex;
}

.counter-respond-content {
    background: var(--card-bg);
    border-radius: 16px;
    width: 100%;
    max-width: 450px;
    overflow: hidden;
}

.counter-respond-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.counter-respond-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.counter-respond-close {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
}

.counter-respond-body {
    padding: 24px;
}

.counter-price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(141, 27, 61, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
}

.counter-price-display .your-bid {
    text-align: left;
}

.counter-price-display .customer-offer {
    text-align: right;
}

.counter-price-display label {
    font-size: 12px;
    color: var(--text-muted);
}

.counter-price-display .price {
    font-size: 22px;
    font-weight: 800;
}

.counter-price-display .your-bid .price {
    color: var(--text-secondary);
    text-decoration: line-through;
}

.counter-price-display .customer-offer .price {
    color: var(--accent);
}

.counter-message-display {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 20px;
    font-style: italic;
    color: var(--text-secondary);
}

.counter-respond-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.counter-respond-btn {
    padding: 14px 8px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.counter-respond-btn.accept {
    background: var(--accent);
    color: white;
}

.counter-respond-btn.reject {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.counter-respond-btn.counter {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.counter-respond-btn i {
    font-size: 20px;
}

.counter-input-section {
    display: none;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.counter-input-section.active {
    display: block;
}

.counter-input-section label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.counter-input-row {
    display: flex;
    gap: 8px;
}

.counter-input-row input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
}

.counter-input-row button {
    padding: 12px 20px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.counter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Request Thumbnails */
.request-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.request-thumbnails .thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
    border: 2px solid var(--border);
    transition: all 0.2s;
}

.request-thumbnails .thumb:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

.request-thumbnails .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Technical Specs */
.tech-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    padding: 10px;
    background: rgba(141, 27, 61, 0.08);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.tech-specs .spec-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.tech-specs .spec-item i {
    color: var(--accent);
}

.tech-specs .spec-item.vin {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    font-family: 'Courier New', monospace;
}

.tech-specs .spec-item.vin strong {
    letter-spacing: 1px;
}

.tech-specs .spec-item.condition {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    font-weight: 600;
}

/* Request Card Actions */
.request-actions {
    display: flex;
    gap: 8px;
}

.btn-ignore {
    padding: 12px 20px;
    background: rgba(100, 116, 139, 0.2);
    border: none;
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ignore:hover {
    background: rgba(100, 116, 139, 0.3);
}

.request-card.ignored {
    opacity: 0.5;
    border-left-color: var(--text-secondary);
}

.request-card.ignored .btn-bid,
.request-card.ignored .btn-ignore {
    display: none;
}

.ignored-badge {
    padding: 8px 16px;
    background: rgba(100, 116, 139, 0.2);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
}

/* Cancelled Items Styling */
.order-card.cancelled,
.bid-card.cancelled {
    opacity: 0.7;
    position: relative;
    border-left-color: var(--danger);
}

.order-card.cancelled::before,
.bid-card.cancelled::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--danger), transparent);
    animation: cancelStrike 0.5s ease-out;
}

@keyframes cancelStrike {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.order-status.cancelled {
    background: rgba(239, 68, 68, 0.15) !important;
    color: var(--danger) !important;
}

.cancelled-overlay {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(239, 68, 68, 0.03) 10px,
            rgba(239, 68, 68, 0.03) 20px);
    pointer-events: none;
    border-radius: inherit;
}

/* Bid Submitted Badge */
.bid-submitted-badge {
    padding: 10px 20px;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 10px;
    color: var(--success);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.request-card.bidded {
    border-left-color: var(--success);
}

/* Bid Action Group */
.bid-action-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.btn-update-bid {
    padding: 8px 16px;
    background: rgba(141, 27, 61, 0.2);
    border: 1px solid var(--accent);
    border-radius: 8px;
    color: var(--accent);
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-update-bid:hover {
    background: var(--accent);
    color: white;
}

.btn-dismiss {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-dismiss:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SUBSCRIPTION SECTION
   ============================================ */
.subscription-current {
    margin-bottom: 24px;
}

.plan-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
}

.plan-card.current {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(141, 27, 61, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.plan-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.plan-badge {
    background: var(--accent);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-name {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.plan-price {
    margin-bottom: 20px;
}

.price-amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
}

.price-period {
    font-size: 16px;
    color: var(--text-secondary);
}

.plan-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.plan-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.plan-stat i {
    color: var(--accent);
    font-size: 18px;
    width: 24px;
}

.plan-actions {
    display: flex;
    gap: 12px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* ============================================
   EARNINGS SECTION
   ============================================ */
.earnings-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.earning-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.earning-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.earning-icon.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.earning-icon.processing {
    background: rgba(141, 27, 61, 0.15);
    color: var(--accent);
}

.earning-icon.completed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.earning-icon.month {
    background: rgba(139, 92, 246, 0.15);
    color: var(--qatar-maroon-dark, #6B1530);
}

.earning-info {
    display: flex;
    flex-direction: column;
}

.earning-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.earning-value {
    font-size: 20px;
    font-weight: 700;
}

/* Section Card */
.section-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.section-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(141, 27, 61, 0.05);
}

.section-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-card-header i {
    color: var(--accent);
}

/* Data Table */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .data-table th {
    background: rgba(255, 255, 255, 0.02);
}

.data-table tbody tr:hover {
    background: rgba(141, 27, 61, 0.05);
}

.data-table .empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.status-badge.processing {
    background: rgba(141, 27, 61, 0.15);
    color: var(--accent);
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.status-badge.failed {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

/* ============================================
   PROFESSIONAL LIGHTBOX
   ============================================ */
.pro-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.pro-lightbox.active {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.lightbox-container {
    position: relative;
    width: 90vw;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
    cursor: grab;
}

.lightbox-content:active {
    cursor: grabbing;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    transition: transform 0.1s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 12px 20px;
    border-radius: 30px;
    z-index: 10;
}

.lightbox-controls button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.lightbox-controls button:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-controls span {
    color: white;
    font-size: 14px;
    padding: 0 12px;
}

/* ============================================
   TECH SPECS & CONDITION BADGES
   ============================================ */
.tech-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.spec-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(115, 103, 240, 0.1);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.spec-item.vin {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.spec-item.vin strong {
    font-family: monospace;
    font-size: 11px;
}

.spec-item.condition {
    font-weight: 600;
}

.spec-item.condition.new {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.spec-item.condition.used {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.spec-item.condition.any {
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
}

/* ===== Custom Scrollbars ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
    transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Firefox Scrollbars */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg-primary);
}

/* ===== Skeleton Loading ===== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-card) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

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

    100% {
        background-position: -200% 0;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
button:focus-visible,
.btn:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ===== Selection Styles ===== */
::selection {
    background: var(--accent-glow);
    color: var(--text-primary);
}

/* ===== Enhanced Typography ===== */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.stat-value {
    font-feature-settings: 'tnum' 1;
    letter-spacing: -0.02em;
}

/* ===== Loading Skeleton Animation ===== */
@keyframes skeleton-shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    background: linear-gradient(90deg,
            var(--bg-secondary) 0%,
            rgba(255, 255, 255, 0.1) 20%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.1) 80%,
            var(--bg-secondary) 100%);
    background-size: 200px 100%;
    border-radius: 4px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    border-radius: 8px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-card {
    padding: 20px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
}

/* ===== Counter Animation ===== */
@keyframes count-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-value.animated {
    animation: count-up 0.5s ease-out forwards;
}

/* ===== Ripple Effect ===== */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
    opacity: 0;
}

/* ===== Enhanced Card Hover States ===== */
.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.request-card,
.bid-card,
.order-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.request-card:hover,
.bid-card:hover,
.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ===== Enhanced Empty States ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 64px;
    color: var(--text-secondary);
    opacity: 0.5;
    margin-bottom: 16px;
    display: block;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state-text {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 300px;
    margin: 0 auto;
}

/* ===== Button Micro-interactions ===== */
.btn {
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

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

.btn-primary:hover {
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* ===== Pulse Animation for Live Indicator ===== */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.live-dot {
    position: relative;
}

.live-dot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: pulse-ring 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===== Accessibility Improvements ===== */
.nav-item {
    position: relative;
}

.nav-item[aria-current="page"]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
}

/* ============================================
   PHASE 1: VISUAL UX ENHANCEMENTS
   ============================================ */

/* ===== 1. REQUEST URGENCY INDICATORS ===== */
.request-card {
    position: relative;
    overflow: hidden;
}

.request-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    transition: background 0.3s ease;
}

.request-card.urgency-high::before {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.request-card.urgency-medium::before {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.request-card.urgency-low::before {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.urgency-badge.high {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.urgency-badge.medium {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.urgency-badge.low {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

/* Time remaining countdown */
.time-remaining {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 4px 8px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.time-remaining.urgent {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    animation: pulse-warning 2s ease-in-out infinite;
}

@keyframes pulse-warning {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ===== 2. ORDER STATUS TIMELINE/STEPPER ===== */
.order-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin: 16px 0;
    position: relative;
}

.order-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--border);
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 3px solid var(--border);
    color: var(--text-secondary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.timeline-step.completed .timeline-icon {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.timeline-step.active .timeline-icon {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 0 0 4px rgba(141, 27, 61, 0.2);
    animation: pulse-active 2s ease-in-out infinite;
}

@keyframes pulse-active {

    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(141, 27, 61, 0.2);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(141, 27, 61, 0.1);
    }
}

.timeline-step.upcoming .timeline-icon {
    background: var(--bg-secondary);
    border-color: var(--border);
    color: var(--text-secondary);
}

.timeline-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    max-width: 70px;
}

.timeline-step.completed .timeline-label,
.timeline-step.active .timeline-label {
    color: var(--text-primary);
}

/* Progress bar between steps */
.timeline-progress {
    position: absolute;
    top: 50%;
    left: 10%;
    height: 3px;
    background: var(--success);
    transform: translateY(-50%);
    z-index: 1;
    transition: width 0.5s ease;
}

/* ===== 3. ENHANCED STATUS BADGES WITH ICONS ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge i {
    font-size: 14px;
}

.status-badge.pending {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.2) 100%);
    color: #f59e0b;
}

.status-badge.confirmed {
    background: linear-gradient(135deg, rgba(141, 27, 61, 0.2) 0%, rgba(79, 70, 229, 0.2) 100%);
    color: #8D1B3D;
}

.status-badge.ready {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
    color: #10b981;
}

.status-badge.in_transit {
    background: linear-gradient(135deg, rgba(141, 27, 61, 0.2) 0%, rgba(29, 78, 216, 0.2) 100%);
    color: #8D1B3D;
}

.status-badge.delivered {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
    color: #059669;
}

.status-badge.completed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.3);
}

.status-badge.cancelled {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
    color: #ef4444;
}

.status-badge.disputed {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
    color: #dc2626;
    border: 1px dashed rgba(220, 38, 38, 0.5);
}

/* ===== 4. SHIMMER LOADING ANIMATIONS ===== */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton-shimmer {
    background: linear-gradient(90deg,
            var(--bg-secondary) 0%,
            var(--bg-card) 20%,
            var(--bg-secondary) 40%,
            var(--bg-secondary) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
}

.skeleton-text {
    height: 14px;
    border-radius: 7px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 40%;
}

.skeleton-text.medium {
    width: 70%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-text.title {
    height: 20px;
    width: 50%;
    margin-bottom: 16px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.skeleton-btn {
    height: 40px;
    width: 120px;
    border-radius: 10px;
}

/* ===== 5. EARNINGS VISUAL IMPROVEMENTS ===== */
.earnings-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.earnings-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.earnings-amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--success);
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.earnings-amount .currency {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
}

.earnings-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.earnings-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.breakdown-item {
    text-align: center;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.breakdown-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.breakdown-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Pending/Paid visual indicator */
.earnings-progress {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 16px;
}

.earnings-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--success) 0%, #34d399 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Mini trend indicator */
.trend-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
}

.trend-indicator.up {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.trend-indicator.down {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.trend-indicator.neutral {
    color: var(--text-secondary);
    background: var(--bg-secondary);
}

/* ===== 6. BID COUNT BADGE ON REQUEST CARDS ===== */
.bid-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--qatar-maroon-dark, #6B1530) 100%);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.bid-count-badge.none {
    background: var(--border);
    color: var(--text-secondary);
}

.bid-count-badge.hot {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    animation: pulse-hot 1.5s ease-in-out infinite;
}

@keyframes pulse-hot {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ===== 7. CARD HOVER ENHANCEMENTS ===== */
.request-card,
.bid-card,
.order-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.request-card:hover,
.bid-card:hover,
.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow);
    border-color: var(--accent);
}

/* Focus states for accessibility */
.request-card:focus-within,
.bid-card:focus-within,
.order-card:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ===== 8. IMPROVED EMPTY STATES ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 2px dashed var(--border);
    border-radius: 20px;
}

.empty-state-icon {
    font-size: 56px;
    color: var(--accent);
    opacity: 0.5;
    margin-bottom: 20px;
}

.empty-state-action {
    margin-top: 20px;
}

.empty-state-action .btn {
    padding: 12px 24px;
}

/* ===== PAGINATION COMPONENT ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-1px);
}

.pagination-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    font-weight: 700;
}

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

.pagination-info {
    color: var(--text-secondary);
    font-size: 13px;
    padding: 0 12px;
}

.pagination-ellipsis {
    color: var(--text-secondary);
    padding: 0 4px;
}

/* ============================================
   PREMIUM UPGRADE STYLES - Top Header Bar
   ============================================ */

.top-header {
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    height: 64px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 100;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-greeting {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.header-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-datetime {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.header-datetime i {
    color: var(--accent);
}

.header-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
}

.header-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.header-btn.spinning i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--success);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

.status-indicator.offline {
    background: var(--danger);
    animation: none;
}

/* Adjust main content for top header */
.main-content {
    margin-top: 64px;
}

/* ============================================
   PREMIUM UPGRADE - Enhanced Stat Cards
   ============================================ */

.stat-card.premium {
    color: white;
    border: none;
}

.stat-card.premium .stat-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.stat-card.premium .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.stat-card.revenue-premium {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-card.orders-premium {
    background: linear-gradient(135deg, #8D1B3D 0%, var(--qatar-maroon-dark, #6B1530) 100%);
}

.stat-card.bids-premium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-card.earnings-premium {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.stat-card.clickable {
    cursor: pointer;
}

.stat-card.clickable:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ============================================
   PREMIUM UPGRADE - Quick Actions Panel
   ============================================ */

.quick-actions {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}

.quick-actions h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.action-btn i {
    font-size: 18px;
}

/* [REMOVED DUPLICATE NOTIFICATION CSS - See lines 4424+ for definitive styles] */

.notification-item .icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notification-item .icon.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.notification-item .icon.warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.notification-item .icon.info {
    background: rgba(141, 27, 61, 0.2);
    color: var(--accent);
}

.notification-item .icon.danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    color: var(--text-secondary);
    gap: 8px;
}

.notification-empty i {
    font-size: 32px;
    opacity: 0.5;
}

/* ============================================
   PREMIUM UPGRADE - Keyboard Shortcuts Modal
   ============================================ */

.shortcuts-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.shortcuts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--qatar-maroon-dark, #6B1530) 100%);
    color: white;
}

.shortcuts-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

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

.shortcuts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 24px;
}

.shortcuts-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shortcut-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.shortcut-item:last-child {
    border-bottom: none;
}

.shortcut-item span {
    color: var(--text-secondary);
    font-size: 14px;
}

kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 2px 0 var(--border);
}

.shortcuts-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.shortcuts-footer .btn-primary {
    width: auto;
    padding: 10px 32px;
}

/* ============================================
   PREMIUM UPGRADE - Activity Widget
   ============================================ */

.activity-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}

.activity-widget h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-widget h3 i {
    color: var(--accent);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.activity-item .icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.activity-item .icon.bid {
    background: rgba(141, 27, 61, 0.2);
    color: var(--accent);
}

.activity-item .icon.order {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.activity-item .icon.payment {
    background: rgba(236, 72, 153, 0.2);
    color: #ec4899;
}

.activity-item .content {
    flex: 1;
}

.activity-item .content .title {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

.activity-item .content .time {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ============================================
   PREMIUM UPGRADE - Subscription Badge
   ============================================ */

.subscription-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subscription-badge.demo {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.subscription-badge.basic {
    background: rgba(141, 27, 61, 0.2);
    color: var(--accent);
}

.subscription-badge.pro {
    background: rgba(168, 85, 247, 0.2);
    color: var(--qatar-maroon-light, #A82050);
}

.subscription-badge.enterprise {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.3));
    color: var(--success);
}

/* ============================================
   PREMIUM UPGRADE - Responsive Adjustments
   ============================================ */

@media (max-width: 1200px) {
    .shortcuts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-header {
        left: 0;
        padding: 0 16px;
    }

    .header-datetime {
        display: none;
    }

    .header-greeting {
        font-size: 14px;
    }

    .header-subtitle {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }

    .notifications-dropdown {
        width: 100vw;
        right: -16px;
        border-radius: 0 0 16px 16px;
    }

    .quick-actions {
        padding: 16px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Analytics Module - Premium Feature Styles
   ============================================ */

/* Upgrade Prompt */
.upgrade-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.upgrade-content {
    max-width: 480px;
    padding: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.upgrade-content h2 {
    font-size: 24px;
    margin: 20px 0 12px;
}

.upgrade-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.upgrade-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    text-align: left;
    margin-bottom: 24px;
}

.upgrade-features .feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.upgrade-features .feature i {
    color: var(--success);
}

/* Analytics Cards */
.charts-grid .card,
#customerInsightsCard {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(139, 92, 246, 0.05);
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 20px;
}

/* Performance Stats */
.perf-stat {
    text-align: center;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.perf-value {
    font-size: 28px;
    font-weight: 700;
}

.perf-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions select {
    padding: 8px 12px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

/* Mobile Menu Toggle - Explicitly hidden on desktop */
#mobileMenuBtn,
.page-header .menu-toggle,
button.menu-toggle {
    display: none !important;
}

@media (max-width: 1024px) {

    #mobileMenuBtn,
    .page-header .menu-toggle,
    button.menu-toggle {
        display: block !important;
    }
}

/* Notification Dropdown */
.header-notifications {
    position: relative;
    /* margin-right: 16px; Removed to align with header design */
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.notification-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.notification-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-secondary);
}

.notification-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    margin-top: 12px;
    overflow: hidden;
    animation: slideDown 0.2s ease-out;
}

.notification-dropdown.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.dropdown-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.mark-read-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.mark-read-btn:hover {
    text-decoration: underline;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 12px;
    transition: background 0.2s;
    cursor: pointer;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.notification-item.unread {
    background: rgba(141, 27, 61, 0.05);
    /* Slight accent background */
    border-left: 3px solid var(--accent);
}

.notification-item:last-child {
    border-bottom: none;
}

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
}

.notif-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.notif-message {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.notif-time {
    font-size: 11px;
    color: var(--text-muted);
}

.empty-state {
    padding: 32px;
    text-align: center;
    color: var(--text-muted);
}

/* ============================================
   OPERATIONS-STYLE NOTIFICATIONS (Standardized)
   ============================================ */
.header-notifications {
    position: relative;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.notification-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.notification-badge {
    position: absolute;
    top: 4px;
    /* Adjusted to sit nicely on icon */
    right: 4px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    animation: badgePulse 2s infinite;
    border: 2px solid var(--bg-secondary);
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* Plural class matching Operations */
.notifications-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    /* Increased slightly for arrow space */
    right: -10px;
    width: 360px;
    max-width: 90vw;
    /* Responsive fix for mobile */
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1100;
    overflow: hidden;
}

/* Visual Pointer Arrow */
.notifications-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 18px;
    /* Aligned with bell icon */
    width: 12px;
    height: 12px;
    background: var(--bg-card);
    transform: rotate(45deg);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    z-index: 1101;
}

.notifications-dropdown.show {
    display: block;
    animation: dropdownSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.notifications-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.notifications-header button {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.notifications-header button:hover {
    text-decoration: underline;
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.notification-item.unread {
    background: rgba(141, 27, 61, 0.04);
    border-left: 3px solid var(--accent);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item .icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}