/* ===== PRICE REQUEST SYSTEM STYLES ===== */

/* ===== PRICE REQUEST MODAL STYLES ===== */
.price-request-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.price-request-modal .modal-content {
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* ===== REQUESTER MODAL ===== */
.requester-modal .modal-content {
    max-width: 600px;
}

.requester-modal .modal-header {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    color: white;
    padding: 20px;
    border-bottom: 1px solid #333;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.requester-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #4054b2;
}

.requester-modal .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #ccc;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.requester-modal .close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.requester-modal .modal-body {
    padding: 25px;
}

.requester-modal .contract-details {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.requester-modal .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.requester-modal .detail-row:last-child {
    margin-bottom: 0;
}

.requester-modal .detail-row .label {
    color: #888;
    font-size: 13px;
    font-weight: 500;
}

.requester-modal .detail-row .value {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

/* ===== STATUS SECTION ===== */
.status-section {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a, #141414);
    border-radius: 6px;
    border: 1px solid #333;
}

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

.status-indicator .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-top: 2px solid #4054b2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

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

.status-text {
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
}

.response-count {
    color: #888;
    font-size: 12px;
}

.response-count span {
    color: #4054b2;
    font-weight: 600;
    font-size: 14px;
}

/* ===== PRICE RESULTS ===== */
.price-results {
    margin-top: 20px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 6px;
    border: 1px solid #333;
}

.best-prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.price-item {
    background: linear-gradient(135deg, #141414, #1a1a1a);
    border: 1px solid #444;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    transition: all 0.2s;
}

.price-item:hover {
    border-color: #4054b2;
    box-shadow: 0 0 10px rgba(64, 84, 178, 0.2);
}

.price-label {
    display: block;
    color: #888;
    font-size: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    display: block;
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: 'Courier New', monospace;
}

.deal-btn {
    background: linear-gradient(135deg, #4054b2, #3243a1);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    min-width: 60px;
}

.deal-btn:hover {
    background: linear-gradient(135deg, #3243a1, #2a3890);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(64, 84, 178, 0.3);
}

/* ===== MAKER MODAL ===== */
.price-maker-modal {
    z-index: 10001;
}

.price-maker-modal .modal-content {
    max-width: 450px;
    animation: slideInUp 0.3s ease-out;
}

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

.price-maker-modal .modal-header {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    color: white;
    padding: 18px 20px;
    border-bottom: 1px solid #333;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.price-maker-modal .modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #e0e0e0;
}

.price-maker-modal .modal-body {
    padding: 20px;
}

.request-details {
    margin-bottom: 20px;
}

.request-details p {
    margin: 0 0 10px 0;
    color: #ccc;
    font-size: 14px;
}

.contract-summary {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 12px;
    margin-top: 8px;
}

.contract-summary div:first-child {
    color: white;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.mid-points {
    color: #888;
    font-size: 12px;
}

/* ===== PRICE INPUT SECTION ===== */
.price-input-section {
    border-top: 1px solid #333;
    padding-top: 20px;
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.price-input-group {
    position: relative;
}

.price-input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: #ccc;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-input {
    width: 100%;
    padding: 10px 12px;
    background: #141414;
    border: 1px solid #444;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    transition: all 0.2s;
    box-sizing: border-box;
}

.price-input:focus {
    outline: none;
    border-color: #4054b2;
    box-shadow: 0 0 0 2px rgba(64, 84, 178, 0.2);
    background: #1a1a1a;
}

.price-input::placeholder {
    color: #666;
    font-style: italic;
}

/* ===== AUTO-CLOSE TIMER ===== */
.auto-close-timer {
    text-align: center;
    padding: 10px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 4px;
    margin-top: 15px;
    color: #ffc107;
    font-size: 11px;
    font-weight: 500;
}

.auto-close-timer span {
    font-weight: 700;
    color: #ffeb3b;
}

/* ===== MODAL FOOTER ===== */
.price-request-modal .modal-footer {
    padding: 20px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-radius: 0 0 8px 8px;
    background: #141414;
}

.cancel-btn, .secondary-btn {
    background: transparent;
    color: #ccc;
    border: 1px solid #444;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.cancel-btn:hover, .secondary-btn:hover {
    background: #333;
    color: white;
    border-color: #555;
}

.primary-btn {
    background: linear-gradient(135deg, #4054b2, #3243a1);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    min-width: 120px;
}

.primary-btn:hover {
    background: linear-gradient(135deg, #3243a1, #2a3890);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(64, 84, 178, 0.3);
}

/* ===== PRICE SUBMITTED CONFIRMATION ===== */
.price-submitted-confirmation {
    text-align: center;
    padding: 20px;
}

.confirmation-icon {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 15px;
}

.price-submitted-confirmation h4 {
    margin: 0 0 15px 0;
    color: white;
    font-size: 18px;
}

.submitted-prices {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 12px;
    margin: 15px 0;
}

.price-line {
    color: #4054b2;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    margin: 5px 0;
}

.confirmation-message {
    color: #ccc;
    margin: 15px 0;
    font-size: 14px;
}

.retraction-warning {
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.3);
    border-radius: 4px;
    padding: 6px 10px;
}

.retraction-warning small {
    color: #17a2b8;
    font-size: 10px;
}

/* ===== RETRACTION INFO ===== */
.retraction-info {
    margin-top: 15px;
}

.retraction-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 4px;
}

.status-indicator {
    font-size: 12px;
    font-weight: bold;
}

.status-indicator.active {
    color: #28a745;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.status-text {
    color: #28a745;
    font-size: 12px;
    font-weight: 500;
}

/* ===== RETRACT BUTTON ===== */
.retract-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.retract-btn:hover {
    background: linear-gradient(135deg, #c82333, #b21e2d);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* ===== RETRACTION NOTIFICATION ===== */
.retraction-notification {
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(20px); }
    20% { opacity: 1; transform: translateX(0); }
    80% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(20px); }
}

.retraction-message {
    display: flex;
    align-items: center;
    gap: 8px;
}

.retraction-icon {
    font-size: 14px;
}

/* ===== CLOSE NO DEAL BUTTON ===== */
.close-no-deal-btn {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.close-no-deal-btn:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* ===== REQUEST CLOSING STATE ===== */
.request-closing-state {
    text-align: center;
    padding: 30px 20px;
}

.closing-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.request-closing-state h4 {
    margin: 0 0 15px 0;
    color: white;
    font-size: 18px;
}

.closing-message {
    color: #ccc;
    margin: 15px 0 8px 0;
    font-size: 14px;
}

.closing-submessage {
    color: #888;
    margin: 0;
    font-size: 12px;
}

/* ===== REQUEST CLOSED NOTIFICATION ===== */
.request-closed-notification {
    text-align: center;
    padding: 25px 20px;
}

.closed-icon {
    font-size: 42px;
    margin-bottom: 15px;
}

.request-closed-notification h4 {
    margin: 0 0 15px 0;
    color: white;
    font-size: 16px;
}

.closed-message {
    color: #ccc;
    margin: 15px 0 8px 0;
    font-size: 13px;
}

.closed-submessage {
    color: #888;
    margin: 0 0 15px 0;
    font-size: 12px;
}

.participation-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.3);
    border-radius: 4px;
    margin-top: 15px;
}

.note-icon {
    font-size: 14px;
}

.note-text {
    color: #17a2b8;
    font-size: 11px;
    font-style: italic;
}

/* ===== REQUEST PRICE BUTTON ENHANCEMENT ===== */
.request-price-btn {
    background: linear-gradient(135deg, #6a4c93, #5a3c83);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.2s;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.request-price-btn:hover {
    background: linear-gradient(135deg, #5a3c83, #4a2c73);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(106, 76, 147, 0.3);
}

.request-price-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.request-price-btn:hover::before {
    left: 100%;
}

/* ===== TOAST ANIMATIONS ===== */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .price-request-modal .modal-content {
        width: 95%;
        max-width: none;
        margin: 10px;
    }
    
    .best-prices, .price-inputs {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .price-request-modal .modal-footer {
        flex-direction: column-reverse;
        gap: 8px;
    }
    
    .price-request-modal .modal-footer button {
        width: 100%;
    }
}

/* ===== REQUESTER TIMER STYLES ===== */
.requester-timer {
    text-align: center;
    padding: 8px 12px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 4px;
    margin-top: 10px;
    color: #ff6b6b;
    font-size: 12px;
    font-weight: 600;
}

.requester-timer span {
    font-weight: 700;
    color: #ff5252;
    font-size: 13px;
}

/* ===== NO RESPONSES MESSAGE ===== */
.no-responses-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 6px;
    margin: 15px 0;
}

.no-responses-message .warning-icon {
    font-size: 24px;
    opacity: 0.8;
}

.no-responses-message .message-text {
    color: #ffb74d;
    text-align: left;
}

.no-responses-message .message-text strong {
    color: #ffa726;
    font-weight: 600;
}

/* ===== TIMEOUT MESSAGE ===== */
.timeout-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 6px;
    margin: 15px 0;
}

.timeout-message .timeout-icon {
    font-size: 24px;
    opacity: 0.8;
}

.timeout-message .message-text {
    color: #ffc107;
    text-align: left;
}

.timeout-message .message-text strong {
    color: #ffeb3b;
    font-weight: 600;
}

/* ===== RESPONSE COUNTER STYLES ===== */
.response-counter {
    text-align: center;
    margin: 10px 0;
    color: #888;
    font-size: 13px;
}

.response-counter span {
    color: #4054b2;
    font-weight: 600;
}

/* ===== RESPONSE ITEMS STYLES ===== */
.responses-container {
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.response-item {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 8px;
}

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

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

.responder-id {
    color: #4054b2;
    font-weight: 600;
    font-size: 12px;
}

.response-time {
    color: #888;
    font-size: 11px;
}

.response-prices {
    display: flex;
    gap: 15px;
}

.bid-price, .offer-price {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
}

.bid-price {
    color: #66bb6a;
}

.offer-price {
    color: #ef5350;
}

.no-responses {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* ===== BEST PRICES DISPLAY ===== */
.best-prices-display {
    display: flex;
    justify-content: space-between;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 15px;
}

.best-price-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.best-price-label {
    color: #888;
    font-size: 11px;
    margin-bottom: 4px;
}

.best-price-value {
    color: #4054b2;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.individual-responses {
    margin-top: 10px;
}

/* ===== ENHANCED PRICE REQUEST MODAL STYLES ===== */

/* Make price request modal look like enhanced trading modal */
.price-request-modal.enhanced-trading-modal {
    width: 650px;
    max-width: 95vw;
    max-height: 90vh;
}

.price-request-modal.enhanced-trading-modal .modal-body {
    padding: 0;
}

/* Contract Information Section - Same as enhanced modal */
.price-request-modal .contract-info-section {
    padding: 20px;
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
}

.price-request-modal .contract-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-request-modal .contract-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.price-request-modal .contract-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.price-request-modal .contract-dates {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #aaaaaa;
}

.price-request-modal .date-label {
    font-weight: 500;
    color: #666666;
}

.price-request-modal .date-value {
    font-weight: 600;
    color: #4054b2;
}

.price-request-modal .market-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.price-request-modal .market-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-request-modal .stat-label {
    font-size: 12px;
    color: #666666;
    text-transform: uppercase;
    font-weight: 500;
}

.price-request-modal .stat-value {
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
}

/* Price Ladder Section - Same structure as enhanced modal */
.price-request-modal .price-ladder-section {
    padding: 20px;
    border-bottom: 1px solid #333;
}

.price-request-modal .ladder-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.price-request-modal .ladder-header-row h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.price-request-modal .price-ladder-container {
    background-color: #151515;
    border-radius: 4px;
    overflow: hidden;
}

.price-request-modal .price-ladder {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    min-height: 200px;
}

.price-request-modal .bids-column, 
.price-request-modal .offers-column {
    padding: 15px;
}

.price-request-modal .spread-column {
    width: 80px;
    background-color: #1a1a1a;
    border-left: 1px solid #333;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
}

.price-request-modal .ladder-header {
    font-size: 12px;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-align: center;
}

.price-request-modal .price-levels {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-request-modal .price-level {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    border-radius: 4px;
    background-color: #1f1f1f;
    border: 1px solid #333;
    transition: all 0.2s ease;
}

.price-request-modal .price-level.best-price {
    background-color: #2a2a2a;
    border-color: #4054b2;
}

.price-request-modal .price-level.clickable {
    cursor: pointer;
}

.price-request-modal .price-level.clickable:hover {
    background-color: #333333;
    transform: translateY(-1px);
}

.price-request-modal .price-level.best-price.clickable:hover {
    background-color: #4054b2;
    color: white;
}

.price-request-modal .price-value {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.price-request-modal .price-size {
    font-size: 12px;
    color: #aaaaaa;
}

.price-request-modal .price-time {
    font-size: 11px;
    color: #666666;
}

.price-request-modal .spread-value {
    font-size: 14px;
    font-weight: 600;
    color: #ffbc1c;
    text-align: center;
    margin-top: 20px;
}

.price-request-modal .no-orders {
    padding: 20px;
    text-align: center;
    color: #666666;
    font-style: italic;
}

/* Timer styles in header */
.price-request-modal .requester-timer {
    text-align: center;
    padding: 6px 12px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 4px;
    color: #ff6b6b;
    font-size: 11px;
    font-weight: 600;
}

.price-request-modal .requester-timer span {
    font-weight: 700;
    color: #ff5252;
    font-size: 12px;
}

/* Status Section */
.price-request-modal .status-section {
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid #333;
}

.price-request-modal .status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.price-request-modal .status-text {
    color: #aaa;
    font-size: 14px;
}

.price-request-modal .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #333;
    border-top: 2px solid #4054b2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Updated timeout and no-response messages */
.price-request-modal .timeout-message,
.price-request-modal .no-responses-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    border-radius: 6px;
    margin: 15px 20px;
}

.price-request-modal .timeout-message {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.price-request-modal .no-responses-message {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.price-request-modal .timeout-icon,
.price-request-modal .warning-icon {
    font-size: 24px;
    opacity: 0.8;
}

.price-request-modal .timeout-message .message-text {
    color: #ffc107;
    text-align: left;
}

.price-request-modal .no-responses-message .message-text {
    color: #ffb74d;
    text-align: left;
}

.price-request-modal .timeout-message .message-text strong,
.price-request-modal .no-responses-message .message-text strong {
    font-weight: 600;
}

/* Modal footer adjustments */
.price-request-modal .modal-footer {
    padding: 20px;
    background: #1a1a1a;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.price-request-modal .modal-footer button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.price-request-modal .secondary-btn {
    background: #333;
    color: #ccc;
}

.price-request-modal .secondary-btn:hover {
    background: #444;
    color: #fff;
}

.price-request-modal .primary-btn {
    background: #4054b2;
    color: white;
}

.price-request-modal .primary-btn:hover {
    background: #5067c7;
}

/* ===== MODAL CENTERING FIX ===== */

.requester-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 10000 !important;
    backdrop-filter: blur(4px) !important;
    /* Ensure no gaps or edges */
    box-sizing: border-box !important;
}

/* Also fix for price-maker-modal */
.price-maker-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 10000 !important;
    backdrop-filter: blur(4px) !important;
    box-sizing: border-box !important;
}

/* ===== NOTIFICATION SYSTEM STYLES ===== */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.price-request-notification {
    background: #1a1a1a;
    border: 1px solid #333;
    border-left: 4px solid #4054b2;
    border-radius: 8px;
    width: 320px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    pointer-events: auto;
    overflow: hidden;
    position: relative;
}

.price-request-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    padding: 15px;
}

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

.notification-title {
    font-weight: 600;
    color: #4054b2;
    font-size: 14px;
}

.notification-close {
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.notification-body {
    margin-bottom: 12px;
}

.request-details {
    color: #fff;
    font-size: 15px;
    margin-bottom: 4px;
}

.request-meta {
    color: #888;
    font-size: 13px;
}

.notification-actions {
    display: flex;
    gap: 8px;
}

.respond-btn {
    background: #4054b2;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
    flex: 1;
    transition: background 0.2s;
}

.respond-btn:hover {
    background: #5067c7;
}

.ignore-btn {
    background: #333;
    color: #ccc;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.ignore-btn:hover {
    background: #444;
    color: #fff;
}

.notification-timer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.timer-bar {
    height: 100%;
    background: linear-gradient(90deg, #4054b2, #5067c7);
    width: 100%;
    transform-origin: left;
}

@keyframes timerProgress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

.dealt-away-notice {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
    border: 2px solid #2196f3;
    margin: 20px 0;
}

.dealt-away-notice::before {
    content: "📈";
    display: block;
    font-size: 48px;
    margin-bottom: 15px;
}

.dealt-away-notice h4 {
    color: #1565c0;
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
}

.dealt-away-notice .price-info {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 18px;
    font-weight: bold;
    color: #1565c0;
}

.dealt-away-notice .sub-message {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

.dealing-progress-notice {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border-radius: 12px;
    border: 2px solid #4caf50;
}

.dealing-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #4caf50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.dealing-progress-notice h4 {
    color: #2e7d32;
    margin: 0 0 10px 0;
    font-size: 20px;
}

.dealing-progress-notice p {
    color: #2e7d32;
    margin: 5px 0;
    font-size: 16px;
}

.dealing-progress-notice .sub-text {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

/* Request cancelled notification */
.request-cancelled-notification {
    text-align: center;
    padding: 30px 20px;
    color: #ffffff;
}

.cancelled-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.request-cancelled-notification h4 {
    color: #ffffff;
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.cancelled-message {
    color: #cccccc;
    margin: 0 0 8px 0;
    font-size: 14px;
}

.cancelled-submessage {
    color: #999999;
    margin: 0 0 20px 0;
    font-size: 13px;
}

.participation-note {
    background-color: #1a1a1a;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 3px solid #4054b2;
}

.note-icon {
    font-size: 16px;
}

.note-text {
    color: #cccccc;
    font-size: 12px;
    line-height: 1.4;
}

