
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header h5 {
    font-size: 1.1rem;
    opacity: 0.9;
    color: rgb(197, 186, 158);
}

/* Controls styles */
.controls {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #6e6e6e;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    align-items: flex-start; /* Changed from center to prevent stretching */
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1; /* Allow filter groups to grow and shrink */
    min-width: 150px; /* Minimum width for filter groups */
}

.filter-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: rgb(197, 186, 158);;
    white-space: nowrap; /* Prevent label wrapping */
}

.filter-group select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: rgba(235, 210, 71, 0.583);
    cursor: pointer;
    transition: border-color 0.3s ease;
    width: 100%; /* Ensure select takes full width of container */
    box-sizing: border-box; /* Include padding in width calculation */
}

.filter-group select:focus {
    outline: none;
    border-color: #667eea;
}

.refresh-countdown {
    color: #829271;
    font-size: 1rem;
    font-weight: 600;
    margin-left: 5px;
}

.refresh-countdown.warning {
    color: #e67e22;
}

#refreshBtn {
    padding: 10px 20px;
    background: #888;
    color: rgb(197, 186, 158);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: auto;
    align-self: center; /* Center vertically within the container */
    white-space: nowrap; /* Prevent button text wrapping */
    flex-shrink: 0; /* Prevent button from shrinking too much */
}

#refreshBtn:hover {
    background: rgba(115, 141, 114, 0.76);
}

/* Responsive design for small screens */
@media (max-width: 768px) {
    .controls {
        gap: 15px;
        padding: 15px;
    }
    
    .filter-group {
        min-width: calc(50% - 10px); /* 2 columns on mobile */
        flex: 1 1 calc(50% - 10px);
    }
    
    #refreshBtn {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        order: 999;
    }
}
    
    /* Optional: Make filter groups stack in 2 columns on medium-small screens */
    @media (max-width: 480px) {
        .controls {
            gap: 10px;
        }
        
        .filter-group {
            min-width: 100%;
        }
        
        .filter-group select {
            font-size: 0.9rem; /* Slightly smaller text on very small screens */
        }
    }


/* Loading and error styles */
.loading, .error {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    background: white;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.error {
    background: #ffe6e6;
    color: #d63031;
    border: 1px solid #ff7675;
}

/* Current price display */
.current-price {
    text-align: center;
    padding: 15px;
    color: rgb(197, 186, 158);
    background: #6e6e6e;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    font-weight: 600;
}

.current-price .price {
    color: #f2a900;
    font-size: 1.3rem;
}

/* Offers container */
.offers-container {
    display: grid;
    gap: 20px;
}

/* Individual offer card */
.offer-card {
    background: #6e6e6e;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 6px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.offer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

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

.offer-side {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.side-sell {
    background: #94604d;
    color: #fff;
}

.side-buy {
    background: #659d4fed;
    color: #fff;
}

.offer-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.offer-spread {
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.spread-positive {
    background: #55efc4;
    color: #00b894;
}

.spread-negative {
    background: #fab1a0;
    color: #e17055;
}

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

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 0.8rem;
    color: rgb(197, 186, 158);
    font-weight: 600;
}

.detail-value {
    font-size: 1rem;
    font-weight: 600;
    color: #262a2b;
}

.offer-trader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

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

.trader-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-online {
    background: #00b894;
}

.status-recently {
    background: #fdcb6e;
}

.status-offline {
    background: #636e72;
}

.trader-rating {
    color: #fdcb6e;
    font-weight: 600;
}

.offer-action {
    text-align: center;
    padding: 8px 16px;
    background: #515153;
    color: white;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.offer-action:hover {
    background: #9b8854;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    #refreshBtn {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .offer-details {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile/tablet */
        gap: 12px;
    }
    
    .offer-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .offer-trader {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .offer-action {
        align-self: stretch;
        text-align: center;
    }
}

/* Additional breakpoint for very small screens */
@media (max-width: 480px) {
    .offer-details {
        grid-template-columns: 1fr; /* Stack vertically only on very small screens */
        gap: 10px;
    }
    
    .detail-item {
        text-align: center;
        padding: 8px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 6px;
    }
}

/* Tablet-specific optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .offer-details {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        gap: 15px;
    }
}

.payment-methods {
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.payment-methods-label {
    font-size: 0.8rem;
    color: #b5b9ba;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.payment-method-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.payment-method-bubble {
    background: #353432;
    color: #ffbb00;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid #000000;
    white-space: nowrap;
    cursor: help;
}

.payment-method-bubble:hover {
    background: #bbdefb;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Responsive design for payment bubbles */
@media (max-width: 768px) {
    .payment-method-bubbles {
        gap: 4px;
    }
    
    .payment-method-bubble {
        font-size: 0.65rem;
        padding: 3px 6px;
    }
}

/* hodlhodl modal css */
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgb(34, 33, 33);
    padding: 0;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-header {
    background: linear-gradient(135deg, #ba7f00 0%, #2b2b2b 100%);
    color: white;
    padding: 25px;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: white;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #ffeaa7;
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #d8d8d8;
}

.modal-features {
    background: #c2c4c6;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.feature {
    padding: 8px 0;
    color: #272a2b;
    font-weight: 500;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.visit-btn {
    background: #b27e36;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.visit-btn:hover {
    background: #465c33;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(128, 255, 17, 0.329);
}

.skip-btn {
    background: #bdc3c7;
    color: #2d3436;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skip-btn:hover {
    background: #95a5a6;
    transform: translateY(-1px);
}

/* Responsive design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .visit-btn, .skip-btn {
        width: 100%;
    }
}

.new-traders-section {
    margin-top: 30px;
}

.new-traders-header {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.new-traders-header hr {
    border: none;
    border-top: 2px dashed #bdc3c7;
    margin: 20px 0;
}

.new-traders-label {
    background: #e16416c7;
    color: #000000;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.2rem;
    display: inline-block;
    position: relative;
    top: -15px;
    border: 1px solid #dedede;
}

.no-offers {
    text-align: center;
    padding: 40px;
    background: rgb(37, 34, 26);
    border-radius: 10px;
    color: #636e72;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.no-offers h3 {
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.suggestion {
    background: #515151;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.suggestion p {
    margin-bottom: 10px;
    font-weight: 600;
    color: #ffffff;
}

.suggestion ul {
    margin: 0;
    padding-left: 20px;
    color: #fff;
}

.suggestion li {
    margin-bottom: 8px;
    line-height: 1.4;
    color: rgb(197, 186, 158);
}

.suggestion-btn {
    background: #464748;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

.suggestion-btn:hover {
    background: #325c3b;
}

.spread-na {
    background: #bdc3c7;
    color: #2d3436;
}

.filter-group input[type="number"] {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: rgba(235, 210, 71, 0.583);
    transition: border-color 0.3s ease;
}

.filter-group input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
}