/* ═══════════════════════════════════════════════════════════════
   BULLET SERVER GSM HUB & ORDER HISTORY STYLING
   ═══════════════════════════════════════════════════════════════ */

/* Order History Header Button */
.order-history-btn {
    background: rgba(124, 77, 255, 0.12);
    border: 1px solid rgba(124, 77, 255, 0.4);
    color: #e040fb;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
    box-shadow: 0 0 12px rgba(124, 77, 255, 0.2);
}

.order-history-btn:hover {
    background: rgba(124, 77, 255, 0.25);
    border-color: #e040fb;
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(224, 64, 251, 0.4);
}

/* Order History Modal */
.order-history-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 17, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.order-history-modal-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.order-history-card {
    background: rgba(10, 14, 26, 0.95);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 680px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 240, 255, 0.2);
    overflow: hidden;
}

.order-history-header {
    padding: 20px 24px;
    background: rgba(0, 240, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-history-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-history-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.order-history-close:hover {
    color: #ff4c60;
}

.order-history-search-bar {
    padding: 14px 24px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    gap: 12px;
}

.order-history-search-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 10px 16px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    outline: none;
}

.order-history-search-input:focus {
    border-color: #00f0ff;
}

.order-history-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s ease;
}

.order-card-item:hover {
    border-color: rgba(0, 240, 255, 0.3);
    background: rgba(0, 240, 255, 0.04);
}

.order-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-tool-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-tool-thumb {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
    flex-shrink: 0;
}

.order-status-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Green: DONE / Accepted / Completed */
.order-status-badge.status-done,
.order-status-badge.status-completed,
.order-status-badge.status-active {
    background: rgba(0, 255, 130, 0.15) !important;
    color: #00ff82 !important;
    border: 1px solid rgba(0, 255, 130, 0.45) !important;
    box-shadow: 0 0 10px rgba(0, 255, 130, 0.25);
}

/* Red: Rejected / Refunded */
.order-status-badge.status-rejected,
.order-status-badge.status-refunded {
    background: rgba(255, 76, 96, 0.15) !important;
    color: #ff4c60 !important;
    border: 1px solid rgba(255, 76, 96, 0.45) !important;
    box-shadow: 0 0 10px rgba(255, 76, 96, 0.25);
}

/* Yellow: In Progress / Pending */
.order-status-badge.status-in-progress,
.order-status-badge.status-pending {
    background: rgba(255, 193, 7, 0.15) !important;
    color: #ffc107 !important;
    border: 1px solid rgba(255, 193, 7, 0.45) !important;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.25);
}

/* Expired: Muted */
.order-status-badge.status-expired {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.order-card-details {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.order-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.order-action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-action-btn:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: #00f0ff;
    color: #00f0ff;
}

@media (max-width: 600px) {
    .order-history-modal-overlay {
        padding: 10px 8px;
    }
    .order-history-card {
        width: 100%;
        max-width: 100%;
        border-radius: 14px;
        max-height: 92vh;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    .order-history-header {
        padding: 14px 16px;
    }
    .order-history-title {
        font-size: 15px;
    }
    .order-history-search-bar {
        padding: 10px 14px;
    }
    .order-history-body {
        padding: 12px 10px;
        gap: 10px;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    .order-card-item {
        padding: 12px 10px;
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
    }
    .order-card-top {
        flex-wrap: wrap;
        gap: 6px;
    }
    .order-tool-title {
        font-size: 13.5px;
        word-break: break-word;
        min-width: 0;
        flex: 1 1 auto;
    }
    .order-status-badge {
        font-size: 10px;
        padding: 3px 8px;
        flex-shrink: 0;
    }
    .order-card-details {
        font-size: 11px;
        gap: 8px;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
}

