/* Make Offer Button Styles */
.make-offer-section {
    margin-bottom: 0;
}

.make-offer-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(40, 167, 69, 0.3);
    white-space: nowrap;
}

.make-offer-btn-mobile {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    white-space: nowrap;
}

.make-offer-btn:hover,
.make-offer-btn-mobile:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.make-offer-btn:active,
.make-offer-btn-mobile:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.make-offer-btn i,
.make-offer-btn-mobile i {
    font-size: 1rem;
}

.make-offer-btn:disabled,
.make-offer-btn-mobile:disabled {
    background: rgba(108, 117, 125, 0.6);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Make Offer Modal Styles */
.modal.auth-modal #makeOfferModal .modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal.auth-modal #makeOfferModal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}

.modal.auth-modal #makeOfferModal .modal-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.25rem;
}

.modal.auth-modal #makeOfferModal .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modal.auth-modal #makeOfferModal .btn-close:hover {
    opacity: 1;
}

.modal.auth-modal #makeOfferModal .modal-body {
    padding: 1.5rem;
}

.modal.auth-modal #makeOfferModal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}

/* Offer Car Info Styles */
.offer-car-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
}

.offer-car-thumb {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.offer-car-info h6 {
    color: #ffffff;
    font-weight: 600;
}

.offer-car-info .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Form Styles */
.modal.auth-modal #makeOfferModal .form-label {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.modal.auth-modal #makeOfferModal .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.modal.auth-modal #makeOfferModal .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    color: #ffffff;
}

.modal.auth-modal #makeOfferModal .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.modal.auth-modal #makeOfferModal .input-group-text {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 500;
}

.modal.auth-modal #makeOfferModal .form-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Offer Terms Alert */
.offer-terms .alert {
    background: rgba(13, 202, 240, 0.1);
    border: 1px solid rgba(13, 202, 240, 0.2);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 0.75rem;
}

.offer-terms .alert i {
    color: #0dcaf0;
}

/* Character Counter */
#message-char-count {
    font-weight: 500;
}

/* Submit Button */
.modal.auth-modal #makeOfferModal #submitOfferBtn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 120px;
}

.modal.auth-modal #makeOfferModal #submitOfferBtn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.modal.auth-modal #makeOfferModal #submitOfferBtn:disabled {
    background: rgba(108, 117, 125, 0.6);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Cancel Button */
.modal.auth-modal #makeOfferModal .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal.auth-modal #makeOfferModal .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

/* Loading State */
.modal.auth-modal #makeOfferModal #submitOfferBtn .spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Price section layout adjustments */
.d-flex.align-items-center.justify-content-between {
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .d-flex.align-items-center.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    .make-offer-section {
        align-self: stretch;
    }

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

/* Mobile price section adjustments */
@media (max-width: 576px) {
    .d-flex.align-items-center.justify-content-between.mb-3 {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    .make-offer-btn-mobile {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Responsive Design */
@media (max-width: 576px) {
    .modal.auth-modal #makeOfferModal .modal-dialog {
        margin: 1rem;
    }

    .modal.auth-modal #makeOfferModal .modal-header,
    .modal.auth-modal #makeOfferModal .modal-body,
    .modal.auth-modal #makeOfferModal .modal-footer {
        padding: 1rem;
    }

    .make-offer-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .offer-car-info {
        padding: 0.75rem;
    }

    .offer-car-thumb {
        width: 50px !important;
        height: 38px !important;
    }
}

/* Animation for button state changes */
@keyframes pulse-success {
    0% { box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3); }
    50% { box-shadow: 0 6px 25px rgba(40, 167, 69, 0.5); }
    100% { box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3); }
}

.make-offer-btn.pulse {
    animation: pulse-success 2s infinite;
}

/* Error state for form validation */
.modal.auth-modal #makeOfferModal .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.modal.auth-modal #makeOfferModal .invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success state */
.modal.auth-modal #makeOfferModal .form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.modal.auth-modal #makeOfferModal .valid-feedback {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Offers Management Modal Styles - Match Register/Login Modal */
.offers-modal-content {
    background: linear-gradient(145deg, #1f1b2c 0%, #282534 100%) !important;
    border: 1px solid rgba(108, 99, 255, 0.2) !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
}

.offers-modal-header {
    background: linear-gradient(to right, rgba(108, 99, 255, 0.1), transparent);
    border-bottom: 1px solid rgba(108, 99, 255, 0.1);
    border-radius: 20px 20px 0 0;
    padding: 0.875rem 1.25rem;
}

.offers-modal-header .modal-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.25rem;
}

