        /* Import base styles from previous phases */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary-blue: #1e40af;
            --secondary-blue: #3b82f6;
            --light-blue: #dbeafe;
            --dark-gray: #1f2937;
            --medium-gray: #6b7280;
            --light-gray: #f9fafb;
            --white: #ffffff;
            --accent-orange: #f59e0b;
            --success-green: #10b981;
            --border-color: #e5e7eb;
            --error-red: #ef4444;
            --purple: #8b5cf6;
            
            --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
            --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
            --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
            --radius: 8px;
            --radius-lg: 12px;
        }

        body {
            font-family: var(--font-primary);
            line-height: 1.6;
            color: var(--dark-gray);
            background-color: var(--light-gray);
        }

        /* Header & Navigation (inherited from previous phases) */
        .header {
            background: var(--white);
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: var(--shadow-sm);
        }

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

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-blue);
            text-decoration: none;
        }

        .logo-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
            border-radius: var(--radius);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
        }

        .main-nav {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .main-nav a {
            color: var(--dark-gray);
            text-decoration: none;
            font-weight: 500;
            padding: 0.5rem 1rem;
            border-radius: var(--radius);
            transition: all 0.2s;
        }

        .main-nav a:hover, .main-nav a.active {
            background: var(--light-blue);
            color: var(--primary-blue);
        }

        .search-container {
            flex: 1;
            max-width: 400px;
            margin: 0 2rem;
            position: relative;
        }

        .search-input {
            width: 100%;
            padding: 0.75rem 1rem 0.75rem 2.5rem;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            font-size: 0.95rem;
            background: var(--light-gray);
            transition: all 0.2s;
        }

        .search-input:focus {
            outline: none;
            border-color: var(--secondary-blue);
            background: white;
            box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
        }

        .search-icon {
            position: absolute;
            left: 0.75rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--medium-gray);
        }

        .user-menu {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .notification-bell {
            position: relative;
            padding: 0.5rem;
            color: var(--medium-gray);
            cursor: pointer;
            border-radius: var(--radius);
            transition: all 0.2s;
        }

        .notification-bell:hover {
            background: var(--light-gray);
            color: var(--primary-blue);
        }

        .notification-badge {
            position: absolute;
            top: 0.25rem;
            right: 0.25rem;
            background: var(--accent-orange);
            color: white;
            font-size: 0.7rem;
            padding: 0.15rem 0.4rem;
            border-radius: 10px;
            min-width: 18px;
            text-align: center;
        }

        .user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--success-green), #059669);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        /* Page Container */
        .page-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem 1rem;
            min-height: calc(100vh - 70px);
        }

        /* Breadcrumb */
        .breadcrumb {
            margin-bottom: 2rem;
            color: var(--medium-gray);
            font-size: 0.9rem;
        }

        .breadcrumb a {
            color: var(--secondary-blue);
            text-decoration: none;
        }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

        /* Page Header */
        .page-header {
            background: var(--white);
            padding: 2rem;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
            margin-bottom: 2rem;
        }

        .page-title {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--dark-gray);
            margin-bottom: 0.5rem;
        }

        .page-subtitle {
            font-size: 1.1rem;
            color: var(--medium-gray);
            margin-bottom: 2rem;
        }

        /* Dashboard View Styles */
        .dashboard-view {
            display: block;
        }

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

        .stat-card {
            background: var(--white);
            padding: 1.5rem;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
            text-align: center;
            transition: all 0.3s;
        }

        .stat-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .stat-icon {
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }

        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            color: var(--dark-gray);
            display: block;
        }

        .stat-label {
            font-size: 0.9rem;
            color: var(--medium-gray);
            margin-top: 0.25rem;
        }

        .stat-change {
            font-size: 0.8rem;
            margin-top: 0.5rem;
            padding: 0.25rem 0.5rem;
            border-radius: 12px;
        }

        .stat-change.positive {
            background: #dcfce7;
            color: #166534;
        }

        .stat-change.negative {
            background: #fef2f2;
            color: #991b1b;
        }

        /* Action Section */
        .action-section {
            background: linear-gradient(135deg, var(--purple), #7c3aed);
            padding: 2rem;
            border-radius: var(--radius-lg);
            margin-bottom: 2rem;
            text-align: center;
            color: white;
        }

        .action-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .action-subtitle {
            font-size: 1rem;
            opacity: 0.9;
            margin-bottom: 2rem;
        }

        .create-tender-btn {
            background: var(--white);
            color: var(--purple);
            padding: 1rem 2rem;
            border: none;
            border-radius: var(--radius-lg);
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: var(--shadow-md);
        }

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

        /* Dashboard Content */
        .dashboard-content {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 2rem;
        }

        /* Active Tenders */
        .tenders-section {
            background: var(--white);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
            overflow: hidden;
        }

        .section-header {
            padding: 1.5rem;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .section-title {
            font-size: 1.3rem;
            font-weight: 600;
            color: var(--dark-gray);
        }

        .section-action {
            color: var(--secondary-blue);
            text-decoration: none;
            font-weight: 500;
            font-size: 0.9rem;
        }

        .section-action:hover {
            text-decoration: underline;
        }

        .tender-list {
            padding: 1.5rem;
        }

        .tender-item {
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 1.5rem;
            margin-bottom: 1rem;
            cursor: pointer;
            transition: all 0.3s;
        }

        .tender-item:hover {
            border-color: var(--secondary-blue);
            transform: translateY(-1px);
            box-shadow: var(--shadow-sm);
        }

        .tender-item:last-child {
            margin-bottom: 0;
        }

        .tender-header {
            display: flex;
            justify-content: space-between;
            align-items: start;
            margin-bottom: 1rem;
        }

        .tender-title {
            font-weight: 600;
            color: var(--dark-gray);
            margin-bottom: 0.25rem;
        }

        .tender-id {
            font-size: 0.8rem;
            color: var(--medium-gray);
        }

        .tender-status {
            padding: 0.25rem 0.75rem;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 500;
        }

        .status-active {
            background: #dcfce7;
            color: #166534;
        }

        .status-closed {
            background: #f3f4f6;
            color: #374151;
        }

        .status-draft {
            background: #fef3c7;
            color: #92400e;
        }

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

        .meta-item {
            text-align: center;
        }

        .meta-label {
            font-size: 0.8rem;
            color: var(--medium-gray);
            margin-bottom: 0.25rem;
        }

        .meta-value {
            font-weight: 600;
            color: var(--dark-gray);
        }

        .tender-progress {
            background: var(--light-gray);
            height: 4px;
            border-radius: 2px;
            overflow: hidden;
            margin-bottom: 1rem;
        }

        .progress-bar {
            height: 100%;
            background: var(--success-green);
            transition: width 0.3s;
        }

        .tender-ai-insight {
            background: var(--light-blue);
            padding: 0.75rem;
            border-radius: var(--radius);
            font-size: 0.9rem;
            color: var(--primary-blue);
        }

        /* AI Insights Sidebar */
        .ai-insights-panel {
            background: var(--white);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
            padding: 1.5rem;
            height: fit-content;
            position: sticky;
            top: 90px;
        }

        .insights-title {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 600;
            color: var(--primary-blue);
            margin-bottom: 1.5rem;
        }

        .insight-item {
            background: var(--light-gray);
            padding: 1rem;
            border-radius: var(--radius);
            margin-bottom: 1rem;
            border-left: 4px solid var(--secondary-blue);
        }

        .insight-item:last-child {
            margin-bottom: 0;
        }

        .insight-title {
            font-weight: 600;
            color: var(--dark-gray);
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
        }

        .insight-desc {
            font-size: 0.8rem;
            color: var(--medium-gray);
            line-height: 1.4;
        }

        /* Market Trends */
        .market-trends {
            margin-top: 2rem;
        }

        .trend-chart {
            height: 150px;
            background: var(--light-gray);
            border-radius: var(--radius);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--medium-gray);
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }

        .trend-summary {
            display: grid;
            gap: 0.5rem;
        }

        .trend-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.8rem;
        }

        .trend-label {
            color: var(--medium-gray);
        }

        .trend-value {
            font-weight: 600;
            color: var(--dark-gray);
        }

        .trend-positive {
            color: var(--success-green);
        }

        .trend-negative {
            color: var(--error-red);
        }

        /* Create Tender View */
        .create-tender-view {
            display: none;
        }

        .create-tender-view.show {
            display: block;
        }

        .wizard-container {
            background: var(--white);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
            overflow: hidden;
            margin-bottom: 2rem;
        }

        .wizard-header {
            background: linear-gradient(135deg, var(--purple), #7c3aed);
            color: white;
            padding: 2rem;
            text-align: center;
        }

        .wizard-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .wizard-subtitle {
            font-size: 1rem;
            opacity: 0.9;
        }

        .progress-indicator {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .progress-step {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            transition: all 0.3s;
        }

        .progress-step.active {
            background: var(--white);
            color: var(--purple);
        }

        .progress-step.completed {
            background: var(--success-green);
            color: white;
        }

        .progress-line {
            width: 50px;
            height: 2px;
            background: rgba(255, 255, 255, 0.2);
        }

        .progress-line.completed {
            background: var(--success-green);
        }

        .wizard-content {
            padding: 2rem;
        }

        .wizard-step {
            display: none;
            max-width: 600px;
            margin: 0 auto;
        }

        .wizard-step.active {
            display: block;
        }

        .step-question {
            font-size: 1.4rem;
            font-weight: 600;
            color: var(--dark-gray);
            margin-bottom: 1rem;
            text-align: center;
        }

        .step-description {
            color: var(--medium-gray);
            text-align: center;
            margin-bottom: 2rem;
        }

        .options-grid {
            display: grid;
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .option-card {
            border: 2px solid var(--border-color);
            border-radius: var(--radius-lg);
            padding: 1.5rem;
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
        }

        .option-card:hover {
            border-color: var(--secondary-blue);
            transform: translateY(-2px);
        }

        .option-card.selected {
            border-color: var(--purple);
            background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
        }

        .option-icon {
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }

        .option-title {
            font-weight: 600;
            color: var(--dark-gray);
            margin-bottom: 0.5rem;
        }

        .option-desc {
            font-size: 0.9rem;
            color: var(--medium-gray);
        }

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

        .input-label {
            display: block;
            font-weight: 500;
            color: var(--dark-gray);
            margin-bottom: 0.5rem;
        }

        .input-field {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            font-size: 1rem;
        }

        .input-field:focus {
            outline: none;
            border-color: var(--secondary-blue);
            box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
        }

        .ai-suggestions {
            background: var(--light-blue);
            padding: 1rem;
            border-radius: var(--radius);
            margin-bottom: 2rem;
        }

        .ai-suggestions-title {
            font-weight: 600;
            color: var(--primary-blue);
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .suggestion-item {
            background: white;
            padding: 0.5rem 1rem;
            border-radius: var(--radius);
            margin: 0.5rem 0;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.9rem;
        }

        .suggestion-item:hover {
            background: var(--border-color);
        }

        .matching-counter {
            background: var(--success-green);
            color: white;
            padding: 1rem;
            border-radius: var(--radius);
            text-align: center;
            margin-bottom: 2rem;
            font-weight: 600;
        }

        .wizard-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 2rem;
            border-top: 1px solid var(--border-color);
        }

        .btn {
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: var(--radius);
            cursor: pointer;
            font-weight: 500;
            transition: all 0.2s;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

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

        .btn-primary:hover {
            background: #7c3aed;
            transform: translateY(-1px);
        }

        .btn-secondary {
            background: var(--light-gray);
            color: var(--dark-gray);
            border: 1px solid var(--border-color);
        }

        .btn-secondary:hover {
            background: var(--border-color);
        }

        .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        /* Tender Detail View */
        .tender-detail-view {
            display: none;
        }

        .tender-detail-view.show {
            display: block;
        }

        .tender-detail-header {
            background: var(--white);
            padding: 2rem;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
            margin-bottom: 2rem;
        }

        .tender-detail-title {
            font-size: 2rem;
            font-weight: 700;
            color: var(--dark-gray);
            margin-bottom: 0.5rem;
        }

        .tender-detail-meta {
            display: flex;
            gap: 2rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }

        .detail-meta-item {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .meta-item-label {
            font-size: 0.8rem;
            color: var(--medium-gray);
            font-weight: 500;
        }

        .meta-item-value {
            font-weight: 600;
            color: var(--dark-gray);
        }

        .tender-requirements {
            background: var(--light-gray);
            padding: 1.5rem;
            border-radius: var(--radius);
            margin-bottom: 2rem;
        }

        .requirements-title {
            font-weight: 600;
            color: var(--dark-gray);
            margin-bottom: 1rem;
        }

        .requirement-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
        }

        .requirement-item {
            background: white;
            padding: 1rem;
            border-radius: var(--radius);
            border-left: 4px solid var(--purple);
        }

        .requirement-label {
            font-size: 0.8rem;
            color: var(--medium-gray);
            margin-bottom: 0.25rem;
        }

        .requirement-value {
            font-weight: 600;
            color: var(--dark-gray);
        }

        /* Bids Section */
        .bids-section {
            background: var(--white);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
            margin-bottom: 2rem;
        }

        .bids-header {
            padding: 1.5rem;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .bids-title {
            font-size: 1.3rem;
            font-weight: 600;
            color: var(--dark-gray);
        }

        .bids-count {
            background: var(--light-blue);
            color: var(--primary-blue);
            padding: 0.25rem 0.75rem;
            border-radius: 12px;
            font-size: 0.9rem;
            font-weight: 600;
        }

        .bids-list {
            padding: 1.5rem;
        }

        .bid-item {
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 1.5rem;
            margin-bottom: 1rem;
            position: relative;
        }

        .bid-item:last-child {
            margin-bottom: 0;
        }

        .bid-item.recommended {
            border-color: var(--success-green);
            background: linear-gradient(135deg, #f0fdf4, #dcfce7);
        }

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

        .bid-partner {
            font-weight: 600;
            color: var(--dark-gray);
            margin-bottom: 0.25rem;
        }

        .bid-product {
            color: var(--medium-gray);
            font-size: 0.9rem;
        }

        .bid-price {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--dark-gray);
            text-align: right;
        }

        .bid-currency {
            font-size: 0.9rem;
            color: var(--medium-gray);
            display: block;
        }

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

        .bid-detail-item {
            text-align: center;
        }

        .bid-detail-label {
            font-size: 0.8rem;
            color: var(--medium-gray);
            margin-bottom: 0.25rem;
        }

        .bid-detail-value {
            font-weight: 600;
            color: var(--dark-gray);
        }

        .bid-ai-analysis {
            background: var(--light-blue);
            padding: 1rem;
            border-radius: var(--radius);
            font-size: 0.9rem;
            color: var(--primary-blue);
        }

        .recommended-badge {
            position: absolute;
            top: -8px;
            right: 1rem;
            background: var(--success-green);
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .bid-actions {
            display: flex;
            gap: 0.5rem;
            margin-top: 1rem;
        }

        /* AI Matching Demo View */
        .ai-matching-view {
            display: none;
        }

        .ai-matching-view.show {
            display: block;
        }

        .matching-demo {
            background: var(--white);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
            overflow: hidden;
        }

        .matching-header {
            background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
            color: white;
            padding: 2rem;
            text-align: center;
        }

        .matching-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .matching-subtitle {
            font-size: 1rem;
            opacity: 0.9;
        }

        .matching-process {
            padding: 2rem;
        }

        .process-step {
            display: flex;
            align-items: start;
            gap: 1rem;
            margin-bottom: 2rem;
            opacity: 0.3;
            transition: all 0.5s;
        }

        .process-step.active {
            opacity: 1;
        }

        .process-step.completed {
            opacity: 1;
        }

        .step-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--light-gray);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            color: var(--medium-gray);
            flex-shrink: 0;
        }

        .step-icon.active {
            background: var(--secondary-blue);
            color: white;
            animation: pulse 2s infinite;
        }

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

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        .step-content {
            flex: 1;
        }

        .step-title {
            font-weight: 600;
            color: var(--dark-gray);
            margin-bottom: 0.5rem;
        }

        .step-description {
            color: var(--medium-gray);
            font-size: 0.9rem;
            line-height: 1.5;
        }

        .step-result {
            background: var(--light-blue);
            padding: 0.75rem;
            border-radius: var(--radius);
            margin-top: 0.5rem;
            font-size: 0.9rem;
            color: var(--primary-blue);
            display: none;
        }

        .step-result.show {
            display: block;
        }

        .matching-results {
            padding: 2rem;
            border-top: 1px solid var(--border-color);
        }

        .results-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--dark-gray);
            margin-bottom: 1rem;
        }

        .result-items {
            display: grid;
            gap: 1rem;
        }

        .result-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem;
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            background: var(--light-gray);
        }

        .result-product {
            font-weight: 600;
            color: var(--dark-gray);
        }

        .result-score {
            background: var(--success-green);
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 12px;
            font-size: 0.9rem;
            font-weight: 600;
        }

        /* Back Button */
        .back-button {
            background: var(--light-gray);
            color: var(--dark-gray);
            padding: 0.5rem 1rem;
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 500;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 2rem;
        }

        .back-button:hover {
            background: var(--border-color);
        }

        /* Loading and animations */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.9);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s;
        }

        .loading-overlay.show {
            opacity: 1;
            pointer-events: all;
        }

        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 4px solid var(--light-gray);
            border-top: 4px solid var(--purple);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

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

        .fade-in {
            animation: fadeIn 0.5s ease-in;
        }

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

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .page-container {
                padding: 1rem;
            }

            .dashboard-content {
                grid-template-columns: 1fr;
            }

            .dashboard-stats {
                grid-template-columns: repeat(2, 1fr);
            }

            .tender-meta {
                grid-template-columns: repeat(2, 1fr);
            }

            .bid-details {
                grid-template-columns: repeat(2, 1fr);
            }

            .wizard-actions {
                flex-direction: column;
                gap: 1rem;
            }

            .tender-detail-meta {
                flex-direction: column;
                gap: 1rem;
            }

            .requirement-list {
                grid-template-columns: 1fr;
            }

            .main-nav {
                display: none;
            }

            .search-container {
                margin: 0 1rem;
                max-width: none;
            }
        }

        /* AI Assistant Widget (inherited) */
        .ai-assistant {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            z-index: 1000;
        }

        .ai-toggle {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--purple), #7c3aed);
            color: white;
            border: none;
            cursor: pointer;
            box-shadow: var(--shadow-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            transition: all 0.3s;
        }

        .ai-toggle:hover {
            transform: scale(1.1);
        }

        .ai-chat {
            position: absolute;
            bottom: 80px;
            right: 0;
            width: 320px;
            height: 400px;
            background: white;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-lg);
            display: none;
            flex-direction: column;
            overflow: hidden;
        }

        .ai-chat.open {
            display: flex;
        }

        .ai-chat-header {
            background: var(--purple);
            color: white;
            padding: 1rem;
            font-weight: 600;
        }

        .ai-chat-body {
            flex: 1;
            padding: 1rem;
            overflow-y: auto;
        }

        .ai-message {
            background: var(--light-gray);
            padding: 0.75rem;
            border-radius: var(--radius);
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
        }

        .ai-chat-input {
            padding: 1rem;
            border-top: 1px solid var(--border-color);
            display: flex;
            gap: 0.5rem;
        }

        .ai-chat-input input {
            flex: 1;
            padding: 0.5rem;
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
        }

        .ai-chat-input button {
            padding: 0.5rem 1rem;
            background: var(--purple);
            color: white;
            border: none;
            border-radius: var(--radius);
            cursor: pointer;
        }