  /* Your CSS styles remain the same, but I'll add some new styles for currency and countdown */
    .page-header {
        background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
        color: white;
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .breadcrumb {
        display: flex;
        align-items: center;
    }

    .breadcrumb a {
        color: #ff9900;
        text-decoration: none;
    }

    .breadcrumb .separator {
        margin: 0 10px;
    }

    /* قسم تفاصيل المنتج */
    .product-details {
        padding: 40px 0;
    }

    .product-container {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
    }

    .product-gallery {
        flex: 1;
        min-width: 300px;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .main-image {
        background-color: #fff;
        border-radius: 8px;
        padding: 20px;
        text-align: center;
        margin-bottom: 15px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        height: 400px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .main-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 4px;
    }

    .image-placeholder {
        width: 100%;
        height: 300px;
        background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #888;
        font-size: 18px;
        flex-direction: column;
    }

    .thumbnail-images {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .thumbnail {
        flex: 1;
        min-width: 80px;
        height: 80px;
        background-color: #f0f0f0;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.3s;
        overflow: hidden;
        border: 2px solid transparent;
    }

    .thumbnail:hover {
        opacity: 0.8;
        border-color: #ff9900;
    }

    .thumbnail.active {
        border-color: #ff9900;
    }

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

    .product-info {
        flex: 1;
        min-width: 300px;
    }

    .product-card {
        background-color: #fff;
        border-radius: 8px;
        padding: 25px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        margin-bottom: 20px;
    }

    .product-status {
        display: inline-block;
        color: white;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 14px;
        margin-bottom: 15px;
    }

    .status-active {
        background-color: #27ae60;
    }

    .status-ended {
        background-color: #e74c3c;
    }

    .product-price {
        font-size: 32px;
        font-weight: bold;
        color: #2c3e50;
        margin-bottom: 20px;
    }

    .product-rating {
        margin-bottom: 20px;
    }

    .rating-stars {
        color: #f39c12;
    }

    .rating-count {
        color: #666;
        font-size: 14px;
        margin-right: 10px;
    }

    .favorite-count {
        color: #666;
        font-size: 14px;
        margin-right: 15px;
    }

    .favorite-count i {
        color: #e74c3c;
    }

    .action-buttons {
        display: flex;
        gap: 10px;
        margin-bottom: 25px;
        flex-wrap: wrap;
    }

    .btn_details {
        padding: 10px 20px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-weight: 500;
        transition: background-color 0.3s;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .btn-wishlist {
        background-color: #f8f9fa;
        color: #333;
        border: 1px solid #ddd;
    }

    .btn-wishlist:hover {
        background-color: #e9ecef;
    }

    .btn-wishlist.active {
        background-color: #ffeaa7;
        color: #d35400;
    }

    .seller-info {
        margin-top: 25px;
    }

    .seller-header {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
    }

    .seller-avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: #3498db;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
        margin-left: 15px;
        font-size: 18px;
    }

    .seller-details h3 {
        margin-bottom: 5px;
    }

    .seller-location {
        color: #666;
        font-size: 14px;
        margin-bottom: 5px;
    }

    .seller-rating {
        color: #f39c12;
        font-size: 14px;
    }

    .seller-stats {
        display: flex;
        gap: 15px;
        margin-bottom: 15px;
    }

    .stat {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 14px;
        color: #666;
    }

    .seller-actions {
        display: flex;
        gap: 10px;
        margin-bottom: 10px;
        flex-wrap: wrap;
    }

    .btn-profile {
        background-color: #3498db;
        color: white;
    }

    .btn-profile:hover {
        background-color: #2980b9;
    }

    .btn-save {
        background-color: #f8f9fa;
        color: #333;
        border: 1px solid #ddd;
    }

    .btn-save:hover {
        background-color: #e9ecef;
    }

    .btn-save.active {
        background-color: #d1ecf1;
        color: #0c5460;
    }

    .btn-buy {
        background-color: #27ae60;
        color: white;
    }

    .btn-buy:hover {
        background-color: #219955;
    }

    .seller-location-info {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }

    .location-item {
        display: flex;
        align-items: center;
        margin-bottom: 8px;
        font-size: 14px;
        color: #666;
    }

    .location-item i {
        margin-left: 10px;
        color: #3498db;
    }

    /* قسم وصف المنتج */
    .product-description {
        margin-top: 30px;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 20px;
        color: #2c3e50;
        position: relative;
        padding-bottom: 10px;
    }

    .section-title:after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 50px;
        height: 3px;
        background-color: #ff9900;
    }

    .description-text {
        color: #555;
        line-height: 1.8;
        margin-bottom: 30px;
    }

    .auction-dates {
        display: flex;
        gap: 30px;
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .date-item {
        display: flex;
        flex-direction: column;
    }

    .date-label {
        font-size: 14px;
        color: #666;
        margin-bottom: 5px;
    }

    .date-value {
        font-size: 16px;
        font-weight: 500;
        color: #2c3e50;
    }

    .divider {
        height: 1px;
        background-color: #eee;
        margin: 25px 0;
    }

    .related-items {
        margin-top: 30px;
    }

    .related-title {
        font-size: 20px;
        margin-bottom: 20px;
        color: #2c3e50;
    }

    .product-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        margin-top: 20px;
    }

    .meta-item {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
        font-size: 15px;
        color: #555;
    }

    .meta-item i {
        margin-left: 10px;
        color: #ff9900;
    }

    .tags {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 15px;
    }

    .tag {
        background-color: #f0f0f0;
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 13px;
        color: #555;
    }

    .contact-seller {
        margin-top: 25px;
        padding-top: 20px;
        border-top: 1px solid #eee;
    }

    .btn-contact {
        background-color: #ff9900;
        color: white;
        width: 100%;
        padding: 12px;
    }

    .btn-contact:hover {
        background-color: #e68a00;
    }

    .error-message {
        background-color: #f8d7da;
        color: #721c24;
        padding: 20px;
        border-radius: 8px;
        text-align: center;
        margin: 20px 0;
    }

    .loading {
        text-align: center;
        padding: 40px;
        color: #666;
    }

    .loading-spinner {
        border: 4px solid #f3f3f3;
        border-top: 4px solid #3498db;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        animation: spin 1s linear infinite;
        margin: 0 auto 20px;
    }

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

        100% {
            transform: rotate(360deg);
        }
    }

    .skeleton {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: loading 1.5s infinite;
        border-radius: 4px;
    }

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

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

    .skeleton-text {
        height: 20px;
        margin-bottom: 10px;
    }

    .skeleton-title {
        height: 32px;
        width: 70%;
        margin-bottom: 15px;
    }

    .skeleton-price {
        height: 40px;
        width: 50%;
        margin-bottom: 20px;
    }

    .skeleton-image {
        height: 400px;
        width: 100%;
        margin-bottom: 15px;
    }

    .skeleton-thumbnail {
        height: 80px;
        flex: 1;
        min-width: 80px;
    }

    /* Add to your CSS section */
    .btn-buy {
        background-color: #e74c3c !important;
        color: white !important;
        font-weight: bold !important;
        transition: all 0.3s ease !important;
    }

    .btn-buy:hover {
        background-color: #c0392b !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
    }

    .btn-buy i {
        margin-right: 8px;
        font-size: 16px;
    }

    /* Currency Display Styles */
    .currency-display {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .currency-symbol {
        font-weight: bold;
        font-size: 24px;
        color: #2c3e50;
    }

    .original-price {
        font-size: 14px;
        color: #666;
        text-decoration: line-through;
        margin-left: 5px;
    }

    .buy-now-price {
        color: #e74c3c;
        font-weight: bold;
    }

    .buy-now-badge {
        background-color: #27ae60;
        color: white;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 12px;
        margin-right: 5px;
    }

    /* Currency Info */
    .currency-info {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 5px;
        font-size: 14px;
        color: #666;
    }

    .currency-name {
        background-color: #f0f0f0;
        padding: 2px 8px;
        border-radius: 4px;
        font-weight: 500;
    }

    /* Price Display Styles */
    .price-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .current-price-section {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .price-label {
        font-size: 14px;
        color: #7f8c8d;
        font-weight: 500;
        margin-bottom: 5px;
    }

    .current-price {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .price-amount {
        font-size: 36px;
        font-weight: 700;
        color: #2c3e50;
    }

    .price-currency {
        font-size: 20px;
        font-weight: 600;
        color: #2c3e50;
    }

    .price-options {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 10px;
    }

    .price-option {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 12px;
        background-color: #f8f9fa;
        border-radius: 6px;
        border: 1px solid #eaeaea;
    }

    .price-option.active {
        background-color: #e8f4fd;
        border-color: #3498db;
    }

    .option-label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 500;
        color: #2c3e50;
    }

    .option-icon {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        font-size: 12px;
    }

    .icon-gavel {
        background-color: #ffeaa7;
        color: #d35400;
    }

    .icon-bolt {
        background-color: #ffebee;
        color: #e74c3c;
    }

    .icon-lock {
        background-color: #e8f4fd;
        color: #3498db;
    }

    .option-value {
        font-size: 16px;
        font-weight: 600;
        color: #2c3e50;
    }

    .option-enabled {
        display: inline-block;
        padding: 2px 8px;
        background-color: #27ae60;
        color: white;
        border-radius: 12px;
        font-size: 11px;
        font-weight: 600;
        margin-right: 5px;
    }

    .option-disabled {
        display: inline-block;
        padding: 2px 8px;
        background-color: #95a5a6;
        color: white;
        border-radius: 12px;
        font-size: 11px;
        font-weight: 600;
        margin-right: 5px;
    }

    .price-note {
        font-size: 13px;
        color: #95a5a6;
        margin-top: 5px;
        padding: 8px 12px;
        background-color: #f8f9fa;
        border-radius: 6px;
        border-right: 3px solid #3498db;
    }

    .price-note i {
        margin-left: 5px;
        color: #3498db;
    }

    .reserve-price-info {
        background-color: #fff8e1;
        border: 1px solid #ffd54f;
        border-radius: 6px;
        padding: 10px 15px;
        margin-top: 10px;
    }

    .reserve-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 600;
        color: #d35400;
        margin-bottom: 5px;
    }

    .reserve-desc {
        font-size: 13px;
        color: #7f8c8d;
        line-height: 1.5;
    }

    /* Bidding Section Styles - MOVED TO GALLERY */
    .bidding-section {
        margin-top: 0;
        width: 100%;
    }

    .bidding-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid #f0f0f0;
    }

    .bidding-title {
        font-size: 22px;
        font-weight: 600;
        color: #2c3e50;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .bidding-title i {
        color: #3498db;
    }

    .current-bid-card {
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        border-radius: 10px;
        padding: 20px;
        margin-bottom: 25px;
        border: 1px solid #eaeaea;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .current-bid-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }

    .current-bid-label {
        font-size: 16px;
        font-weight: 600;
        color: #2c3e50;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .current-bid-label i {
        color: #27ae60;
    }

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

    .status-leading {
        background-color: rgba(39, 174, 96, 0.15);
        color: #27ae60;
    }

    .status-outbid {
        background-color: rgba(231, 76, 60, 0.15);
        color: #e74c3c;
    }

    .current-bid-amount {
        font-size: 36px;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 5px;
    }

    .bid-currency {
        font-size: 20px;
        font-weight: 600;
        color: #2c3e50;
        margin-right: 5px;
    }

    .bid-time {
        font-size: 14px;
        color: #95a5a6;
        margin-top: 5px;
    }

    .bid-time i {
        margin-left: 5px;
    }

    /* Bid History Styles */
    .bid-history-section {
        background: white;
        border-radius: 10px;
        padding: 25px;
        border: 1px solid #eaeaea;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .bid-history-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }

    .bid-history-title {
        font-size: 20px;
        font-weight: 600;
        color: #2c3e50;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .bid-history-title i {
        color: #3498db;
    }

    .total-bids {
        background-color: #3498db;
        color: white;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 600;
    }

    .bid-history-list {
        max-height: 300px;
        overflow-y: auto;
        padding-right: 10px;
    }

    /* Scrollbar styling */
    .bid-history-list::-webkit-scrollbar {
        width: 6px;
    }

    .bid-history-list::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .bid-history-list::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 10px;
    }

    .bid-history-list::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

    .bid-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        margin-bottom: 10px;
        background-color: #f8f9fa;
        border-radius: 8px;
        /* border-left: 4px solid #3498db; */
        transition: all 0.3s ease;
    }

    .bid-item:hover {
        background-color: #edf2f7;
        transform: translateX(-2px);
    }

    .bid-item.recent {
        border-left-color: #27ae60;
        background-color: #f0f9f0;
    }

    .bid-item.leading {
        border-left-color: #f39c12;
        background-color: #fef9e7;
    }

    .bid-info {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .bidder-info {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .bidder-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: #3498db;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 600;
        font-size: 14px;
    }

    .bidder-name {
        font-weight: 600;
        color: #2c3e50;
        font-size: 15px;
    }

    .bid-time-info {
        font-size: 13px;
        color: #95a5a6;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .bid-amount-info {
        text-align: left;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .bid-amount {
        font-size: 20px;
        font-weight: 700;
        color: #2c3e50;
    }

    .bid-increment {
        font-size: 12px;
        color: #27ae60;
        background-color: rgba(39, 174, 96, 0.15);
        padding: 2px 8px;
        border-radius: 12px;
        display: inline-block;
    }

    .no-bids {
        text-align: center;
        padding: 40px 20px;
        color: #95a5a6;
    }

    .no-bids i {
        font-size: 48px;
        margin-bottom: 15px;
        opacity: 0.3;
    }

    .no-bids p {
        font-size: 16px;
        margin: 0;
    }

    /* Place Bid Button */
    .place-bid-section {
        margin-top: 25px;
        padding: 20px;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        border-radius: 10px;
        border: 1px solid #eaeaea;
    }

    .bid-form-title {
        font-size: 18px;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .bid-form-title i {
        color: #27ae60;
    }

    .bid-input-group {
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
    }

    .bid-input {
        flex: 1;
        padding: 12px 15px;
        border: 2px solid #e0e0e0;
        border-radius: 6px;
        font-size: 16px;
        text-align: left;
        transition: all 0.3s;
    }

    .bid-input:focus {
        border-color: #3498db;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
        outline: none;
    }

    .currency-display-bid {
        padding: 12px 20px;
        background-color: #f0f0f0;
        border: 2px solid #e0e0e0;
        border-radius: 6px;
        font-weight: 600;
        color: #2c3e50;
        min-width: 80px;
        text-align: center;
    }

    .bid-button {
        background: linear-gradient(135deg, #27ae60 0%, #219955 100%);
        color: white;
        border: none;
        padding: 12px 30px;
        border-radius: 6px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .bid-button:hover {
        background: linear-gradient(135deg, #219955 0%, #1e8449 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    }

    .min-bid-note {
        font-size: 25px;
        /* color: #7f8c8d; */
        margin-top: 10px;
        font-weight: bolder;
        padding: 8px 12px;
        background-color: #f8f9fa;
        border-radius: 6px;
        border-right: 3px solid #f39c12;
    }

    .min-bid-note i {
        margin-left: 5px;
        color: #f39c12;
    }

    /* Responsive adjustments for bidding section in gallery */
    @media (max-width: 992px) {
        .product-container {
            flex-direction: column;
        }

        .product-gallery,
        .product-info {
            width: 100%;
        }
    }

    @media (max-width: 768px) {
        .bidding-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
        }

        .bid-input-group {
            flex-direction: column;
        }

        .bid-button {
            width: 100%;
            justify-content: center;
        }
    }

    .bid-notes {
        width: 100%;
        padding: 14px 18px;
        font-size: 15px;
        line-height: 1.6;
        color: #2c3e50;
        background-color: #f8f9fa;
        border: 2px solid #e9ecef;
        border-radius: 10px;
        margin-top: 12px;
        font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        text-align: right;
        direction: rtl;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .bid-notes:focus {
        outline: none;
        border-color: #3498db;
        background-color: #fff;
        box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15);
    }

    .bid-notes::placeholder {
        color: #7f8c8d;
        opacity: 0.8;
        font-weight: 300;
    }

    /* Bid notes container */
    .bid-notes-container {
        width: 100%;
        margin-top: 15px;
    }

    /* Bid notes styling */
    .bid-notes {
        width: 100%;
        padding: 14px 18px;
        font-size: 15px;
        line-height: 1.6;
        color: #2c3e50;
        background-color: #f8f9fa;
        border: 2px solid #e9ecef;
        border-radius: 10px;
        font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        text-align: right;
        direction: rtl;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: block;
        box-sizing: border-box;
        resize: vertical;
        min-height: 80px;
        max-height: 150px;
    }

    .bid-notes:focus {
        outline: none;
        border-color: #3498db;
        background-color: #fff;
        box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15);
    }

    .bid-notes::placeholder {
        color: #7f8c8d;
        opacity: 0.8;
        font-weight: 300;
    }

    /* Character counter */
    .character-count {
        text-align: left;
        font-size: 12px;
        color: #666;
        margin-top: 5px;
        padding: 0 5px;
        font-family: 'Cairo', sans-serif;
    }

    /* Existing bid input group styles - ensure they work properly */
    .bid-input-group {
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
    }

    .bid-input {
        flex: 1;
        padding: 12px 15px;
        border: 2px solid #e0e0e0;
        border-radius: 6px;
        font-size: 16px;
        text-align: left;
    }

    .currency-display-bid {
        padding: 12px 20px;
        background-color: #f0f0f0;
        border: 2px solid #e0e0e0;
        border-radius: 6px;
        font-weight: 600;
        color: #2c3e50;
        min-width: 80px;
        text-align: center;
    }

    .bid-button {
        background: linear-gradient(135deg, #27ae60 0%, #219955 100%);
        color: white;
        border: none;
        padding: 12px 30px;
        border-radius: 6px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
    }

    /* Add to your CSS section */
    .btn-buy {
        background-color: #e74c3c !important;
        color: white !important;
        font-weight: bold !important;
        transition: all 0.3s ease !important;
        position: relative;
        padding: 12px 20px !important;
    }

    .btn-buy:hover {
        background-color: #c0392b !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
    }

    .btn-buy i {
        margin-right: 8px;
        font-size: 16px;
    }

    .buy-now-price {
        margin-right: 8px;
        font-weight: bold;
        background-color: rgba(255, 255, 255, 0.2);
        padding: 3px 8px;
        border-radius: 4px;
        font-size: 14px;
    }

    .btn-success {
        background-color: #27ae60 !important;
        color: white !important;
    }

    .btn-success:hover {
        background-color: #219955 !important;
    }

    .action-buttons {
        display: flex;
        gap: 10px;
        margin-bottom: 25px;
        flex-wrap: wrap;
    }

    .action-buttons .btn_details {
        padding: 12px 20px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-weight: 500;
        transition: background-color 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        flex: 1;
        min-width: 200px;
    }

    @media (max-width: 768px) {
        .action-buttons .btn_details {
            min-width: 100%;
        }
    }

    /* Bid Confirmation Modal Styles */
    #bidConfirmationModal {
        font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    #bidConfirmationModal h3 {
        font-size: 22px;
        font-weight: 700;
    }

    #bidConfirmationModal h4 {
        font-size: 16px;
        font-weight: 600;
    }

    #acceptConditions {
        width: 20px;
        height: 20px;
        cursor: pointer;
    }

    #acceptConditions:checked {
        background-color: #27ae60;
    }

    #confirmBidBtn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    #confirmBidBtn:not(:disabled):hover {
        background: linear-gradient(135deg, #219955 0%, #1e8449 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    }

    #cancelBidBtn:hover {
        background-color: #e0e0e0;
        transform: translateY(-2px);
    }

    /* Add these styles to your existing CSS */

    /* Bid buttons container */
    .bid-buttons-container {
        display: flex;
        gap: 10px;
    }

    /* Auto bid button */
    .auto-bid-button {
        background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
        color: white;
        border: none;
        padding: 12px 20px;
        border-radius: 6px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 10px;
        white-space: nowrap;
        min-width: 160px;
    }

    .auto-bid-button:hover {
        background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
    }

    .auto-bid-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

    .auto-bid-button i {
        font-size: 14px;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .bid-buttons-container {
            flex-direction: column;
            width: 100%;
        }

        .auto-bid-button,
        .bid-button {
            width: 100%;
            justify-content: center;
        }
    }

    /* Countdown Timer Styles */
    .countdown-ticker {
        margin: 15px 0;
        padding: 20px;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        border-radius: 10px;
        border: 1px solid #eaeaea;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .countdown-ticker.ended {
        border-left: 4px solid #e74c3c;
        background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    }

    .countdown-ticker.ending-soon {
        border-left: 4px solid #f39c12;
        background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0% {
            box-shadow: 0 4px 12px rgba(243, 156, 18, 0.1);
        }

        50% {
            box-shadow: 0 4px 20px rgba(243, 156, 18, 0.3);
        }

        100% {
            box-shadow: 0 4px 12px rgba(243, 156, 18, 0.1);
        }
    }

    .countdown-title {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
    }

    .countdown-title i {
        margin-left: 10px;
        font-size: 20px;
        color: #2c3e50;
    }

    .countdown-title-text {
        font-size: 18px;
        font-weight: 600;
        color: #2c3e50;
    }

    .countdown-display {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
    }

    .time-group {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .time-unit {
        text-align: center;
        min-width: 70px;
    }

    .time-value {
        font-size: 36px;
        font-weight: 700;
        color: #2c3e50;
        display: block;
        line-height: 1;
        margin-bottom: 5px;
        font-family: 'Courier New', monospace;
    }

    .time-label {
        font-size: 14px;
        color: #7f8c8d;
        display: block;
    }

    .separator {
        font-size: 28px;
        color: #95a5a6;
        font-weight: 300;
        margin: 0 5px;
    }

    .auction-status {
        display: inline-block;
        padding: 6px 15px;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 600;
        margin-top: 10px;
    }

    .status-active {
        background-color: rgba(39, 174, 96, 0.15);
        color: #27ae60;
    }

    .status-ending {
        background-color: rgba(243, 156, 18, 0.15);
        color: #f39c12;
    }

    .status-ended {
        background-color: rgba(231, 76, 60, 0.15);
        color: #e74c3c;
    }

    .status-upcoming {
        background-color: rgba(52, 152, 219, 0.15);
        color: #3498db;
    }

    .countdown-ended {
        text-align: center;
        padding: 15px;
    }

    .ended-title {
        font-size: 20px;
        font-weight: 600;
        color: #e74c3c;
        margin-bottom: 5px;
    }

    .ended-time {
        font-size: 14px;
        color: #7f8c8d;
    }

    @media (max-width: 768px) {
        .countdown-display {
            flex-direction: column;
        }

        .time-group {
            justify-content: center;
        }

        .time-value {
            font-size: 32px;
        }

        .separator {
            font-size: 24px;
        }
    }

    @media (max-width: 480px) {
        .time-value {
            font-size: 28px;
        }

        .separator {
            font-size: 20px;
        }

        .time-unit {
            min-width: 60px;
        }
    }

    /* Add to your existing CSS */
    .popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        direction: rtl;
    }

    .popup {
        background: white;
        padding: 25px;
        border-radius: 12px;
        width: 450px;
        max-width: 90%;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    .popup h3 {
        color: #e74c3c;
        margin-top: 0;
        margin-bottom: 15px;
        font-size: 22px;
        text-align: center;
    }

    .popup p {
        margin: 10px 0;
        font-size: 16px;
        color: #333;
    }

    .bid-info {
        background: #f8f9fa;
        padding: 20px;
        border-radius: 8px;
        margin: 20px 0;
        border-right: 4px solid #3498db;
    }

    .bid-info p {
        margin: 8px 0;
        color: #2c3e50;
    }

    .bid-info strong {
        color: #2980b9;
        font-weight: 600;
    }

    .popup-buttons {
        display: flex;
        gap: 15px;
        justify-content: center;
        margin-top: 20px;
    }

    .popup-buttons button {
        padding: 12px 24px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 16px;
        font-weight: 600;
        transition: all 0.3s;
    }

    .popup-buttons button:first-child {
        background: #7f8c8d;
        color: white;
        min-width: 100px;
    }

    .popup-buttons button:first-child:hover {
        background: #95a5a6;
    }

    .popup-buttons button.update-btn {
        background: #27ae60;
        color: white;
        min-width: 150px;
    }

    .popup-buttons button.update-btn:hover {
        background: #2ecc71;
    }
    
    
    /* Current user's bid - ENTIRE DIV HIGHLIGHTED */
.bid-item.current-user-bid {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%) !important;
    border-right: 4px solid #27ae60 !important;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(39, 174, 96, 0.2);
}

/* Current user's avatar specific color */
.bid-item.current-user-bid .bidder-avatar {
    background-color: #27ae60 !important;
    box-shadow: 0 2px 4px rgba(39, 174, 96, 0.3);
}

/* Current user's name */
.bid-item.current-user-bid .bidder-name {
    color: #2c3e50;
    font-weight: 700;
}

/* Current user's bid amount */
.bid-item.current-user-bid .bid-amount {
    color: #27ae60;
    font-weight: 700;
}

/* "أنت" badge */
.user-badge {
    background-color: #27ae60;
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-right: 8px;
    display: inline-block;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Base bid item styling */
.bid-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
    margin: 4px 0;
}

.bid-item:hover {
    background-color: #f5f5f5;
    transform: translateX(-2px);
}

/* Highest bid styling */
.bid-item.leading {
    background-color: #fff8e1;
    border-left: 3px solid #ffc107;
}

/* Avatar styling */
.bidder-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bidder-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bidder-name {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.bid-time-info {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bid-amount-info {
    text-align: left;
    min-width: 120px;
}

.bid-amount {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
}

.bid-increment {
    font-size: 11px;
    color: #27ae60;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

/* No bids message */
.no-bids {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.no-bids i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #bdc3c7;
}