.offers-modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.offers-modal-header .btn-close:hover {
    opacity: 1;
}

.offers-modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.offers-modal-footer {
    border-top: 1px solid rgba(108, 99, 255, 0.1);
    padding: 1rem 1.25rem;
    background: linear-gradient(to right, transparent, rgba(108, 99, 255, 0.05));
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Elegant Footer Buttons */
.offers-modal-footer .btn-outline-light {
    background: rgba(40, 37, 52, 0.8);
    border: 2px solid rgba(108, 99, 255, 0.1);
    color: #ffffff;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.offers-modal-footer .btn-outline-light:hover {
    background: rgba(40, 37, 52, 0.95);
    border-color: #6c63ff;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.2);
}

.offers-modal-footer .btn-primary {
    background: linear-gradient(45deg, #6c63ff, #5a52d5);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.2);
}

.offers-modal-footer .btn-primary:hover {
    background: linear-gradient(45deg, #5a52d5, #6c63ff);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
    color: #ffffff;
}

.offers-modal-footer .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(108, 99, 255, 0.2);
}

/* Offers Tabs Styles - Match Purple Theme */
.offers-tabs {
    border-bottom: 1px solid rgba(108, 99, 255, 0.1);
}

.offers-tabs .nav-link {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(255, 255, 255, 0.7);
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.offers-tabs .nav-link:hover {
    color: #ffffff;
    border-bottom-color: rgba(108, 99, 255, 0.3);
}

.offers-tabs .nav-link.active {
    color: #ffffff;
    border-bottom-color: #6c63ff;
    background: rgba(108, 99, 255, 0.1);
}

.offers-tabs .nav-link .badge {
    background: rgba(108, 99, 255, 0.8);
    color: #ffffff;
}

.offers-tabs .nav-link.active .badge {
    background: #6c63ff;
}

/* Offers Container */
.offers-container {
    max-height: 50vh;
    overflow-y: auto;
}

.offers-loading,
.offers-empty {
    color: rgba(255, 255, 255, 0.8);
}

.offers-empty i {
    opacity: 0.5;
}

/* Offer Card Styles */
.offer-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.offer-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.offer-car-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.offer-car-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-right: 1rem;
}

.offer-car-details h6 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.offer-car-details .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.875rem;
}

.offer-status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offer-status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.offer-status-accepted {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.offer-status-declined {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.offer-status-countered {
    background: rgba(13, 202, 240, 0.2);
    color: #0dcaf0;
    border: 1px solid rgba(13, 202, 240, 0.3);
}

.offer-status-expired {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.offer-status-withdrawn {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

/* Offer Details */
.offer-details {
    margin-bottom: 1rem;
}

.offer-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.offer-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #28a745;
}

.original-price {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: line-through;
}

.offer-message {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.offer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.offer-date {
    display: flex;
    align-items: center;
}

.offer-date i {
    margin-right: 0.5rem;
}

/* Offer Actions */
.offer-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.offer-action-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.offer-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-accept {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
}

.btn-accept:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-1px);
}

.btn-decline {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffffff;
}

.btn-decline:hover:not(:disabled) {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-1px);
}

.btn-counter {
    background: linear-gradient(135deg, #0dcaf0 0%, #0bb5d6 100%);
    color: #ffffff;
}

.btn-counter:hover:not(:disabled) {
    background: linear-gradient(135deg, #0bb5d6 0%, #0aa2c0 100%);
    transform: translateY(-1px);
}

.btn-withdraw {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #ffffff;
}

.btn-withdraw:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-1px);
}

.btn-view-history {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-view-history:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Counter Offer Input */
.counter-offer-input {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.counter-offer-input.show {
    display: block;
}

.counter-offer-input .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.counter-offer-input .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #0dcaf0;
    box-shadow: 0 0 0 0.2rem rgba(13, 202, 240, 0.25);
    color: #ffffff;
}

.counter-offer-input .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.counter-offer-actions {
    display: flex;
    gap: 0.5rem;
}

/* Responsive Design for Offers Modal */
@media (max-width: 768px) {
    .modal-xl {
        max-width: 95%;
    }

    .offers-modal-body {
        padding: 1rem;
        max-height: 60vh;
    }

    .offers-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .offer-card {
        padding: 1rem;
    }

    .offer-car-image {
        width: 60px;
        height: 45px;
    }

    .offer-actions {
        flex-direction: column;
    }

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

@media (max-width: 576px) {
    .offers-modal-header,
    .offers-modal-body,
    .offers-modal-footer {
        padding: 1rem;
    }

    .offer-amount {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .offer-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* New Elegant Offer Card Styles */
.offer-card-container {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.offer-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.offer-card-container:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Status Badge - Top Right Corner */
.offer-status-badge-corner {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    z-index: 10;
}

.offer-status-badge-corner.offer-status-pending {
    background: #ffc107;
    color: #000;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.offer-status-badge-corner.offer-status-accepted {
    background: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.offer-status-badge-corner.offer-status-declined {
    background: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.offer-status-badge-corner.offer-status-countered {
    background: #17a2b8;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

/* Car Section */
.offer-car-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 1;
    margin-bottom: 12px;
}

.offer-car-thumbnail {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.offer-car-thumbnail:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Car Icon Placeholders */
.offer-car-icon-placeholder,
.offer-car-icon-fallback {
    width: 60px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.offer-car-icon-placeholder:hover,
.offer-car-icon-fallback:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.offer-car-icon-placeholder i,
.offer-car-icon-fallback i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.offer-car-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.offer-car-title-row {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
}

.offer-car-title-row i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.offer-car-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.offer-user-row {
    display: flex;
    align-items: center;
}

.offer-user-row i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.offer-user-link {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.offer-user-link:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Price and Message Row - Same Line */
.offer-price-message-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.offer-price-section {
    flex: 1;
    min-width: 200px;
}

.offer-price-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.offer-price-line i {
    color: #28a745;
    font-size: 1rem;
}

.offer-current-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #28a745;
}

.offer-original-price {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    margin-left: 8px;
}

/* Message Section - Same Row */
.offer-message-section {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    min-width: 150px;
}

.offer-message-section i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.offer-message-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Meta Section */
.offer-meta-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    text-align: center;
}

.offer-date-info,
.offer-expiry-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Action Buttons - Below Price Section */
.offer-actions-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 8px;
}

.offer-action-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.offer-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.offer-action-btn i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

/* Action Button Colors */
.offer-accept:hover {
    background: rgba(40, 167, 69, 0.2);
}

.offer-accept:hover i {
    color: #28a745;
}

.offer-decline:hover {
    background: rgba(220, 53, 69, 0.2);
}

.offer-decline:hover i {
    color: #dc3545;
}

.offer-counter:hover {
    background: rgba(23, 162, 184, 0.2);
}

.offer-counter:hover i {
    color: #17a2b8;
}

.offer-withdraw:hover {
    background: rgba(255, 193, 7, 0.2);
}

.offer-withdraw:hover i {
    color: #ffc107;
}

.offer-history:hover {
    background: rgba(108, 117, 125, 0.2);
}

.offer-history:hover i {
    color: #6c757d;
}

/* Action Dividers */
.action-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 4px;
}

/* Counter Badge on Action Button */
.counter-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #6c63ff;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(108, 99, 255, 0.3);
}

/* Original Offer Price Label */
.offer-price-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-top: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Counter Conversation Accordion */
.counter-conversation-accordion {
    margin-top: 15px;
    background: rgba(108, 99, 255, 0.05);
    border: 1px solid rgba(108, 99, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.counter-conversation-accordion.show {
    animation: slideDown 0.3s ease;
}

.counter-conversation-content {
    padding: 15px;
}

/* Counter History Styles */
.counter-history {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

/* Loading, Error, and Empty States */
.loading-counters,
.error-counters,
.no-counters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.loading-counters i.spin {
    animation: spin 1s linear infinite;
}

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

/* Counter Alert Styles - Single Row Layout */
.counter-alert {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 0.3s ease;
}

.counter-alert.counter-right {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.counter-alert.counter-left {
    justify-content: flex-start;
    flex-direction: row;
}

.counter-alert-content {
    display: inline-block;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-left: 4px solid #6c63ff;
    border-radius: 6px;
    padding: 12px 16px;
    position: relative;
    max-width: fit-content;
}

.counter-alert.counter-right .counter-alert-content {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-right: 4px solid #28a745;
    border-left: 1px solid rgba(40, 167, 69, 0.2);
}

.counter-alert-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.counter-user {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.2;
}

.counter-amount {
    font-size: 0.95rem;
    font-weight: 700;
    color: #6c63ff;
    white-space: nowrap;
    line-height: 1.2;
}

.counter-alert.counter-right .counter-amount {
    color: #28a745;
}

/* Accepted Counter Offer Styles */
.counter-alert.counter-accepted .counter-alert-content {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-left: 4px solid #28a745;
}

.counter-alert.counter-accepted.counter-right .counter-alert-content {
    border-right: 4px solid #28a745;
    border-left: 1px solid rgba(40, 167, 69, 0.3);
}

.accepted-badge {
    background: #28a745;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
    margin-left: 8px;
}

/* Accepted Counter Price Styles */
.offer-accepted-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #28a745;
}

.offer-original-price-crossed {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    margin-left: 8px;
}

.accepted-price-label {
    color: #28a745 !important;
    font-weight: 600;
}

.counter-alert-message {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-bottom: 8px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    line-height: 1.3;
}

.counter-alert-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.counter-accept-btn {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.counter-accept-btn:hover {
    background: rgba(40, 167, 69, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.2);
}

/* External Accept Button (positioned outside alert) */
.counter-accept-btn-external {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(40, 167, 69, 0.1);
}

.counter-accept-btn-external:hover {
    background: rgba(40, 167, 69, 0.3);
    border-color: rgba(40, 167, 69, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
}

.counter-accept-btn-external:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(40, 167, 69, 0.2);
}

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

/* Accepted Alert Styles */
.accepted-alert {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    animation: acceptedPulse 0.6s ease;
}

.accepted-alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15), rgba(40, 167, 69, 0.05));
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.accepted-icon {
    color: #28a745;
    font-size: 1.5rem;
    animation: checkBounce 0.6s ease;
}

.accepted-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.accepted-text strong {
    color: #28a745;
    font-size: 1rem;
    font-weight: 700;
}

.accepted-text span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

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

@keyframes checkBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

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

/* New Counter Input Row - Compact Design */
.new-counter-row {
    border-top: 1px solid rgba(108, 99, 255, 0.1);
    padding-top: 15px;
}

.counter-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.counter-amount-input {
    flex: 1;
    background: rgba(40, 37, 52, 0.8);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 120px;
}

.counter-message-input {
    flex: 2;
    background: rgba(40, 37, 52, 0.8);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.counter-amount-input:focus,
.counter-message-input:focus {
    outline: none;
    border-color: #6c63ff;
    background: rgba(40, 37, 52, 0.95);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.counter-amount-input::placeholder,
.counter-message-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.counter-send-btn {
    background: linear-gradient(45deg, #6c63ff, #5a52d5);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(108, 99, 255, 0.2);
    min-width: 40px;
    justify-content: center;
}

.counter-send-btn:hover {
    background: linear-gradient(45deg, #5a52d5, #6c63ff);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

/* Remove tab-content background and border */
.offers-modal-content .tab-content {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 20px 0 !important;
}

/* Remove offer-container background and border */
.offer-container {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Remove tab-panel background and borders */
.offers-modal-content .tab-panel,
.offers-modal-content .tab-pane {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Remove offers-container background and borders */
.offers-container {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Center the offer tabs */
.offers-tabs {
    justify-content: center !important;
}

.offers-tabs .nav-item {
    margin: 0 10px;
}

/* Enhanced Mobile Responsive */
@media (max-width: 768px) {
    .offer-card-container {
        padding: 15px;
    }

    .offer-car-section {
        margin-bottom: 10px;
    }

    .offer-car-thumbnail,
    .offer-car-icon-placeholder,
    .offer-car-icon-fallback {
        width: 50px;
        height: 38px;
    }

    .offer-car-icon-placeholder i,
    .offer-car-icon-fallback i {
        font-size: 1.2rem;
    }

    .offer-car-title {
        font-size: 0.9rem;
    }

    .offer-price-message-row {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .offer-price-section,
    .offer-message-section {
        min-width: auto;
        width: 100%;
    }

    .offer-price-line {
        justify-content: center;
    }

    .offer-meta-section {
        text-align: center;
        flex-direction: row;
        justify-content: space-around;
        gap: 15px;
    }

    .offer-actions-section {
        justify-content: center;
    }

    .counter-offer-form {
        gap: 12px;
    }

    .counter-input-group {
        flex-direction: column;
        gap: 10px;
    }

    .counter-amount-input,
    .counter-message-input {
        min-width: auto;
        width: 100%;
    }

    .counter-alert-content {
        max-width: 85%;
    }

    .counter-alert-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .counter-accept-btn-external {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}
